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
Body
Request payload to create a shipment for an order.
Unique shipment identifier defined by the merchant.
78974156816152
Unique shipment identifier defined by the merchant. This value can be used to track or reconcile shipments in external systems and serves as a reference between fabric and the merchant's order management or fulfillment system.
"123k4h123k"
Merchant-defined purchase order number associated with the shipment.
1125
Vendor identifier. In dropshipping scenarios, indicates the vendor responsible for fulfilling the shipment.
56
Current status of the shipment.
SHIPMENT_CREATED
, SHIPMENT_UPDATED
, SHIPMENT_CANCELLED
, PICKUP_CREATED
, PICKUP_COMPLETED
, SHIPMENT_RETURN_PENDING
, SHIPMENT_RETURN_RECEIVED
, SHIPMENT_PARTIALLY_DELIVERED
, SHIPMENT_DELIVERED
, SHIPMENT_ERROR
"SHIPMENT_CREATED"
Type of shipment.
STANDARD
, RESHIP
, RETURN
, SCRATCH
, PENDING_RETURN
, PICKUP
, TRANSFER
"STANDARD"
Free-form text to provide an additional classification for the shipment, if required.
"COD"
Code indicating the reason for a reshipment.
"Order is missing"
UTC timestamp indicating when the shipment was created or shipped.
"2023-04-06T07:58:30.996Z"
Identifier of the ship-from location. Must match the locationNumber
stored in the fabric Location service.
132412
Type of the ship-from location (for example, distribution center (DC) or warehouse). Must match the value stored in the fabric Location service.
"DC"
Total number of cartons included in the shipment.
2
Carrier-provided master tracking number that applies to all cartons in the shipment.
"TX112345678"
Ship-to identifier generated in the response of the Create Shipping endpoint in the Shipping service.
"sg6683620405"
Address details
List of recipients for the shipment.
Merchant-defined custom attributes, represented as key-value pairs. Useful for storing additional information.
{ "attribute1": "value" }
Details of cartons included in the shipment.
Details of items marked as scratched from the shipment.
Response
Created
Shipment details
The current version of the shipment document. This integer indicates the number of times the shipment has been updated by any operation.
2
System-generated allocation ID (UUID) from the Create allocation endpoint of fabric Allocation service. It refers to the given shipment. Note: Allocation occurs prior to Shipment Creation. allocationId
is mandatory to create a Shipment.
"6413e3d3fd03a35efccb426e"
Audit log details
Carton details
Shipment creation time (UTC)
"2023-04-06T07:58:30.996Z"
Invoice ID generated from fabric Invoice service during shipment creation. Note: Invoices are only created for Shipments where merchants have payment Capture at Shipment feature enabled. The value will be “Null” if merchants don't have “Capture at Shipment” feature enabled.
"63ef4360aafa8a7f5247fe48"
Unique value to identify ship-from location. This must be the locationNumber
stored in the fabric Location service.
"WH334"
Location type, such as distribution center (DC) or warehouse
"DC"
Master tracking number for all cartons in the shipment
"TX112345678"
List of order numbers associated with a shipment. Note: Currently, a shipment can be associated with only one order. In the future, this property will support a scenario where a customer places a second order for the same product immediately after their first order. Multiple order numbers can be linked to one shipment in such cases.
Merchant-defined purchase order number
"1125"
Recipient details
The reshipment reason code.
"Order is missing"
Details of scratched items
Address details
Ship-to ID generated in the response of Create shipping endpoint of Shipping service
"1"
System-generated shipment ID (UUID)
"627963716b19511e8a3a631b"
Merchant-defined unique shipment identifier. Note: It can be optionally generated by fabric by using resource generator feature in the Configuration service
"78974156816152"
Unique shipment identifier defined by the merchant. This value can be used to track or reconcile shipments in external systems and serves as a reference between fabric and the merchant's order management or fulfillment system.
"123k4h123k"
Order shipment time (UTC)
"2023-04-06T07:58:30.996Z"
Current shipment status (fabric-defined codes). Note: For standard shipments, the status would be SHIPMENT_CREATED. For pickup shipment, the initial status would be PICKUP_CREATED and once the customer picks up, the status changes to PICKUP_COMPLETED
SHIPMENT_CREATED
, SHIPMENT_UPDATED
, SHIPMENT_CANCELLED
, PICKUP_CREATED
, PICKUP_COMPLETED
, SHIPMENT_DELIVERED
, SHIPMENT_RETURN_PENDING
, SHIPMENT_RETURN_RECEIVED
, SHIPMENT_PARTIALLY_DELIVERED
"SHIPMENT_CREATED"
Shipment subtype, for another layer of classification. There are no pre-defined values; the possible value is Cash On Delivery (COD)
"COD"
Total number of cartons in the given shipment. There can be only one carton per trackingNumber.
2
Shipment types
STANDARD
, RESHIP
, RETURN
, SCRATCH
, PENDING_RETURN
, PICKUP
, TRANSFER
"STANDARD"
Time of last update to shipment (UTC)
"2023-04-06T07:58:30.996Z"
Vendor ID. Applicable in dropshipping scenarios to indicate the vendor responsible for the given item.
"56"