curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-order/pos/orders \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '
{
"orderReference": 1234,
"locationId": "5efcc26a5ee50d00079ca2ab",
"status": "ORDER_CREATED",
"channel": 12,
"orderTotal": 125.33,
"taxTotal": 5.23,
"orderCurrency": "USD",
"statusLog": "Order has been Shipped",
"customerUserId": "5e3598e3007c5e00080d2bb8",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "[email protected]",
"customerPhone": {
"number": "555-555-5555",
"kind": "mobile"
},
"shipTo": [
{
"shipToId": 1000001,
"shipToType": "SHIP_TO_ADDRESS",
"address": {
"name": {
"first": "Mark",
"middle": "p",
"last": "styler"
},
"email": "[email protected]",
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"price": 24.8723423,
"currency": "USD",
"estimatedTax": 10,
"committedTax": 10,
"promosApplied": [
{
"name": "test1"
}
],
"total": 34.87,
"taxCode": "FR020000",
"shipmentCarrier": "Fedex",
"shipmentMethod": "Express",
"shipmentMethodId": 10000001,
"promisedDeliveryDate": "2021-02-14",
"shipmentInstructions": "Leave at back door",
"shipmentStatus": "Delivered",
"items": [
{
"lineItemId": 1,
"itemId": 1000011127,
"sku": 1538910,
"group": [
"Group1"
],
"title": "Luminous Cushion Lagoon",
"quantity": 10,
"price": 4.5,
"discount": 1,
"currency": "USD",
"shipToId": 1000001,
"estimatedTax": 10.25,
"committedTax": 10.25,
"promosApplied": [
{
"name": "test"
}
],
"total": 4.54234234,
"taxCode": "FR020000",
"weight": 10,
"weightUnit": "lb"
}
],
"shipments": "<array>",
"payments": [
{
"billToId": 1000001,
"shipToId": [
1000001
],
"paymentIdentifier": {
"cardIdentifier": 4242
},
"paymentMethod": "Visa",
"paymentToken": {
"token": 12345689
},
"paymentKind": "Default payment",
"amount": 533.33,
"currency": "USD",
"conversion": 1,
"paymentStatus": "Pending",
"billToAddress": {
"name": {
"first": "Marl",
"middle": "p",
"last": "styler"
},
"email": "[email protected]",
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
}
}
]
}
]
}
'{
"tags": "<array>",
"_id": "60944ade71cdfc0008a621a2",
"channel": 12,
"orderReference": "testorder",
"orderTotal": 125.33,
"taxTotal": 5.23,
"orderCurrency": "USD",
"status": "ORDER_CREATED",
"statusLog": "Order has been created",
"customerUserId": "5e3598e3007c5e00080d2bb8",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "[email protected]",
"customerPhone": {
"number": "555-555-5555",
"kind": "mobile"
},
"orderId": "7998-1161-63560",
"shipTo": [
{
"address": {
"name": {
"first": "Mark",
"middle": "p",
"last": "styler"
},
"email": "[email protected]",
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"promosApplied": [
{
"name": "test1"
}
],
"_id": "60944ade71cdfc0008a621a3",
"shipToId": 1000001,
"shipToType": "SHIP_TO_ADDRESS",
"price": 24.87,
"currency": "USD",
"estimatedTax": 10,
"committedTax": 10,
"total": 34.87,
"taxCode": "FR020000",
"shipmentCarrier": "Fedex",
"shipmentMethod": "Express",
"shipmentMethodId": 10000001,
"promisedDeliveryDate": "2021-02-14T00:00:00.000Z",
"shipmentInstructions": "Leave at back door",
"shipmentStatus": "Delivered"
}
],
"items": [
{
"group": [
"Group1"
],
"promosApplied": [
{
"name": "test"
}
],
"_id": "60944ade71cdfc0008a621a4",
"lineItemId": 1,
"itemId": 1000000051,
"priceListId": 100003,
"sku": 1538910,
"title": "Luminous Cushion Lagoon",
"quantity": 10,
"price": 4.5,
"discount": 1,
"currency": "USD",
"shipToId": 1000001,
"estimatedTax": 10.25,
"committedTax": 10.25,
"total": 4.54,
"taxCode": "FR020000",
"weight": 10,
"weightUnit": "lb",
"reservedLocation": "<array>",
"attributes": "<array>"
}
],
"shipments": "<array>",
"payments": [
{
"billToAddress": {
"name": {
"first": "Marl",
"middle": "p",
"last": "styler"
},
"email": "[email protected]",
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"shipToId": [
1000001
],
"_id": "60944ade71cdfc0008a621a5",
"billToId": 1000001,
"paymentIdentifier": {
"cardIdentifier": 4242
},
"paymentMethod": "Visa",
"paymentToken": {
"token": 12345689
},
"paymentKind": "Default payment",
"amount": 533.33,
"currency": "USD",
"conversion": 1,
"paymentStatus": "Pending"
}
],
"revision": 0,
"totalQuantity": 10,
"statusDescriptions": "<array>",
"events": "<array>",
"pickups": "<array>",
"attributes": "<array>",
"createdAt": "2021-05-06T20:00:30.143Z",
"updatedAt": "2021-05-06T20:00:30.143Z"
}Create POS order
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-order/pos/orders \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '
{
"orderReference": 1234,
"locationId": "5efcc26a5ee50d00079ca2ab",
"status": "ORDER_CREATED",
"channel": 12,
"orderTotal": 125.33,
"taxTotal": 5.23,
"orderCurrency": "USD",
"statusLog": "Order has been Shipped",
"customerUserId": "5e3598e3007c5e00080d2bb8",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "[email protected]",
"customerPhone": {
"number": "555-555-5555",
"kind": "mobile"
},
"shipTo": [
{
"shipToId": 1000001,
"shipToType": "SHIP_TO_ADDRESS",
"address": {
"name": {
"first": "Mark",
"middle": "p",
"last": "styler"
},
"email": "[email protected]",
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"price": 24.8723423,
"currency": "USD",
"estimatedTax": 10,
"committedTax": 10,
"promosApplied": [
{
"name": "test1"
}
],
"total": 34.87,
"taxCode": "FR020000",
"shipmentCarrier": "Fedex",
"shipmentMethod": "Express",
"shipmentMethodId": 10000001,
"promisedDeliveryDate": "2021-02-14",
"shipmentInstructions": "Leave at back door",
"shipmentStatus": "Delivered",
"items": [
{
"lineItemId": 1,
"itemId": 1000011127,
"sku": 1538910,
"group": [
"Group1"
],
"title": "Luminous Cushion Lagoon",
"quantity": 10,
"price": 4.5,
"discount": 1,
"currency": "USD",
"shipToId": 1000001,
"estimatedTax": 10.25,
"committedTax": 10.25,
"promosApplied": [
{
"name": "test"
}
],
"total": 4.54234234,
"taxCode": "FR020000",
"weight": 10,
"weightUnit": "lb"
}
],
"shipments": "<array>",
"payments": [
{
"billToId": 1000001,
"shipToId": [
1000001
],
"paymentIdentifier": {
"cardIdentifier": 4242
},
"paymentMethod": "Visa",
"paymentToken": {
"token": 12345689
},
"paymentKind": "Default payment",
"amount": 533.33,
"currency": "USD",
"conversion": 1,
"paymentStatus": "Pending",
"billToAddress": {
"name": {
"first": "Marl",
"middle": "p",
"last": "styler"
},
"email": "[email protected]",
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
}
}
]
}
]
}
'{
"tags": "<array>",
"_id": "60944ade71cdfc0008a621a2",
"channel": 12,
"orderReference": "testorder",
"orderTotal": 125.33,
"taxTotal": 5.23,
"orderCurrency": "USD",
"status": "ORDER_CREATED",
"statusLog": "Order has been created",
"customerUserId": "5e3598e3007c5e00080d2bb8",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "[email protected]",
"customerPhone": {
"number": "555-555-5555",
"kind": "mobile"
},
"orderId": "7998-1161-63560",
"shipTo": [
{
"address": {
"name": {
"first": "Mark",
"middle": "p",
"last": "styler"
},
"email": "[email protected]",
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"promosApplied": [
{
"name": "test1"
}
],
"_id": "60944ade71cdfc0008a621a3",
"shipToId": 1000001,
"shipToType": "SHIP_TO_ADDRESS",
"price": 24.87,
"currency": "USD",
"estimatedTax": 10,
"committedTax": 10,
"total": 34.87,
"taxCode": "FR020000",
"shipmentCarrier": "Fedex",
"shipmentMethod": "Express",
"shipmentMethodId": 10000001,
"promisedDeliveryDate": "2021-02-14T00:00:00.000Z",
"shipmentInstructions": "Leave at back door",
"shipmentStatus": "Delivered"
}
],
"items": [
{
"group": [
"Group1"
],
"promosApplied": [
{
"name": "test"
}
],
"_id": "60944ade71cdfc0008a621a4",
"lineItemId": 1,
"itemId": 1000000051,
"priceListId": 100003,
"sku": 1538910,
"title": "Luminous Cushion Lagoon",
"quantity": 10,
"price": 4.5,
"discount": 1,
"currency": "USD",
"shipToId": 1000001,
"estimatedTax": 10.25,
"committedTax": 10.25,
"total": 4.54,
"taxCode": "FR020000",
"weight": 10,
"weightUnit": "lb",
"reservedLocation": "<array>",
"attributes": "<array>"
}
],
"shipments": "<array>",
"payments": [
{
"billToAddress": {
"name": {
"first": "Marl",
"middle": "p",
"last": "styler"
},
"email": "[email protected]",
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"shipToId": [
1000001
],
"_id": "60944ade71cdfc0008a621a5",
"billToId": 1000001,
"paymentIdentifier": {
"cardIdentifier": 4242
},
"paymentMethod": "Visa",
"paymentToken": {
"token": 12345689
},
"paymentKind": "Default payment",
"amount": 533.33,
"currency": "USD",
"conversion": 1,
"paymentStatus": "Pending"
}
],
"revision": 0,
"totalQuantity": 10,
"statusDescriptions": "<array>",
"events": "<array>",
"pickups": "<array>",
"attributes": "<array>",
"createdAt": "2021-05-06T20:00:30.143Z",
"updatedAt": "2021-05-06T20:00:30.143Z"
}"0LybWR49k95cCwYh3cu0waCYoh4H2Eux2J52wn4k"
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\"}"
1234
"5efcc26a5ee50d00079ca2ab"
"ORDER_CREATED"
12
125.33
5.23
"USD"
"Order has been Shipped"
"5e3598e3007c5e00080d2bb8"
"5e3598e3007c5e00080d2bb8"
Show child attributes
1000001
"SHIP_TO_ADDRESS"
Show child attributes
"10400 NE 4th St"
"Suite 500"
"Bellevue"
"WA"
"USA"
98004
"Ship to address"
24.8723423
"USD"
10
10
34.87
"FR020000"
"Fedex"
"Express"
10000001
"2021-02-14"
"Leave at back door"
"Delivered"
Show child attributes
1
1000011127
1538910
"Luminous Cushion Lagoon"
10
4.5
1
"USD"
1000001
10.25
10.25
4.54234234
"FR020000"
10
"lb"
Show child attributes
1000001
"Visa"
"Default payment"
533.33
"USD"
1
"Pending"
Show child attributes
"10400 NE 4th St"
"Suite 500"
"Bellevue"
"WA"
"USA"
98004
"Ship to address"
Created POS order
"60944ade71cdfc0008a621a2"
12
"testorder"
125.33
5.23
"USD"
"ORDER_CREATED"
"Order has been created"
"5e3598e3007c5e00080d2bb8"
"5e3598e3007c5e00080d2bb8"
"7998-1161-63560"
Show child attributes
Show child attributes
"10400 NE 4th St"
"Suite 500"
"Bellevue"
"WA"
"USA"
98004
"Ship to address"
"60944ade71cdfc0008a621a3"
1000001
"SHIP_TO_ADDRESS"
24.87
"USD"
10
10
34.87
"FR020000"
"Fedex"
"Express"
10000001
"2021-02-14T00:00:00.000Z"
"Leave at back door"
"Delivered"
Show child attributes
"60944ade71cdfc0008a621a4"
1
1000000051
100003
1538910
"Luminous Cushion Lagoon"
10
4.5
1
"USD"
1000001
10.25
10.25
4.54
"FR020000"
10
"lb"
Show child attributes
Show child attributes
"10400 NE 4th St"
"Suite 500"
"Bellevue"
"WA"
"USA"
98004
"Ship to address"
"60944ade71cdfc0008a621a5"
1000001
"Visa"
"Default payment"
533.33
"USD"
1
"Pending"
0
10
"2021-05-06T20:00:30.143Z"
"2021-05-06T20:00:30.143Z"
Was this page helpful?