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
- 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
Find shipments
As merchants, you may want to view shipments of specific statuses, monitor progress of deliveries, and proactively manage situations to ensure timely deliveries.
This endpoint enables you to easily search for shipments based on the specified criteria in the request body. You can refine your search by specifying limit
and offset
. When they’re not specified, by default you will get up to 10 records. In addition, you can sort
results.
curl --request POST \
--url https://api.fabric.inc/v3/shipments/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-fabric-channel-id: <x-fabric-channel-id>' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
--data '{
"filters": [
{
"condition": "EQ",
"field": "shipment.shipmentNum",
"value": "Shipment_112255"
},
{
"condition": "IN",
"field": "shipment.cartons.cartonNum",
"values": [
"Tracking_*"
]
}
],
"sort": "-shipment.shipDate"
}'
{
"data": [
{
"allocationId": "6413e3d3fd03a35efccb426e",
"auditLogs": [
{
"auditId": "a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111",
"auditType": "CANCEL",
"auditedAt": "2023-03-12T09:24:54.804Z",
"employeeId": "6227",
"lineItemId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"note": "Note",
"reasonCode": "Scratched item",
"source": "POS",
"subReasonCode": "Scratched item",
"updatedFields": [
{
"fieldName": "UOM",
"fieldOriginalValue": "PK"
}
]
}
],
"cartons": [
{
"cartonNumber": "1",
"cartonType": "Package",
"estimatedDeliveryDate": "2023-04-26T07:58:30.996Z",
"estimatedShipmentDate": "2023-03-25T07:58:30.996Z",
"items": [
{
"fees": [
{
"amount": 34.56,
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"giftCards": [
{
"amount": 50,
"giftCardActivatedAt": "2023-04-26T07:58:30.996Z",
"giftCardActivationRequestedAt": "2023-03-26T07:58:30.996Z",
"giftCardNumber": "453456765",
"giftCardStatus": "ACTIVE"
}
],
"itemId": 100023,
"lineItemId": "1",
"orderId": "6413e370cb0dc859b6c0dcb0",
"orderNumber": "309020213",
"orderedQuantity": 2,
"refundAmount": 10,
"returnQuantity": 1,
"segment": "segment",
"shipmentLineItemId": "607f1f77bcf86cd799439011",
"shippedQuantity": 2,
"sku": "SKU0023",
"uom": "EA",
"vendorId": "vend12346667"
}
],
"promisedDeliveryDate": "2023-03-26T07:58:30.996Z",
"shipmentCarrier": "FEDEX",
"shipmentMethod": "ground",
"tracking": [
{
"event": "picked up",
"eventId": "627963716b19511e8a3a631b",
"eventRecordedAt": "2019-09-30T07:58:30.996Z",
"location": "Reno, NV",
"notes": {
"description": "Shipment picked up"
},
"shipmentCarrier": "FEDEX"
}
],
"trackingNumber": "1Z999AA10123456784",
"trackingURL": "https://example.com/tracking",
"weight": "500 grams"
}
],
"createdAt": "2023-04-06T07:58:30.996Z",
"invoiceId": "63ef4360aafa8a7f5247fe48",
"locationNumber": "132412",
"locationType": "DC",
"masterTrackingNumber": "TX112345678",
"orderNumbers": [
"309020213, 459020213"
],
"poNumber": "1125",
"recipients": [
{
"email": "support@example.inc",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
}
],
"reshipmentReasonCode": "Order is missing",
"scratchedItems": [
{
"itemId": 100043,
"lineItemId": "2",
"orderId": "6413e370cb0dc859b6c0dcb0",
"quantity": 1,
"reasonCode": "ReasonCode23454",
"sku": "SKU00043",
"subReasonCode": "SubReasonCode23242",
"uom": "EA"
}
],
"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"
},
"shipToId": "1",
"shipmentId": "627963716b19511e8a3a631b",
"shipmentNumber": "78974156816152",
"shippedAt": "2023-04-06T07:58:30.996Z",
"statusCode": "SHIPMENT_CREATED",
"subtype": "COD",
"totalCartons": 2,
"type": "STANDARD",
"updatedAt": "2023-04-06T07:58:30.996Z",
"vendorId": "56",
"version": 2
}
],
"pagination": {
"count": 1000,
"limit": 10,
"offset": 1
}
}
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
Query Parameters
The number of records to skip before returning all records. For example, offset=20, limit=10
returns records 21-30.
Maximum number of records per page.
10
Body
Sort and filter criteria for shipment search
The criteria used to find shipments by a single value. Condition between field
and value
is anything except IN and NIN when valueSearchFilter
is used.
Filter conditions. EQ (Equal to): Searches for exact match. NEQ (Not equal to): Searches by excluding the specified value. IN: Search for multiple values. NIN (Not IN): Excludes the specified values in the search. LT (Less than): Searches for values that are less than the specified value. GT (Greater than): Search for values that are greater than the specified value. LTE (Less than or equal to): Searches for values that are less than or equal to the specified value. GTE (Greater than or equal to): Searches for values that are greater than or equal to the specified value.
EQ
, NEQ
, IN
, NIN
, LT
, GT
, LTE
, GTE
"LT"
Field name
"shipment.shipmentNum"
Group name
"GroupA"
Search criteria using a single value
"ORDER_CREATE"
Property name on which response needed to be sorted. Note: -
refers to descending and +
refers to ascending order
"-shipment.shipDate"
Response
Shipment search response
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
Details for updating shipment
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"
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"
Additional info, if any
"Note"
Merchant-defined reason code, varies from merchant to merchant
"Scratched item"
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"
Carton details
Carton details
Merchant-defined unique identifier. This can optionally be generated by fabric by using the resource generator feature of the Configuration service.
"1"
Carton type
"Package"
Estimated delivery date given by carrier based on several factors including selected shipping method and delivery location (UTC).
"2023-04-26T07:58:30.996Z"
Estimated ship date given by seller based on availability of items, their processing time, delivery location, and selected shipping method (UTC).
"2023-03-25T07:58:30.996Z"
Carton item details
Details of item in shipment
Fee details
Return fee details
Merchant-defined return amount
34.56
Fee name
"RETURN_FEE"
Merchant-defined return reason
"Return fee"
Return fee type
TAX
, DISCOUNT
, FEE
, ITEM
, ADJUSTMENT
"FEE"
Gift card details
Gift card details
Gift card amount
50
Time gift card was activated (UTC)
"2023-04-26T07:58:30.996Z"
Time of placing gift card activation request (UTC)
"2023-03-26T07:58:30.996Z"
Gift card number
"453456765"
Gift card status
PENDING_ACTIVATION
, ACTIVE
, FAILED
"ACTIVE"
Unique item identifier
100023
Unique number assigned by merchant to identify each item in an order. When this value isn't provided, fabric will auto generate (in UUID format) during order creation.
"1"
24-character order ID generated in the response of Create Order endpoint - POST /orders
"6413e370cb0dc859b6c0dcb0"
Merchant-defined order identifier
"309020213"
Ordered quantity of given item
2
Refund amount for returned items
10
Returned quantity of given item
1
Item segment
"segment"
Unique number assigned by merchant to identify item in a shipment. When this value isn't provided, fabric will auto generate it (UUID format) during shipment.
"607f1f77bcf86cd799439011"
Shipped quantity of given item
2
Stock keeping unit (SKU), unique item identifier
"SKU0023"
Unit in which a product is measured or sold. UOM can be set to 'each' (EA) or GAL (Gallon), DZ (Dozen), etc.
"EA"
Vendor ID. Applicable in dropshipping scenarios to indicate the vendor responsible for the given item.
"vend12346667"
Promised delivery date given by seller (UTC)
"2023-03-26T07:58:30.996Z"
Shipment carrier name
"FEDEX"
Shipment method
"ground"
Carton tracking details
Shipment tracking details
Shipment-specific event. Mandatory in the request body of Update shipment tracking - POST /shipments/actions/update-tracking
endpoint
"picked up"
Event ID provided by carrier
"627963716b19511e8a3a631b"
Time event was recorded (UTC)
"2019-09-30T07:58:30.996Z"
Delivery location
"Reno, NV"
Attributes to save any additional info
Attributes to save any additional info
"{\"description\":\"Shipment picked up\"}"
{ "description": "Shipment picked up" }
Shipment carrier
"FEDEX"
Carton tracking number. There is a single tracking number per carton
"1Z999AA10123456784"
Carton tracking URL
"https://example.com/tracking"
Carton weight
"500 grams"
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.
"132412"
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
Shipment recipient details
Recipient's email
"support@example.inc"
The reshipment reason code.
"Order is missing"
Details of scratched items
Customer may cancel allocation line items as part of the shipment post request. In fabric Shipments service, this is called 'Scratched Items' or 'scratchedItems'.
Reason code for scratch
"ReasonCode23454"
Unique item identifier
100043
Unique number assigned by merchant to identify each item in an order. When this value isn't provided, fabric will auto generate it (in UUID format) during order creation.
"2"
24-character ID displayed in the response of Create Order endpoint - POST /orders
"6413e370cb0dc859b6c0dcb0"
Number of scratched items
1
Stock keeping unit (SKU), unique item identifier
"SKU00043"
Sub-reason code
"SubReasonCode23242"
Unit in which a product is measured or sold. UOM can be set to 'each' (EA) or GAL (Gallon), DZ (Dozen), etc.
"EA"
Address details
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
"test@example.com"
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"
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"
Pagination response
Total number of search results
1000
Maximum number of records per page.
1 <= x <= 100
10
The number of records to skip before returning all records. For example, offset=20, limit=10
returns records 21-30.
x >= 0
1
Was this page helpful?
curl --request POST \
--url https://api.fabric.inc/v3/shipments/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-fabric-channel-id: <x-fabric-channel-id>' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
--data '{
"filters": [
{
"condition": "EQ",
"field": "shipment.shipmentNum",
"value": "Shipment_112255"
},
{
"condition": "IN",
"field": "shipment.cartons.cartonNum",
"values": [
"Tracking_*"
]
}
],
"sort": "-shipment.shipDate"
}'
{
"data": [
{
"allocationId": "6413e3d3fd03a35efccb426e",
"auditLogs": [
{
"auditId": "a05b72dc-78d8-4ea4-90fc-2fe6a1fe1111",
"auditType": "CANCEL",
"auditedAt": "2023-03-12T09:24:54.804Z",
"employeeId": "6227",
"lineItemId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"note": "Note",
"reasonCode": "Scratched item",
"source": "POS",
"subReasonCode": "Scratched item",
"updatedFields": [
{
"fieldName": "UOM",
"fieldOriginalValue": "PK"
}
]
}
],
"cartons": [
{
"cartonNumber": "1",
"cartonType": "Package",
"estimatedDeliveryDate": "2023-04-26T07:58:30.996Z",
"estimatedShipmentDate": "2023-03-25T07:58:30.996Z",
"items": [
{
"fees": [
{
"amount": 34.56,
"name": "RETURN_FEE",
"reason": "Return fee",
"type": "FEE"
}
],
"giftCards": [
{
"amount": 50,
"giftCardActivatedAt": "2023-04-26T07:58:30.996Z",
"giftCardActivationRequestedAt": "2023-03-26T07:58:30.996Z",
"giftCardNumber": "453456765",
"giftCardStatus": "ACTIVE"
}
],
"itemId": 100023,
"lineItemId": "1",
"orderId": "6413e370cb0dc859b6c0dcb0",
"orderNumber": "309020213",
"orderedQuantity": 2,
"refundAmount": 10,
"returnQuantity": 1,
"segment": "segment",
"shipmentLineItemId": "607f1f77bcf86cd799439011",
"shippedQuantity": 2,
"sku": "SKU0023",
"uom": "EA",
"vendorId": "vend12346667"
}
],
"promisedDeliveryDate": "2023-03-26T07:58:30.996Z",
"shipmentCarrier": "FEDEX",
"shipmentMethod": "ground",
"tracking": [
{
"event": "picked up",
"eventId": "627963716b19511e8a3a631b",
"eventRecordedAt": "2019-09-30T07:58:30.996Z",
"location": "Reno, NV",
"notes": {
"description": "Shipment picked up"
},
"shipmentCarrier": "FEDEX"
}
],
"trackingNumber": "1Z999AA10123456784",
"trackingURL": "https://example.com/tracking",
"weight": "500 grams"
}
],
"createdAt": "2023-04-06T07:58:30.996Z",
"invoiceId": "63ef4360aafa8a7f5247fe48",
"locationNumber": "132412",
"locationType": "DC",
"masterTrackingNumber": "TX112345678",
"orderNumbers": [
"309020213, 459020213"
],
"poNumber": "1125",
"recipients": [
{
"email": "support@example.inc",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
}
],
"reshipmentReasonCode": "Order is missing",
"scratchedItems": [
{
"itemId": 100043,
"lineItemId": "2",
"orderId": "6413e370cb0dc859b6c0dcb0",
"quantity": 1,
"reasonCode": "ReasonCode23454",
"sku": "SKU00043",
"subReasonCode": "SubReasonCode23242",
"uom": "EA"
}
],
"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"
},
"shipToId": "1",
"shipmentId": "627963716b19511e8a3a631b",
"shipmentNumber": "78974156816152",
"shippedAt": "2023-04-06T07:58:30.996Z",
"statusCode": "SHIPMENT_CREATED",
"subtype": "COD",
"totalCartons": 2,
"type": "STANDARD",
"updatedAt": "2023-04-06T07:58:30.996Z",
"vendorId": "56",
"version": 2
}
],
"pagination": {
"count": 1000,
"limit": 10,
"offset": 1
}
}