Get shipment details for the items in a cart, specific to the selected address. Shipment details include delivery promises, seller information, item details, and other relevant information.
Arguments
addressId
StringID allotted to the selected address.
areaCode
StringThe PIN Code of the destination address, e.g. 400059.
buyNow
BooleanThis is boolean to get buy_now cart.
id
StringThe unique identifier of the cart.
orderType
StringThe order type of shipment HomeDelivery - If the customer wants the order home-delivered PickAtStore - If the customer wants the handover of an order at the store itself. Digital - If the customer wants to buy digital voucher ( for jiogames ).
includePayment
BooleanThis is a boolean value. Select `true` to get a payment option in response.
Response
breakup_values
CartBreakupPrice breakup of cart which denotes different values like coupon, display, and loyalty points.
buy_now
BooleanBuy now flag of user cart.
cart_id
IntCart id of the user cart.
checkout_mode
StringCheckout mode of cart.
comment
StringComment message added in cart.
coupon_text
StringCoupon text of coupon applied on cart.
currency
CartCurrencyCurrency data of the cart for prices.
delivery_charge_info
StringDelivery charge in information message on shipment.
delivery_promise
ShipmentPromiseShipment level promise information which denotes time in 3 different formats i.e formatted time, timestamp and iso format.
error
BooleanError details if any error occurs which includes type of error, error code and error message.
gstin
StringGSTIN number added in cart.
id
StringCart id of the user cart.
is_valid
BooleanCart validity flag determines the if the response is valid or not.
last_modified
StringLast modified timestamp of cart.
message
StringResponse message of get shipments API.
payment_selection_lock
PaymentSelectionLockPayment Default Selection Schema.
restrict_checkout
BooleanRestrict checkout flag to restrict the checkout process.
shipments
[ShipmentResponse]List of Shipments which includes shipment data like shipment items, shipment promise, Shipment type, shipment order type, shipment dp options etc.
uid
StringCart id of the user cart.
custom_cart_meta
JSONMetadata for custom cart
Query
1query cartShipmentDetails(2 $addressId: String3 $areaCode: String4 $buyNow: Boolean5 $id: String6 $orderType: String7 $includePayment: Boolean8) {9 cartShipmentDetails(10 addressId: $addressId11 areaCode: $areaCode12 buyNow: $buyNow13 id: $id14 orderType: $orderType15 includePayment: $includePayment16 ) {17 buy_now18 cart_id19 checkout_mode20 comment21 coupon_text22 currency {23 code24 symbol25 }26 delivery_charge_info27 error28 gstin29 id30 is_valid31 last_modified32 message33 payment_selection_lock {34 default_options35 enabled36 payment_identifier37 }38 restrict_checkout39 shipments {40 box_type41 dp_id42 dp_options43 fulfillment_id44 fulfillment_type45 order_type46 shipment_type47 shipments48 }49 uid50 custom_cart_meta51 }52}
Try it
Input Variables
1{2 "addressId": "addressId",3 "areaCode": "areaCode",4 "buyNow": true,5 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",6 "orderType": "orderType",7 "includePayment": true8}
Response
1{2 "cartShipmentDetails": {3 "buy_now": true,4 "cart_id": 42,5 "checkout_mode": "checkout_mode",6 "comment": "comment",7 "coupon_text": "coupon_text",8 "currency": {9 "code": "code",10 "symbol": "symbol"11 },12 "delivery_charge_info": "delivery_charge_info",13 "error": true,14 "gstin": "gstin",15 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",16 "is_valid": true,17 "last_modified": "last_modified",18 "message": "message",19 "payment_selection_lock": {20 "default_options": "default_options",21 "enabled": true,22 "payment_identifier": "payment_identifier"23 },24 "restrict_checkout": true,25 "shipments": [26 {27 "box_type": "box_type",28 "dp_id": "dp_id",29 "dp_options": {},30 "fulfillment_id": 42,31 "fulfillment_type": "fulfillment_type",32 "order_type": "order_type",33 "shipment_type": "shipment_type",34 "shipments": 4235 }36 ],37 "uid": "uid",38 "custom_cart_meta": {}39 }40}
Was this section helpful?