Skip to main content

Preview Supplier Product Availability Hold

POST 

/api/supplier-products/:supplier_product/availability-hold/preview

Shows what a hold payload would do, without saving anything: the planning date, earliest arrival, customer-facing date and message, the open purchase orders it affects and the open backorders for the product. Only the payload's shape is validated (date, precision, lengths); reason and date rules are checked when you save.

Required scope: suppliers:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body: the same hold fields as Place or Update Supplier Product Availability Hold (reason, reason_code, available_on, date_precision, accepts_orders, note). date_precision defaults to day.

Response under data

  • lead_time_days (integer), date_unknown (boolean), available_on, date_precision, planning_available_on, earliest_arrival (dates|null).
  • customer_expected_date (date|null): the earliest arrival plus the account's customer padding days.
  • customer_display_date (string): the customer date at the supplier's precision.
  • display_date, reason, reason_label (string), customer_message (string): the customer-facing message built from the account's message template, e.g. Reprinting — expected April 2027. Empty when another supplier can still ship the product, because customers are not shown the hold then.
  • customers_affected (boolean): false when another supplier that is neither held nor discontinued can still ship the product; planning sources from it while the hold lasts.
  • live_alternative_suppliers (array of strings): names of those suppliers.
  • accepts_orders (boolean), state (string), summary (string): a one-sentence explanation of the planning effect.
  • current_hold (object|null): the open hold on the link, in compact form (identity, reason, dates, state, slip_count, confirmed_at, updated_at).
  • open_purchase_orders (array): open purchase orders to this supplier with unreceived quantity of the product: purchase_order_id, purchase_order_number, estimated_delivery_date, unreceived_quantity, earliest_arrival, earlier_than_hold (the PO expects delivery before the hold allows) and can_move_eta (the PO carries no other open products, so its ETA can be moved).
  • open_backorders (object): lines, orders and quantity of open backordered sales for the product.

Authentication: Requires Bearer token.

Requires permission: suppliers.show

Request​

Responses​

OK

Response Headers
    Content-Type