Authentication v1
- Identity APIs
- User
- Address
- Auth
User Self Service APIs
- Introduction
- User Self Service APIs
- Authentication APIs
Experiences v2 (XM v2)
- XM
- Pages
- Global Components
- Menu
Experiences v1 (XM v1)
- XM
- Pages
- Global Components
- Menu
Product Catalog
- Product Catalog
- Category
- Product
- Attributes
- Bulk Import
Orders v2 (OMS v2)
- Order Management System
- Order
- Order Attribute
- Developer Guide
- Order Return
- Payment Status
- Package Tracking
- Cross Border
- Order Cancellation
- Appeasement
- Allocation
- Configuration
- Fraud Configuration
- Target Configuration
- Location
- Location Attribute
- Inventory Network
- Inventory
- Inventory Counter
- Inventory Bulk Operation
- Inventory Attribute
- Inventory Upload Log
- Shipment
- Shipping Method
- Webhook
- Notification
- Export
- Invoice
- Fraud
- Backorder Preorder Reservation
- List
Orders v1 (OMS v1)
- Order Management System
- Cart
- Bill To
- Ship To
- Wishlist
- Cart Decoupled
- Warehouse
- Inventory
- Attributes
- List
- Tax/Address Validate
- Shipping
- Payments
- Order
Offers v2
- Offers
- Developer Guide
- Promotion
- Price Kind
- Dynamic Pricing Engine
- Segment
- Coupon
- Coupon Codes
- Product
- Price List
- Attributes
- Item
- Price Guard
- Global Exclusion
- Upload Price CSV
- Pricing
- Redemption
- Exports
Offers v1
- Offers
- Login API
- Promotions
- Pricing
Subscriptions (SMT API)
- Subscriptions API
- Cancellation Reasons
- Subscription Discounts
- Subscriptions
- Subscribers
- Orders
Loyalty (Member)
- Member APIs
- Inquire
- Discounts
- Redeem
- Earn
- Members
Dropship
- Dropship API
- Shipments
- Products
- Invoices
- Connections
- Inventory
- Developer Guide
- Returns
- Orders
Cart API
- Cart
- Order Draft
- Attribute
- Adjustments
- Shipping
- Cart
Checkout API
- Checkout
- Checkout
Customer
- Core Concepts
- Customer Service
- Organization
- User Party
- Organization Group Addresses
- User Internal Party
- Organization Contracts
- Party
- Party Contracts
- Contracts
- User
- Search
- User Trait
- Organization Users
- Address
- User Address
- Trait
- Party Address
- Party Trait
- Organization Group Users
- Internal Party
- Contract Pricelist
- Internal Parties Party
- Account
- Party Account
- Organization Addresses
- Organization Groups
- Individual Addresses
- Users Organization
- Individual
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}
.
curl --request POST \
--url https://prod01.oms.fabric.inc/api/v2/shipment/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '{
"shipmentNum": "78974156816152",
"allocationId": "112345678912340",
"invoiceId": "5674156816152",
"poNumber": "1125",
"vendorId": "56",
"statusCode": "SHIPMENT_CREATED",
"type": "STANDARD",
"reshipmentReasonCode": "Order went missing",
"shipDate": "2022-06-06T07:58:30.996Z",
"locationNum": "132412",
"locationType": "DC",
"totalCartons": 2,
"masterTrackingNumber": "TX112345678",
"shipToId": "1",
"shipToAddress": {
"addressLine1": "888 Broadway",
"addressLine2": "505 suite",
"addressLine3": "<string>",
"addressLine4": "<string>",
"city": "New York",
"state": "NY",
"country": "USA",
"postalCode": "1003",
"type": "home",
"latitude": 134.13413,
"longitude": 757.0435
},
"recipient": [
{
"name": {
"first": "John",
"middle": "<string>",
"last": "Doe"
},
"email": "support@abc.inc",
"phone": {
"number": 10612345678,
"type": "MOBILE"
}
}
],
"cartons": [
{
"cartonNum": "1",
"cartonType": "Package",
"promisedDeliveryDate": "2022-05-26T07:58:30.996Z",
"estimatedShipDate": "2022-05-25T07:58:30.996Z",
"estimatedDeliveryDate": "2022-05-26T07:58:30.996Z",
"shipmentMethod": "ground",
"shipmentCarrier": "FEDEX",
"weight": "500 gram",
"trackingNumber": "1Z999AA10123456784",
"trackingURL": "https://fedex.com/tracking",
"trackingDetails": [
{
"event": "picked up",
"eventId": "627963716b19511e8a3a631b",
"timestamp": "2019-09-30T07:58:30.996Z",
"shipmentCarrier": "FEDEX",
"location": "Reno, NV",
"notes": {}
}
],
"items": [
{
"lineItemId": "1",
"itemId": "100023",
"sku": "SKU0023",
"orderId": "317736896",
"orderNumber": "507f1f77bcf86cd799439011",
"channelId": "12",
"segment": null,
"vendorId": "56",
"orderedQuantity": 2,
"shippedQuantity": 2,
"returnQuantity": 1,
"returnAmount": 10,
"fees": [
{
"type": "tax",
"value": 34.56,
"quantity": 12,
"refundAmount": 10.4
}
],
"giftCard": [
{
"giftCardNum": "453456765",
"amount": 50
}
],
"attributes": {},
"uom": null
}
]
}
],
"scratchedItems": [
{
"lineItemId": "2",
"itemId": "100043",
"sku": "SKU00043",
"quantity": 1,
"reasonCode": "<string>",
"subReasonCode": null,
"attributes": {},
"uom": null
}
],
"auditLogs": [
{
"auditType": "create",
"employeeId": "62272e917b12209e68751d94",
"auditTimestamp": "2022-05-12T09:24:54.804Z",
"source": "POS",
"note": "Note",
"attributes": {},
"updatedFields": [
{
"attributeName": "UOM",
"attributeOriginalValue": "PK"
}
]
}
],
"attributes": {}
}'
{
"shipmentId": "627963716b19511e8a3a631b",
"shipmentNum": "78974156816152",
"invoiceId": "5674156816152",
"allocationId": "112345678912340",
"orderNumber": [
"112345678912340",
"112345678912340"
],
"poNumber": "1125",
"vendorId": "56",
"statusCode": "SHIPPED",
"type": "STANDARD",
"reshipmentReasonCode": "Order went missing",
"shipDate": "2022-06-06T07:58:30.996Z",
"locationNum": "132412",
"locationType": "DC",
"totalCartons": 2,
"masterTrackingNumber": "TX112345678",
"shipToId": "1",
"shipToAddress": {
"addressLine1": "888 Broadway",
"addressLine2": "505 suite",
"addressLine3": "<string>",
"addressLine4": "<string>",
"city": "New York",
"state": "NY",
"country": "USA",
"postalCode": "1003",
"type": "home",
"latitude": 134.13413,
"longitude": 757.0435
},
"recipient": [
{
"name": {
"first": "John",
"middle": "<string>",
"last": "Doe"
},
"email": "support@abc.inc",
"phone": {
"number": 10612345678,
"type": "MOBILE"
}
}
],
"cartons": [
{
"cartonNum": "1",
"cartonType": "Package",
"promisedDeliveryDate": "2022-05-26T07:58:30.996Z",
"estimatedShipDate": "2022-05-25T07:58:30.996Z",
"estimatedDeliveryDate": "2022-05-26T07:58:30.996Z",
"shipmentMethod": "ground",
"shipmentCarrier": "FEDEX",
"weight": "500 gram",
"trackingNumber": "1Z999AA10123456784",
"trackingURL": "https://fedex.com/tracking",
"trackingDetails": [
{
"event": "picked up",
"eventId": "627963716b19511e8a3a631b",
"timestamp": "2019-09-30T07:58:30.996Z",
"shipmentCarrier": "FEDEX",
"location": "Reno, NV",
"notes": {}
}
],
"items": [
{
"shipmentLineItemId": "607f1f77bcf86cd799439011",
"orderId": "317736896",
"orderNumber": "507f1f77bcf86cd799439011",
"lineItemId": "1",
"itemId": "100023",
"sku": "SKU0023",
"channelId": "12",
"segment": null,
"vendorId": "56",
"orderedQuantity": 2,
"shippedQuantity": 2,
"returnQuantity": 1,
"returnAmount": 10,
"fees": [
{
"type": "tax",
"value": 34.56,
"quantity": 12,
"refundAmount": 10.4
}
],
"giftCard": [
{
"giftCardNum": "453456765",
"amount": 50,
"giftCardStatus": "ACTIVE",
"giftCardActiveRequestDate": "2022-05-26T07:58:30.996Z",
"giftCardActiveDate": "2022-06-26T07:58:30.996Z"
}
],
"attributes": {},
"uom": null
}
]
}
],
"scratchedItems": [
{
"orderId": "507f1f77bcf86cd799439012",
"lineItemId": "2",
"itemId": "100043",
"sku": "SKU00043",
"quantity": 1,
"reasonCode": "<string>",
"subReasonCode": "<string>",
"attributes": {},
"uom": null
}
],
"createdAt": "2022-06-06T07:58:30.996Z",
"updatedAt": "2022-06-06T07:58:30.996Z",
"auditLogs": [
{
"auditType": "create",
"employeeId": "62272e917b12209e68751d94",
"auditTimestamp": "2022-05-12T09:24:54.804Z",
"source": "POS",
"note": "Note",
"attributes": {},
"updatedFields": [
{
"attributeName": "UOM",
"attributeOriginalValue": "PK"
}
]
}
],
"attributes": {}
}
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
Line 1 of address
"888 Broadway"
Line 2 of address
"505 suite"
Line 3 of address
Line 3 of address
City of delivery
"New York"
State of delivery
"NY"
Country name
"USA"
Postal code
"1003"
Address type
"home"
Geo-latitude of delivery address
134.13413
Geo-longitude of delivery address
757.0435
Recipient details for shipment
Email address of primary contact for delivery
"support@abc.inc"
Carton details
Carton number for tracking
"1"
Carton type
"Package"
Promised delivery date
"2022-05-26T07:58:30.996Z"
Estimated shipping date
"2022-05-25T07:58:30.996Z"
Estimated delivery date
"2022-05-26T07:58:30.996Z"
Shipment method
"ground"
Shipment carrier
"FEDEX"
Shipment weight
"500 gram"
Courier tracking number for the carton
"1Z999AA10123456784"
Shipment tracking URL
"https://fedex.com/tracking"
Tracking details
Details of shipment tracking generated once shipment is picked up from store
Event status
"picked up"
24-character system-generated unique event ID
"627963716b19511e8a3a631b"
Time of event creation
"2019-09-30T07:58:30.996Z"
Shipment carrier name. Applicable in case of a different carrier
"FEDEX"
Current location
"Reno, NV"
Item details
Line item ID to identify item in the order
"1"
Item ID
"100023"
Item SKU
"SKU0023"
Order ID (fabric-generated)
"317736896"
Order number. It's usually generated by another system, such as an external checkout system.
"507f1f77bcf86cd799439011"
Sales channel ID
"12"
Segment associated with item
null
Vendor ID
"56"
Items ordered
2
Items shipped
2
Items returned
1
Return amount
10
Unit of measure
null
Details of scratched items
Line item ID to identify item in the order
"2"
Item ID
"100043"
Item SKU
"SKU00043"
Items ordered
1
Reason code for return
Sub-reason code for return
null
Details of scratched item
Additional attributes (if application) of scratched items
Unit of measure
null
Audit details
Audit type
"create"
Employee ID (store context)
"62272e917b12209e68751d94"
Time of audit
"2022-05-12T09:24:54.804Z"
Source of audit
"POS"
Notes related audit, for future reference
"Note"
Response
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
Line 1 of address
"888 Broadway"
Line 2 of address
"505 suite"
Line 3 of address
Line 3 of address
City of delivery
"New York"
State of delivery
"NY"
Country name
"USA"
Postal code
"1003"
Address type
"home"
Geo-latitude of delivery address
134.13413
Geo-longitude of delivery address
757.0435
Recipient details for shipment
Email address of primary contact for delivery
"support@abc.inc"
Carton details
Carton number to identify packages
"1"
Cartoon type
"Package"
Promised delivery date
"2022-05-26T07:58:30.996Z"
Estimated shipping date
"2022-05-25T07:58:30.996Z"
Estimated delivery date
"2022-05-26T07:58:30.996Z"
Shipment method
"ground"
Shipment carrier
"FEDEX"
Shipment weight
"500 gram"
Courier tracking number for the carton
"1Z999AA10123456784"
Shipment tracking URL
"https://fedex.com/tracking"
Shipment tracking details
Details of shipment tracking generated once shipment is picked up from store
Event status
"picked up"
24-character system-generated unique event ID
"627963716b19511e8a3a631b"
Time of event creation
"2019-09-30T07:58:30.996Z"
Shipment carrier name. Applicable in case of a different carrier
"FEDEX"
Current location
"Reno, NV"
Item details
Item details of a shipment
Line item ID of shipment
"607f1f77bcf86cd799439011"
Order ID (fabric-generated)
"317736896"
Order number. It's usually generated by another system, such as an external checkout system.
"507f1f77bcf86cd799439011"
Line item ID to identify item in the order
"1"
Item ID
"100023"
SKU of item
"SKU0023"
Sales channel ID
"12"
Segment associated with item
null
Vendor ID
"56"
Items ordered. Currently, there is no validation in place
2
Items shipped
2
Items returned
1
Return amount
10
Gift card details
Gift card number
"453456765"
Gift card amount
50
Gift card status
"ACTIVE"
Time of placing gift card activation request
"2022-05-26T07:58:30.996Z"
Time of gift card activation
"2022-06-26T07:58:30.996Z"
Unit of measure
null
details of scratched items
Shipment details of return items
Order ID (fabric-generated)
"507f1f77bcf86cd799439012"
Line item ID to identify item in the order
"2"
Item ID
"100043"
SKU number
"SKU00043"
Item quantity
1
Reason code for return
sub-reason code for return
Additional details of scratched item
Unit of measure
null
Time of shipment creation
"2022-06-06T07:58:30.996Z"
Time of last update
"2022-06-06T07:58:30.996Z"
Details of audit logs
Audit details
Audit type
"create"
Employee ID (store context)
"62272e917b12209e68751d94"
Time of audit
"2022-05-12T09:24:54.804Z"
Source of audit
"POS"
Notes related audit, for future reference
"Note"
Was this page helpful?
curl --request POST \
--url https://prod01.oms.fabric.inc/api/v2/shipment/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '{
"shipmentNum": "78974156816152",
"allocationId": "112345678912340",
"invoiceId": "5674156816152",
"poNumber": "1125",
"vendorId": "56",
"statusCode": "SHIPMENT_CREATED",
"type": "STANDARD",
"reshipmentReasonCode": "Order went missing",
"shipDate": "2022-06-06T07:58:30.996Z",
"locationNum": "132412",
"locationType": "DC",
"totalCartons": 2,
"masterTrackingNumber": "TX112345678",
"shipToId": "1",
"shipToAddress": {
"addressLine1": "888 Broadway",
"addressLine2": "505 suite",
"addressLine3": "<string>",
"addressLine4": "<string>",
"city": "New York",
"state": "NY",
"country": "USA",
"postalCode": "1003",
"type": "home",
"latitude": 134.13413,
"longitude": 757.0435
},
"recipient": [
{
"name": {
"first": "John",
"middle": "<string>",
"last": "Doe"
},
"email": "support@abc.inc",
"phone": {
"number": 10612345678,
"type": "MOBILE"
}
}
],
"cartons": [
{
"cartonNum": "1",
"cartonType": "Package",
"promisedDeliveryDate": "2022-05-26T07:58:30.996Z",
"estimatedShipDate": "2022-05-25T07:58:30.996Z",
"estimatedDeliveryDate": "2022-05-26T07:58:30.996Z",
"shipmentMethod": "ground",
"shipmentCarrier": "FEDEX",
"weight": "500 gram",
"trackingNumber": "1Z999AA10123456784",
"trackingURL": "https://fedex.com/tracking",
"trackingDetails": [
{
"event": "picked up",
"eventId": "627963716b19511e8a3a631b",
"timestamp": "2019-09-30T07:58:30.996Z",
"shipmentCarrier": "FEDEX",
"location": "Reno, NV",
"notes": {}
}
],
"items": [
{
"lineItemId": "1",
"itemId": "100023",
"sku": "SKU0023",
"orderId": "317736896",
"orderNumber": "507f1f77bcf86cd799439011",
"channelId": "12",
"segment": null,
"vendorId": "56",
"orderedQuantity": 2,
"shippedQuantity": 2,
"returnQuantity": 1,
"returnAmount": 10,
"fees": [
{
"type": "tax",
"value": 34.56,
"quantity": 12,
"refundAmount": 10.4
}
],
"giftCard": [
{
"giftCardNum": "453456765",
"amount": 50
}
],
"attributes": {},
"uom": null
}
]
}
],
"scratchedItems": [
{
"lineItemId": "2",
"itemId": "100043",
"sku": "SKU00043",
"quantity": 1,
"reasonCode": "<string>",
"subReasonCode": null,
"attributes": {},
"uom": null
}
],
"auditLogs": [
{
"auditType": "create",
"employeeId": "62272e917b12209e68751d94",
"auditTimestamp": "2022-05-12T09:24:54.804Z",
"source": "POS",
"note": "Note",
"attributes": {},
"updatedFields": [
{
"attributeName": "UOM",
"attributeOriginalValue": "PK"
}
]
}
],
"attributes": {}
}'
{
"shipmentId": "627963716b19511e8a3a631b",
"shipmentNum": "78974156816152",
"invoiceId": "5674156816152",
"allocationId": "112345678912340",
"orderNumber": [
"112345678912340",
"112345678912340"
],
"poNumber": "1125",
"vendorId": "56",
"statusCode": "SHIPPED",
"type": "STANDARD",
"reshipmentReasonCode": "Order went missing",
"shipDate": "2022-06-06T07:58:30.996Z",
"locationNum": "132412",
"locationType": "DC",
"totalCartons": 2,
"masterTrackingNumber": "TX112345678",
"shipToId": "1",
"shipToAddress": {
"addressLine1": "888 Broadway",
"addressLine2": "505 suite",
"addressLine3": "<string>",
"addressLine4": "<string>",
"city": "New York",
"state": "NY",
"country": "USA",
"postalCode": "1003",
"type": "home",
"latitude": 134.13413,
"longitude": 757.0435
},
"recipient": [
{
"name": {
"first": "John",
"middle": "<string>",
"last": "Doe"
},
"email": "support@abc.inc",
"phone": {
"number": 10612345678,
"type": "MOBILE"
}
}
],
"cartons": [
{
"cartonNum": "1",
"cartonType": "Package",
"promisedDeliveryDate": "2022-05-26T07:58:30.996Z",
"estimatedShipDate": "2022-05-25T07:58:30.996Z",
"estimatedDeliveryDate": "2022-05-26T07:58:30.996Z",
"shipmentMethod": "ground",
"shipmentCarrier": "FEDEX",
"weight": "500 gram",
"trackingNumber": "1Z999AA10123456784",
"trackingURL": "https://fedex.com/tracking",
"trackingDetails": [
{
"event": "picked up",
"eventId": "627963716b19511e8a3a631b",
"timestamp": "2019-09-30T07:58:30.996Z",
"shipmentCarrier": "FEDEX",
"location": "Reno, NV",
"notes": {}
}
],
"items": [
{
"shipmentLineItemId": "607f1f77bcf86cd799439011",
"orderId": "317736896",
"orderNumber": "507f1f77bcf86cd799439011",
"lineItemId": "1",
"itemId": "100023",
"sku": "SKU0023",
"channelId": "12",
"segment": null,
"vendorId": "56",
"orderedQuantity": 2,
"shippedQuantity": 2,
"returnQuantity": 1,
"returnAmount": 10,
"fees": [
{
"type": "tax",
"value": 34.56,
"quantity": 12,
"refundAmount": 10.4
}
],
"giftCard": [
{
"giftCardNum": "453456765",
"amount": 50,
"giftCardStatus": "ACTIVE",
"giftCardActiveRequestDate": "2022-05-26T07:58:30.996Z",
"giftCardActiveDate": "2022-06-26T07:58:30.996Z"
}
],
"attributes": {},
"uom": null
}
]
}
],
"scratchedItems": [
{
"orderId": "507f1f77bcf86cd799439012",
"lineItemId": "2",
"itemId": "100043",
"sku": "SKU00043",
"quantity": 1,
"reasonCode": "<string>",
"subReasonCode": "<string>",
"attributes": {},
"uom": null
}
],
"createdAt": "2022-06-06T07:58:30.996Z",
"updatedAt": "2022-06-06T07:58:30.996Z",
"auditLogs": [
{
"auditType": "create",
"employeeId": "62272e917b12209e68751d94",
"auditTimestamp": "2022-05-12T09:24:54.804Z",
"source": "POS",
"note": "Note",
"attributes": {},
"updatedFields": [
{
"attributeName": "UOM",
"attributeOriginalValue": "PK"
}
]
}
],
"attributes": {}
}