curl --request GET \
--url https://api.fabric.inc/v3/invoices/{invoiceId} \
--header 'Authorization: Bearer <token>' \
--header 'x-fabric-channel-id: <x-fabric-channel-id>' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>'{
"channelId": "10",
"currency": "USD",
"invoiceId": "62ff5c0bec0aed3c86202c32",
"invoiceTotal": 245.7,
"shipmentId": "62ff5c0bec0aed3c86202c32",
"statusCode": "CREATED",
"totalTaxAmount": 19.57,
"version": 2,
"acknowledgedAt": "2022-08-01T20:03:28.483Z",
"auditLogs": [
{
"amount": 2.4,
"auditId": "a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111",
"auditType": "CANCEL",
"auditedAt": "2023-03-12T09:24:54.804Z",
"employeeId": "6227",
"isSuccess": true,
"lineItemId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"lineItemNumber": 1,
"note": "Note",
"paymentToken": {
"paymentType": "VISA",
"token": "pi_34tr6787rt"
},
"policyCode": "POS",
"quantity": 1,
"reasonCode": "Scratched item",
"sku": "SKU0023",
"source": "POS",
"subReasonCode": "Scratched item",
"updatedFields": [
{
"fieldName": "UOM",
"fieldOriginalValue": "PK"
}
]
}
],
"createdAt": "2022-08-01T20:03:28.483Z",
"customer": {
"accountId": "62272e917b12209e68751d94",
"address": {
"addressLine1": "123 Main St.",
"city": "Seattle",
"countryCode": "US",
"latitude": 47.6205,
"longitude": -122.3493,
"postalCode": "98121",
"region": "WA",
"type": "Home",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
},
"company": "Demo Inc",
"email": "[email protected]",
"employeeId": "62272e917b12209e68751d94",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"userId": "62272e917b12209e68751d94"
},
"invoiceExternalId": "191763090",
"invoiceNumber": "23940791",
"invoiceStatus": "CAPTURED",
"invoiceTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"invoiceType": "SHIPPING",
"invoicedAt": "2022-08-01T20:03:28.483Z",
"location": {
"address": {
"addressLine1": "123 Main St.",
"city": "Seattle",
"countryCode": "US",
"latitude": 47.6205,
"longitude": -122.3493,
"postalCode": "98121",
"region": "WA",
"type": "Home",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"contacts": [
{
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
}
],
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
},
"locationNumber": "WH334"
},
"locationNumber": "WH334",
"orders": [
{
"invoiceOrderTotal": 245.7,
"orderId": "62ff5c0bec0aed3c86202c32",
"adjustments": [
{
"adjustmentCounter": 1,
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"attributes": {},
"notes": "Any additional info",
"quantity": 1,
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping",
"value": 34.56
}
],
"appeasements": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"appeasementCounter": 1,
"invoicedAmount": 34.56,
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"payments": [
{
"paymentCounter": 1,
"refundAmount": 34.56,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping"
}
],
"discounts": [
{
"promotionId": "HNY2022",
"amount": 2,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"promotionCode": "HNY2022",
"promotionName": "Happy New Year",
"quantity": 2,
"type": "promotion"
}
],
"fees": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"quantity": 1,
"refundAmount": 345.56,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"type": "tax"
}
],
"items": [
{
"invoiceLineNumber": 3,
"adjustmentTotal": 123.45,
"adjustmentTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"adjustments": [
{
"adjustmentCounter": 1,
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"attributes": {},
"notes": "Any additional info",
"quantity": 1,
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping",
"value": 34.56
}
],
"appeasements": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"appeasementCounter": 1,
"invoicedAmount": 34.56,
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"payments": [
{
"paymentCounter": 1,
"refundAmount": 34.56,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping"
}
],
"attributes": {
"key": "value"
},
"cancellations": [
{
"cancellationCounter": 1,
"source": "CSR",
"reasonCode": "Order Line Cancel",
"subReasonCode": "Late shipping",
"status": "PROCESSING",
"amount": "-20.",
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"invoicedAmount": "-20.",
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"payments": [
{
"paymentCounter": 1,
"amount": "-20.",
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"refunds": [
{
"type": "ITEM",
"name": "Name",
"amount": "-10.",
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"quantity": 10
}
],
"currency": "USD",
"discounts": [
{
"promotionId": "HNY2022",
"amount": 2,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"promotionCode": "HNY2022",
"promotionName": "Happy New Year",
"quantity": 2,
"type": "promotion"
}
],
"fees": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"quantity": 1,
"refundAmount": 345.56,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"type": "tax"
}
],
"invoiceLineTotal": 600,
"invoiceLineTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"invoiceQuantity": 10,
"itemAppeasementTotal": 344.455,
"itemAppeasementTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemCancelTotal": 344.455,
"itemCancelTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemDiscountsTotal": 3.45,
"itemDiscountsTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemFeeTotal": 33.4,
"itemFeeTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemId": 1234455322,
"itemTaxTotal": 2.4,
"itemTaxTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemUnitPrice": 33.4,
"itemUnitPriceInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"lineItemCreatedAt": "2022-11-22T10:26:38.000+00:00",
"lineItemId": "1adfrghhh2346aaaf",
"lineItemNumber": 1,
"locationStoreId": 4512345,
"orderId": "33adfrghhh2346aaaffff",
"returnExpirationDays": 21,
"returns": [
{
"exchangeLineItemId": "62f3dfc438bcab1951be0a19",
"fees": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"invoicedAmount": 11.29,
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"isExchangeItemReturned": true,
"reasonCode": "Incorrect item",
"refundAmount": 11.29,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"refunds": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"returnRequestCounter": 1,
"returnsReceivedAt": "2022-09-14T14:07:36.861Z",
"shipmentId": "62b37697c67b204dd18a7465",
"shipmentInvoice": {
"invoiceId": "62ff5c0bec0aed3c86202c32",
"invoiceNumber": "23940791",
"invoicedAt": "2022-08-01T20:03:28.483971941Z"
},
"shipmentLineItemId": "234",
"shipmentQuantity": 1
}
],
"shipToId": "5349b4ddd2781d08c09890f4",
"shipmentLineItemId": "2adfrghhh2346aaaffff",
"sku": "P1234",
"taxDetails": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"type": "tax"
}
],
"type": "WEB_PICKUP",
"uom": "EA"
}
],
"orderNumber": "217088603",
"orderExternalId": 217088603,
"orderSubtype": "INTERNATIONAL",
"orderType": "WEB",
"orderedAt": "2022-05-12T09:30:31.198Z",
"payments": [
{
"attributes": {},
"authorizedAmount": 256.1,
"authorizedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"billToAddress": {
"addressLine1": "123 Main St.",
"city": "Seattle",
"countryCode": "US",
"latitude": 47.6205,
"longitude": -122.3493,
"postalCode": "98121",
"region": "WA",
"type": "Home",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
},
"conversion": 1,
"currency": "USD",
"paidAt": "2022-01-27T16:15:58.000-05:00",
"paymentCounter": 1,
"paymentIdentifier": {
"cardIdentifier": "***********3456"
},
"paymentMethod": "CREDIT_CARD",
"paymentProvider": "stripe",
"paymentStatus": "PAID",
"paymentToken": {
"token": "pi_34tr6787rt"
},
"paymentType": "VISA",
"settlement": {
"settledAt": "2022-01-27T21:15:58Z",
"settlementAmount": 10.3,
"settlementAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"settlementStatusCode": "SETTLED"
}
}
],
"returns": [
{
"attributes": {
"transactionId": "0R12TQ46"
},
"fees": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"invoicedAmount": 11.29,
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"paymentCounterRefundDetails": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"paymentCounter": 1
}
],
"refunds": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"returnCounter": 1,
"totalRefundAmount": 11.29,
"totalRefundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"taxDetails": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"type": "tax"
}
]
}
],
"postedAt": "2022-08-01T20:03:28.483971941Z",
"retail": {
"cashierId": "CE-321",
"locationNumber": "WH334"
},
"shipInfo": {
"shipToId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"attributes": {
"giftMessage": "[]"
},
"discounts": [
{
"amount": 2.99,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"promotionCode": "SHIPFREE",
"promotionId": "SHIPFREE",
"promotionName": "Free Shipping",
"quantity": 1,
"unit": "AMOUNT_OFF",
"value": 10
}
],
"estimatedDeliveryDate": "2022-05-12T09:30:31.198Z",
"estimatedShipDate": "2022-05-12T09:30:31.198Z",
"fulfillmentZoneName": "US_LOCATIONS",
"isInvoiced": true,
"locationNumber": "WH334",
"pickups": [
{
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"pickupType": "PRIMARY"
}
],
"shipMethod": "Parcel post delivery",
"shipToAddress": {
"addressLine1": "123 Main St.",
"city": "Seattle",
"countryCode": "US",
"latitude": 47.6205,
"longitude": -122.3493,
"postalCode": "98121",
"region": "WA",
"type": "Home",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
},
"shipToDiscount": 12.6,
"shipToDiscountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"shipToPrice": 20,
"shipToPriceInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"shipToTaxTotal": 12.6,
"shipToTaxTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"shipToType": "SHIP_TO_ADDRESS",
"shipToUnitPrice": 20,
"shipToUnitPriceInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"shipmentInstructions": "Handle with care",
"taxCode": "FR01",
"taxDetails": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"attributes": {},
"currency": "USD",
"name": "STATE",
"rate": 10,
"rateType": "PERCENTAGE",
"taxCode": "FR01"
}
]
},
"shipmentNumber": "217088603",
"shippedAt": "2022-08-01T20:03:28.483Z",
"totalTaxAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"updatedAt": "2022-08-01T20:03:28.483971941Z"
}Get details of an invoice by invoice ID.
curl --request GET \
--url https://api.fabric.inc/v3/invoices/{invoiceId} \
--header 'Authorization: Bearer <token>' \
--header 'x-fabric-channel-id: <x-fabric-channel-id>' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>'{
"channelId": "10",
"currency": "USD",
"invoiceId": "62ff5c0bec0aed3c86202c32",
"invoiceTotal": 245.7,
"shipmentId": "62ff5c0bec0aed3c86202c32",
"statusCode": "CREATED",
"totalTaxAmount": 19.57,
"version": 2,
"acknowledgedAt": "2022-08-01T20:03:28.483Z",
"auditLogs": [
{
"amount": 2.4,
"auditId": "a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111",
"auditType": "CANCEL",
"auditedAt": "2023-03-12T09:24:54.804Z",
"employeeId": "6227",
"isSuccess": true,
"lineItemId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"lineItemNumber": 1,
"note": "Note",
"paymentToken": {
"paymentType": "VISA",
"token": "pi_34tr6787rt"
},
"policyCode": "POS",
"quantity": 1,
"reasonCode": "Scratched item",
"sku": "SKU0023",
"source": "POS",
"subReasonCode": "Scratched item",
"updatedFields": [
{
"fieldName": "UOM",
"fieldOriginalValue": "PK"
}
]
}
],
"createdAt": "2022-08-01T20:03:28.483Z",
"customer": {
"accountId": "62272e917b12209e68751d94",
"address": {
"addressLine1": "123 Main St.",
"city": "Seattle",
"countryCode": "US",
"latitude": 47.6205,
"longitude": -122.3493,
"postalCode": "98121",
"region": "WA",
"type": "Home",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
},
"company": "Demo Inc",
"email": "[email protected]",
"employeeId": "62272e917b12209e68751d94",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"userId": "62272e917b12209e68751d94"
},
"invoiceExternalId": "191763090",
"invoiceNumber": "23940791",
"invoiceStatus": "CAPTURED",
"invoiceTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"invoiceType": "SHIPPING",
"invoicedAt": "2022-08-01T20:03:28.483Z",
"location": {
"address": {
"addressLine1": "123 Main St.",
"city": "Seattle",
"countryCode": "US",
"latitude": 47.6205,
"longitude": -122.3493,
"postalCode": "98121",
"region": "WA",
"type": "Home",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"contacts": [
{
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
}
],
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
},
"locationNumber": "WH334"
},
"locationNumber": "WH334",
"orders": [
{
"invoiceOrderTotal": 245.7,
"orderId": "62ff5c0bec0aed3c86202c32",
"adjustments": [
{
"adjustmentCounter": 1,
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"attributes": {},
"notes": "Any additional info",
"quantity": 1,
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping",
"value": 34.56
}
],
"appeasements": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"appeasementCounter": 1,
"invoicedAmount": 34.56,
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"payments": [
{
"paymentCounter": 1,
"refundAmount": 34.56,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping"
}
],
"discounts": [
{
"promotionId": "HNY2022",
"amount": 2,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"promotionCode": "HNY2022",
"promotionName": "Happy New Year",
"quantity": 2,
"type": "promotion"
}
],
"fees": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"quantity": 1,
"refundAmount": 345.56,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"type": "tax"
}
],
"items": [
{
"invoiceLineNumber": 3,
"adjustmentTotal": 123.45,
"adjustmentTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"adjustments": [
{
"adjustmentCounter": 1,
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"attributes": {},
"notes": "Any additional info",
"quantity": 1,
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping",
"value": 34.56
}
],
"appeasements": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"appeasementCounter": 1,
"invoicedAmount": 34.56,
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"payments": [
{
"paymentCounter": 1,
"refundAmount": 34.56,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping"
}
],
"attributes": {
"key": "value"
},
"cancellations": [
{
"cancellationCounter": 1,
"source": "CSR",
"reasonCode": "Order Line Cancel",
"subReasonCode": "Late shipping",
"status": "PROCESSING",
"amount": "-20.",
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"invoicedAmount": "-20.",
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"payments": [
{
"paymentCounter": 1,
"amount": "-20.",
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"refunds": [
{
"type": "ITEM",
"name": "Name",
"amount": "-10.",
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"quantity": 10
}
],
"currency": "USD",
"discounts": [
{
"promotionId": "HNY2022",
"amount": 2,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"promotionCode": "HNY2022",
"promotionName": "Happy New Year",
"quantity": 2,
"type": "promotion"
}
],
"fees": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"quantity": 1,
"refundAmount": 345.56,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"type": "tax"
}
],
"invoiceLineTotal": 600,
"invoiceLineTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"invoiceQuantity": 10,
"itemAppeasementTotal": 344.455,
"itemAppeasementTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemCancelTotal": 344.455,
"itemCancelTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemDiscountsTotal": 3.45,
"itemDiscountsTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemFeeTotal": 33.4,
"itemFeeTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemId": 1234455322,
"itemTaxTotal": 2.4,
"itemTaxTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"itemUnitPrice": 33.4,
"itemUnitPriceInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"lineItemCreatedAt": "2022-11-22T10:26:38.000+00:00",
"lineItemId": "1adfrghhh2346aaaf",
"lineItemNumber": 1,
"locationStoreId": 4512345,
"orderId": "33adfrghhh2346aaaffff",
"returnExpirationDays": 21,
"returns": [
{
"exchangeLineItemId": "62f3dfc438bcab1951be0a19",
"fees": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"invoicedAmount": 11.29,
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"isExchangeItemReturned": true,
"reasonCode": "Incorrect item",
"refundAmount": 11.29,
"refundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"refunds": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"returnRequestCounter": 1,
"returnsReceivedAt": "2022-09-14T14:07:36.861Z",
"shipmentId": "62b37697c67b204dd18a7465",
"shipmentInvoice": {
"invoiceId": "62ff5c0bec0aed3c86202c32",
"invoiceNumber": "23940791",
"invoicedAt": "2022-08-01T20:03:28.483971941Z"
},
"shipmentLineItemId": "234",
"shipmentQuantity": 1
}
],
"shipToId": "5349b4ddd2781d08c09890f4",
"shipmentLineItemId": "2adfrghhh2346aaaffff",
"sku": "P1234",
"taxDetails": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"type": "tax"
}
],
"type": "WEB_PICKUP",
"uom": "EA"
}
],
"orderNumber": "217088603",
"orderExternalId": 217088603,
"orderSubtype": "INTERNATIONAL",
"orderType": "WEB",
"orderedAt": "2022-05-12T09:30:31.198Z",
"payments": [
{
"attributes": {},
"authorizedAmount": 256.1,
"authorizedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"billToAddress": {
"addressLine1": "123 Main St.",
"city": "Seattle",
"countryCode": "US",
"latitude": 47.6205,
"longitude": -122.3493,
"postalCode": "98121",
"region": "WA",
"type": "Home",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
},
"conversion": 1,
"currency": "USD",
"paidAt": "2022-01-27T16:15:58.000-05:00",
"paymentCounter": 1,
"paymentIdentifier": {
"cardIdentifier": "***********3456"
},
"paymentMethod": "CREDIT_CARD",
"paymentProvider": "stripe",
"paymentStatus": "PAID",
"paymentToken": {
"token": "pi_34tr6787rt"
},
"paymentType": "VISA",
"settlement": {
"settledAt": "2022-01-27T21:15:58Z",
"settlementAmount": 10.3,
"settlementAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"settlementStatusCode": "SETTLED"
}
}
],
"returns": [
{
"attributes": {
"transactionId": "0R12TQ46"
},
"fees": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"invoicedAmount": 11.29,
"invoicedAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"paymentCounterRefundDetails": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"paymentCounter": 1
}
],
"refunds": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"returnCounter": 1,
"totalRefundAmount": 11.29,
"totalRefundAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
]
}
],
"taxDetails": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"type": "tax"
}
]
}
],
"postedAt": "2022-08-01T20:03:28.483971941Z",
"retail": {
"cashierId": "CE-321",
"locationNumber": "WH334"
},
"shipInfo": {
"shipToId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"attributes": {
"giftMessage": "[]"
},
"discounts": [
{
"amount": 2.99,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"promotionCode": "SHIPFREE",
"promotionId": "SHIPFREE",
"promotionName": "Free Shipping",
"quantity": 1,
"unit": "AMOUNT_OFF",
"value": 10
}
],
"estimatedDeliveryDate": "2022-05-12T09:30:31.198Z",
"estimatedShipDate": "2022-05-12T09:30:31.198Z",
"fulfillmentZoneName": "US_LOCATIONS",
"isInvoiced": true,
"locationNumber": "WH334",
"pickups": [
{
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"pickupType": "PRIMARY"
}
],
"shipMethod": "Parcel post delivery",
"shipToAddress": {
"addressLine1": "123 Main St.",
"city": "Seattle",
"countryCode": "US",
"latitude": 47.6205,
"longitude": -122.3493,
"postalCode": "98121",
"region": "WA",
"type": "Home",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"email": "[email protected]",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
},
"shipToDiscount": 12.6,
"shipToDiscountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"shipToPrice": 20,
"shipToPriceInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"shipToTaxTotal": 12.6,
"shipToTaxTotalInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"shipToType": "SHIP_TO_ADDRESS",
"shipToUnitPrice": 20,
"shipToUnitPriceInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"shipmentInstructions": "Handle with care",
"taxCode": "FR01",
"taxDetails": [
{
"amount": 34.56,
"amountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"attributes": {},
"currency": "USD",
"name": "STATE",
"rate": 10,
"rateType": "PERCENTAGE",
"taxCode": "FR01"
}
]
},
"shipmentNumber": "217088603",
"shippedAt": "2022-08-01T20:03:28.483Z",
"totalTaxAmountInCurrencies": [
{
"currency": "USD",
"group": "SHOPPER",
"amount": 123.45
}
],
"updatedAt": "2022-08-01T20:03:28.483971941Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.
Unique request ID
System-generated invoice ID
OK
The invoice response model.
This is the sales channel ID.
"10"
This is the ISO 4217 currency code for invoiced amounts.
"USD"
This is the system-generated unique invoice ID.
"62ff5c0bec0aed3c86202c32"
This is the total invoiced amount captured for the order.
245.7
This is the 24-character system-generated shipment ID. The invoice is created against this shipment.
"62ff5c0bec0aed3c86202c32"
This field indicates the current invoice processing status. CREATED — The invoice was generated by fabric. POSTED — The Invoice service sent a notification to the webhook service. ACKNOWLEDGED — The merchant acknowledged the invoice successfully.
CREATED, POSTED, ACKNOWLEDGED "CREATED"
This is the total tax amount included in the invoice.
19.57
This field indicates the current version of the invoice document. The number increases each time the invoice is updated.
2
This is the timestamp of when the merchant acknowledged the invoice in UTC.
"2022-08-01T20:03:28.483Z"
This array contains audit logs that track invoice lifecycle events.
Show child attributes
Amount for which audit's done
2.4
System-generated audit ID (UUID format)
"a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111"
Audit type such as cancel, return, etc.
"CANCEL"
Audit time (UTC)
"2023-03-12T09:24:54.804Z"
Employee (ID or name) who made the last update
"6227"
true: Update operation (any update to the service) is successful false: Update operation has failed
true
Merchant-defined unique identifier for each item in an order. When omitted, fabric will generate it during order creation, in UUID format.
"b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569"
Item identifier
1
Additional info, if any
"Note"
Order payment token details
Configurable in Copilot as per requirement. If omitted, default policy is used.
"POS"
Ordered quantity of given item
1
Merchant-defined reason code, varies from merchant to merchant
"Scratched item"
Stock keeping unit (SKU), unique item identifier
"SKU0023"
Merchant-defined source from where the update was initiated. There are no predefined values; possible values could be Customer Service Representative (CSR), Point-of-Sale (POS), etc.
"POS"
Merchant-defined sub reason code; provides more clarity to audit reason
"Scratched item"
This is the timestamp of when the invoice was created in UTC.
"2022-08-01T20:03:28.483Z"
This object contains customer details.
Show child attributes
Customer's loyalty account ID or external identifier that's used to track their loyalty program activity and rewards earned.
"62272e917b12209e68751d94"
Address details
Show child attributes
Address line 1
"123 Main St."
City name
"Seattle"
ISO 3166-1 alpha-2 based country code
"US"
Address latitude, used with longitude to specify the address location. Decimal degrees format; negative is degrees South. **Note:**Value must be between -90 and 90, both inclusive.
47.6205
Address longitude, used with latitude to specify the address location. Decimal degrees format; negative is degrees South. **Note:**Value must be between -180 and 180, both inclusive.
-122.3493
Postal or ZIP code
"98121"
Region or state
"WA"
Address type
"Home"
Address line 2
"Suite 100"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
Contact person's email
Shopper's company name. This may be used for company discounts.
"Demo Inc"
Contact person's email
Employee (ID or name) who initiated an update request
"62272e917b12209e68751d94"
Identifier of the logged in user who initiated the request. This could be from either fabric Identity service or an external Identity service.
"62272e917b12209e68751d94"
This is an optional identifier assigned to the invoice by the merchant.
"191763090"
This is a merchant-defined unique invoice number. If omitted, fabric generates one using the Configuration service’s sequence generator.
"23940791"
This field shows the system-generated invoice status. CAPTURED — The authorizedAmount was successfully captured. SETTLED — The authorizedAmount was successfully settled with the customer. This may mean the amount was fully paid or refunded in case of returns. SETTLE_FAILED — The settlement of the authorizedAmount failed. PARTIAL_SETTLED — Only part of the authorizedAmount was settled.
CAPTURED, SETTLED, SETTLE_FAILED, PARTIAL_SETTLED "CAPTURED"
The total invoiced amount represented in one or more currencies.
Each entry specifies the total value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
This field specifies the system-updated invoice type. RETURN — Created for order returns. SHIPPING — Created when items are shipped. APPEASEMENT — Created for customer appeasements. ORDER_DONATION — Created when an order is donated. ORDER_CARRY — Created for Cash & Carry orders. EXCHANGE — Created for order exchanges.
RETURN, SHIPPING, APPEASEMENT, ORDER_DONATION, ORDER_CARRY, EXCHANGE "SHIPPING"
This is the system-generated timestamp of when the invoice was created in UTC.
"2022-08-01T20:03:28.483Z"
This object contains location details.
Show child attributes
Address with contact details
Show child attributes
Address line 1
"123 Main St."
City name
"Seattle"
ISO 3166-1 alpha-2 based country code
"US"
Address latitude, used with longitude to specify the address location. Decimal degrees format; negative is degrees South. **Note:**Value must be between -90 and 90, both inclusive.
47.6205
Address longitude, used with latitude to specify the address location. Decimal degrees format; negative is degrees South. **Note:**Value must be between -180 and 180, both inclusive.
-122.3493
Postal or ZIP code
"98121"
Region or state
"WA"
Address type
"Home"
Address line 2
"Suite 100"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
Contacts
Show child attributes
Contact person's email
Contact person's name
Contact person's email
If invoiceType= SHIPPING, location number refers to the inventory location from where the order is fulfilled.
"WH334"
This is the unique identifier of the ship-from location. The value must match the locationNumber stored in the fabric Location service.
"WH334"
This array contains the invoice order details.
Show child attributes
Total amount charged for the order
245.7
24-character system-generated unique order ID (UUID) for which invoice is created
"62ff5c0bec0aed3c86202c32"
Show child attributes
Represents number of times adjustment has happened to the order
1
Amount
34.56
The amount represented in one or more currencies.
Each item includes the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
An optional free text field and is saved as a metadata
"Any additional info"
Adjustment quantity
1
Merchant-defined reason code for order adjustment, varies from merchant to merchant
"Incorrect Item"
Merchant-defined sub reason code
"Late shipping"
Amount
34.56
Invoice appeasement details
Show child attributes
Merchant-defined appeasement amount, which shouldn't exceed (charged amount - already refunded amount)
34.56
The merchant-defined appeasement amount represented in one or more currencies.
Each entry specifies the appeasement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Sequential or incremental counter for appeasement. Used for keeping track of duplicates in the request. If omitted in the request, it's automatically generated and won't be used to check duplicates. Multiple appeasement calls for the same order can cause repetition of appeasement counter and may cause the request to be rejected completely.
1
System-generated amount from Invoice service based on requested amount
34.56
The system-generated invoiced amount represented in one or more currencies.
Each entry includes the invoiced value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Show child attributes
Payment counter to identify which payment to refund
1
Refund amount for appeasement
34.56
The refund amount represented in one or more currencies.
Each entry specifies the refunded value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Merchant-defined appeasement reason code; varies from merchant to merchant
"Incorrect Item"
Sub-reason code for appeasement, for another layer of classification
"Late shipping"
Invoicing discount list
Show child attributes
Unique promotion ID either from fabric Offers service or external Offers service. When fabric Offers service is used, this is the 24-character system-generated promotion ID returned in the response of Create promotion endpoint.
"HNY2022"
Discounted amount for the given quantity
2
The discounted amount represented in one or more currencies.
Each entry specifies the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
This enables multi-currency support for the given quantity.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Promotion code used by shoppers to take advantage of an ongoing promotion and avail discounts
"HNY2022"
Promotion title or name
"Happy New Year"
Number of discounted items in an order; example- buy 2 get 2 free
2
Promotion type
"promotion"
Invoice fee details
Show child attributes
Amount charged for an item in the invoice
34.56
The amount charged for the item, represented in one or more currencies.
Each entry specifies the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Quantity of items to which amount is charged
1
Refund amount for the invoice
345.56
The refund amount represented in one or more currencies.
Each entry includes the refunded value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Item fee type
"tax"
Invoicing item list
Show child attributes
System-specified sequential number iterated for each item in the array of the invoice
3
Total price adjustment amount for all items of the order
123.45
The total price adjustment amount for the order represented in one or more currencies.
Each entry includes the adjustment value and its currency code,
using the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Invoice adjustment details for this item
Show child attributes
Represents number of times adjustment has happened to the order
1
Amount
34.56
The amount represented in one or more currencies.
Each item includes the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
An optional free text field and is saved as a metadata
"Any additional info"
Adjustment quantity
1
Merchant-defined reason code for order adjustment, varies from merchant to merchant
"Incorrect Item"
Merchant-defined sub reason code
"Late shipping"
Amount
34.56
Appeasements information, if invoiceType= APPEASEMENT
Show child attributes
Merchant-defined appeasement amount, which shouldn't exceed (charged amount - already refunded amount)
34.56
The merchant-defined appeasement amount represented in one or more currencies.
Each entry specifies the appeasement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Sequential or incremental counter for appeasement. Used for keeping track of duplicates in the request. If omitted in the request, it's automatically generated and won't be used to check duplicates. Multiple appeasement calls for the same order can cause repetition of appeasement counter and may cause the request to be rejected completely.
1
System-generated amount from Invoice service based on requested amount
34.56
The system-generated invoiced amount represented in one or more currencies.
Each entry includes the invoiced value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Show child attributes
Payment counter to identify which payment to refund
1
Refund amount for appeasement
34.56
The refund amount represented in one or more currencies.
Each entry specifies the refunded value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Merchant-defined appeasement reason code; varies from merchant to merchant
"Incorrect Item"
Sub-reason code for appeasement, for another layer of classification
"Late shipping"
Customized attributes
{ "key": "value" }
If invoiceType= CANCELLATION, the details of the cancelled items will be included in the invoice.
Show child attributes
Cancellation Counter
1
Determine where the request is initialized
"CSR"
Reason code
"Order Line Cancel"
Sub reason code
"Late shipping"
Cancellation Status
PROCESSING, COMPLETED, REJECTED "PROCESSING"
Amount
"-20."
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Invoiced Amount
"-20."
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Show child attributes
Cancellation Counter
1
Amount
"-20."
CurrencyList details
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Show child attributes
Type of refund
"ITEM"
Name
"Name"
Refund Amount
"-10."
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Custom attributes
{
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
}
Total quantity cancelled
10
Invoiced amount currency
"USD"
Discount applicable for Item
Show child attributes
Unique promotion ID either from fabric Offers service or external Offers service. When fabric Offers service is used, this is the 24-character system-generated promotion ID returned in the response of Create promotion endpoint.
"HNY2022"
Discounted amount for the given quantity
2
The discounted amount represented in one or more currencies.
Each entry specifies the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
This enables multi-currency support for the given quantity.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Promotion code used by shoppers to take advantage of an ongoing promotion and avail discounts
"HNY2022"
Promotion title or name
"Happy New Year"
Number of discounted items in an order; example- buy 2 get 2 free
2
Promotion type
"promotion"
Fees charged for individual items of an invoice
Show child attributes
Amount charged for an item in the invoice
34.56
The amount charged for the item, represented in one or more currencies.
Each entry specifies the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Quantity of items to which amount is charged
1
Refund amount for the invoice
345.56
The refund amount represented in one or more currencies.
Each entry includes the refunded value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Item fee type
"tax"
Total invoiced amount per line item
600
The total invoiced amount per line item represented in one or more currencies.
Each entry includes the value and its corresponding currency code,
using the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Total quantity invoiced. If a customer placed an order for 10 quantities of an item and only 2 got shipped, then 2 is the invoiceQuantity.
10
Total invoiced appeasement amount per line item
344.455
The total appeasement amount for the line item represented in one or more currencies.
Each entry includes the appeasement value and its currency code,
using the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Total invoiced cancellation amount per line item
344.455
The total cancellation amount for the line item represented in one or more currencies.
Each entry includes the cancellation value and its currency code,
using the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Total invoiced discount amount per line item
3.45
The total discount amount for the line item represented in one or more currencies.
Each entry includes the discounted value and its currency code,
using the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Total invoiced fee per line item. For fee, refer to amount in invoiceFeeDetail.
33.4
The total fee for the line item represented in one or more currencies.
Each entry includes the fee value and its currency code,
using the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Unique identifier of item from fabric Products (previously called PIM) service
1234455322
Total invoiced tax amount per line item
2.4
The total tax amount for the line item represented in one or more currencies.
Each entry includes the tax value and its currency code,
using the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Item's unit price
33.4
The item’s unit price represented in one or more currencies.
Each entry specifies the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Time order line item was created
"2022-11-22T10:26:38.000+00:00"
Merchant-defined unique identifier for each item. When omitted, fabric will generate it during order creation, in UUID format.
"1adfrghhh2346aaaf"
Merchant-defined line item number to identify each item in an order
1
ID of the store from where the item is picked for shipment
4512345
24-character system-generated unique order ID (UUID) to which the item belongs
"33adfrghhh2346aaaffff"
Return expiration in days
21
If invoiceType= RETURN, the details of the returned items will be included in the invoice.
Show child attributes
Exchange line item ID
"62f3dfc438bcab1951be0a19"
Show child attributes
Merchant-defined return amount
34.56
The merchant-defined refund amount represented in one or more currencies.
Each entry specifies the appeasement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Fee name
"RETURN_FEE"
Merchant-defined return reason
"Return fee"
Return fee type
TAX, DISCOUNT, FEE, ITEM, ADJUSTMENT "FEE"
System-generated amount from Invoice service based on requested amount
11.29
The system-generated invoiced amount represented in one or more currencies.
Each entry includes the invoiced value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
true: Item received for exchange is returned false: Item received for exchange isn't returned
true
Merchant-defined reason code for return
"Incorrect item"
Refund amount
11.29
The refund amount represented in one or more currencies.
Each entry specifies the refunded value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Show child attributes
Merchant-defined return amount
34.56
The merchant-defined refund amount represented in one or more currencies.
Each entry specifies the appeasement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Fee name
"RETURN_FEE"
Merchant-defined return reason
"Return fee"
Return fee type
TAX, DISCOUNT, FEE, ITEM, ADJUSTMENT "FEE"
Unique, sequential, or incremental counter for return request
1
System-generated time of returned item that has come back to the facility (UTC)
"2022-09-14T14:07:36.861Z"
24-character system-generated shipment ID
"62b37697c67b204dd18a7465"
The shipment invoice resource object.
Show child attributes
The unique ID of the shipment invoice.
"62ff5c0bec0aed3c86202c32"
The unique number of the shipment invoice.
"23940791"
The date when the invoice was processed.
"2022-08-01T20:03:28.483971941Z"
Unique identifier for each item in the shipment
"234"
Shipped quantity of given item
1
If invoiceType= SHIPPING, the Ship-to ID corresponds to the shipment for which the invoice was generated.
"5349b4ddd2781d08c09890f4"
Unique identifier for shipment of the line item. This attribute is inherited from fabric shipment service.
"2adfrghhh2346aaaffff"
Stock Keeping Unit (SKU), unique identifier of item
"P1234"
Item tax details
Show child attributes
Amount for type
34.56
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Item fee type
"tax"
Order item type
"WEB_PICKUP"
Item's unit of measurement. For example, for each quantity (EA), or GAL (Gallon), DZ (Dozens), etc.
"EA"
Merchant-specified order number for which invoice is created. Note: Order number can either be merchant-defined during Order creation request or it can be generated by fabric’s sequence generator feature in the Configuration service.
"217088603"
An optional identifier assigned to the order by the merchant.
217088603
Order subtype for further order classification
IOS, ANDROID, INTERNATIONAL "INTERNATIONAL"
Order type. Critical in order life cycle as it indicates the workflow that varies with the type. For example, Storefront orders have a different workflow than a Call Center order. fabric Orders service offers default configurations for Storefront, Call Center, Point of Sale, iOS, Android, and International
WEB, CSC, MOBILE_APP, POS "WEB"
System-generated order creation time
"2022-05-12T09:30:31.198Z"
Invoicing payment list
Show child attributes
Amount authorized to be debited from the given paymentMethod
256.1
The authorized amount represented in one or more currencies.
Each entry specifies the authorized value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Address details
Show child attributes
Address line 1
"123 Main St."
City name
"Seattle"
ISO 3166-1 alpha-2 based country code
"US"
Address latitude, used with longitude to specify the address location. Decimal degrees format; negative is degrees South. **Note:**Value must be between -90 and 90, both inclusive.
47.6205
Address longitude, used with latitude to specify the address location. Decimal degrees format; negative is degrees South. **Note:**Value must be between -180 and 180, both inclusive.
-122.3493
Postal or ZIP code
"98121"
Region or state
"WA"
Address type
"Home"
Address line 2
"Suite 100"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
Contact person's email
Contact person's name
Show child attributes
Conversion required for currency
1
Three-letter currency code as defined by ISO-4217
"USD"
System-generated time (UTC) when payment was captured. In case of payment captured at checkout, this is a merchant-defined value given during order creation (UTC).
"2022-01-27T16:15:58.000-05:00"
Unique incremented number for this payment object
1
Payment method such as PayPal or Credit Card
"CREDIT_CARD"
Name of the payment provider
"stripe"
Payment status. There are no predefined values; possible values are Paid, Partially Paid, Authorized, and Error.
"PAID"
Payment type such as VISA or Mastercard
"VISA"
Invoice settlement details
Show child attributes
System-generated invoice settlement time
"2022-01-27T21:15:58Z"
Amount that needs to be collected from or refunded to the shopper. It's invoicedAmount - chargedAmount.
10.3
The settlement amount represented in one or more currencies.
Each entry specifies the settlement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Invoice settlement status code SETTLED: Amount is captured successfully from the payment service PARTIAL_SETTLED: Amount is partially captured from the payment service SETTLEMENT_FAILED: Amount isn't captured from the payment service
SETTLED, PARTIAL_SETTLED, SETTLEMENT_FAILED "SETTLED"
Show child attributes
Fee details for the return request
Show child attributes
Merchant-defined return amount
34.56
The merchant-defined refund amount represented in one or more currencies.
Each entry specifies the appeasement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Fee name
"RETURN_FEE"
Merchant-defined return reason
"Return fee"
Return fee type
TAX, DISCOUNT, FEE, ITEM, ADJUSTMENT "FEE"
System-generated invoiced amount for the return request
11.29
The system-generated invoiced amount represented in one or more currencies.
Each entry includes the invoiced value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Refund details associated with payment counters for the return request
Show child attributes
Final refunded amount
34.56
CurrencyList details
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Unique incremented number for this payment object
1
Refund details for the return request
Show child attributes
Merchant-defined return amount
34.56
The merchant-defined refund amount represented in one or more currencies.
Each entry specifies the appeasement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Fee name
"RETURN_FEE"
Merchant-defined return reason
"Return fee"
Return fee type
TAX, DISCOUNT, FEE, ITEM, ADJUSTMENT "FEE"
Unique, sequential or incremental counter for return request
1
Merchant-defined total refund amount for the return request
11.29
The total refund amount represented in one or more currencies.
Each entry specifies the refunded value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Invoicing tax details
Show child attributes
Amount for type
34.56
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Item fee type
"tax"
This is the timestamp of when the invoice was sent to a third-party system for financial processing in UTC.
"2022-08-01T20:03:28.483971941Z"
This object contains optional retail details.
This object contains shipment information.
Show child attributes
System-generated UUID associated with shipInfo, generated from CnC service. An order can have multiple ship-to (delivery) locations and items going to the same location share one shipToId.
"b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569"
User-defined custom attributes (key–value pairs) for additional information.
{ "giftMessage": "[]" }
Shipping discount details
Show child attributes
Discounted amount for the given quantity
2.99
The merchant-defined shipping discount amount represented in one or more currencies.
Each entry specifies the appeasement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Promotion code used by shoppers to take advantage of an ongoing promotion.
"SHIPFREE"
Unique promotion ID either from fabric Offers service or external Offers service. When fabric Offers service is used, this is the 24-character system-generated promotion ID returned in the response of create promotion endpoint.
"SHIPFREE"
Promotion name
"Free Shipping"
Number of discounted items in an order such as buy 2 get 1 free. In this case 1 is the discounted quantity.
1
Indicates whether the discount is in amount or percentage
"AMOUNT_OFF"
Value corresponding to unit
10
Estimated delivery time (UTC) provided by carrier
"2022-05-12T09:30:31.198Z"
Estimated shipping time (UTC) provided by merchant
"2022-05-12T09:30:31.198Z"
The fulfillment zone name used to determine fulfillment location and network.
"US_LOCATIONS"
true: At least one captured invoice is created by the Invoice service;
false: A captured invoice is not created.
true
Unique value to identify ship-from or Buy Online Pickup from Store location. This must be the locationNumber stored in the fabric Location service.
"WH334"
Order pickup details
Show child attributes
Contact person's email
Order pickup type
PRIMARY, ALTERNATE "PRIMARY"
Shipping method
"Parcel post delivery"
Address details
Show child attributes
Address line 1
"123 Main St."
City name
"Seattle"
ISO 3166-1 alpha-2 based country code
"US"
Address latitude, used with longitude to specify the address location. Decimal degrees format; negative is degrees South. **Note:**Value must be between -90 and 90, both inclusive.
47.6205
Address longitude, used with latitude to specify the address location. Decimal degrees format; negative is degrees South. **Note:**Value must be between -180 and 180, both inclusive.
-122.3493
Postal or ZIP code
"98121"
Region or state
"WA"
Address type
"Home"
Address line 2
"Suite 100"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
Contact person's email
Contact person's name
Merchant-defined shipping discount amount
12.6
The shipping discount amount represented in one or more currencies.
Each entry specifies the discount value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Net shipping cost, including discounts
20
The net shipping cost (inclusive of discounts) represented in one or more currencies.
Each entry specifies the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Total shipping tax
12.6
The total shipping tax represented in one or more currencies.
Each entry specifies the tax value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Type of shipping address. There are no pre-defined values; possible values include SDD (Same Day Delivery), Point-of-Sale (POS), etc.
"SHIP_TO_ADDRESS"
Merchant-defined shipping cost (unit price before discounts)
20
The merchant-defined shipping unit price (before discounts) represented in one or more currencies.
Each entry specifies the value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Shipment instructions
"Handle with care"
Applicable tax code; varies by state or region
"FR01"
Shipping tax details
Show child attributes
Tax amount
34.56
The merchant-defined tax amount represented in one or more currencies.
Each entry specifies the appeasement value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
Currency in ISO-4217
"USD"
Customer-defined function name which uses this currency.
"SHOPPER"
Amount in currency
123.45
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Show child attributes
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Three-letter currency code as defined by ISO-4217
"USD"
Applied tax name
"STATE"
Rate
10
Rate type
"PERCENTAGE"
Tax code applied
"FR01"
This is the merchant-specified shipment number. The invoice is created against this shipment.
"217088603"
This is the timestamp of when the order was shipped in UTC.
"2022-08-01T20:03:28.483Z"
The total tax amount invoiced represented in one or more currencies.
Each entry includes the tax value and its corresponding currency code,
following the structure defined in the amountInCurrencyResource schema.
Show child attributes
This is the timestamp of when the invoice was last updated in UTC.
"2022-08-01T20:03:28.483971941Z"
Was this page helpful?