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.
suppliers:writeGrant 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) andcan_move_eta(the PO carries no other open products, so its ETA can be moved).open_backorders(object):lines,ordersandquantityof open backordered sales for the product.
Authentication: Requires Bearer token.
Requires permission: suppliers.show
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.