curl --request POST \
--url https://prod.cart.fabric.inc/v2/carts/{cartId}/order-drafts \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data @- <<EOF
{
"paymentDetails": [
{
"connectorName": "Authorizenet",
"paymentToken": 534234543,
"amount": 10.5,
"currency": "USD",
"conversion": 0.5,
"billToAddress": {
"street1": "100 NE 100th St.",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"postalCode": "98125",
"customerId": 98121,
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"type": "Residence",
"latitude": 35.294952,
"longitude": 32.294952
},
"paymentMethod": "card",
"paymentMethodType": "tamara or tabby",
"attributes": {
"Attribute1": "620d8896058edb0009385311"
}
}
],
"estimatedTax": {
"itemsTaxes": [
{
"type": "state_tax",
"amount": 2.5,
"rateType": "rateType",
"rate": 10,
"lineItemId": 1
}
],
"shipToTaxes": [
{
"shipToId": "a1b26d22-cad2-6242-a2b4-e3c4282bad4",
"type": "state_tax",
"amount": 2.5,
"rateType": "rateType",
"rate": 10
}
],
"feeTaxes": [
{
"feeId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"type": "state_tax",
"amount": 2.5,
"rateType": "rateType",
"rate": 10
}
]
},
"orderNumber": 123123123,
"orderSequence": {
"sequenceName": "ORDER_NUMBER_SEQUENCE",
"sequenceKey": "WHBM"
},
"customer": {
"id": "8fb78749",
"type": "employee",
"segments": "{subscription: ['premium']}",
"attributes": "{email: [email protected]}"
},
"orderType": "WEB",
"orderSubType": "Android"
}
EOF{
"cartId": "b8a64b52-dab4-8137-8d6a-f2c2337abc1",
"orderStatus": {
"paymentStatus": "<unknown>",
"ready": true
},
"orderTotal": 60,
"orderSubTotal": 60,
"taxTotal": 60,
"orderDiscount": 60,
"currency": "USD",
"createdAt": "2022-02-18T15:12:40.974580",
"items": [
{
"itemId": "1000000001",
"sku": "16B2GS8LD5FDS",
"items": [
{
"sku": "13B9CL6WT2SLW",
"quantity": 15,
"items": [
"<unknown>"
],
"cartItemId": "12gved0f-7645-40cb-y7b0-167f8bggdb3z",
"itemId": "1730902008",
"title": "Light Cover",
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"type": "GIFT",
"price": 10,
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"value": "true",
"level": "order",
"items": [
"1000000001"
]
}
],
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"type": "WEB_SHIP",
"subType": "Border-free",
"priceListId": "108674",
"lineItemId": 1,
"isActive": true,
"unitPrice": {
"currency": "USD",
"amount": 100,
"discount": {
"price": 80,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
],
"discountAmount": 20
},
"sale": 80
},
"totalPrice": {
"currency": "USD",
"amount": 100,
"discount": {
"price": 80,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
],
"discountAmount": 20
},
"sale": 80
},
"attributeTotalPrice": 10,
"group": [
"61d38e117162b7dba69c3d6d"
],
"extra": {
"productFamily": "Laptop computers"
},
"channel": 12,
"isPickup": true,
"warehouseId": "XYZ-1234",
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"shipTo": {
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "[email protected]",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123"
},
"fulfillment": {
"type": "WEB_SHIP",
"networkCode": "ShipToCNC",
"channelId": "12",
"inventoryType": "availablePreorder",
"inventory": {
"virtualCounters": {
"availableToPurchase": 10
},
"id": "62272e917b12209e68751d94",
"sku": "SKU00025",
"itemId": 4225678911,
"locationNum": 473746,
"channelId": 12,
"vendorId": "vendor123",
"leadTime": 1234,
"inventoryType": "Safety stock",
"infiniteInventory": true,
"counters": {
"on-hand": 10
},
"attributes": {
"buy online, pick up in-store (bopis)": true
},
"backOrderDate": "2022-08-08T00:00:00.000Z",
"preOrderDate": "2022-08-08T00:00:00.000Z",
"backOrderLimit": 100,
"preOrderLimit": 100,
"safetyStock": 10,
"lowStock": 10,
"segment": "Clothing",
"region": "US"
}
}
}
],
"quantity": 1,
"lineItemId": 1,
"isPickup": true,
"cartItemId": "88cded0f-1439-40eb-a7a0-167e8bffdb3b",
"title": "Varnet Garden Light Kit",
"attributeTotalPrice": 10,
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"priceListId": "100000",
"isActive": true,
"unitPrice": {
"currency": "USD",
"amount": 100,
"discount": {
"price": 80,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
],
"discountAmount": 20
},
"sale": 80
},
"totalPrice": {
"currency": "USD",
"amount": 100,
"discount": {
"price": 80,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
],
"discountAmount": 20
},
"sale": 80
},
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"type": "GIFT",
"price": 10,
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"value": "true",
"level": "order",
"items": [
"1000000001"
]
}
],
"priceAdjustments": [
{
"id": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"reason": "compensation for delay",
"amount": 20,
"attributes": {
"goldMember": [
false
]
}
}
],
"warehouseId": "XYZ-1234",
"shipTo": {
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "[email protected]",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123"
},
"channel": 12,
"group": [
"61d38e117162b7dba69c3d6d"
],
"fees": [
{
"feeId": "73bc09d0-874a-4c3d-84d0-df1670d03578",
"name": "gift",
"type": "gift_wrap",
"amount": 10.5,
"attributes": "{'from': 'sam', 'to': 'david' }"
}
],
"type": "WEB_SHIP",
"subType": "Borderfree",
"uom": "ITEM",
"itemTaxTotal": 123,
"taxCode": "FR1000",
"taxDetail": {
"type": "state_tax",
"amount": 2.5,
"rateType": "rateType",
"rate": 10
}
}
],
"shipInfo": [
{
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "[email protected]",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123",
"estimatedShipDate": "2022-02-18T15:12:40.974580",
"estimatedDeliveryDate": "2022-02-18T15:12:40.974580",
"shipmentInstructions": "Additional user instructions for shipping"
}
],
"orderNumber": 123123123,
"orderType": "WEB",
"orderSubType": "Android",
"customer": {
"id": "8fb78749",
"type": "employee",
"segments": "{subscription: ['premium']}",
"attributes": "{email: [email protected]}"
},
"attributes": {
"approver": "620d8896058edb0009385311"
},
"payments": [
{
"connectorName": "Authorizenet",
"paymentToken": 534234543,
"amount": 10.5,
"currency": "USD",
"conversion": 0.5,
"billToAddress": {
"street1": "100 NE 100th St.",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"postalCode": "98125",
"customerId": 98121,
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"type": "Residence",
"latitude": 35.294952,
"longitude": 32.294952
},
"paymentMethod": "card",
"paymentMethodType": "tamara or tabby",
"attributes": {
"Attribute1": "620d8896058edb0009385311"
}
}
],
"accountId": "5f689caa4216e7000750d1ef",
"totalItems": 3,
"totalUniqueItems": 2,
"configuration": {
"allowAnonymousUser": true,
"orderNumberSource": "CART_ID",
"softReserve": false,
"addItemBySku": false,
"inventory": {
"source": "FABRIC",
"ttl": 60,
"newItemBehaviour": "BLOCK",
"updateItemBehaviour": "BLOCK",
"viewItemBehaviour": "BLOCK",
"expiredDataBehaviour": "BLOCK"
}
},
"fees": [
{
"feeId": "73bc09d0-874a-4c3d-84d0-df1670d03578",
"name": "gift",
"type": "gift_wrap",
"amount": 10.5,
"attributes": "{'from': 'sam', 'to': 'david' }"
}
],
"orderTotalFees": 60,
"error": {
"code": "UNKNOWN_ERROR",
"detail": "Item is out of stock",
"itemId": "1000000001",
"sku": "16B2GS8LD5FDS",
"lineItemId": 1
}
}Create an order draft for a given cart. During the order draft creation process, payment details are validated before generating the draft. Additionally, it triggers an event if the “ORDER_DRAFT” webhook event is subscribed.
curl --request POST \
--url https://prod.cart.fabric.inc/v2/carts/{cartId}/order-drafts \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data @- <<EOF
{
"paymentDetails": [
{
"connectorName": "Authorizenet",
"paymentToken": 534234543,
"amount": 10.5,
"currency": "USD",
"conversion": 0.5,
"billToAddress": {
"street1": "100 NE 100th St.",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"postalCode": "98125",
"customerId": 98121,
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"type": "Residence",
"latitude": 35.294952,
"longitude": 32.294952
},
"paymentMethod": "card",
"paymentMethodType": "tamara or tabby",
"attributes": {
"Attribute1": "620d8896058edb0009385311"
}
}
],
"estimatedTax": {
"itemsTaxes": [
{
"type": "state_tax",
"amount": 2.5,
"rateType": "rateType",
"rate": 10,
"lineItemId": 1
}
],
"shipToTaxes": [
{
"shipToId": "a1b26d22-cad2-6242-a2b4-e3c4282bad4",
"type": "state_tax",
"amount": 2.5,
"rateType": "rateType",
"rate": 10
}
],
"feeTaxes": [
{
"feeId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"type": "state_tax",
"amount": 2.5,
"rateType": "rateType",
"rate": 10
}
]
},
"orderNumber": 123123123,
"orderSequence": {
"sequenceName": "ORDER_NUMBER_SEQUENCE",
"sequenceKey": "WHBM"
},
"customer": {
"id": "8fb78749",
"type": "employee",
"segments": "{subscription: ['premium']}",
"attributes": "{email: [email protected]}"
},
"orderType": "WEB",
"orderSubType": "Android"
}
EOF{
"cartId": "b8a64b52-dab4-8137-8d6a-f2c2337abc1",
"orderStatus": {
"paymentStatus": "<unknown>",
"ready": true
},
"orderTotal": 60,
"orderSubTotal": 60,
"taxTotal": 60,
"orderDiscount": 60,
"currency": "USD",
"createdAt": "2022-02-18T15:12:40.974580",
"items": [
{
"itemId": "1000000001",
"sku": "16B2GS8LD5FDS",
"items": [
{
"sku": "13B9CL6WT2SLW",
"quantity": 15,
"items": [
"<unknown>"
],
"cartItemId": "12gved0f-7645-40cb-y7b0-167f8bggdb3z",
"itemId": "1730902008",
"title": "Light Cover",
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"type": "GIFT",
"price": 10,
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"value": "true",
"level": "order",
"items": [
"1000000001"
]
}
],
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"type": "WEB_SHIP",
"subType": "Border-free",
"priceListId": "108674",
"lineItemId": 1,
"isActive": true,
"unitPrice": {
"currency": "USD",
"amount": 100,
"discount": {
"price": 80,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
],
"discountAmount": 20
},
"sale": 80
},
"totalPrice": {
"currency": "USD",
"amount": 100,
"discount": {
"price": 80,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
],
"discountAmount": 20
},
"sale": 80
},
"attributeTotalPrice": 10,
"group": [
"61d38e117162b7dba69c3d6d"
],
"extra": {
"productFamily": "Laptop computers"
},
"channel": 12,
"isPickup": true,
"warehouseId": "XYZ-1234",
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"shipTo": {
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "[email protected]",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123"
},
"fulfillment": {
"type": "WEB_SHIP",
"networkCode": "ShipToCNC",
"channelId": "12",
"inventoryType": "availablePreorder",
"inventory": {
"virtualCounters": {
"availableToPurchase": 10
},
"id": "62272e917b12209e68751d94",
"sku": "SKU00025",
"itemId": 4225678911,
"locationNum": 473746,
"channelId": 12,
"vendorId": "vendor123",
"leadTime": 1234,
"inventoryType": "Safety stock",
"infiniteInventory": true,
"counters": {
"on-hand": 10
},
"attributes": {
"buy online, pick up in-store (bopis)": true
},
"backOrderDate": "2022-08-08T00:00:00.000Z",
"preOrderDate": "2022-08-08T00:00:00.000Z",
"backOrderLimit": 100,
"preOrderLimit": 100,
"safetyStock": 10,
"lowStock": 10,
"segment": "Clothing",
"region": "US"
}
}
}
],
"quantity": 1,
"lineItemId": 1,
"isPickup": true,
"cartItemId": "88cded0f-1439-40eb-a7a0-167e8bffdb3b",
"title": "Varnet Garden Light Kit",
"attributeTotalPrice": 10,
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"priceListId": "100000",
"isActive": true,
"unitPrice": {
"currency": "USD",
"amount": 100,
"discount": {
"price": 80,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
],
"discountAmount": 20
},
"sale": 80
},
"totalPrice": {
"currency": "USD",
"amount": 100,
"discount": {
"price": 80,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
],
"discountAmount": 20
},
"sale": 80
},
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"type": "GIFT",
"price": 10,
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"value": "true",
"level": "order",
"items": [
"1000000001"
]
}
],
"priceAdjustments": [
{
"id": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"reason": "compensation for delay",
"amount": 20,
"attributes": {
"goldMember": [
false
]
}
}
],
"warehouseId": "XYZ-1234",
"shipTo": {
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "[email protected]",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123"
},
"channel": 12,
"group": [
"61d38e117162b7dba69c3d6d"
],
"fees": [
{
"feeId": "73bc09d0-874a-4c3d-84d0-df1670d03578",
"name": "gift",
"type": "gift_wrap",
"amount": 10.5,
"attributes": "{'from': 'sam', 'to': 'david' }"
}
],
"type": "WEB_SHIP",
"subType": "Borderfree",
"uom": "ITEM",
"itemTaxTotal": 123,
"taxCode": "FR1000",
"taxDetail": {
"type": "state_tax",
"amount": 2.5,
"rateType": "rateType",
"rate": 10
}
}
],
"shipInfo": [
{
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "[email protected]",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123",
"estimatedShipDate": "2022-02-18T15:12:40.974580",
"estimatedDeliveryDate": "2022-02-18T15:12:40.974580",
"shipmentInstructions": "Additional user instructions for shipping"
}
],
"orderNumber": 123123123,
"orderType": "WEB",
"orderSubType": "Android",
"customer": {
"id": "8fb78749",
"type": "employee",
"segments": "{subscription: ['premium']}",
"attributes": "{email: [email protected]}"
},
"attributes": {
"approver": "620d8896058edb0009385311"
},
"payments": [
{
"connectorName": "Authorizenet",
"paymentToken": 534234543,
"amount": 10.5,
"currency": "USD",
"conversion": 0.5,
"billToAddress": {
"street1": "100 NE 100th St.",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"postalCode": "98125",
"customerId": 98121,
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "[email protected]",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"type": "Residence",
"latitude": 35.294952,
"longitude": 32.294952
},
"paymentMethod": "card",
"paymentMethodType": "tamara or tabby",
"attributes": {
"Attribute1": "620d8896058edb0009385311"
}
}
],
"accountId": "5f689caa4216e7000750d1ef",
"totalItems": 3,
"totalUniqueItems": 2,
"configuration": {
"allowAnonymousUser": true,
"orderNumberSource": "CART_ID",
"softReserve": false,
"addItemBySku": false,
"inventory": {
"source": "FABRIC",
"ttl": 60,
"newItemBehaviour": "BLOCK",
"updateItemBehaviour": "BLOCK",
"viewItemBehaviour": "BLOCK",
"expiredDataBehaviour": "BLOCK"
}
},
"fees": [
{
"feeId": "73bc09d0-874a-4c3d-84d0-df1670d03578",
"name": "gift",
"type": "gift_wrap",
"amount": 10.5,
"attributes": "{'from': 'sam', 'to': 'david' }"
}
],
"orderTotalFees": 60,
"error": {
"code": "UNKNOWN_ERROR",
"detail": "Item is out of stock",
"itemId": "1000000001",
"sku": "16B2GS8LD5FDS",
"lineItemId": 1
}
}The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
ID of the cart for which order draft will be generated
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Request body to create order draft
Sample request to create order draft
Payment details
Show child attributes
Payment connector name
"Authorizenet"
Payment token identifier
534234543
Payment amount
10.5
Currency code
"USD"
Currency Conversion (For USD = 1, For Non-USD = conversion ratio to USD)
0.5
Billing address details Billing address for the order
Show child attributes
Address line 1
"100 NE 100th St."
City name
"Seattle"
State name
"Washington"
Country name
"USA"
Postal code
"98125"
Customer ID created for payment instruction
98121
Recipient's name
Receiver's email address
Address line 2
"Suite 710"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
Address type
"Residence"
Latitude
35.294952
Longitude
32.294952
Payment method
"card"
Payment method type
"tamara or tabby"
Payment Attributes
{ "Attribute1": "620d8896058edb0009385311" }Estimated tax object
Show child attributes
Show child attributes
Tax type
"state_tax"
Tax amount
2.5
Rate type
"rateType"
Rate
10
Line item position (starts at 1)
1
Show child attributes
Shipping detail identifier
"a1b26d22-cad2-6242-a2b4-e3c4282bad4"
Tax type
"state_tax"
Tax amount
2.5
Rate type
"rateType"
Rate
10
Show child attributes
Fee tax unique identifier
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Tax type
"state_tax"
Tax amount
2.5
Rate type
"rateType"
Rate
10
Order number
123123123
Customer details
Show child attributes
Customer ID
"8fb78749"
Customer type
"employee"
Customer segments
"{subscription: ['premium']}"
Customer attributes
"{email: [email protected]}"
Order type (WEB, CSC, MOBILE_APP, POS)
"WEB"
Order sub type (Android/IOS/International)
"Android"
OK
Order draft response
Cart ID
"b8a64b52-dab4-8137-8d6a-f2c2337abc1"
Total amount for the order
60
Total amount for the order without discounts
60
Total tax applied on the order
60
Total discount applied on the order
60
Currency code
"USD"
Time order draft was created
"2022-02-18T15:12:40.974580"
Show child attributes
Item ID
"1000000001"
Item SKU
"16B2GS8LD5FDS"
Cart item details
Show child attributes
Item SKU
"13B9CL6WT2SLW"
total quantity of the line item
15
List of items in a cart
Cart item ID
"12gved0f-7645-40cb-y7b0-167f8bggdb3z"
Item ID
"1730902008"
Item name
"Light Cover"
Additional item options
Show child attributes
Attribute ID
"60c2a358eb2ec30008ae70a1"
Attribute name
"gift wrapping (small)"
Attribute type
"GIFT"
Attribute price
10
Attribute description
"Gift wrapping for a small package"
ITEM: Item-level attribute
ORDER: Cart-level attribute
"ITEM"
Attribute applicability
"true"
Attribute level
"order"
Discount object
Item creation time
"2022-02-18T15:12:40.974580"
Last time item was updated
"2022-02-18T15:12:40.974580"
ItemType(WEB_SHIP/WEB_PICKUP/WEB_SDD/INTERNATIONAL/POS/POS_SHIP/POS_PICKUP)
"WEB_SHIP"
ItemSubType(For International type, provide subType as Border-free)
"Border-free"
Item price list ID
"108674"
Cart item sequence number (starts at 1)
x >= 11
true = Item is active
false = Item is not active
true
Individual item price
Show child attributes
Currency type
"USD"
Price before discount
100
Offer discount details. Empty list {} should be passed in case of no discount.
Show child attributes
Discounted price of the item
x >= 080
Show child attributes
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion/coupon code discount value
"20"
Promotion/coupon code discount unit
"%OFF"
List of discounts applied
Show child attributes
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion name
"New Year discount"
Quantity of this item in the cart
1
Total amount of discount applied
20
Promotion value
20
Promotion group ID
"new-items"
Promotion type
"PROMOTION"
Promotion priority
1
true = This promotion is stackable with other promotions
false = This promotion cannot be stacked with other promotions
false
Item SKU to which promotion is applied
"16B2GS8LD5FDS"
ID of item to which promotion is applied
"1000000001"
Key of item to which promotion is applied
"Key1234"
Coupon code description
"New Year Promotion"
Discount unit
"%OFF"
The proratedQuantity is used in conjunction with proratedAmount to determine the discount portion allocated to the respective units of BuyGet promotions. This is applicable in partial return scenarios.
1
The prorated discount amount.
3.33
Discounted percentage amount of the item
x >= 020
Price after discount
80
Total price for the full quantity of this item
Show child attributes
Currency type
"USD"
Price before discount
100
Offer discount details. Empty list {} should be passed in case of no discount.
Show child attributes
Discounted price of the item
x >= 080
Show child attributes
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion/coupon code discount value
"20"
Promotion/coupon code discount unit
"%OFF"
List of discounts applied
Show child attributes
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion name
"New Year discount"
Quantity of this item in the cart
1
Total amount of discount applied
20
Promotion value
20
Promotion group ID
"new-items"
Promotion type
"PROMOTION"
Promotion priority
1
true = This promotion is stackable with other promotions
false = This promotion cannot be stacked with other promotions
false
Item SKU to which promotion is applied
"16B2GS8LD5FDS"
ID of item to which promotion is applied
"1000000001"
Key of item to which promotion is applied
"Key1234"
Coupon code description
"New Year Promotion"
Discount unit
"%OFF"
The proratedQuantity is used in conjunction with proratedAmount to determine the discount portion allocated to the respective units of BuyGet promotions. This is applicable in partial return scenarios.
1
The prorated discount amount.
3.33
Discounted percentage amount of the item
x >= 020
Price after discount
80
Total price of item attributes
10
Group or Category ID to which item belongs
Extra metadata passed by caller
{ "productFamily": "Laptop computers" }Sales channel
12
true: Item is set for pickup
false: Item is set for delivery
true
Warehouse ID
"XYZ-1234"
Shipping ID
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Shipment details
Show child attributes
Shipping details ID
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Cart ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Shipping details creation time
"2022-02-18T15:12:40.974580"
Last time shipping details were updated
"2022-02-18T15:12:40.974580"
Shipping method and details
Show child attributes
Shipping method ID
"1234"
Shipment carrier
"FedEx"
Shipment method type
"Next Day"
Shipping address
Show child attributes
Address recipient
"Billing manager"
Address line 1
"100 NE 100th St."
Address line 2
"Suite 710"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
City name
"Seattle"
State name
"Washington"
Country name
"USA"
Zip code
"98125"
Receiver's email address
Address type
"shipping"
Recipient's name
Shipping type
"SHIP_TO_ADDRESS"
Shipping tax code
"FR1000"
true = Item is set for pickup
false = Item is set for delivery
true
Alternative pickup person
Show child attributes
Name of pickup person
Show child attributes
Receiver's email address
Designated pickup person
Show child attributes
Name of pickup person
Show child attributes
Receiver's email address
Warehouse ID
"XYZ-1234"
Store ID
"ABC-123"
Item details for order fulfillment
Show child attributes
Type of order fulfillment
"WEB_SHIP"
Specifies the network of inventory for item
"ShipToCNC"
Specifies the channel of inventory for item
"12"
Specifies the type of inventory for item
"availablePreorder"
Inventory details of the cart item Inventory details of the cart item
Show child attributes
View quantity of inventory, based on pre configured value. For example, 'availableToPurchase' can be a custom attribute configured by merchants.
{ "availableToPurchase": 10 }Inventory ID
"62272e917b12209e68751d94"
SKU of the item
"SKU00025"
Item ID for which inventory is updated
4225678911
Location number is used to identify the warehouse or location where the inventory is kept
473746
Sales channel ID. This field is used to identify where the business operations are being held.
12
Vendor ID
"vendor123"
The amount of time between when a purchase order is placed to replenish products and when the order is received in the warehouse
1234
Type of inventory
"Safety stock"
Infinite inventory flag.
true indicates that the inventory can be consumed any number of times as per needfalse indicates that the inventory cannot be used infinitely, and has a limit to be consumed
true
Inventory counter (also known as inventory position) configured by the merchant
{ "on-hand": 10 }Custom inventory attributes configured by the merchant
{
"buy online, pick up in-store (bopis)": true
}Inventory restock date
"2022-08-08T00:00:00.000Z"
First ship date of inventory
"2022-08-08T00:00:00.000Z"
Maximum restock inventory quantity
100
Maximum quanity of inventory for first-ship
100
Reserved inventory quantity at the location
10
Inventory quantity to mark as low stock at the location
10
Inventory segment
"Clothing"
Region where inventory is managed
"US"
Number of items in cart
1
Cart item sequence number (starts at 1)
x >= 11
true: Item is set for pickup
false: Item is set for delivery
true
Cart item ID
"88cded0f-1439-40eb-a7a0-167e8bffdb3b"
Item name
"Varnet Garden Light Kit"
Total price of attributes
10
Item creation time
"2022-02-18T15:12:40.974580"
Last time item was updated
"2022-02-18T15:12:40.974580"
Item price list ID
"100000"
true = Item is active
false = Item is not active
true
Individual item price
Show child attributes
Currency type
"USD"
Price before discount
100
Offer discount details. Empty list {} should be passed in case of no discount.
Show child attributes
Discounted price of the item
x >= 080
Show child attributes
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion/coupon code discount value
"20"
Promotion/coupon code discount unit
"%OFF"
List of discounts applied
Show child attributes
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion name
"New Year discount"
Quantity of this item in the cart
1
Total amount of discount applied
20
Promotion value
20
Promotion group ID
"new-items"
Promotion type
"PROMOTION"
Promotion priority
1
true = This promotion is stackable with other promotions
false = This promotion cannot be stacked with other promotions
false
Item SKU to which promotion is applied
"16B2GS8LD5FDS"
ID of item to which promotion is applied
"1000000001"
Key of item to which promotion is applied
"Key1234"
Coupon code description
"New Year Promotion"
Discount unit
"%OFF"
The proratedQuantity is used in conjunction with proratedAmount to determine the discount portion allocated to the respective units of BuyGet promotions. This is applicable in partial return scenarios.
1
The prorated discount amount.
3.33
Discounted percentage amount of the item
x >= 020
Price after discount
80
Total price for the full quantity of this item
Show child attributes
Currency type
"USD"
Price before discount
100
Offer discount details. Empty list {} should be passed in case of no discount.
Show child attributes
Discounted price of the item
x >= 080
Show child attributes
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion/coupon code discount value
"20"
Promotion/coupon code discount unit
"%OFF"
List of discounts applied
Show child attributes
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion name
"New Year discount"
Quantity of this item in the cart
1
Total amount of discount applied
20
Promotion value
20
Promotion group ID
"new-items"
Promotion type
"PROMOTION"
Promotion priority
1
true = This promotion is stackable with other promotions
false = This promotion cannot be stacked with other promotions
false
Item SKU to which promotion is applied
"16B2GS8LD5FDS"
ID of item to which promotion is applied
"1000000001"
Key of item to which promotion is applied
"Key1234"
Coupon code description
"New Year Promotion"
Discount unit
"%OFF"
The proratedQuantity is used in conjunction with proratedAmount to determine the discount portion allocated to the respective units of BuyGet promotions. This is applicable in partial return scenarios.
1
The prorated discount amount.
3.33
Discounted percentage amount of the item
x >= 020
Price after discount
80
Additional item options
Show child attributes
Attribute ID
"60c2a358eb2ec30008ae70a1"
Attribute name
"gift wrapping (small)"
Attribute type
"GIFT"
Attribute price
10
Attribute description
"Gift wrapping for a small package"
ITEM: Item-level attribute
ORDER: Cart-level attribute
"ITEM"
Attribute applicability
"true"
Attribute level
"order"
Discount object
List of price adjustments for the line item
Show child attributes
Price adjustment ID; it identifies a single price adjustment object from the list of price adjustments.
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Price adjustment reason
"compensation for delay"
Amount by which the line item's total amount or the specified cart's total amount is adjusted
x >= 020
Placeholder for additional information
{ "goldMember": [false] }Warehouse ID
"XYZ-1234"
Shipment details
Show child attributes
Shipping details ID
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Cart ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Shipping details creation time
"2022-02-18T15:12:40.974580"
Last time shipping details were updated
"2022-02-18T15:12:40.974580"
Shipping method and details
Show child attributes
Shipping method ID
"1234"
Shipment carrier
"FedEx"
Shipment method type
"Next Day"
Shipping address
Show child attributes
Address recipient
"Billing manager"
Address line 1
"100 NE 100th St."
Address line 2
"Suite 710"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
City name
"Seattle"
State name
"Washington"
Country name
"USA"
Zip code
"98125"
Receiver's email address
Address type
"shipping"
Shipping type
"SHIP_TO_ADDRESS"
Shipping tax code
"FR1000"
true = Item is set for pickup
false = Item is set for delivery
true
Alternative pickup person
Show child attributes
Name of pickup person
Receiver's email address
Designated pickup person
Show child attributes
Name of pickup person
Receiver's email address
Warehouse ID
"XYZ-1234"
Store ID
"ABC-123"
Sales channel
12
Group or Category ID to which item belongs
Fees associated with a specific cart or an individual line item of a cart
Show child attributes
System-generated fee ID, in UUID format. While creating a cart or line item with fee, fabric generates this ID for the specified fee.
"73bc09d0-874a-4c3d-84d0-df1670d03578"
Attribute for which fee is applied
"gift"
Fee type
"gift_wrap"
Fee amount
10.5
Placeholder for additional information in key:value pairs
"{'from': 'sam', 'to': 'david' }"
ItemType(WEB_SHIP/WEB_PICKUP/WEB_SDD/INTERNATIONAL/POS/POS_SHIP/POS_PICKUP)
"WEB_SHIP"
Item sub type. For International type, provide subType as Borderfree.
"Borderfree"
Unit Of measure
"ITEM"
Total tax on item
Tax code for an item
"FR1000"
Show child attributes
Shipping details ID
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Cart ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Shipping details creation time
"2022-02-18T15:12:40.974580"
Last time shipping details were updated
"2022-02-18T15:12:40.974580"
Shipping method and details
Show child attributes
Shipping method ID
"1234"
Shipment carrier
"FedEx"
Shipment method type
"Next Day"
Shipping address
Show child attributes
Address recipient
"Billing manager"
Address line 1
"100 NE 100th St."
Address line 2
"Suite 710"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
City name
"Seattle"
State name
"Washington"
Country name
"USA"
Zip code
"98125"
Receiver's email address
Address type
"shipping"
Shipping type
"SHIP_TO_ADDRESS"
Shipping tax code
"FR1000"
true: Item is set for pickup
false: Item is set for delivery
true
Alternative pickup person
Show child attributes
Name of pickup person
Receiver's email address
Designated pickup person
Show child attributes
Receiver's email address
Warehouse ID
"XYZ-1234"
Store ID
"ABC-123"
Estimated date for shipping
"2022-02-18T15:12:40.974580"
Estimated date for delivery
"2022-02-18T15:12:40.974580"
Store ID
"Additional user instructions for shipping"
Order number
123123123
Order type (WEB, CSC, MOBILE_APP, POS)
"WEB"
Order sub type (Android/IOS/International)
"Android"
Customer details
Show child attributes
Customer ID
"8fb78749"
Customer type
"employee"
Customer segments
"{subscription: ['premium']}"
Customer attributes
"{email: [email protected]}"
Cart metadata
{ "approver": "620d8896058edb0009385311" }Show child attributes
Payment connector name
"Authorizenet"
Payment token identifier
534234543
Payment amount
10.5
Currency code
"USD"
Currency Conversion (For USD = 1, For Non-USD = conversion ratio to USD)
0.5
Billing address details Billing address for the order
Show child attributes
Address line 1
"100 NE 100th St."
City name
"Seattle"
State name
"Washington"
Country name
"USA"
Postal code
"98125"
Customer ID created for payment instruction
98121
Receiver's email address
Address line 2
"Suite 710"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
Address type
"Residence"
Latitude
35.294952
Longitude
32.294952
Payment method
"card"
Payment method type
"tamara or tabby"
Payment Attributes
{ "Attribute1": "620d8896058edb0009385311" }Customer account ID
"5f689caa4216e7000750d1ef"
Total number of items in the cart
3
Total number of unique line items in the cart
2
Cart configuration
Show child attributes
true: Allows a cart to be a guest cart.
false: Allows cart only if user is logged in.
true
Determines how an order number is created
CART_ID, FABRIC, EXTERNAL, NONE true: Soft reserve is used for an inventory check.
false: Soft reserve is not used for an inventory check.
false
true: Item can be added to cart by SKU; itemId is not mandatory to add an item to cart
false: itemId is mandatory to add item to cart
false
Show child attributes
Source of an order number
FABRIC, EXTERNAL, NONE Expiry time in seconds
60
Cart configurations used to determine behavior of cart.
BLOCK, WARN, DROP, NONE Cart configurations used to determine behavior of cart.
BLOCK, WARN, DROP, NONE Cart configurations used to determine behavior of cart.
BLOCK, WARN, DROP, NONE Cart configurations used to determine behavior of cart.
BLOCK, WARN, DROP, NONE Fees associated with a specific cart or an individual line item of a cart
Show child attributes
System-generated fee ID, in UUID format. While creating a cart or line item with fee, fabric generates this ID for the specified fee.
"73bc09d0-874a-4c3d-84d0-df1670d03578"
Attribute for which fee is applied
"gift"
Fee type
"gift_wrap"
Fee amount
10.5
Placeholder for additional information in key:value pairs
"{'from': 'sam', 'to': 'david' }"
Total fees applied on the order
60
Exception details error object
Show child attributes
Error code
UNKNOWN_ERROR, BAD_REQUEST, INVALID_TOKEN, ACCOUNT_ID_NOT_CONFIGURED, ACCOUNT_ID_ALREADY_EXISTS, DEPLOYMENT_IN_PROGRESS, INVALID_CART_ID, CART_NOT_FOUND, ITEM_NOT_FOUND, UNABLE_TO_GET_CART, UNABLE_TO_GET_INVENTORY, ITEM_OUT_OF_STOCK, UPDATE_CART_ERROR, DELETE_CART_ATTRIBUTE_ERROR, EMPTY_CART_ERROR, UNABLE_TO_GET_PRICE, UNABLE_TO_GET_PROMO, UNABLE_TO_GET_ITEM, PROMO_ALREADY_APPLIED_ERROR, CART_ALREADY_SHARED_ERROR, PROMO_NOT_FOUND_ERROR, PROMO_NOT_APPLICABLE_ERROR, USER_NOT_FOUND, ATTRIBUTE_NOT_FOUND, INCORRECT_ATTRIBUTE_LEVEL, INCORRECT_ATTRIBUTE_VALUE, ITEM_ATTRIBUTE_ALREADY_EXIST, LINE_ITEM_ID_NOT_FOUND, ITEM_ID_NOT_APPLICABLE, CART_STATUS_NOT_FOUND, CART_STATUS_CANNOT_BE_UPDATED, GUEST_CART_STATUS_CANNOT_BE_UPDATED, CART_STATUS_ALREADY_ASSIGNED, TOKEN_INTROSPECT_ERROR, MAX_CARTS_LIMIT_REACHED, UNAUTHORIZED_USER_ERROR, API_PERMISSION_UNDEFINED, INVALID_DATE_RANGE, INVALID_DATE_FORMAT, INVALID_SEARCH_ATTRIBUTE, ITEM_SERVICE_NOT_CONFIGURED, ATTRIBUTE_SERVICE_NOT_CONFIGURED, SHIP_ID_NOT_FOUND, NEGATIVE_SHIPPING_COST, REQUEST_DENIED, BAD_CONFIGURATION, SERVICE_NOT_ENABLED Error detail
"Item is out of stock"
ID of item to which exception applies
"1000000001"
SKU of item to which exception applies
"16B2GS8LD5FDS"
Cart item sequence number (starts at 1)
x >= 11
Was this page helpful?