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
Cancel inventory transfer
curl --request POST \
--url https://api.fabric.inc/v3/shipments/inventory-transfer/{transferShipmentId}/action/cancel \
--header 'Authorization: Bearer <token>' \
--header 'x-fabric-channel-id: <x-fabric-channel-id>' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>'
{
"attributes": {
"attribute1": "value"
},
"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": [
{
"attributes": {
"attribute1": "value"
},
"cartonNumber": "1",
"cartonType": "Package",
"estimatedDeliveryDate": "2022-05-26T07:58:30.996Z",
"estimatedShipmentDate": "2022-05-25T07:58:30.996Z",
"items": [
{
"adjustments": [
{
"adjustmentQuantity": 2,
"attributes": {
"attribute1": "value"
},
"reasonCode": "DAMAGED",
"subReasonCode": "DAMAGED"
}
],
"attributes": {
"attribute1": "value"
},
"channelId": "12",
"deliveredQuantity": 2,
"itemId": "100023",
"lineItemId": "1",
"packedQuantity": 2,
"quantityType": "INCREMENT",
"receivedQuantity": 2,
"segment": "<string>",
"shipmentLineItemId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"shippedQuantity": 2,
"sku": "SKU0023",
"stockedQuantity": 2,
"uom": "EA",
"vendorId": "vend12346667"
}
],
"promisedDeliveryDate": "2022-05-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 gram"
}
],
"createdAt": "2022-06-06T07:58:30.996Z",
"deliveredAt": "2022-06-06T07:58:30.996Z",
"masterTrackingNumber": "TX112345678",
"poNumber": "1125",
"receivedAt": "2022-06-06T07:58:30.996Z",
"recipient": [
{
"email": "support@example.inc",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
}
],
"shipFrom": {
"locationName": "Store1",
"locationNumber": "132412",
"locationType": "STORE",
"shipFromAddress": {
"address1": "House No 129",
"address2": "10 Downing Street",
"address3": "Bakers Colony",
"address4": "Near ABC School",
"city": "Beaumont",
"country": "USA",
"email": "test@example.com",
"latitude": 35.294952,
"longitude": 32.294952,
"name": {
"first": "John",
"last": "Doe",
"middle": "M"
},
"phone": {
"number": "+10612345678",
"type": "MOBILE"
},
"postalCode": "77705",
"state": "TX",
"type": "residence"
}
},
"shipTo": {
"locationName": "Store1",
"locationNumber": "132412",
"locationType": "STORE",
"shipToAddress": {
"addressLine1": "254 House number",
"addressLine2": "888 Broadway",
"addressLine3": "17th street",
"addressLine4": "Pearl",
"city": "New York",
"country": "USA",
"latitude": 134.13413,
"longitude": 757.0435,
"postalCode": "1003",
"state": "NY",
"type": "home"
},
"shipToId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569"
},
"shipmentId": "627963716b19511e8a3a631b",
"shipmentNumber": "78974156816152",
"shippedAt": "2022-06-06T07:58:30.996Z",
"statusCode": "TRANSFER_SHIPMENT_CREATED",
"stockReleaseTimeStamp": "2022-06-06T07:58:30.996Z",
"subtype": "COD",
"totalCartons": 2,
"transferId": "112345678912340",
"transferNumber": "112345678912340",
"type": "TRANSFER",
"updatedAt": "2022-06-06T07:58:30.996Z",
"vendorId": "56"
}
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
Response
An object containing information and properties of the transfer shipment response.
An object containing information and properties for the transfers ship from location.
Location number
"132412"
Location name
"Store1"
Location type
"STORE"
Order address model
The first address line.
"House No 129"
The second address line.
"10 Downing Street"
The third address line.
"Bakers Colony"
The fourth address line.
"Near ABC School"
City
"Beaumont"
Country
"USA"
A valid email address.
"test@example.com"
Latitude
35.294952
Longitude
32.294952
Postal code
"77705"
State
"TX"
The type of address provided. For example, home or residence.
"residence"
An object containing information and properties for the transfers ship to location.
Location number
"132412"
Location name
"Store1"
Location type
"STORE"
ShipmentShipToAddress Model
Address line 1
"254 House number"
Address line 2
"888 Broadway"
Address line 3
"17th street"
Address line 4
"Pearl"
City
"New York"
Country
"USA"
Latitude
134.13413
Longitude
757.0435
Postal code
"1003"
State
"NY"
The type of address that was provided.
"home"
Used to link item with it's shipping address in shipment
"b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569"
Shipment's unique identification number
"78974156816152"
Transfer ID for this shipment
"112345678912340"
Transfer number for this shipment
"112345678912340"
Attributes to save any additional info
Attributes to save any additional info
{ "attribute1": "value" }
{ "attribute1": "value" }
Audit logs list
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 list
An object containing information and properties of the transfer shipment carton.
Attributes to save any additional info
Attributes to save any additional info
{ "attribute1": "value" }
{ "attribute1": "value" }
Carton number
"1"
Carton type
"Package"
Estimated delivery date
"2022-05-26T07:58:30.996Z"
Estimated ship date
"2022-05-25T07:58:30.996Z"
List of item to be shipped
An object containing information and properties of the transfer shipment item.
Adjustment
An object containing all the transfer item adjustment properties.
The total adjustment quantity. The default value is 0.
2
Attributes to save any additional info
Attributes to save any additional info
{ "attribute1": "value" }
{ "attribute1": "value" }
The primary reason code for the item adjustment.
"DAMAGED"
The sub reason code for the item adjustment.
"DAMAGED"
Customized attributes
Customized attributes
{ "attribute1": "value" }
{ "attribute1": "value" }
Channel id
"12"
Delivered quantity
2
Item id
"100023"
Line item ID
"1"
Packed quantity
2
Transfer quantity type
INCREMENT
, DECREMENT
, ABSOLUTE
Received quantity
2
Segment
System generated shipment line item ID
"b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569"
Shipped quantity
2
Sku
"SKU0023"
Stocked quantity
2
Unit of measurement
"EA"
Vendor ID
"vend12346667"
Promised delivery date
"2022-05-26T07:58:30.996Z"
Shipment carrier
"FEDEX"
Shipment method
"ground"
Tracking detail list
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"
Tracking number
"1Z999AA10123456784"
Tracking URL
"https://example.com/tracking"
Weight
"500 gram"
Created date
"2022-06-06T07:58:30.996Z"
Delivered date of shipment
"2022-06-06T07:58:30.996Z"
Master tracking number
"TX112345678"
Optional purchase order number
"1125"
Received date of shipment
"2022-06-06T07:58:30.996Z"
Recipient list
Shipment recipient details
Recipient's email
"support@example.inc"
Shipment's autogenerated unique id
"627963716b19511e8a3a631b"
Ship date
"2022-06-06T07:58:30.996Z"
Transfer Shipment Status
TRANSFER_SHIPMENT_PACKED
, TRANSFER_SHIPMENT_SENT
, TRANSFER_SHIPMENT_CREATED
, TRANSFER_SHIPMENT_DRAFT
, TRANSFER_SHIPMENT_DELIVERED
, TRANSFER_SHIPMENT_RECEIVED
, TRANSFER_SHIPMENT_STOCKED
, TRANSFER_SHIPMENT_CANCELLED
, TRANSFER_SHIPMENT_ERROR
"TRANSFER_SHIPMENT_CREATED"
Stock release time stamp date
"2022-06-06T07:58:30.996Z"
Shipment subtype
COD
"COD"
Total number of cartons
2
Shipment types
STANDARD
, RESHIP
, RETURN
, SCRATCH
, PENDING_RETURN
, PICKUP
, TRANSFER
"TRANSFER"
Updated date
"2022-06-06T07:58:30.996Z"
Vendor ID
"56"
Was this page helpful?
curl --request POST \
--url https://api.fabric.inc/v3/shipments/inventory-transfer/{transferShipmentId}/action/cancel \
--header 'Authorization: Bearer <token>' \
--header 'x-fabric-channel-id: <x-fabric-channel-id>' \
--header 'x-fabric-tenant-id: <x-fabric-tenant-id>'
{
"attributes": {
"attribute1": "value"
},
"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": [
{
"attributes": {
"attribute1": "value"
},
"cartonNumber": "1",
"cartonType": "Package",
"estimatedDeliveryDate": "2022-05-26T07:58:30.996Z",
"estimatedShipmentDate": "2022-05-25T07:58:30.996Z",
"items": [
{
"adjustments": [
{
"adjustmentQuantity": 2,
"attributes": {
"attribute1": "value"
},
"reasonCode": "DAMAGED",
"subReasonCode": "DAMAGED"
}
],
"attributes": {
"attribute1": "value"
},
"channelId": "12",
"deliveredQuantity": 2,
"itemId": "100023",
"lineItemId": "1",
"packedQuantity": 2,
"quantityType": "INCREMENT",
"receivedQuantity": 2,
"segment": "<string>",
"shipmentLineItemId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569",
"shippedQuantity": 2,
"sku": "SKU0023",
"stockedQuantity": 2,
"uom": "EA",
"vendorId": "vend12346667"
}
],
"promisedDeliveryDate": "2022-05-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 gram"
}
],
"createdAt": "2022-06-06T07:58:30.996Z",
"deliveredAt": "2022-06-06T07:58:30.996Z",
"masterTrackingNumber": "TX112345678",
"poNumber": "1125",
"receivedAt": "2022-06-06T07:58:30.996Z",
"recipient": [
{
"email": "support@example.inc",
"name": {
"firstName": "Alex",
"lastName": "Doe",
"middleName": "E"
},
"phone": {
"number": "123-456-7890",
"type": "MOBILE"
}
}
],
"shipFrom": {
"locationName": "Store1",
"locationNumber": "132412",
"locationType": "STORE",
"shipFromAddress": {
"address1": "House No 129",
"address2": "10 Downing Street",
"address3": "Bakers Colony",
"address4": "Near ABC School",
"city": "Beaumont",
"country": "USA",
"email": "test@example.com",
"latitude": 35.294952,
"longitude": 32.294952,
"name": {
"first": "John",
"last": "Doe",
"middle": "M"
},
"phone": {
"number": "+10612345678",
"type": "MOBILE"
},
"postalCode": "77705",
"state": "TX",
"type": "residence"
}
},
"shipTo": {
"locationName": "Store1",
"locationNumber": "132412",
"locationType": "STORE",
"shipToAddress": {
"addressLine1": "254 House number",
"addressLine2": "888 Broadway",
"addressLine3": "17th street",
"addressLine4": "Pearl",
"city": "New York",
"country": "USA",
"latitude": 134.13413,
"longitude": 757.0435,
"postalCode": "1003",
"state": "NY",
"type": "home"
},
"shipToId": "b03b72dc-78d8-4ea4-90fc-2fe6a1fe6569"
},
"shipmentId": "627963716b19511e8a3a631b",
"shipmentNumber": "78974156816152",
"shippedAt": "2022-06-06T07:58:30.996Z",
"statusCode": "TRANSFER_SHIPMENT_CREATED",
"stockReleaseTimeStamp": "2022-06-06T07:58:30.996Z",
"subtype": "COD",
"totalCartons": 2,
"transferId": "112345678912340",
"transferNumber": "112345678912340",
"type": "TRANSFER",
"updatedAt": "2022-06-06T07:58:30.996Z",
"vendorId": "56"
}