Skip to main content

Inventory Presell

Accept pre-orders for inventory that has not yet arrived. Enables a Call to Action button on your site of Add to Cart or Pre-Order. Pre-Order when there is on order inventory or Add To Cart when inventory already available.

Presell inventory is determined by ON_ORDER inventory either added manually via an adjustment or by creating a shipment allocation.

Inventory Presell API

Use the Inventory Presell API to determine if a given SKU is:

  • available - Inventory is in stock right now.
  • presell - Inventory is on order.
  • unavailable - No inventory available or on order.

If Available to Promise inventory is greater than 0 then available is returned.

If Available to Promise inventory + On Order is greater than 0 then presell is returned.

An earliest_ship_date matching the earliest estimated arrival time of linked shipment allocations is returned if available.

A latest_ship_date matching the latest estimated arrival time of linked shipment allocations is returned if available.

[
{
"sku": "[sku-arg]",
"channel_id": "[channel-id-arg]",
"status": "presell",
"earliest_ship_date": "2024-09-01T13:00:00+00:00",
"latest_ship_date": "2024-09-13T04:00:00+00:00"
}
]

The presell function will never throw any expected errors. It will always return a 200 Response Status with an array consisting of 1 or 0 elements. This can be unwrapped for you by setting the Accept header to application/vnd.pgrst.object+json. If there is no result a 406 Not Acceptable status code will instead be returned. If there is a result it will be unwrapped:

{
"sku": "[sku-arg]",
"channel_id": "[channel-id-arg]",
"status": "presell",
"earliest_ship_date": "2024-09-01T13:00:00+00:00",
"latest_ship_date": "2024-09-13T04:00:00+00:00"
}