Download OpenAPI specification:Download
This endpoint returns the requested order.
| orderId required | string (Technical Order ID) ^[0-9a-f]{24}$ |
{- "order": {
- "id": "string",
- "customer": {
- "first_name": null,
- "last_name": null,
- "email": null,
- "phone": null,
- "organization": null,
- "address": null,
- "postal_code": null,
- "state": null,
- "city": null,
- "country_code": null,
- "vat_id": null,
- "eori": null,
- "door_code": null,
- "delivery_instructions": null
}, - "our_id": "string",
- "merchants_id": "string",
- "status": "draft",
- "process_lock": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "process_hold": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "items": [
- {
- "product": {
- "id": "string",
- "name": "string",
- "sku": "string"
}, - "fulfillment_by": "logitrail",
- "quantity": 1
}
]
}
}This endpoint updates the requested order.
| orderId required | string (Technical Order ID) ^[0-9a-f]{24}$ |
required | object | ||||||||
| |||||||||
{- "order": {
- "customer": {
- "first_name": null,
- "last_name": null,
- "email": null,
- "phone": null,
- "organization": null,
- "address": null,
- "postal_code": null,
- "state": null,
- "city": null,
- "country_code": null,
- "vat_id": null,
- "eori": null,
- "door_code": null,
- "delivery_instructions": null
}, - "merchants_id": "string",
- "process_lock": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "items": [
- {
- "product": {
- "id": "string",
- "sku": "string",
- "name": "string"
}, - "fulfillment_by": "logitrail",
- "quantity": 1
}
]
}
}{- "order": {
- "id": "string",
- "customer": {
- "first_name": null,
- "last_name": null,
- "email": null,
- "phone": null,
- "organization": null,
- "address": null,
- "postal_code": null,
- "state": null,
- "city": null,
- "country_code": null,
- "vat_id": null,
- "eori": null,
- "door_code": null,
- "delivery_instructions": null
}, - "our_id": "string",
- "merchants_id": "string",
- "status": "draft",
- "process_lock": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "process_hold": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "items": [
- {
- "product": {
- "id": "string",
- "name": "string",
- "sku": "string"
}, - "fulfillment_by": "logitrail",
- "quantity": 1
}
]
}
}This endpoint returns a list of orders.
| status | string Enum: "draft" "passive" "confirmed" "waiting_products" "problem" "processing" "processed" "returning" "returned" "cancelled" "deleted" Filter orders by order status. |
| has_product_id | string^[0-9a-f]{24}$ Filter orders that contain at least one item with the specified product ID. |
| offset | number >= 0 Default: 0 Number of orders to skip from the start of the result set. |
| limit | number [ 1 .. 1000 ] Default: 250 Maximum number of orders to return. |
{- "orders": [
- {
- "id": "string",
- "customer": {
- "first_name": null,
- "last_name": null,
- "email": null,
- "phone": null,
- "organization": null,
- "address": null,
- "postal_code": null,
- "state": null,
- "city": null,
- "country_code": null,
- "vat_id": null,
- "eori": null,
- "door_code": null,
- "delivery_instructions": null
}, - "our_id": "string",
- "merchants_id": "string",
- "status": "draft",
- "process_lock": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "process_hold": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "items": [
- {
- "product": {
- "id": "string",
- "name": "string",
- "sku": "string"
}, - "fulfillment_by": "logitrail",
- "quantity": 1
}
]
}
]
}This endpoint creates a new order to Logitrail.
required | object | ||||||||||
| |||||||||||
{- "order": {
- "customer": {
- "first_name": null,
- "last_name": null,
- "email": null,
- "phone": null,
- "organization": null,
- "address": null,
- "postal_code": null,
- "state": null,
- "city": null,
- "country_code": null,
- "vat_id": null,
- "eori": null,
- "door_code": null,
- "delivery_instructions": null
}, - "merchants_id": "string",
- "process_lock": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "process_hold": true,
- "items": [
- {
- "product": {
- "id": "string",
- "sku": "string",
- "name": "string"
}, - "fulfillment_by": "logitrail",
- "quantity": 1
}
]
}
}{- "order": {
- "id": "string",
- "customer": {
- "first_name": null,
- "last_name": null,
- "email": null,
- "phone": null,
- "organization": null,
- "address": null,
- "postal_code": null,
- "state": null,
- "city": null,
- "country_code": null,
- "vat_id": null,
- "eori": null,
- "door_code": null,
- "delivery_instructions": null
}, - "our_id": "string",
- "merchants_id": "string",
- "status": "draft",
- "process_lock": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "process_hold": {
- "id": "string",
- "comment": "string",
- "created": {
- "ts": "2019-08-24T14:15:22Z"
}, - "expires": "2019-08-24T14:15:22Z"
}, - "items": [
- {
- "product": {
- "id": "string",
- "name": "string",
- "sku": "string"
}, - "fulfillment_by": "logitrail",
- "quantity": 1
}
]
}
}This endpoint returns statistics about orders for requesting merchant.
{- "order_statistics": {
- "passive_orders_count": 0,
- "confirmed_orders_count": 0,
- "waiting_products_orders_count": 0,
- "processing_orders_count": 0,
- "problem_orders_count": 0,
- "processed_today_orders_count": 0
}
}This endpoint returns a list of products that are missing from orders and blocking the fulfillment of those orders.
{- "waiting_products": [
- {
- "product": {
- "id": "string",
- "sku": "string",
- "name": "string"
}, - "merchant": "string",
- "waiting_total_items": 1,
- "waiting_total_orders": 1,
- "waiting_orders": [
- {
- "order": {
- "id": "string"
}, - "waiting_items_count": 1
}
], - "inbound_shipments": [
- {
- "inbound_shipment": {
- "id": "string"
}, - "ordered_quantity": 1,
- "estimated_arrival_date": "string"
}
]
}
]
}