https://api.hyperzod.comGET /store/v1/cart/validate to obtain its current checksum.payment_mode_id when needed and validate the cart with the same selections.{
"success": true,
"service": "order",
"status_code": 200,
"data": {
"order_id": 10842,
"order_uuid": "ddabda29-958f-52cd-ad14-dc1d9dea1691",
"user_id": 1001,
"merchant_id": "64b7f2a9c1e4d5038a6b9120",
"order_type": "delivery",
"order_amount": 30.0,
"order_status": 2
}
}success; application errors can also return HTTP 200.order_id and retrieve it with GET /store/v1/order?order_id=10842.| API | Prefix | Purpose | Documentation |
|---|---|---|---|
| Auth | /auth/v1 | Accounts, sign-in, credentials, and recovery. | Spec · Guide |
| Store | /store/v1 | Storefront, cart, checkout, and orders. | Spec · Guide |
| Admin | /admin/v1 | Tenant administration. | Spec · Guide |
| Merchant | /merchant/v1 | Merchant operations. | Spec · Guide |
| Public | /public/v1 | Lookups, callbacks, and supporting operations. | Spec · Guide |
| Kiosk | /kiosk/v1 | Device pairing and kiosk ordering. | Spec · Guide |
| Term | Meaning |
|---|---|
| Tenant | A business account or storefront. |
| Merchant | A seller or outlet within a tenant. |
| Customer | A person placing orders. |
| Kiosk | A paired ordering terminal with its own user identity. |
| Role / Permission | An account category / authorization to perform an action. |
| Endpoint | An HTTP method and complete path. |
| Operation ID | A stable identifier for an operation in the OpenAPI spec. |
| Tag / Schema | An API reference grouping / the structure and constraints of data. |
| Cart / Checksum | Checkout items and selections / the current cart validation value used to create an order. |
| Order | A submitted purchase record. |
| Payment Method / Intent | A configured way to pay / a provider payment workflow, not proof of payment completion. |
| Role ID | User Role |
|---|---|
T1001 | Tenant Administrator |
T1002 | Tenant Staff |
T1003 | Merchant Staff |
T1004 | Customer |
T1005 | Kiosk User |
g-recaptcha-response request field, not a header.apikey. Strict gateway authentication| Header | Requirement |
|---|---|
Accept: application/json | Recommended for JSON responses. |
Content-Type: application/json | For JSON bodies; uploads and callbacks may use another media type. |
Authorization | For bearer-protected operations. |
X-API-KEY | Only where supported. |
x-tenant | Scalar active tenant ID, slug, or hostname where tenant resolution applies. |
x-client-device | Identifies the client platform; see below. |
X-Kiosk-ID, X-Kiosk-Device-Id | Required by specific paired-device operations. |
x-tenant,42 or maple-street-kitchen, not a JSON object.merchant_id in the documented query, body, or path. Thereweb, android, and ios, defaultingweb. The Kiosk feature supports kiosk; boot, printing,tenant_id field. Internal identity and| API | Requests Per Minute |
|---|---|
| Auth | 60 |
| Store | 120 |
| Admin | 300 |
| Merchant | 300 |
| Public | 60 |
| Kiosk feature | 60 |
Retry-After when provided; otherwise use bounded backoffX-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset| Field | Meaning |
|---|---|
success | Application success or failure. |
status_code | Application status; may differ from HTTP status. |
service | Response-producing service; not a stable error identifier. |
message | Optional human-readable information. |
data | Optional result or error details; type varies by operation. |
message and data can be omitted. HTTP 200 does not guarantee success.{
"success": false,
"service": "api",
"status_code": 403,
"message": "User does not have proper role to access this resource"
}{
"success": false,
"service": "api",
"status_code": 422,
"message": "Validation Failed",
"data": {
"email": ["The email field is required."]
}
}| Condition | Action |
|---|---|
| 401 / invalid credentials | Check the token, expiry, and authentication flow. |
| 403 / insufficient access | Check role, permission, tenant, and merchant access. |
| 404 / missing resource | Verify the ID, full route, and resource context. |
| 422 / invalid input | Correct the reported fields and conditional requirements. |
| 429 / throttled | Delay the next attempt. |
| 5xx / timeout | Check the outcome before retrying consequential writes. |
HTTP 200 with success: false | Handle as an application failure. |
| Method | Path | Purpose |
|---|---|---|
| GET | /admin/v1/webhook/tenant/events | Discover supported event names. |
| POST | /admin/v1/webhook/tenant/webhooks | Create a subscription. |
| GET | /admin/v1/webhook/tenant/webhooks | List subscriptions. |
| PUT | /admin/v1/webhook/tenant/webhooks/{webhook} | Update a subscription. |
| DELETE | /admin/v1/webhook/tenant/webhooks/{webhook} | Delete a subscription. |
| GET | /admin/v1/webhook/tenant/webhooks/logs | Inspect delivery results. |
order.created must exist in the event catalogue:{
"name": "Order Notifications",
"events": ["order.created"],
"url": "https://hooks.example.com/hyperzod"
}secret_key. Store itname, events, url, and boolean status. Setstatus: false to disable delivery. A supplied replacement secret must be atevent and payload fields. Thepayload structure depends on the event.| Delivery Header | Meaning |
|---|---|
X-Webhook-Id | Subscription ID; not a unique event or delivery ID. |
X-Webhook-Signature | Hex-encoded HMAC-SHA256 signature, sent when a secret is configured. |
expected_signature = HMAC_SHA256_HEX(subscription_secret, raw_request_body)X-Webhook-Id alone to deduplicate events:| Data | Rule |
|---|---|
| Query arrays | Use brackets: product_ids[]=...; nested values: products[0][product_id]. |
| IDs | Preserve the documented integer, document-string, UUID, or provider-ID type. |
| Booleans | Send canonical JSON booleans; query coercion varies by operation. |
| Amounts | Follow the schema: numbers or decimal strings. Do not assume cents. |
| Dates | Use the documented format and timezone; Unix values may be seconds, not milliseconds. |
| Files | Use the declared media type; let your client generate multipart boundaries. |
| Settings | Discover supported keys and use the value structure for that key. |
data.data, a nestedhas_more; other endpoints return plain arrays.GET /store/v1/order/getOrdersByUserId returns a Laravel paginator{
"success": true,
"data": {
"current_page": 1,
"data": [
{
"tenant_id": 42,
"merchant_id": "64b7f2a9c1e4d5038a6b9120",
"user_id": 1001,
"order_id": 10842
},
{
"tenant_id": 42,
"merchant_id": "64b7f2a9c1e4d5038a6b9120",
"user_id": 1001,
"order_id": 10841
},
{
"tenant_id": 42,
"merchant_id": "64b7f2a9c1e4d5038a6b9120",
"user_id": 1001,
"order_id": 10840
}
],
"first_page_url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=1",
"from": 1,
"last_page": 6,
"last_page_url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=6",
"links": [
{"url": null, "label": "« Previous", "page": null, "active": false},
{"url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=1", "label": "1", "page": 1, "active": true},
{"url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=2", "label": "2", "page": 2, "active": false},
{"url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=3", "label": "3", "page": 3, "active": false},
{"url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=4", "label": "4", "page": 4, "active": false},
{"url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=5", "label": "5", "page": 5, "active": false},
{"url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=6", "label": "6", "page": 6, "active": false},
{"url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=2", "label": "Next »", "page": 2, "active": false}
],
"next_page_url": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId?page=2",
"path": "https://api.hyperzod.com/store/v1/order/getOrdersByUserId",
"per_page": 3,
"prev_page_url": null,
"to": 3,
"total": 18
},
"service": "order",
"status_code": 200
}data.data and pagination metadata from the enclosing data.from and to are record positions; total counts all matching records.prev_page_url is null on the first page, and next_page_url is null on the last.page=2 and retain the original query parameters, including user_idper_page, tenant header, and authentication. If a response contains an