API referenceTrading hold

Trading hold

1 operation. Every schema and example on this page is generated from the platform contract.

Stop taking new orders, without touching money.

Stops BOTH lanes - counter sales and Click & Collect - for the rest of the store-local day, and leaves every order already in progress exactly as promised: no refunds, no cancellations, no messages to those customers. The middle tier between the Pause pill (Click & Collect only) and the emergency close (which refunds everyone). Lifted by the same reopen the emergency close uses. Refused with CLOSURE_IN_PROGRESS when the store is already closed for the day with refunds under way. The merchant's note honours message_visibility: 'internal' keeps it off the storefront's closed line, which every visitor reads.

Request body

store_idstring · uuidoptional
reason_codeenumrequired
equipment_failurestaff_unavailablepower_or_watersold_outweatheremergencyother
messagestring, nullableoptional

The merchant's own words. Whether a customer ever reads them is decided by message_visibility, exactly as for a closure.

message_visibilityenumoptional

Who the merchant's note is for. 'customers' shows it verbatim to affected customers AND on the storefront closed line. 'internal' keeps it on the closure for staff and audit only, both customer surfaces fall back to the neutral per-reason phrase.

customersinternal

Response, 200

hold_idstringrequired
resumedbooleanrequired

True when a hold was already running - a second tap updates it, never forks a second stop.

curl -X POST "https://www.membber.com/api/v1/trading-hold" \
  -H "Authorization: Bearer $MEMBBER_TOKEN" \
  -H "Idempotency-Key: 1f0e2d3c-4b5a-4678-9abc-def012345678" \
  -H "Content-Type: application/json" \
  -d '{
    "reason_code": "equipment_failure"
  }'
Response, 200
{
  "hold_id": "4112d09b-0000-4000-8000-d0c500000041",
  "resumed": true
}
WhatsApp
Book a Call
Start Free