Commerce Engine is now in early preview. Please report any issues or feedback to support@commercengine.io
{
"applied_promotions": [
{
"promotion_id": "<string>",
"promotion_type": "discount",
"savings": 123,
"product_id": "<string>",
"variant_id": "<string>",
"product_name": "<string>",
"variant_name": "<string>",
"applied_sequence": 123,
"scope": "<string>"
}
],
"applied_coupons": [
{
"coupon_id": "<string>",
"coupon_type": "discount",
"savings": 123,
"product_id": "<string>",
"variant_id": "<string>",
"product_name": "<string>",
"variant_name": "<string>"
}
],
"order_number": "<string>",
"order_date": "2023-11-07T05:31:56Z",
"status": "draft",
"payment_status": "pending",
"payment_success_date": "<string>",
"customer_note": "<string>",
"is_promotion_applied": true,
"promotion_discount_amount": 123,
"promotion_discount_percent": 123,
"is_coupon_applied": true,
"coupon_code": "<string>",
"coupon_discount_amount": 123,
"coupon_discount_percent": 123,
"promotion_savings": 1,
"coupon_savings": 1,
"other_savings": 1,
"total_savings": 1,
"on_subscription": true,
"subtotal": 123,
"item_total_tax": 123,
"subtotal_including_tax": 123,
"shipping_estimated_cost": 1,
"shipping_discount_amount": 1,
"shipping_amount": 123,
"shipping_tax_rate": 1,
"shipping_tax_amount": 1,
"shipping_amount_including_tax": 1,
"fulfillment_preference": {
"fulfillment_type": "<string>",
"pickup_location_id": "<string>"
},
"estimated_delivery_days": 123,
"handling_charge_excluding_tax": 1,
"handling_charge_tax_amount": 1,
"handling_charge_including_tax": 1,
"total_tax": 123,
"grand_total": 123,
"loyalty_points_earned": 1,
"loyalty_points_redeemed": 1,
"credit_balance_used": 123,
"to_be_paid": 123,
"order_items_count": 123,
"order_items": [
{
"product_id": "<string>",
"product_name": "<string>",
"product_image_url": "<string>",
"product_type": "physical",
"sku": "<string>",
"slug": "<string>",
"variant_id": "<string>",
"variant_name": "<string>",
"backorder": true,
"on_promotion": true,
"on_subscription": true,
"subscription_plan": "<string>",
"subscription_interval": 123,
"subscription_frequency": "<string>",
"quantity": 1,
"free_quantity": 1,
"is_free_item": true,
"price_including_tax": true,
"selling_price": 1,
"listing_price": 1,
"selling_price_excluding_tax": 1,
"promotion_discount_amount": 1,
"coupon_discount_amount": 1,
"tax_type": "GST",
"tax_rate": 1,
"tax_amount": 1,
"handling_charge_excluding_tax": 1,
"handling_charge_tax_rate": 1,
"handling_charge_including_tax": 1,
"associated_options": {
"background_color": {
"name": "Background Color",
"value": {
"name": "Blue",
"hexcode": "#0000FF"
},
"type": "color"
},
"size": {
"name": "Size",
"value": "Large",
"type": "single-select"
}
},
"attributes": [
{
"id": "<string>",
"name": "<string>",
"key": "<string>",
"type": "color",
"value": [
{
"name": "<string>",
"hexcode": "<string>"
}
]
}
],
"seller_id": "<string>",
"seller_detail": {
"id": "<string>",
"trade_name": "<string>",
"legal_name": "<string>",
"business_type": "<string>",
"tax_identification_number": "<string>"
}
}
],
"billing_address": {
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"landmark": "<string>",
"pincode": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"tax_identification_number": "<string>",
"business_name": "<string>",
"is_default_billing": true,
"is_default_shipping": true,
"nickname": null
},
"shipping_address": {
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"landmark": "<string>",
"pincode": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"tax_identification_number": "<string>",
"business_name": "<string>",
"is_default_billing": true,
"is_default_shipping": true,
"nickname": null
},
"currency": {
"name": "<string>",
"code": "<string>",
"symbol": "<string>"
},
"metadata": {},
"is_cancellation_allowed": true,
"cancellation_refund_details": {
"loyalty_point": 123,
"refundable_amount": 123,
"cancellation_charges": 123,
"cancellation_charges_reason": "<string>",
"payment_mode": "original-payment-mode"
},
"feedback": "<string>",
"payments": [
{
"transaction_type": "payment",
"request_number": "<string>",
"amount": 123,
"payment_status": "pending",
"payment_date": "2023-11-07T05:31:56Z",
"payment_reference_number": "<string>",
"payment_method": "<string>",
"icon_url": "<string>",
"card_number": "<string>",
"card_type": "Visa"
}
],
"shipments": [
{
"reference_number": "<string>",
"status": "unscheduled",
"total_weight": 123,
"total_boxes": 123,
"shipment_items_count": 123,
"shipment_items": [
{
"product_id": "<string>",
"product_name": "<string>",
"product_image_url": "<string>",
"variant_id": "<string>",
"variant_name": "<string>",
"sku": "<string>",
"quantity": 123,
"free_quantity": 123,
"is_free_item": true
}
],
"shipping_amount": 123,
"shipping_tax_amount": 123,
"shipping_amount_including_tax": 123,
"courier_company_name": "<string>",
"shipping_label_url": "<string>",
"awb_no": "<string>",
"tracking_url": "<string>",
"eta_delivery": "<string>",
"shipped_date": "2023-11-07T05:31:56Z",
"delivered_date": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"seller_id": "<string>",
"seller_detail": {
"id": "<string>",
"trade_name": "<string>",
"legal_name": "<string>",
"business_type": "<string>",
"tax_identification_number": "<string>"
}
}
]
}{
"message": "<string>",
"success": true,
"code": "<string>",
"error": {}
}{
"applied_promotions": [
{
"promotion_id": "<string>",
"promotion_type": "discount",
"savings": 123,
"product_id": "<string>",
"variant_id": "<string>",
"product_name": "<string>",
"variant_name": "<string>",
"applied_sequence": 123,
"scope": "<string>"
}
],
"applied_coupons": [
{
"coupon_id": "<string>",
"coupon_type": "discount",
"savings": 123,
"product_id": "<string>",
"variant_id": "<string>",
"product_name": "<string>",
"variant_name": "<string>"
}
],
"order_number": "<string>",
"order_date": "2023-11-07T05:31:56Z",
"status": "draft",
"payment_status": "pending",
"payment_success_date": "<string>",
"customer_note": "<string>",
"is_promotion_applied": true,
"promotion_discount_amount": 123,
"promotion_discount_percent": 123,
"is_coupon_applied": true,
"coupon_code": "<string>",
"coupon_discount_amount": 123,
"coupon_discount_percent": 123,
"promotion_savings": 1,
"coupon_savings": 1,
"other_savings": 1,
"total_savings": 1,
"on_subscription": true,
"subtotal": 123,
"item_total_tax": 123,
"subtotal_including_tax": 123,
"shipping_estimated_cost": 1,
"shipping_discount_amount": 1,
"shipping_amount": 123,
"shipping_tax_rate": 1,
"shipping_tax_amount": 1,
"shipping_amount_including_tax": 1,
"fulfillment_preference": {
"fulfillment_type": "<string>",
"pickup_location_id": "<string>"
},
"estimated_delivery_days": 123,
"handling_charge_excluding_tax": 1,
"handling_charge_tax_amount": 1,
"handling_charge_including_tax": 1,
"total_tax": 123,
"grand_total": 123,
"loyalty_points_earned": 1,
"loyalty_points_redeemed": 1,
"credit_balance_used": 123,
"to_be_paid": 123,
"order_items_count": 123,
"order_items": [
{
"product_id": "<string>",
"product_name": "<string>",
"product_image_url": "<string>",
"product_type": "physical",
"sku": "<string>",
"slug": "<string>",
"variant_id": "<string>",
"variant_name": "<string>",
"backorder": true,
"on_promotion": true,
"on_subscription": true,
"subscription_plan": "<string>",
"subscription_interval": 123,
"subscription_frequency": "<string>",
"quantity": 1,
"free_quantity": 1,
"is_free_item": true,
"price_including_tax": true,
"selling_price": 1,
"listing_price": 1,
"selling_price_excluding_tax": 1,
"promotion_discount_amount": 1,
"coupon_discount_amount": 1,
"tax_type": "GST",
"tax_rate": 1,
"tax_amount": 1,
"handling_charge_excluding_tax": 1,
"handling_charge_tax_rate": 1,
"handling_charge_including_tax": 1,
"associated_options": {
"background_color": {
"name": "Background Color",
"value": {
"name": "Blue",
"hexcode": "#0000FF"
},
"type": "color"
},
"size": {
"name": "Size",
"value": "Large",
"type": "single-select"
}
},
"attributes": [
{
"id": "<string>",
"name": "<string>",
"key": "<string>",
"type": "color",
"value": [
{
"name": "<string>",
"hexcode": "<string>"
}
]
}
],
"seller_id": "<string>",
"seller_detail": {
"id": "<string>",
"trade_name": "<string>",
"legal_name": "<string>",
"business_type": "<string>",
"tax_identification_number": "<string>"
}
}
],
"billing_address": {
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"landmark": "<string>",
"pincode": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"tax_identification_number": "<string>",
"business_name": "<string>",
"is_default_billing": true,
"is_default_shipping": true,
"nickname": null
},
"shipping_address": {
"first_name": "<string>",
"last_name": "<string>",
"country_code": "<string>",
"phone": "<string>",
"email": "<string>",
"address_line1": "<string>",
"address_line2": "<string>",
"landmark": "<string>",
"pincode": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"tax_identification_number": "<string>",
"business_name": "<string>",
"is_default_billing": true,
"is_default_shipping": true,
"nickname": null
},
"currency": {
"name": "<string>",
"code": "<string>",
"symbol": "<string>"
},
"metadata": {},
"is_cancellation_allowed": true,
"cancellation_refund_details": {
"loyalty_point": 123,
"refundable_amount": 123,
"cancellation_charges": 123,
"cancellation_charges_reason": "<string>",
"payment_mode": "original-payment-mode"
},
"feedback": "<string>",
"payments": [
{
"transaction_type": "payment",
"request_number": "<string>",
"amount": 123,
"payment_status": "pending",
"payment_date": "2023-11-07T05:31:56Z",
"payment_reference_number": "<string>",
"payment_method": "<string>",
"icon_url": "<string>",
"card_number": "<string>",
"card_type": "Visa"
}
],
"shipments": [
{
"reference_number": "<string>",
"status": "unscheduled",
"total_weight": 123,
"total_boxes": 123,
"shipment_items_count": 123,
"shipment_items": [
{
"product_id": "<string>",
"product_name": "<string>",
"product_image_url": "<string>",
"variant_id": "<string>",
"variant_name": "<string>",
"sku": "<string>",
"quantity": 123,
"free_quantity": 123,
"is_free_item": true
}
],
"shipping_amount": 123,
"shipping_tax_amount": 123,
"shipping_amount_including_tax": 123,
"courier_company_name": "<string>",
"shipping_label_url": "<string>",
"awb_no": "<string>",
"tracking_url": "<string>",
"eta_delivery": "<string>",
"shipped_date": "2023-11-07T05:31:56Z",
"delivered_date": "2023-11-07T05:31:56Z",
"cancellation_reason": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"seller_id": "<string>",
"seller_detail": {
"id": "<string>",
"trade_name": "<string>",
"legal_name": "<string>",
"business_type": "<string>",
"tax_identification_number": "<string>"
}
}
]
}{
"message": "<string>",
"success": true,
"code": "<string>",
"error": {}
}Information about the promotional offers that have been applied to the cart.
Show child attributes
This key provides details about the savings in cart after coupon have been applied to the cart.
Show child attributes
Unique, human-readable order identifier used across all order endpoints.
Current fulfillment status of the order. Progresses from confirmed through shipping stages to complete.
draft, awaiting_approval, confirmed, partially_scheduled, awaiting_shipment, shipped, partially_shipped, undelivered, partially_undelivered, return_to_origin, partially_return_to_origin, complete, partially_delivered, cancelled, pending Current payment status. Poll /orders/{order_number}/payment-status after a payment attempt until this is success or failed.
pending, success, failed, partially_paid Total savings from auto-applied promotions.
x >= 0Total savings from the applied coupon code.
x >= 0Total savings from loyalty points, credit balance, and other non-promotion/coupon discounts.
x >= 0Combined savings across promotions, coupons, and other discounts.
x >= 0x >= 0x >= 0x >= 0x >= 0x >= 0How the customer wants to receive their order. Discriminated by fulfillment_type: delivery for home delivery, collect-in-store for in-store pickup, or partial-collect-and-delivery for a mix of both.
Show child attributes
x >= 0x >= 0x >= 0x >= 0x >= 0Show child attributes
Show child attributes
Show child attributes
Show child attributes
Additional metadata associated with the order.
Show child attributes
Whether the order is eligible for cancellation. Only show the cancel action in your UI when this is true.
Breakdown of the refund the customer would receive upon cancellation. Only populated when is_cancellation_allowed is true.
Show child attributes
Payments using credit card, debit card
Show child attributes
Show child attributes
Was this page helpful?