Create Shipment
Creates shipment. An event is generated at this point to Invoice service for invoice creation. The response includes shipmentId, which is required for subsequent calls such as GET /shipment/{shipmentId}
and PUT /shipment/{shipmentId}
.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Body
Shipment and reshipment details
Shipment number
"78974156816152"
Allocation ID for an order, generated from allocation service
"112345678912340"
fabric-generated Invoice ID
"5674156816152"
Purchase order number (generally, vendor-generated)
"1125"
Vendor ID
"56"
Shipment status code
SHIPMENT_CREATED
, SHIPMENT_CANCELLED
, PICKUP_CREATED
, PICKUP_COMPLETED
, SHIPMENT_RETURN_PENDING
, SHIPMENT_RETURN_RECEIVED
, SHIPMENT_PARTIALLY_DELIVERED
, SHIPMENT_DELIVERED
"SHIPMENT_CREATED"
Shipment type
STANDARD
, RESHIP
, RETURN
, SCRATCH
, PICKUP
"STANDARD"
Reason code for reshipment
"Order went missing"
Shipping time
"2022-06-06T07:58:30.996Z"
Location number from the location service
"132412"
Location type based on location service such as store, distribution center (DC)
"DC"
Total number of cartons
2
Main tracking number, to track fulfillment of all the orders
"TX112345678"
Ship-to ID
"1"
Details of delivery address
Shipment attributes
Response
Ok
Shipment details
24-character fabric-generated unique ID of shipment
"627963716b19511e8a3a631b"
Shipment number (external)
"78974156816152"
fabric-generated Invoice ID
"5674156816152"
Allocation ID for an order, generated from allocation service
"112345678912340"
Order number. It's usually generated by another system, such as an external checkout system.
["112345678912340", "112345678912340"]
Purchase order number (generally, vendor-generated)
"1125"
Vendor ID
"56"
Shipment status code
SHIPMENT_CREATED
, SHIPMENT_CANCELLED
, PICKUP_CREATED
, PICKUP_COMPLETED
, SHIPMENT_RETURN_PENDING
, SHIPMENT_RETURN_RECEIVED
, SHIPMENT_PARTIALLY_DELIVERED
, SHIPMENT_DELIVERED
"SHIPPED"
shipment type
STANDARD
, RESHIP
, RETURN
, SCRATCH
, PICKUP
"STANDARD"
Reason code for reshipment
"Order went missing"
Time of shipping
"2022-06-06T07:58:30.996Z"
location number from location service to get exact address.
"132412"
Location type based on location service such as store, distribution center (DC)
"DC"
Total number of cartons
2
Main tracking number, to track fulfillment of all the orders
"TX112345678"
Ship-to ID refers to item's delivery address
"1"
Details of delivery address
details of scratched items
Time of shipment creation
"2022-06-06T07:58:30.996Z"
Time of last update
"2022-06-06T07:58:30.996Z"
Details of audit logs
Attribute details for additional information