Download OpenAPI specification:Download
This endpoint returns a list of inbound shipments matching the given query.
| merchant | string Example: merchant=testmerchant.logitrail.com Owning merchant |
| status | string (Status of the inbound shipment.) Enum: "initial" "confirmed" "en_route" "arrived_at_warehouse" "processed" "processing" "problem" "cancelled" "deleted" The current status of the inbound shipment. This is a read-only property. |
| limit | number [ 1 .. 1000 ] Default: 250 |
{- "inbound_shipments": [
- {
- "merchants_ref": "string",
- "sender_name": "string",
- "priority": -10000000,
- "merchant_remarks": "string",
- "estimated_arrival_date": "2019-08-24",
- "id": "5f8d0f8d8f8d8f8d8f8d8f8d",
- "status": "initial",
- "merchant": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}, - "our_id": "string",
- "type": "purchase_order",
- "items": [
- {
- "item_id": "string",
- "product": {
- "id": "string",
- "sku": "string",
- "gtin": "string",
- "name": "string"
}, - "quantity": 1
}
], - "extra_items": [
- {
- "id": "string",
- "item_details": {
- "title": "string",
- "gtin": "string"
}, - "reason_code": "exp_date",
- "quantity": 1,
- "merchants_decision": {
- "code": "inbound_shipment_modified_to_match",
- "merchant_remarks": "string",
- "decision_stamp": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}
}
}
], - "actual_arrival_date": "2019-08-24"
}
]
}This endpoint creates a new inbound shipment to the system. The inbound shipment is created in draft status.
| merchants_ref | string or null Merchant's reference to the inbound shipment. Note that value is trimmed (trailing and leading spaces removed) and empty string is ignored. |
| sender_name | string or null Sender's name, as given by the merchant. |
| priority | number or null [ -10000000 .. 10000000 ] Merchant's priority of the inbound shipment. This can be an integer between -10000000 (slowest handling) to 1000000 (fastest handling). Note that the value is effective only within merchant's other inbound shipments. Value 0 is ignored. |
| merchant_remarks | string or null Free text remarks from Merchant to Logitrail. |
| estimated_arrival_date | string or null <date> Estimated arrival date of the inbound shipment. |
| type | string Default: "purchase_order" Enum: "purchase_order" "order_return" Type of the inbound shipment. |
Array of objects Default: [] List of product items to be expected to arrive in this inbound shipment. |
{- "merchants_ref": "string",
- "sender_name": "string",
- "priority": -10000000,
- "merchant_remarks": "string",
- "estimated_arrival_date": "2019-08-24",
- "type": "purchase_order",
- "items": [ ]
}{- "inbound_shipment": {
- "merchants_ref": "string",
- "sender_name": "string",
- "priority": -10000000,
- "merchant_remarks": "string",
- "estimated_arrival_date": "2019-08-24",
- "id": "5f8d0f8d8f8d8f8d8f8d8f8d",
- "status": "initial",
- "merchant": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}, - "our_id": "string",
- "type": "purchase_order",
- "items": [
- {
- "item_id": "string",
- "product": {
- "id": "string",
- "sku": "string",
- "gtin": "string",
- "name": "string"
}, - "quantity": 1
}
], - "extra_items": [
- {
- "id": "string",
- "item_details": {
- "title": "string",
- "gtin": "string"
}, - "reason_code": "exp_date",
- "quantity": 1,
- "merchants_decision": {
- "code": "inbound_shipment_modified_to_match",
- "merchant_remarks": "string",
- "decision_stamp": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}
}
}
], - "actual_arrival_date": "2019-08-24"
}
}This endpoint returns the requested inbound shipment.
| inboundShipmentId required | string^[a-f0-9]{24}$ Example: 5f8d0f8d8f8d8f8d8f8d8f8d Inbound Shipment ID |
{- "inbound_shipment": {
- "merchants_ref": "string",
- "sender_name": "string",
- "priority": -10000000,
- "merchant_remarks": "string",
- "estimated_arrival_date": "2019-08-24",
- "id": "5f8d0f8d8f8d8f8d8f8d8f8d",
- "status": "initial",
- "merchant": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}, - "our_id": "string",
- "type": "purchase_order",
- "items": [
- {
- "item_id": "string",
- "product": {
- "id": "string",
- "sku": "string",
- "gtin": "string",
- "name": "string"
}, - "quantity": 1
}
], - "extra_items": [
- {
- "id": "string",
- "item_details": {
- "title": "string",
- "gtin": "string"
}, - "reason_code": "exp_date",
- "quantity": 1,
- "merchants_decision": {
- "code": "inbound_shipment_modified_to_match",
- "merchant_remarks": "string",
- "decision_stamp": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}
}
}
], - "actual_arrival_date": "2019-08-24"
}
}This endpoint returns the given inbound shipment after modifications.
| inboundShipmentId required | string^[a-f0-9]{24}$ Example: 5f8d0f8d8f8d8f8d8f8d8f8d Inbound Shipment ID |
| merchants_ref | string or null Merchant's reference to the inbound shipment. Note that value is trimmed (trailing and leading spaces removed) and empty string is ignored. |
| sender_name | string or null Sender's name, as given by the merchant. |
| priority | number or null [ -10000000 .. 10000000 ] Merchant's priority of the inbound shipment. This can be an integer between -10000000 (slowest handling) to 1000000 (fastest handling). Note that the value is effective only within merchant's other inbound shipments. Value 0 is ignored. |
| merchant_remarks | string or null Free text remarks from Merchant to Logitrail. |
| estimated_arrival_date | string or null <date> Estimated arrival date of the inbound shipment. |
Array of objects List of product items to be expected to arrive in this inbound shipment. Note that passing this argument replaces the item list. If you want to add or remove individual item, use /products endpoint. |
{- "merchants_ref": "string",
- "sender_name": "string",
- "priority": -10000000,
- "merchant_remarks": "string",
- "estimated_arrival_date": "2019-08-24",
- "items": [
- {
- "product": {
- "id": "string"
}, - "quantity": 1
}
]
}{- "inbound_shipment": [
- {
- "merchants_ref": "string",
- "sender_name": "string",
- "priority": -10000000,
- "merchant_remarks": "string",
- "estimated_arrival_date": "2019-08-24",
- "id": "5f8d0f8d8f8d8f8d8f8d8f8d",
- "status": "initial",
- "merchant": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}, - "our_id": "string",
- "type": "purchase_order",
- "items": [
- {
- "item_id": "string",
- "product": {
- "id": "string",
- "sku": "string",
- "gtin": "string",
- "name": "string"
}, - "quantity": 1
}
], - "extra_items": [
- {
- "id": "string",
- "item_details": {
- "title": "string",
- "gtin": "string"
}, - "reason_code": "exp_date",
- "quantity": 1,
- "merchants_decision": {
- "code": "inbound_shipment_modified_to_match",
- "merchant_remarks": "string",
- "decision_stamp": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}
}
}
], - "actual_arrival_date": "2019-08-24"
}
]
}This endpoint returns a list of inbound shipment attachments and a temporary link to download/view the attachment file. Attachments can be PDF documents or images provided by Logitrail Crew upon receiving the packages.
| inboundShipmentId required | string^[a-f0-9]{24}$ Example: 5f8d0f8d8f8d8f8d8f8d8f8d Inbound Shipment ID |
{- "attachments": [
- {
- "id": "5f9b1b9b9b9b9b9b9b9b9b9b",
- "uploaded_at": "2019-08-24T14:15:22Z",
- "file_name": "string",
- "mime": "string",
- "is_archived": true,
- "download_link": {
- "url": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}
}
]
}Provides arrival estimations for a product.
| productId required | string (Product ID) ^[a-fA-F0-9]{24}$ ID of the product that estimations are requested |
| x-logitrail-merchant-id required | string (Logitrail's Merchant ID) non-empty |
{- "arrival_estimations": [
- {
- "product": {
- "id": "string"
}, - "inbound_shipment": {
- "id": "5f8d0f8d8f8d8f8d8f8d8f8d",
- "estimated_arrival_date": "2019-08-24",
- "sender_name": "string"
}, - "estimated_on_shelf_at": "2019-08-24T14:15:22Z",
- "arriving_amount": 0
}
]
}This endpoint adds a new extra item to the inbound shipment. Extra items are line items that have not been in the original shipment data, or are unknown.
| inboundShipmentId required | string^[a-f0-9]{24}$ Example: 5f8d0f8d8f8d8f8d8f8d8f8d Inbound Shipment ID |
required | object List of product items to be added to this inbound shipment. | ||||||||
| |||||||||
{- "extra_item": {
- "item_details": {
- "title": "string",
- "gtin": "string"
}, - "reason_code": "exp_date",
- "quantity": 1,
- "merchants_decision": {
- "code": "inbound_shipment_modified_to_match",
- "merchant_remarks": "string"
}
}
}{- "extra_item": {
- "id": "string",
- "item_details": {
- "title": "string",
- "gtin": "string"
}, - "reason_code": "exp_date",
- "quantity": 1,
- "merchants_decision": {
- "code": "inbound_shipment_modified_to_match",
- "merchant_remarks": "string",
- "decision_stamp": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}
}
}
}Updates the extra item details.
| inboundShipmentId required | string^[a-f0-9]{24}$ Example: 5f8d0f8d8f8d8f8d8f8d8f8d Inbound Shipment ID |
| extraItemId required | string^[a-f0-9]{24}$ Inbound Shipment Extra Item ID |
required | object Extra item updates | ||||||||
| |||||||||
{- "extra_item": {
- "item_details": {
- "title": "string",
- "gtin": "string"
}, - "reason_code": "exp_date",
- "quantity": 1,
- "merchants_decision": {
- "code": "inbound_shipment_modified_to_match",
- "merchant_remarks": "string"
}
}
}{- "extra_item": {
- "id": "string",
- "item_details": {
- "title": "string",
- "gtin": "string"
}, - "reason_code": "exp_date",
- "quantity": 1,
- "merchants_decision": {
- "code": "inbound_shipment_modified_to_match",
- "merchant_remarks": "string",
- "decision_stamp": {
- "ts": "2019-08-24T14:15:22Z",
- "user": "string"
}
}
}
}Deletes the extra item from the inbound shipment.
| inboundShipmentId required | string^[a-f0-9]{24}$ Example: 5f8d0f8d8f8d8f8d8f8d8f8d Inbound Shipment ID |
| extraItemId required | string^[a-f0-9]{24}$ Inbound Shipment Extra Item ID |
{ }{- "message": "string",
- "errors": [
- {
- "code": "string",
- "expected": "string",
- "received": "string",
- "message": "string",
- "path": [
- "string"
]
}
]
}