Order User Guides
- Overview
- Order Management
- Order Fulfillment Logic
- Activity Log
- Settings
Inventory User Guides
Orders API Endpoints
- Orders (3.0.0)
- Developer Guide
- Orders FAQ
- Shopping Lists
- Shipping Methods
- Imports
- Exports
- Orders
- Overview
- POSTCreate new order
- GETGet order by order number
- GETGet order by order ID
- POSTFind orders
- POSTUpdate Shipping information for an existing order by order number
- POSTUpdate Order Attributes
- POSTUpdate customer details for given order IDs
- PUTUpdates order pick-up details
- POSTCheck credits eligibility by order number
- POSTGet order exchange eligibility by order number
- POSTCheck appeasement eligibility by order number
- POSTCheck appeasement eligibility by order ID
- Frauds
- Notifications
- Backorders Preorders
- Cancellations
- Allocations
- Shipments
- Inventory Transfers
- Tracking
- Invoices
- Payments
- Credits
- Appeasements
- Returns
Inventory API Endpoints
- Inventory (3.0.0)
- Inventory FAQ
- Imports
- Counters
- Inventory
- Locations
- Networks
Get order by order ID
As a merchant, you may need to review or monitor an order to answer customer inquiries, resolve a complaint, or for analytics and reporting. With this endpoint, you can get order details by order ID.
Note: If you do not have the order ID, use the corresponding order number-based endpoint - GET /orders/order-number/{orderNumber}
.
curl --request GET \
--url https://api.fabric.inc/v3/orders/{orderId} \
--header 'Authorization: Bearer <token>' \
--header 'x-fabric-channel-id: <x-fabric-channel-id>' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>'
{
"adjustmentTotal": 123.45,
"adjustments": [
{
"adjustmentCounter": 1,
"amount": 2.4,
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"cancelQuantity": 2,
"invoiceQuantity": 10,
"notes": "Any additional info",
"quantity": 2,
"reasonCode": "RFC",
"returnQuantity": 1,
"subReasonCode": "Late shipping"
}
],
"allocatedAt": "2022-05-12T09:30:31.198Z",
"appeasementTotal": 12.34,
"appeasements": [
{
"amount": 34.56,
"appeasementCounter": 1,
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"invoicedAmount": 34.56,
"payments": [
{
"paymentCounter": 1,
"refundAmount": 34.56
}
],
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping"
}
],
"attributes": {
"fraudCheckStatus": "UPDATED",
"loyaltyStatus": "N"
},
"auditLogs": [
{
"amount": 2.4,
"attributes": {
"key": "value"
},
"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"
}
]
}
],
"cancelTotal": 12.34,
"cancelledAt": "2022-05-12T09:30:31.198Z",
"cartId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"channelId": "12",
"createdAt": "2022-05-12T09:30:31.198Z",
"currency": "USD",
"customer": {
"accountId": "62272e917b12209e68751d94",
"company": "Demo Inc",
"email": "test@example.com",
"employeeId": "62272e917b12209e68751d94",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"userId": "62272e917b12209e68751d94"
},
"discounts": [
{
"amount": 2.99,
"invoiceQuantity": 10,
"promotionCode": "HNY2022",
"promotionId": "HNY2022",
"promotionName": "New Year",
"quantity": 1,
"unit": "AMOUNT_OFF",
"value": 10
}
],
"employeeId": "43278",
"erroredFields": [
{
"amended": false,
"errorMessage": "Invalid email address",
"fieldName": "shipInfo.shipToAddress.email"
}
],
"feeTotal": 12.34,
"fees": [
{
"amount": 34.56,
"attributes": {},
"currency": "USD",
"invoicedAmount": 34.56,
"name": "STATE",
"rate": 10,
"rateType": "PERCENTAGE",
"taxCode": "FR01"
}
],
"invoiceTotal": 12.34,
"items": [
{
"adjustments": [
{
"adjustmentCounter": 1,
"amount": 2.4,
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"cancelQuantity": 2,
"invoiceQuantity": 10,
"notes": "Any additional info",
"quantity": 2,
"reasonCode": "RFC",
"returnQuantity": 1,
"subReasonCode": "Late shipping"
}
],
"appeasementTotal": 5.5,
"appeasements": [
{
"amount": 34.56,
"appeasementCounter": 1,
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"invoicedAmount": 34.56,
"payments": [
{
"paymentCounter": 1,
"refundAmount": 34.56
}
],
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping"
}
],
"attributes": {
"colorCode": "001",
"isDonation": "false",
"style": "570223020"
},
"backOrderedQuantity": 10,
"cancelledAmount": 12.4,
"cancelledQuantity": 10,
"channelId": "WHBM",
"currency": "USD",
"deliveredQuantity": 10,
"discounts": [
{
"amount": 2.99,
"invoiceQuantity": 10,
"promotionCode": "HNY2022",
"promotionId": "HNY2022",
"promotionName": "New Year",
"quantity": 1,
"unit": "AMOUNT_OFF",
"value": 10
}
],
"employeeId": "5345HJH",
"exchangeQuantity": 13,
"fees": [
{
"amount": 34.56,
"attributes": {},
"currency": "USD",
"invoiceQuantity": 10,
"name": "STATE",
"quantity": 12,
"refundAmount": 21.5,
"taxCode": "FR01"
}
],
"hasInfiniteConsent": true,
"invoiceTotal": 800,
"invoicedQuantity": 10,
"isBackorder": true,
"isDonation": true,
"isExchangeItem": true,
"isGifting": true,
"isPreorder": true,
"itemAdjustmentTotal": 123.45,
"itemDiscountsTotal": 80,
"itemFeeTotal": 200,
"itemId": 1234,
"itemName": "Item",
"itemShippingTotal": 10,
"itemSubtotal": 600,
"itemSubtype": "Borderfree",
"itemTaxTotal": 80,
"itemTotal": 800,
"itemUnitPrice": 10,
"lineItemId": "d538b1f1-0e45-43c6-bfc6-9666fc1188ca",
"lineItemNumber": 1,
"lineOrderStatus": "VALID",
"notes": [
{
"createdAt": "2022-05-12T09:30:31.198Z",
"notes": "Fragile - handle with care",
"user": "62272e917b12209e68751d94"
}
],
"orderedQuantity": 60,
"orderedQuantityToShip": 10,
"originalDiscounts": 50,
"originalFeeTotal": 300,
"originalItemSubtotal": 800,
"originalItemTotal": 500,
"originalShippingTotal": 80,
"originalTaxTotal": 90,
"parentLineItemNumber": 12,
"pendingExchangeQuantity": 12,
"pendingReturnQuantity": 10,
"pendingShippedBackOrderQuantity": 10,
"processingReturnQuantity": 10,
"quantityInStatus": {
"cancelled": 10,
"created": 10,
"delivered": 10,
"hold": 10,
"pendingShipped": 10,
"returned": 10,
"shipped": 10
},
"refundAmount": 21.5,
"rejectedReturnQuantity": 10,
"reshippedQuantity": 10,
"returnedQuantity": 10,
"returns": [
{
"exchangeLineItemId": "62f3dfc438bcab1951be0a19",
"fees": [
{
"amount": 34.56,
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"invoicedAmount": 11.29,
"isExchangeItemReturned": true,
"reasonCode": "Incorrect item",
"refundAmount": 11.29,
"refunds": [
{
"amount": 34.56,
"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": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"shippedQuantity": 10,
"sku": "P1234",
"taxCode": "FR01",
"taxDetails": [
{
"amount": 34.56,
"attributes": {},
"currency": "USD",
"name": "STATE",
"rate": 10,
"rateType": "PERCENTAGE",
"taxCode": "FR01"
}
],
"type": "WEB_SHIP",
"uom": "EA",
"vendorId": "P1234"
}
],
"notes": [
{
"createdAt": "2022-05-12T09:30:31.198Z",
"notes": "Fragile - handle with care",
"user": "62272e917b12209e68751d94"
}
],
"orderDiscount": 1.23,
"orderId": "5349b4ddd2781d08c09890f4",
"orderNumber": "309019176",
"orderReleasedAt": "2022-05-12T09:30:31.198Z",
"orderSubtotal": 123.45,
"orderTotal": 146.9,
"orderedAt": "2022-05-12T09:30:31.198Z",
"originalDiscount": 1.45,
"originalFeeTotal": 12.34,
"originalOrderTotal": 146.9,
"originalSubtotal": 113.45,
"originalTaxTotal": 12.34,
"payments": [
{
"attributes": {
"captureCurrencyCode": "USD",
"payerId": "M7AWTK3YK3B46",
"referenceId": "4DY41894J2904533S"
},
"authorizationAttempts": 0,
"authorizedAmount": 123.2,
"billToAddress": {
"addressLine1": "123 Main St.",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"city": "Seattle",
"countryCode": "US",
"email": "test@example.com",
"latitude": 47.6205,
"longitude": -122.3493,
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"postalCode": "98121",
"region": "WA",
"type": "Home"
},
"chargedAmount": 60,
"currency": "USD",
"isFinalCapture": false,
"isPartialCapture": false,
"paidAt": "2022-01-27T16:15:58-05:00",
"paymentCounter": 1,
"paymentIdentifier": {
"cardIdentifier": "3456",
"expirationMonth": "12",
"expirationYear": "2029",
"fabricPaymentReference": "f886c96c-5f65-11ed-9b6a-0242ac120002",
"paymentId": "62272e917b12209e68751d94"
},
"paymentLogs": [
{
"amount": -12.4,
"attributes": {
"key": "value"
},
"data": {
"body": {
"attributes": {
"key": "value"
},
"errors": [
{
"key": "value"
}
],
"responseCode": "OK",
"status": "Authorized",
"transactionId": "328942333412",
"transactionTimestamp": "2022-04-10T23:00:45:12.111Z"
},
"paymentStatusCode": "200"
},
"id": "328942333412",
"paymentId": "328942333412",
"paymentLogId": "328942333412",
"paymentLogRefId": "328942333412",
"status": "Authorized",
"type": "REFUND"
}
],
"paymentMethod": "CREDIT_CARD",
"paymentProvider": "stripe",
"paymentStatus": "Paid",
"paymentToken": {
"paymentType": "VISA",
"token": "pi_34tr6787rt"
},
"reauthorizationAttempts": 0,
"refundAmount": 21.5
}
],
"retail": {
"cashierId": "C-123",
"locationNumber": 334,
"registerId": "113",
"transactionId": "328942333412"
},
"returnTotal": 12.34,
"returns": [
{
"fees": [
{
"amount": 34.56,
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"invoicedAmount": 11.29,
"paymentCounterRefundDetails": [
{
"amount": 34.56,
"paymentCounter": 1
}
],
"refunds": [
{
"amount": 34.56,
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"returnCounter": 1,
"totalRefundAmount": 11.29
}
],
"shipInfo": [
{
"attributes": {
"giftMessage": "[]"
},
"discounts": [
{
"amount": 2.99,
"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",
"isInvoiced": true,
"locationNumber": "123",
"pickups": [
{
"email": "test@example.com",
"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.",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"city": "Seattle",
"countryCode": "US",
"email": "test@example.com",
"latitude": 47.6205,
"longitude": -122.3493,
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"postalCode": "98121",
"region": "WA",
"type": "Home"
},
"shipToDiscount": 12.6,
"shipToId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"shipToPrice": 20,
"shipToTaxTotal": 12.6,
"shipToType": "SHIP_TO_ADDRESS",
"shipToUnitPrice": 20,
"shipmentInstructions": "Handle with care",
"taxCode": "FR01",
"taxDetails": [
{
"amount": 34.56,
"attributes": {},
"currency": "USD",
"name": "STATE",
"rate": 10,
"rateType": "PERCENTAGE",
"taxCode": "FR01"
}
]
}
],
"statusCode": "ORDER_CREATED",
"statusDescription": "Order Created",
"subtype": "INTERNATIONAL",
"taxTotal": 12.34,
"type": "WEB",
"updatedAt": "2022-05-12T09:30:31.198Z",
"version": 2
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
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
Path Parameters
24-character system-generated order ID returned in the response of Create Order endpoint - POST /orders
.
Response
Order details
Sales channel ID
Item details
System-generated unique identifier of item from fabric Products (PIM) service
Merchant-defined unique identifier for each item in an order. When omitted, fabric will generate it (in UUID format) during order creation.
Merchant-defined line item number to identify each item in an order
System-generated ship-to ID (UUID) associated with shipInfo
, generated from CnC service. Note: An order can have multiple ship-to (delivery) locations and items going to the one location will have the same shipToId
.
Stock keeping unit (SKU), unique identifier of item
Price adjustments are made to modify product prices during order creation, aiming to incentivize shoppers by offering discounts and promotions based on specified criteria. Price adjustments are also made to apply coupons that the shopper has used.
Sequential or incremental counter for price adjustment
Adjustment amount
Merchant-defined custom attributes. This is a placeholder for additional info in key: value pairs.
Cancel quantity
Total quantity invoiced
Placeholder for additional info, if any.
Adjustment quantity
Reason code
Returned quantity of given item
Subreason code
Appeasement total = summationOfAll(appeasements[].amount and items[].appeasements[].amount)
Appeasement info
Merchant-defined appeasement amount, which should not exceed (charged amount - already refunded amount)
Sequential or incremental counter for appeasement. Used for keeping track of duplicates in the request. If omitted in the request, it is automatically generated and will not 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.
Merchant-defined custom attributes. This is a placeholder for additional info in key: value pairs
System-generated amount from Invoice service based on requested amount
Merchant-defined appeasement reason code; varies from merchant to merchant
Subreason code for appeasement, for another layer of classification
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Backordered quantity of given item
Cancelled amount is either voided (payment is only authorized but not captured at checkout) or refunded (amount is authorized and captured at checkout)
Cancelled quantity of an item
Sales channel ID
Three-letter currency code as defined by ISO-4217
Delivered quantity of an item
Discount details
Discounted amount for the given quantity
Total quantity invoiced. If customer placed order for 10 quantity of an item and only 2 got shipped, then 2 is the invoiceQuantity
.
Promotion code used by shoppers to take advantage of an ongoing promotion.
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.
Promotion name
Number of discounted items in an order such as buy 2 get 1 free. In this case 1 is the discounted quantity.
Indicates whether the discount is in amount or percentage
Value corresponding to unit
Employee (ID or name) who initiated the request
System-generated item quantity that are exchanged
Fee details
Tax amount
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Three-letter currency code as defined by ISO-4217
Total quantity invoiced. If customer placed order for 10 quantity of an item and only 2 got shipped then 2 is the invoiceQuantity
Applied tax name
Total number of items in the order
Total refund amount
Tax code applied
Applicable for backorder and preorder scenarios where customer consents for further delay in delivery of preordered and backordered items than the initial estimate. true: Customer consents for delayed delivery. false: Customer does not consent for delayed delivery.
Invoice total is updated once invoice created
Invoiced quantity of an item
Merchant-defined value. true: Backordered item. false: Ordered item.
true: Item is a donation. false: Item is not a donation.
Merchant-defined value for exchange scenarios. true: Item is an exchange. false: Item is not an exchange.
true: Item is a gift. false: Item is not a gift.
Merchant-defined value. true: Pre-ordered item. false: Ordered item.
Total price adjustment made to the item.
Item's total discount = summationOfAll(discounts[].amount)'. Refer to
amountin
orderDiscount`
Recalculated item's fee = summationOfAll(itemFeeTotal)
. Refer to amount
in itemFeeDetails
Item name
Merchant-defined item's shipping total
Recalculated item's subtotal = itemUnitPrice x (orderedQuantity - cancelledQuantity)
Subtype of type
, for another layer of classification
Recalculated total tax on item = summationOfAll(itemTaxTotal)
Recalculated item's total cost = itemSubTotal - itemDiscountTotal + itemTaxTotal + itemFeeTotal
Item's unit price
System-generated status for each item in the orders - SHIPPED, RETURNED, CANCELLED, EXCHANGED, VALID, and the like
For additional information, to be used by Customer Service Representative (CSR) only
Ordered quantity of given item
Quantity of given item that is yet to ship, out of the initially allocated quantity. For example, if a customer orders four units of an item, inventory will reserve four units of the item. If only two units are currently available and are shipped, the remaining two units will be considered as the pendingShippedQuantity
.
System-generated total discount, auto-filled by Orders service when the order is placed
System-generated fee total, auto-filled by Orders service when the order is placed. This is saved for reference in case the value changes later.
System-generated total discount, auto-filled by Orders service when the order is placed
System-generated item total cost, auto-filled by Orders service when the order is placed
System-generated total shipping cost, auto-filled by Orders service when the order is placed
System-generated total tax, auto-filled by Orders service when the order is placed
Applicable in exchange scenarios. Item being returned is the parentLineItemNumber
.
System-generated item quantity pending for exchange
Quantity of an item awaiting approval for return. For example, when customer initiates return request for 2 units of an item, the request will be initially in a pending status because they are awaiting approval from merchant. They are referred to as pendingReturnQuantity
.
Backordered quantity that is yet to be shipped. For example, If a customer places a backorder for four units of an item, inventory will reserve four units of the item to ship when they become available. If only two units are available and are shipped, the remaining two backordered units will be considered as the pendingShippedBackOrderQuantity
.
Quantity of an item currently being processed for return. For example, when merchant approves return of 1 out of 2 units of an item, then 1 is the processingReturnQuantity
Item quantity for each status
Cancelled quantity of given item
Ordered quantity of given item
Delivered quantity of given item
Held quantity of given item
Pending quantity of given item
Returned quantity of given item
Shipped quantity of given item
Merchant-defined total refund amount
Quantity of an item rejected in return request. For example, For example, when merchant rejects return of 1 out of 2 units of an item, then 1 is the rejectedReturnQuantity
Reshipped quantity of given item (in case of lost shipment)
Returned quantity of given item
Order return details
Exchange line item ID
System-generated amount from Invoice service based on requested amount
true: Item received for exchange is returned. false: Item received for exchange is not returned.
Merchant-defined reason code for return
Refund amount
Unique, sequential, or incremental counter for return request
System-generated time of returned item that has come back to the facility (UTC)
24-character system-generated shipment ID
Unique identifier for each item in the shipment
Shipped quantity of given item
Shipped quantity of an item
Applicable tax code, varies from state to state
Tax details
Tax amount
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Three-letter currency code as defined by ISO-4217
Applied tax name
Rate
Rate type
Tax code applied
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 Call Center orders. fabric Orders service offers default configurations for Storefront, Call Center, Point of Sale, iOS, Android, and International.
Unit in which a product is sold or measured. It is important to accurately fulfill orders and ensure customers receive the correct quantity of products they have ordered. The possible values are EA (Each) or GAL (Gallon), DZ (Dozen), etc.
Vendor ID. Applicable in drop shipping to indicate vendor responsible for given item.
Merchant-defined order identifier. If omitted, this is generated by fabric's sequence generator using Configuration service
System-generated UUID associated with shipInfo
, generated from CnC service. Note: An order can have multiple ship-to (delivery) locations and items going to the same location have one shipToId
.
User defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Discounted amount for the given quantity
Promotion code used by shoppers to take advantage of an ongoing promotion.
Unique promotion ID either from fabric Offers service or an external Offers service. When fabric Offers service is used, this is the 24-character system-generated promotion ID returned in the response of the create promotion endpoint.
Promotion name
Number of discounted items in an order such as buy 2 get 1 free
. In this case 1
is the discounted quantity.
Indicates whether the discount is in amount or percentage
Value corresponding to unit
Estimated delivery time (UTC) provided by carrier
Estimated shipping time (UTC) provided by merchant
true: At least one captured invoice is created by Invoice service. false: Captured invoice is not created.
Unique value to identify ship-from or Buy Online Pickup from Store location. This must be the locationNumber stored in the fabric Location service.
Order pickup details
Contact person's email
Order pickup type
PRIMARY
, ALTERNATE
Shipping method
Address details
Address line 1
City name
ISO 3166-1 alpha-2 based country code
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.
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.
Postal or ZIP code
Region or state
Address type
Address line 2
Address line 3
Address line 4
Contact person's email
Merchant-defined shipping discount amount
Merchant-defined shipping cost
Total shipping tax
Type of shipping address. There are no pre-defined values; the possible values are SDD (Same Day Delivery), Point-of-Sale (POS), etc.
A number indicating the ship to unit price.
Shipment instructions
Applicable tax code, varies from state to state
Tax amount
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Three-letter currency code as defined by ISO-4217
Applied tax name
Rate
Rate type
Tax code applied
Status code. There are no pre-defined values; possible values are - ORDER_ALLOCATED ("Order Allocated"), ORDER_SHIPPED ("Order Shipped"), ORDER_PARTIALLY_SHIPPED ("Order Partially Shipped"), ORDER_PICKED_UP ("Order Picked Up"), ORDER_PARTIALLY_PICKED_UP ("Order Partially Picked Up"), ORDER_DELIVERED ("Order Delivered"), ORDER_PARTIALLY_DELIVERED ("Order Partially Delivered"), ORDER_RETURNED ("Order Returned"), etc.
Current version of order document. Indicates the number of times the order is updated by any operation.
The total amount of price adjustments for all items of the order.
Price adjustments refer to changes or modifications made to the listed price of a product. A Customer Sales Representative (CSR) makes the price adjustments to provide discounts, promotional offers, or coupons that the shopper used.
Sequential or incremental counter for price adjustment
Adjustment amount
Merchant-defined custom attributes. This is a placeholder for additional info in key: value pairs.
Cancel quantity
Total quantity invoiced
Placeholder for additional info, if any.
Adjustment quantity
Reason code
Returned quantity of given item
Subreason code
System-generated order allocation time (UTC) once the order is allocated using Allocation service
Final appeasement amount
Merchant-defined appeasement amount, which should not exceed (charged amount - already refunded amount)
Sequential or incremental counter for appeasement. Used for keeping track of duplicates in the request. If omitted in the request, it is automatically generated and will not 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.
Merchant-defined custom attributes. This is a placeholder for additional info in key: value pairs
System-generated amount from Invoice service based on requested amount
Merchant-defined appeasement reason code; varies from merchant to merchant
Subreason code for appeasement, for another layer of classification
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Amount for which audit is done
Custom attributes
System-generated audit ID (UUID format)
Audit type such as cancel, return, etc.
Audit time (UTC)
Employee (ID or name) who made the last update
true: Update operation (any update to the service) is successful false: Update operation has failed
Merchant-defined unique identifier for each item in an order. When omitted, fabric will generate it during order creation, in UUID format.
Item identifier
Additional info, if any
Configurable in Copilot as per requirement. If omitted, default policy is used.
Ordered quantity of given item
Merchant-defined reason code, varies from merchant to merchant
Stock keeping unit (SKU), unique item identifier
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.
Merchant-defined sub reason code; provides more clarity to audit reason
Amount to be returned after order cancellation, calculated as cancelledQuantity / orderedQuantity * itemTotal
System-generated order cancellation time (UTC). This is returned in the response of Cancel order by ID - POST /orders/{orderId}/actions/cancel
or Cancel order by order number - POST /orders/order-number/{orderNumber}/actions/cancel
once the order is successfully cancelled.
Unique cart identifier, either from fabric Cart service or an external Cart service. It is used for linking an order to a specific cart. If available, it is also used for inventory reservation from cart workflow.
Order creation time (UTC)
Three-letter currency code as defined by ISO-4217
Invoice customer
Customer's loyalty account ID or external identifier that is used to track their loyalty program activity and rewards earned.
Shopper's company name. This may be used for company discounts.
Contact person's email
Employee (ID or name) who initiated an update request
Identifier of the logged in user who initiated the request. This could be from either fabric Identity service or an external Identity service.
Discounted amount for the given quantity
Total quantity invoiced. If customer placed order for 10 quantity of an item and only 2 got shipped, then 2 is the invoiceQuantity
.
Promotion code used by shoppers to take advantage of an ongoing promotion.
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.
Promotion name
Number of discounted items in an order such as buy 2 get 1 free. In this case 1 is the discounted quantity.
Indicates whether the discount is in amount or percentage
Value corresponding to unit
Employee (ID or name) who initiated the request
Recalculated total fee, calculated as orderedQuantity* itemFeeTotal
Tax amount
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Three-letter currency code as defined by ISO-4217
System-generated amount from Invoice service based on requested amount
Applied tax name
Rate
Rate type
Tax code applied
Total payment captured by fabric Invoice service. If merchant is using third-party service, then this amount will be null. For partial payment scenarios, this value will be different from orderTotal
.
Recalculated order discount
24-character system-generated order ID
Order released time (UTC). When an order is placed, its status is On Hold by default and the duration of hold may vary from merchant to merchant (~1 min). After the hold period, the order is released from hold.
Recalculated orderSubtotal - summationOfAll(itemSubTotal)
Total amount to be charged for the order = orderSubTotal - orderDiscountTotal + orderFeeTotal + orderTaxTotal
Merchant-defined order creation time (UTC). It is mandatory in the request body of Create Order endpoint - POST /orders
.
System-generated total discount, auto-filled by Orders service when the order is placed. This is saved for reference in case the value changes later.
System-generated total fees, auto-filled by Orders service when the order is placed
System-generated order total, auto-filled by Orders service when the order is placed. This is saved for reference in case the orderTotal
changes later.
System-generated order subtotal, auto-filled by Orders service when the order is placed. This is saved for reference in case the value changes later.
System-generated total tax, auto-filled by Orders service when the order is placed
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
An integer representing the number of payment authorization attempts.
Amount authorized to be debited from the given paymentMethod
Address details
Address line 1
City name
ISO 3166-1 alpha-2 based country code
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.
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.
Postal or ZIP code
Region or state
Address type
Address line 2
Address line 3
Address line 4
Contact person's email
Amount charged to the given paymentMethod
Three-letter currency code as defined by ISO-4217
true: Payment is final capture. false: Payment is not a final capture.
true: Payment is partial capture. false: Payment is full capture.
System-generated time when payment was captured at shipment. In case of payment captured at checkout, this is a merchant-defined value given during order creation.
A sequential or incremental counter associated with a payment for an order. Applicable in refund scenarios to identify the specific payment for refund.
Details of payment mode and payment identifiers
Last 4 digits of the card
Card expiration month
Card expiration year
System-generated UUID referenced internally for Invoice and Orders services.
Merchant provided unique identifier for a payment based on payment connector. When omitted, it is a fabric-generated UUID.
Payment details
Transaction amount for the payment operation
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Payment details
Payment info
Merchant-defined custom attributes. This is a placeholder for additional info (in key: value pairs).
Error details
Response code such as success, OK, or failure
Payment status such as Authorized, Captured, etc.
Transaction ID such as the point-of-sale system's version of the orderId
.
Transaction time (UTC) when the payment was successful
Status code for payment. There are no pre-defined values; possible values are 200, 400, 402, etc.
ID provided by payment gateway in response to payment operation
Merchant-provided unique identifier for a payment based on payment connector. When omitted, this value will be generated by fabric in UUID format.
ID generated by fabric to uniquely identify the payment log
Payment reference log ID with which this record is associated
Payment status such as Authorized, Captured, etc.
Transaction type such as VOID, CAPTURED, REDUND, etc.
Payment method such as PayPal or credit card
Payment provider
Payment status. There are no pre-defined values; possible values are Paid, Partially Paid, Authorized, and Error.
An integer representing the number of payment reauthorization attempts.
Merchant-defined refund amount
Optionally used as reference, for orders created from Point-of-Sale systems
Merchant-defined cashier ID during order creation
Unique value to identify ship-from or Buy Online Pickup from Store location. This must be the locationNumber stored in the fabric Location service.
Merchant-defined register ID during order creation
Transaction ID such as the Point-of-Sale system's version of the orderId
.
Return total of order, for return scenarios, calculated as summationOfAll(itemReturnTotal)
System-generated invoiced amount for the return request
Unique, sequential or incremental counter for return request
Merchant-defined total refund amount for the return request
Human-readable brief description based on statusCode
Order subtype, for further classification
IOS
, ANDROID
, INTERNATIONAL
Recalculated total tax on order summationOfAll(itemTaxTotal)+summationOf(tax[].value)
Order type. It is critical for order life cycle as it indicates the workflow that varies with the type. For example, Storefront orders have a different workflow than Call Center orders. fabric Orders service offers standard configurations for Storefront, Call Center, Point of Sale, iOS, Android, and International.
WEB
, CSC
, MOBILE_APP
, POS
Time of last update to order (UTC)
Was this page helpful?
curl --request GET \
--url https://api.fabric.inc/v3/orders/{orderId} \
--header 'Authorization: Bearer <token>' \
--header 'x-fabric-channel-id: <x-fabric-channel-id>' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>'
{
"adjustmentTotal": 123.45,
"adjustments": [
{
"adjustmentCounter": 1,
"amount": 2.4,
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"cancelQuantity": 2,
"invoiceQuantity": 10,
"notes": "Any additional info",
"quantity": 2,
"reasonCode": "RFC",
"returnQuantity": 1,
"subReasonCode": "Late shipping"
}
],
"allocatedAt": "2022-05-12T09:30:31.198Z",
"appeasementTotal": 12.34,
"appeasements": [
{
"amount": 34.56,
"appeasementCounter": 1,
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"invoicedAmount": 34.56,
"payments": [
{
"paymentCounter": 1,
"refundAmount": 34.56
}
],
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping"
}
],
"attributes": {
"fraudCheckStatus": "UPDATED",
"loyaltyStatus": "N"
},
"auditLogs": [
{
"amount": 2.4,
"attributes": {
"key": "value"
},
"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"
}
]
}
],
"cancelTotal": 12.34,
"cancelledAt": "2022-05-12T09:30:31.198Z",
"cartId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"channelId": "12",
"createdAt": "2022-05-12T09:30:31.198Z",
"currency": "USD",
"customer": {
"accountId": "62272e917b12209e68751d94",
"company": "Demo Inc",
"email": "test@example.com",
"employeeId": "62272e917b12209e68751d94",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"userId": "62272e917b12209e68751d94"
},
"discounts": [
{
"amount": 2.99,
"invoiceQuantity": 10,
"promotionCode": "HNY2022",
"promotionId": "HNY2022",
"promotionName": "New Year",
"quantity": 1,
"unit": "AMOUNT_OFF",
"value": 10
}
],
"employeeId": "43278",
"erroredFields": [
{
"amended": false,
"errorMessage": "Invalid email address",
"fieldName": "shipInfo.shipToAddress.email"
}
],
"feeTotal": 12.34,
"fees": [
{
"amount": 34.56,
"attributes": {},
"currency": "USD",
"invoicedAmount": 34.56,
"name": "STATE",
"rate": 10,
"rateType": "PERCENTAGE",
"taxCode": "FR01"
}
],
"invoiceTotal": 12.34,
"items": [
{
"adjustments": [
{
"adjustmentCounter": 1,
"amount": 2.4,
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"cancelQuantity": 2,
"invoiceQuantity": 10,
"notes": "Any additional info",
"quantity": 2,
"reasonCode": "RFC",
"returnQuantity": 1,
"subReasonCode": "Late shipping"
}
],
"appeasementTotal": 5.5,
"appeasements": [
{
"amount": 34.56,
"appeasementCounter": 1,
"attributes": {
"number": "XlQZTmFDFtPFGMxJP6oiAqN3vo+qKZ"
},
"invoicedAmount": 34.56,
"payments": [
{
"paymentCounter": 1,
"refundAmount": 34.56
}
],
"reasonCode": "Incorrect Item",
"subReasonCode": "Late shipping"
}
],
"attributes": {
"colorCode": "001",
"isDonation": "false",
"style": "570223020"
},
"backOrderedQuantity": 10,
"cancelledAmount": 12.4,
"cancelledQuantity": 10,
"channelId": "WHBM",
"currency": "USD",
"deliveredQuantity": 10,
"discounts": [
{
"amount": 2.99,
"invoiceQuantity": 10,
"promotionCode": "HNY2022",
"promotionId": "HNY2022",
"promotionName": "New Year",
"quantity": 1,
"unit": "AMOUNT_OFF",
"value": 10
}
],
"employeeId": "5345HJH",
"exchangeQuantity": 13,
"fees": [
{
"amount": 34.56,
"attributes": {},
"currency": "USD",
"invoiceQuantity": 10,
"name": "STATE",
"quantity": 12,
"refundAmount": 21.5,
"taxCode": "FR01"
}
],
"hasInfiniteConsent": true,
"invoiceTotal": 800,
"invoicedQuantity": 10,
"isBackorder": true,
"isDonation": true,
"isExchangeItem": true,
"isGifting": true,
"isPreorder": true,
"itemAdjustmentTotal": 123.45,
"itemDiscountsTotal": 80,
"itemFeeTotal": 200,
"itemId": 1234,
"itemName": "Item",
"itemShippingTotal": 10,
"itemSubtotal": 600,
"itemSubtype": "Borderfree",
"itemTaxTotal": 80,
"itemTotal": 800,
"itemUnitPrice": 10,
"lineItemId": "d538b1f1-0e45-43c6-bfc6-9666fc1188ca",
"lineItemNumber": 1,
"lineOrderStatus": "VALID",
"notes": [
{
"createdAt": "2022-05-12T09:30:31.198Z",
"notes": "Fragile - handle with care",
"user": "62272e917b12209e68751d94"
}
],
"orderedQuantity": 60,
"orderedQuantityToShip": 10,
"originalDiscounts": 50,
"originalFeeTotal": 300,
"originalItemSubtotal": 800,
"originalItemTotal": 500,
"originalShippingTotal": 80,
"originalTaxTotal": 90,
"parentLineItemNumber": 12,
"pendingExchangeQuantity": 12,
"pendingReturnQuantity": 10,
"pendingShippedBackOrderQuantity": 10,
"processingReturnQuantity": 10,
"quantityInStatus": {
"cancelled": 10,
"created": 10,
"delivered": 10,
"hold": 10,
"pendingShipped": 10,
"returned": 10,
"shipped": 10
},
"refundAmount": 21.5,
"rejectedReturnQuantity": 10,
"reshippedQuantity": 10,
"returnedQuantity": 10,
"returns": [
{
"exchangeLineItemId": "62f3dfc438bcab1951be0a19",
"fees": [
{
"amount": 34.56,
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"invoicedAmount": 11.29,
"isExchangeItemReturned": true,
"reasonCode": "Incorrect item",
"refundAmount": 11.29,
"refunds": [
{
"amount": 34.56,
"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": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"shippedQuantity": 10,
"sku": "P1234",
"taxCode": "FR01",
"taxDetails": [
{
"amount": 34.56,
"attributes": {},
"currency": "USD",
"name": "STATE",
"rate": 10,
"rateType": "PERCENTAGE",
"taxCode": "FR01"
}
],
"type": "WEB_SHIP",
"uom": "EA",
"vendorId": "P1234"
}
],
"notes": [
{
"createdAt": "2022-05-12T09:30:31.198Z",
"notes": "Fragile - handle with care",
"user": "62272e917b12209e68751d94"
}
],
"orderDiscount": 1.23,
"orderId": "5349b4ddd2781d08c09890f4",
"orderNumber": "309019176",
"orderReleasedAt": "2022-05-12T09:30:31.198Z",
"orderSubtotal": 123.45,
"orderTotal": 146.9,
"orderedAt": "2022-05-12T09:30:31.198Z",
"originalDiscount": 1.45,
"originalFeeTotal": 12.34,
"originalOrderTotal": 146.9,
"originalSubtotal": 113.45,
"originalTaxTotal": 12.34,
"payments": [
{
"attributes": {
"captureCurrencyCode": "USD",
"payerId": "M7AWTK3YK3B46",
"referenceId": "4DY41894J2904533S"
},
"authorizationAttempts": 0,
"authorizedAmount": 123.2,
"billToAddress": {
"addressLine1": "123 Main St.",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"city": "Seattle",
"countryCode": "US",
"email": "test@example.com",
"latitude": 47.6205,
"longitude": -122.3493,
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"postalCode": "98121",
"region": "WA",
"type": "Home"
},
"chargedAmount": 60,
"currency": "USD",
"isFinalCapture": false,
"isPartialCapture": false,
"paidAt": "2022-01-27T16:15:58-05:00",
"paymentCounter": 1,
"paymentIdentifier": {
"cardIdentifier": "3456",
"expirationMonth": "12",
"expirationYear": "2029",
"fabricPaymentReference": "f886c96c-5f65-11ed-9b6a-0242ac120002",
"paymentId": "62272e917b12209e68751d94"
},
"paymentLogs": [
{
"amount": -12.4,
"attributes": {
"key": "value"
},
"data": {
"body": {
"attributes": {
"key": "value"
},
"errors": [
{
"key": "value"
}
],
"responseCode": "OK",
"status": "Authorized",
"transactionId": "328942333412",
"transactionTimestamp": "2022-04-10T23:00:45:12.111Z"
},
"paymentStatusCode": "200"
},
"id": "328942333412",
"paymentId": "328942333412",
"paymentLogId": "328942333412",
"paymentLogRefId": "328942333412",
"status": "Authorized",
"type": "REFUND"
}
],
"paymentMethod": "CREDIT_CARD",
"paymentProvider": "stripe",
"paymentStatus": "Paid",
"paymentToken": {
"paymentType": "VISA",
"token": "pi_34tr6787rt"
},
"reauthorizationAttempts": 0,
"refundAmount": 21.5
}
],
"retail": {
"cashierId": "C-123",
"locationNumber": 334,
"registerId": "113",
"transactionId": "328942333412"
},
"returnTotal": 12.34,
"returns": [
{
"fees": [
{
"amount": 34.56,
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"invoicedAmount": 11.29,
"paymentCounterRefundDetails": [
{
"amount": 34.56,
"paymentCounter": 1
}
],
"refunds": [
{
"amount": 34.56,
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"returnCounter": 1,
"totalRefundAmount": 11.29
}
],
"shipInfo": [
{
"attributes": {
"giftMessage": "[]"
},
"discounts": [
{
"amount": 2.99,
"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",
"isInvoiced": true,
"locationNumber": "123",
"pickups": [
{
"email": "test@example.com",
"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.",
"addressLine2": "Suite 100",
"addressLine3": "Seventh floor",
"addressLine4": "Attention: Pat E. Kake",
"city": "Seattle",
"countryCode": "US",
"email": "test@example.com",
"latitude": 47.6205,
"longitude": -122.3493,
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
},
"postalCode": "98121",
"region": "WA",
"type": "Home"
},
"shipToDiscount": 12.6,
"shipToId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"shipToPrice": 20,
"shipToTaxTotal": 12.6,
"shipToType": "SHIP_TO_ADDRESS",
"shipToUnitPrice": 20,
"shipmentInstructions": "Handle with care",
"taxCode": "FR01",
"taxDetails": [
{
"amount": 34.56,
"attributes": {},
"currency": "USD",
"name": "STATE",
"rate": 10,
"rateType": "PERCENTAGE",
"taxCode": "FR01"
}
]
}
],
"statusCode": "ORDER_CREATED",
"statusDescription": "Order Created",
"subtype": "INTERNATIONAL",
"taxTotal": 12.34,
"type": "WEB",
"updatedAt": "2022-05-12T09:30:31.198Z",
"version": 2
}