Cash Register Hooks
Order number previously generated by the get_order_number endpoint.
ORD-2024-001234Integration username for authenticating the cash register request.
cashier01Integration password for authenticating the cash register request.
secretPre-order details on success, or an error response if validation fails.
Check for the presence of error_code to determine if the request succeeded.
On success, contains order_number and pre_order (plus optional card).
On failure, contains error_code and error_message.
The order number from the request. Present on success only.
ORD-2024-001234Error code when the request fails. Not present on success.
403Human-readable error description. Not present on success.
User invalidPre-order details on success, or an error response if validation fails.
Check for the presence of error_code to determine if the request succeeded.
Order number generated and cached, or an error if the pre-order state is invalid.
Check for the presence of error_code to determine if the request succeeded.
Response from the order number generation endpoint.
On success, only order_number is present.
On failure, error_code and error_message are present; order_number may or may not be included.
Generated unique order number. Present on success and on error_code 408.
ORD-2024-001234Error code when the pre-order state is invalid.
"407": No payment option set."408": Payment option is not cash register type.
407Human-readable error description. Only present on failure.
PaymentOption is nullOrder number generated and cached, or an error if the pre-order state is invalid.
Check for the presence of error_code to determine if the request succeeded.
Unique transaction identifier assigned by the cash register terminal.
TXN-20240615-001The order number associated with the active pre-order session.
ORD-2024-001234Integration username for authenticating the cash register request.
cashier01Integration password for authenticating the cash register request.
secretTotal amount to be paid. Must match the outstanding balance on the pre-order.
Used for validation unless promotions are provided, in which case
discounted_amount is used instead.
299.99Discounted total after promotions are applied. Required when promotions is provided.
Used for balance validation instead of amount.
249.99Identifier of the cash register terminal. Optional.
TERM-001Response for both successful and failed transactions.
Check the result field: "0" indicates success; any other value is an error code.
Returned for both successful and failed cash register payment completions.
The result field indicates the outcome.
Transaction identifier from the request. null on failure.
TXN-20240615-001Order number from the request. null when the order was not resolved.
ORD-2024-001234"0" on success. Integer error code on failure:
402 (invalid input or basket changed), 403 (invalid credentials),
404 (order not found), 405 (amount mismatch), 407 (payment option not set),
408 (wrong payment option type), 411 (pre-order not found), 412 (offer application error).
0Human-readable error description. Empty string on success.
Confirmed payment amount. null on failure.
299.99Staff member identifier from the pre-order. null on failure.
232Email of the staff member associated with the pre-order. null on failure.
staff@example.comStore identifier from the pre-order. null on failure.
123SKU of the configured shipping product for cash register payments.
null if not configured or on failure.
SHIP-SKU-001Response for both successful and failed transactions.
Check the result field: "0" indicates success; any other value is an error code.
Last updated
Was this helpful?

