Hold a cart reservation for checkout
PATCH
Moves an active cart reservation into checkout hold and resets its expiry to the configured checkout hold window. Only active reservations can be held.
How to use it
- Take an ACTIVE CART reservation id from List reservations for a reference.
- Call hold when the customer starts checkout.
- The status becomes CHECKOUT_HOLD and the expiry restarts at the checkout hold time (10 minutes by default). Confirm it once payment is authorised.
BearerAuthheader
AuthorizationBearer <JWT>id*stringID of the record (UUID).
Format
uuidOK
*/*- response
status*stringOutcome of the call: SUCCESS when the request was handled, ERROR otherwise.
message*stringShort human-readable message describing the outcome, e.g. which record was fetched or saved.
data?The stock reservation.
Example Request
curl -X PATCH 'https://beta.iotoms.com/api/v1/inventory/reservations/497f6eca-6276-4993-bfeb-53cbbbba6f08/hold'Example Response
{ "status": "string", "message": "string", "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "itemId": "string", "itemName": "string", "quantity": 0, "reservationType": "CART", "referenceId": "8502eb05-558d-4480-8511-c1011710b340", "customerId": "string", "status": "ACTIVE", "expiresAt": "2019-08-24T14:15:22Z", "confirmedAt": "2019-08-24T14:15:22Z", "releasedAt": "2019-08-24T14:15:22Z", "releaseReason": "string", "createdAt": "2019-08-24T14:15:22Z" }}