curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/ship-to/cart/{cartId} \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '
{
"shipToType": "SHIP_TO_ADDRESS",
"shipMethod": {
"shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
"cost": {
"currency": "USD",
"amount": 5.99
},
"shipmentCarrier": "Fedex",
"shipmentMethod": "Next Day"
},
"address": {
"street1": "123 Main Street",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"name": {
"first": "John",
"last": "Smith"
},
"email": "[email protected]",
"attention": "Leave at the back door.",
"street2": "ABC Boulevard",
"kind": "TBD",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
}
},
"warehouseId": "123456abcdef123456abcdef",
"isPickup": true,
"taxCode": "FR1000",
"storeId": "TBD",
"pickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
},
"altPickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
}
}
'{
"shipToType": "SHIP_TO_ADDRESS",
"warehouseId": "123456abcdef123456abcdef",
"isPickup": true,
"shipMethod": {
"shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
"cost": {
"currency": "USD",
"amount": 5.99
},
"shipmentCarrier": "Fedex",
"shipmentMethod": "Next Day"
},
"taxCode": "FR1000",
"storeId": "TBD",
"pickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
},
"altPickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
},
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
},
"cartId": "5e5818a84d030c206b2ffb02",
"shipToId": 13812,
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z"
}Create ship-to
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/ship-to/cart/{cartId} \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '
{
"shipToType": "SHIP_TO_ADDRESS",
"shipMethod": {
"shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
"cost": {
"currency": "USD",
"amount": 5.99
},
"shipmentCarrier": "Fedex",
"shipmentMethod": "Next Day"
},
"address": {
"street1": "123 Main Street",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"name": {
"first": "John",
"last": "Smith"
},
"email": "[email protected]",
"attention": "Leave at the back door.",
"street2": "ABC Boulevard",
"kind": "TBD",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
}
},
"warehouseId": "123456abcdef123456abcdef",
"isPickup": true,
"taxCode": "FR1000",
"storeId": "TBD",
"pickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
},
"altPickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
}
}
'{
"shipToType": "SHIP_TO_ADDRESS",
"warehouseId": "123456abcdef123456abcdef",
"isPickup": true,
"shipMethod": {
"shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
"cost": {
"currency": "USD",
"amount": 5.99
},
"shipmentCarrier": "Fedex",
"shipmentMethod": "Next Day"
},
"taxCode": "FR1000",
"storeId": "TBD",
"pickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
},
"altPickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
},
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "[email protected]"
},
"cartId": "5e5818a84d030c206b2ffb02",
"shipToId": 13812,
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z"
}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\"}"
24"5e5818a84d030c206b2ffb02"
BOPIS, SHIP_TO_STORE, SHIP_TO_ADDRESS, STORE_PICKUP "SHIP_TO_ADDRESS"
Show child attributes
3"1a2b3c4d5e6f7g8h9i0j"
"Fedex"
"Next Day"
Show child attributes
140"123 Main Street"
140"Seattle"
25"WA"
140"United States of America"
3 - 25"10008-1234"
5 - 100140"Leave at the back door."
240"ABC Boulevard"
24"TBD"
24"123456abcdef123456abcdef"
true
"FR1000"
5 - 50"TBD"
Show child attributes
5 - 100Show child attributes
5 - 100Ship To Created
BOPIS, SHIP_TO_STORE, SHIP_TO_ADDRESS, STORE_PICKUP "SHIP_TO_ADDRESS"
24"123456abcdef123456abcdef"
true
Show child attributes
3"1a2b3c4d5e6f7g8h9i0j"
"Fedex"
"Next Day"
"FR1000"
5 - 50"TBD"
Show child attributes
5 - 100Show child attributes
5 - 100Show child attributes
140"Leave at the back door."
140"123 Main Street"
240"ABC Boulevard"
140"Seattle"
25"WA"
140"United States of America"
3 - 25"10008-1234"
24"TBD"
5 - 10024"5e5818a84d030c206b2ffb02"
13812
"5fee9d59f2f08a1b3cbdea08"
"2020-12-31T02:09:53.914Z"
"2020-12-31T02:09:53.914Z"
Was this page helpful?