curl --request GET \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-order/orders/orderNumber/{orderId} \
--header 'x-site-context: <x-site-context>'{
"order": {
"_id": "6021f6b8bd6ce10008579e8e",
"tags": "<array>",
"cartId": "5e4876e10cfe1d8902005d33",
"channel": 12,
"orderTotal": 125.33,
"taxTotal": 5.23,
"orderCurrency": "USD",
"status": "ORDER_CANCELLED",
"statusLog": "Order has been cancelled",
"customerUserId": "5e3598e3007c5e00080d2bb8",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "ino@fabric.inc",
"customerPhone": {
"number": "555-555-5555",
"kind": "mobile"
},
"orderId": "8426-1549-34543",
"shipTo": [
{
"address": {
"name": {
"first": "john",
"middle": "p",
"last": "smith"
},
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"isValidated": true,
"email": "johnsmith@google.com",
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"delivery": {
"actual": "<string>"
},
"shipping": {
"actual": "<string>"
},
"promosApplied": [
{
"name": "test1"
}
],
"_id": "6021f6b8bd6ce10008579e8f",
"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": "2019-12-14T00:00:00.000Z",
"shipmentInstructions": "Leave at back door",
"shipmentStatus": "Delivered",
"readyForPickups": "<array>",
"id": "6021f6b8bd6ce10008579e8f"
}
],
"items": [
{
"group": [
123
],
"promosApplied": [
{
"name": "test"
}
],
"_id": "6021f6b8bd6ce10008579e90",
"lineItemId": 1,
"itemId": 1000000051098,
"priceListId": 1000000,
"sku": 1538910,
"title": "abcDNA Luminous Cushion Lagoon",
"quantity": 1,
"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>",
"id": "6021f6b8bd6ce10008579e90"
}
],
"shipments": "<array>",
"payments": [
{
"billToAddress": {
"name": {
"first": "john",
"middle": "p",
"last": "smith"
},
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"isValidated": true,
"email": "johnsmith@google.com",
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"shipToId": [
1000001
],
"_id": "6021f6b8bd6ce10008579e92",
"billToId": 1000001,
"paymentIdentifier": {
"cardIdentifier": 4242
},
"paymentMethod": "Visa",
"paymentToken": {
"token": 12345689
},
"paymentKind": "Default payment",
"amount": 533.33,
"currency": "USD",
"conversion": 1,
"paymentStatus": "Pending",
"id": "6021f6b8bd6ce10008579e92"
}
],
"revision": 1,
"totalQuantity": 2,
"statusDescriptions": [
{
"_id": "614b25234a2b4e0009870c49",
"status": "ORDER_CANCELLED",
"code": 1001,
"description": "Merchant Out of Stock",
"date": "2021-09-22T12:44:19.703Z",
"id": "614b25234a2b4e0009870c49"
}
],
"events": "<array>",
"createdAt": "2021-02-09T02:43:04.926Z",
"updatedAt": "2021-09-22T12:44:19.696Z",
"__v": 0
},
"history": [
{
"_id": "614b25234a2b4e0009870c4f",
"tags": "<array>",
"cartId": "5e4876e10cfe1d8902005d33",
"channel": 12,
"orderTotal": 125.33,
"taxTotal": 5.23,
"orderCurrency": "USD",
"status": "ORDER_CANCELLED",
"statusLog": "Order has been cancelled",
"customerUserId": "5e3598e3007c5e00080d2bb8",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "ino@fabric.inc",
"customerPhone": {
"number": "555-555-5555",
"kind": "mobile"
},
"orderId": "8426-1549-34543",
"shipTo": [
{
"address": {
"name": {
"first": "john",
"middle": "p",
"last": "smith"
},
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"email": "johnsmith@google.com",
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"promosApplied": [
{
"name": "test1"
}
],
"_id": "6021f6b8bd6ce10008579e8f",
"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": "2019-12-14T00:00:00.000Z",
"shipmentInstructions": "Leave at back door",
"shipmentStatus": "Delivered",
"id": "6021f6b8bd6ce10008579e8f"
}
],
"items": [
{
"group": [
123
],
"promosApplied": [
{
"name": "test"
}
],
"_id": "6021f6b8bd6ce10008579e90",
"lineItemId": 1,
"itemId": 1000000051098,
"sku": 1538910,
"title": "abcDNA Luminous Cushion Lagoon",
"quantity": 1,
"price": 4.5,
"discount": 1,
"currency": "USD",
"shipToId": 1000001,
"estimatedTax": 10.25,
"committedTax": 10.25,
"total": 4.54,
"taxCode": "FR020000",
"weight": 10,
"weightUnit": "lb",
"id": "6021f6b8bd6ce10008579e90"
}
],
"shipments": "<array>",
"payments": [
{
"billToAddress": {
"name": {
"first": "john",
"middle": "p",
"last": "smith"
},
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"email": "johnsmith@google.com",
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"shipToId": [
1000001
],
"_id": "6021f6b8bd6ce10008579e92",
"billToId": 1000001,
"paymentIdentifier": {
"cardIdentifier": 4242
},
"paymentMethod": "Visa",
"paymentToken": {
"token": 12345689
},
"paymentKind": "Default payment",
"amount": 533.33,
"currency": "USD",
"conversion": 1,
"paymentStatus": "Pending",
"id": "6021f6b8bd6ce10008579e92"
}
],
"revision": 1,
"totalQuantity": 2,
"statusDescriptions": [
{
"_id": "614b25234a2b4e0009870c49",
"status": "ORDER_CANCELLED",
"code": 1001,
"description": "Merchant Out of Stock",
"date": "2021-09-22T12:44:19.703Z",
"id": "614b25234a2b4e0009870c49"
}
],
"events": "<array>",
"__v": 0,
"createdAt": "2021-09-22T12:44:19.817Z",
"updatedAt": "2021-09-22T12:44:19.817Z"
}
]
}Get order
curl --request GET \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-order/orders/orderNumber/{orderId} \
--header 'x-site-context: <x-site-context>'{
"order": {
"_id": "6021f6b8bd6ce10008579e8e",
"tags": "<array>",
"cartId": "5e4876e10cfe1d8902005d33",
"channel": 12,
"orderTotal": 125.33,
"taxTotal": 5.23,
"orderCurrency": "USD",
"status": "ORDER_CANCELLED",
"statusLog": "Order has been cancelled",
"customerUserId": "5e3598e3007c5e00080d2bb8",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "ino@fabric.inc",
"customerPhone": {
"number": "555-555-5555",
"kind": "mobile"
},
"orderId": "8426-1549-34543",
"shipTo": [
{
"address": {
"name": {
"first": "john",
"middle": "p",
"last": "smith"
},
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"isValidated": true,
"email": "johnsmith@google.com",
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"delivery": {
"actual": "<string>"
},
"shipping": {
"actual": "<string>"
},
"promosApplied": [
{
"name": "test1"
}
],
"_id": "6021f6b8bd6ce10008579e8f",
"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": "2019-12-14T00:00:00.000Z",
"shipmentInstructions": "Leave at back door",
"shipmentStatus": "Delivered",
"readyForPickups": "<array>",
"id": "6021f6b8bd6ce10008579e8f"
}
],
"items": [
{
"group": [
123
],
"promosApplied": [
{
"name": "test"
}
],
"_id": "6021f6b8bd6ce10008579e90",
"lineItemId": 1,
"itemId": 1000000051098,
"priceListId": 1000000,
"sku": 1538910,
"title": "abcDNA Luminous Cushion Lagoon",
"quantity": 1,
"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>",
"id": "6021f6b8bd6ce10008579e90"
}
],
"shipments": "<array>",
"payments": [
{
"billToAddress": {
"name": {
"first": "john",
"middle": "p",
"last": "smith"
},
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"isValidated": true,
"email": "johnsmith@google.com",
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"shipToId": [
1000001
],
"_id": "6021f6b8bd6ce10008579e92",
"billToId": 1000001,
"paymentIdentifier": {
"cardIdentifier": 4242
},
"paymentMethod": "Visa",
"paymentToken": {
"token": 12345689
},
"paymentKind": "Default payment",
"amount": 533.33,
"currency": "USD",
"conversion": 1,
"paymentStatus": "Pending",
"id": "6021f6b8bd6ce10008579e92"
}
],
"revision": 1,
"totalQuantity": 2,
"statusDescriptions": [
{
"_id": "614b25234a2b4e0009870c49",
"status": "ORDER_CANCELLED",
"code": 1001,
"description": "Merchant Out of Stock",
"date": "2021-09-22T12:44:19.703Z",
"id": "614b25234a2b4e0009870c49"
}
],
"events": "<array>",
"createdAt": "2021-02-09T02:43:04.926Z",
"updatedAt": "2021-09-22T12:44:19.696Z",
"__v": 0
},
"history": [
{
"_id": "614b25234a2b4e0009870c4f",
"tags": "<array>",
"cartId": "5e4876e10cfe1d8902005d33",
"channel": 12,
"orderTotal": 125.33,
"taxTotal": 5.23,
"orderCurrency": "USD",
"status": "ORDER_CANCELLED",
"statusLog": "Order has been cancelled",
"customerUserId": "5e3598e3007c5e00080d2bb8",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "ino@fabric.inc",
"customerPhone": {
"number": "555-555-5555",
"kind": "mobile"
},
"orderId": "8426-1549-34543",
"shipTo": [
{
"address": {
"name": {
"first": "john",
"middle": "p",
"last": "smith"
},
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"email": "johnsmith@google.com",
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"promosApplied": [
{
"name": "test1"
}
],
"_id": "6021f6b8bd6ce10008579e8f",
"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": "2019-12-14T00:00:00.000Z",
"shipmentInstructions": "Leave at back door",
"shipmentStatus": "Delivered",
"id": "6021f6b8bd6ce10008579e8f"
}
],
"items": [
{
"group": [
123
],
"promosApplied": [
{
"name": "test"
}
],
"_id": "6021f6b8bd6ce10008579e90",
"lineItemId": 1,
"itemId": 1000000051098,
"sku": 1538910,
"title": "abcDNA Luminous Cushion Lagoon",
"quantity": 1,
"price": 4.5,
"discount": 1,
"currency": "USD",
"shipToId": 1000001,
"estimatedTax": 10.25,
"committedTax": 10.25,
"total": 4.54,
"taxCode": "FR020000",
"weight": 10,
"weightUnit": "lb",
"id": "6021f6b8bd6ce10008579e90"
}
],
"shipments": "<array>",
"payments": [
{
"billToAddress": {
"name": {
"first": "john",
"middle": "p",
"last": "smith"
},
"phone": {
"number": "555-555-5555",
"kind": "mobile"
},
"email": "johnsmith@google.com",
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": 98004,
"kind": "Ship to address"
},
"shipToId": [
1000001
],
"_id": "6021f6b8bd6ce10008579e92",
"billToId": 1000001,
"paymentIdentifier": {
"cardIdentifier": 4242
},
"paymentMethod": "Visa",
"paymentToken": {
"token": 12345689
},
"paymentKind": "Default payment",
"amount": 533.33,
"currency": "USD",
"conversion": 1,
"paymentStatus": "Pending",
"id": "6021f6b8bd6ce10008579e92"
}
],
"revision": 1,
"totalQuantity": 2,
"statusDescriptions": [
{
"_id": "614b25234a2b4e0009870c49",
"status": "ORDER_CANCELLED",
"code": 1001,
"description": "Merchant Out of Stock",
"date": "2021-09-22T12:44:19.703Z",
"id": "614b25234a2b4e0009870c49"
}
],
"events": "<array>",
"__v": 0,
"createdAt": "2021-09-22T12:44:19.817Z",
"updatedAt": "2021-09-22T12:44:19.817Z"
}
]
}"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\"}"
15"2947-5955-82579"
Order
Show child attributes
"6021f6b8bd6ce10008579e8e"
"5e4876e10cfe1d8902005d33"
12
125.33
5.23
"USD"
"ORDER_CANCELLED"
"Order has been cancelled"
"5e3598e3007c5e00080d2bb8"
"5e3598e3007c5e00080d2bb8"
"ino@fabric.inc"
"8426-1549-34543"
Show child attributes
Show child attributes
"johnsmith@google.com"
"10400 NE 4th St"
"Suite 500"
"Bellevue"
"WA"
"USA"
98004
"Ship to address"
"6021f6b8bd6ce10008579e8f"
1000001
"SHIP_TO_ADDRESS"
24.87
"USD"
10
10
34.87
"FR020000"
"Fedex"
"Express"
10000001
"2019-12-14T00:00:00.000Z"
"Leave at back door"
"Delivered"
"6021f6b8bd6ce10008579e8f"
Show child attributes
"6021f6b8bd6ce10008579e90"
1
1000000051098
1000000
1538910
"abcDNA Luminous Cushion Lagoon"
1
4.5
1
"USD"
1000001
10.25
10.25
4.54
"FR020000"
10
"lb"
"6021f6b8bd6ce10008579e90"
Show child attributes
Show child attributes
"johnsmith@google.com"
"10400 NE 4th St"
"Suite 500"
"Bellevue"
"WA"
"USA"
98004
"Ship to address"
"6021f6b8bd6ce10008579e92"
1000001
"Visa"
"Default payment"
533.33
"USD"
1
"Pending"
"6021f6b8bd6ce10008579e92"
1
2
Show child attributes
"614b25234a2b4e0009870c49"
"ORDER_CANCELLED"
1001
"Merchant Out of Stock"
"2021-09-22T12:44:19.703Z"
"614b25234a2b4e0009870c49"
"2021-02-09T02:43:04.926Z"
"2021-09-22T12:44:19.696Z"
0
Show child attributes
"614b25234a2b4e0009870c4f"
"5e4876e10cfe1d8902005d33"
12
125.33
5.23
"USD"
"ORDER_CANCELLED"
"Order has been cancelled"
"5e3598e3007c5e00080d2bb8"
"5e3598e3007c5e00080d2bb8"
"ino@fabric.inc"
"8426-1549-34543"
Show child attributes
Show child attributes
"johnsmith@google.com"
"10400 NE 4th St"
"Suite 500"
"Bellevue"
"WA"
"USA"
98004
"Ship to address"
"6021f6b8bd6ce10008579e8f"
1000001
"SHIP_TO_ADDRESS"
24.87
"USD"
10
10
34.87
"FR020000"
"Fedex"
"Express"
10000001
"2019-12-14T00:00:00.000Z"
"Leave at back door"
"Delivered"
"6021f6b8bd6ce10008579e8f"
Show child attributes
"6021f6b8bd6ce10008579e90"
1
1000000051098
1538910
"abcDNA Luminous Cushion Lagoon"
1
4.5
1
"USD"
1000001
10.25
10.25
4.54
"FR020000"
10
"lb"
"6021f6b8bd6ce10008579e90"
Show child attributes
Show child attributes
"johnsmith@google.com"
"10400 NE 4th St"
"Suite 500"
"Bellevue"
"WA"
"USA"
98004
"Ship to address"
"6021f6b8bd6ce10008579e92"
1000001
"Visa"
"Default payment"
533.33
"USD"
1
"Pending"
"6021f6b8bd6ce10008579e92"
1
2
Show child attributes
"614b25234a2b4e0009870c49"
"ORDER_CANCELLED"
1001
"Merchant Out of Stock"
"2021-09-22T12:44:19.703Z"
"614b25234a2b4e0009870c49"
0
"2021-09-22T12:44:19.817Z"
"2021-09-22T12:44:19.817Z"
Was this page helpful?