Get the current account
Useful as a first call to check that your API key works, and to see which permissions it has.
An object, returned directly without the wrapper.
Create delivery orders, follow their status and receive updates by webhook.
https://api.jayik.app/api/merchant
Four steps take you from nothing to a tracked delivery.
X-API-KEY header on every request.Every request is authenticated with an API key sent in the X-API-KEY header. Create and manage keys in the Tajr dashboard at tajr.jayik.app/api-keys.
Most endpoints answer with the standard wrapper. List endpoints answer with a page object and no wrapper. A few endpoints return the object directly; each one says so in its Returns line.
| Parameter | Type | Description | |
|---|---|---|---|
| take | integer | Optional | Items per page on list endpoints. Max 500. The default is 10 or 15, shown on each endpoint. |
| page | integer | Optional | Page number. Default 1. |
Error bodies have status set to false and a message. Any endpoint can answer 401, 403 or 429; the other codes are listed on the endpoints that use them.
| Status | Meaning |
|---|---|
| 400 | The request was refused. For invalid input, message is an object: field name → list of problems. Otherwise it is a sentence. |
| 401 | Missing or invalid API key. |
| 403 | The account is not active, or lacks the permission the call needs. |
| 404 | Nothing with that id belongs to your account. |
| 409 | Not possible in the order's current state. |
| 422 | Well formed, but cannot be carried out. |
| 429 | Rate limit reached. Wait for the number of seconds in the Retry-After header. |
Retry-After header.merchant-admin, merchant-employee or merchant-viewer.Use status.name in your code; it is stable. ar_name is the Arabic label.
| name | Meaning |
|---|---|
| name | Meaning |
| Pending | Created; waiting for you to mark it ready. |
| AwaitingPickup | Ready; waiting to be collected from you. |
| PickupDelayed | Collection from you was postponed. |
| CancelledByMerchant | Cancelled by the merchant. |
| InTransit | Collected; on the way to the delivery company's warehouse. |
| InDeliveryCompanyWarehouse | At the delivery company's warehouse. |
| Received | With a driver, out for delivery. |
| HandOver | Passed to another driver. |
| Delayed | Delivery was postponed. |
| ReDelivery | Out for another delivery attempt. |
| Delivered | Delivered to the receiver. |
| Returned | Not delivered; the driver has it. |
| ReturnedToCompany | Returned; at the delivery company's warehouse. |
| OnTheWayToMerchantWarehouse | Returned; on the way back to you. |
| ReturnedToMainWarehouse | Returned; back at your warehouse. |
| Cancelled | Cancelled. |
YYYY-MM-DD HH:MM:SS or ISO 8601, as shown on each field.tr (tracking number, used by most actions), id (numeric) and uuid.delivery_type is 0 for normal and 1 for fawri (express).If several vendors sell through your platform, treat each vendor as a sub-merchant by giving it its own warehouse. You keep one Jayik account and one API key.
A warehouse holds what the delivery needs to know about a vendor: its name, address, map location, phone numbers and the hours it is open for pickup. Put it on an order and the driver collects from that vendor, with no extra details to send each time.
id next to the vendor in your own system.warehouse_id to the vendor's warehouse when you create the order. The order is collected from that vendor.filter[warehouse_id] to see one vendor's orders, or add include=warehouse to get the vendor with each order.governorate_id on every warehouse update: when it is left out, the warehouse's governorate is cleared.The merchant account your API key belongs to.
Useful as a first call to check that your API key works, and to see which permissions it has.
An object, returned directly without the wrapper.
Create, list, cancel and delete orders.
Your orders, paginated. Use filter[...] to narrow the list and include to embed related objects.
| Name | Type | Description | |
|---|---|---|---|
| take | integer | Optional | Items per page. Default 15. Max 500. |
| page | integer | Optional | Page number. Default 1. |
| from | date | Optional | Start of a date range on the last update. Send together with to. |
| to | date | Optional | End of the date range. Send together with from. |
| simple | boolean | Optional | true skips the total count, which is faster on large lists. |
| include | string | Optional | Comma-separated related objects to embed. Allowed: status, customer, governorate, district, warehouse, orderCategory, orderItems, orderItems.attribute, merchant, history.merchant, driverRate, amountChanges, financial. Example: status,customer,governorate. |
| sort | string | Optional | Field to sort by. Prefix with - for descending. Example: -created_at. |
| filter[tr] | string | Optional | Exact tracking number. |
| filter[uuid] | uuid | Optional | Exact order uuid. |
| filter[status_id] | string | Optional | Status id. Several ids can be comma-separated. |
| filter[not_status_id] | string | Optional | Exclude these status ids. |
| filter[governorate_id] | string | Optional | Destination governorate id. |
| filter[warehouse_id] | string | Optional | Pickup warehouse id. |
| filter[order_category_id] | string | Optional | Order category id. |
| filter[delivery_type] | integer | Optional | 0 = normal, 1 = fawri. |
| filter[customer.phone] | string | Optional | Exact receiver phone. |
| filter[customer.name] | string | Optional | Search in the receiver's name. |
| filter[customer.address] | string | Optional | Search in the delivery address. |
| filter[amount] | string | Optional | Amount. |
A page object without the wrapper. The items (Order) are in data.
Creates one order. It starts in the Pending status. Call Mark ready for pickup when the package is packed.
| Field | Type | Description | |
|---|---|---|---|
| tr | string | null | Optional | Your own tracking number. Must not already be in use. Leave it out and one is generated for you. |
| warehouse_id | uuid | null | Optional | Pickup point. Only needed if you have more than one pickup location. Must be one of your account's warehouses. |
| customer_name | string | null | Optional | Receiver's name. |
| customer_phone | string | Required | Receiver's phone. Example: 07809876543. |
| customer_address | string | Required | Delivery address. |
| amount | number | Required | Amount to collect from the receiver, in IQD. Use 0 for a prepaid order. Example: 25000. |
| district_id | uuid | null | Optional | District inside the governorate. Required for fawri orders (delivery_type = 1) when your account has a fawri price list. |
| order_category_id | uuid | Required | One of your own order categories. |
| delivery_type | integer | null | Optional | 0 = normal (default), 1 = fawri (express). |
| notes | string | null | Optional | — |
| business_name | string | null | Optional | — |
| governorate_id | string | integer | Required | Destination governorate: its id (UUID) or its number. |
| destination_coordinate | string | null | Optional | Delivery map point as lat,lng. Example: 33.312805,44.361488. |
| total_products | integer | null | Optional | — |
| scheduled_delivery_date_from | datetime | null | Optional | — |
| scheduled_delivery_date_to | datetime | null | Optional | Must be after scheduled_delivery_date_from. |
| invoice_url | string | null | Optional | — |
| order_items | object[] | null | Optional | — |
| Field | Type | Description | |
|---|---|---|---|
| attribute_id | uuid | Required | From GET /v2/attributes. |
| name | string | Required | — |
| weight | integer | Required | — |
| unit | string | null | Required | — |
| count | integer | Required | — |
The standard wrapper, with an OrderRecord object in data.
Creates up to 300 orders in one call. Either all are created or none. The response carries no order data; look the orders up by tracking number.
| Field | Type | Description | |
|---|---|---|---|
| orders | BatchOrderItem[] | Required | 1 to 300 items. |
| Field | Type | Description | |
|---|---|---|---|
| tr | string | Required | Your own tracking number. Required in a batch. |
| warehouse_id | uuid | null | Optional | Pickup point. Only needed if you have more than one pickup location. Must be one of your account's warehouses. |
| customer_name | string | Required | Receiver's name. Required in a batch. |
| customer_phone | string | Required | Receiver's phone. Example: 07809876543. |
| customer_address | string | Required | Delivery address. |
| amount | number | Required | Amount to collect from the receiver, in IQD. Use 0 for a prepaid order. Example: 25000. |
| district_id | uuid | null | Optional | District inside the governorate. Required for fawri orders (delivery_type = 1) when your account has a fawri price list. |
| order_category_id | uuid | Required | One of your own order categories. |
| delivery_type | integer | null | Optional | 0 = normal (default), 1 = fawri (express). |
| notes | string | null | Optional | — |
| business_name | string | null | Optional | — |
| governorate_id | uuid | Required | Destination governorate id. |
The standard wrapper. data carries nothing useful.
Returns an unused tracking number you can send as tr.
The standard wrapper, with the result in data.
Tells you whether a tracking number is already in use.
| Name | Type | Description | |
|---|---|---|---|
| tr | string | Required | Tracking number. |
An object, returned directly without the wrapper.
Allowed only before pickup, while the order is Pending, AwaitingPickup or PickupDelayed.
| Field | Type | Description | |
|---|---|---|---|
| tr | string | Required | Tracking number. |
The standard wrapper, with an OrderRecord object in data.
Tells the delivery company the package is packed. Moves a Pending order to AwaitingPickup.
| Field | Type | Description | |
|---|---|---|---|
| tr | string | Required | Tracking number. |
The standard wrapper, with an OrderRecord object in data.
| Name | Type | Description | |
|---|---|---|---|
| order | integer | Required | The order's numeric id. |
| Name | Type | Description | |
|---|---|---|---|
| include | string | Optional | Comma-separated related objects to embed. Allowed: status, customer, governorate, district, warehouse, orderCategory, orderItems, orderItems.attribute, merchant, history.merchant, driverRate, amountChanges, financial. Example: status,customer,governorate. |
The standard wrapper, with an Order object in data.
Removes an order permanently. Allowed only while it is Pending; otherwise the answer is 403.
| Name | Type | Description | |
|---|---|---|---|
| order | integer | Required | The order's numeric id. |
The standard wrapper, with an OrderRecord object in data.
Optional. You only need warehouses if you collect orders from more than one pickup location. Create one per location, then send its id as warehouse_id when you create an order. Running a marketplace? See Multi-vendor marketplaces.
| Name | Type | Description | |
|---|---|---|---|
| take | integer | Optional | Items per page. Default 15. Max 500. |
| page | integer | Optional | Page number. Default 1. |
A page object without the wrapper. The items (Warehouse) are in data.
| Field | Type | Description | |
|---|---|---|---|
| name | string | Required | — |
| address | string | Required | — |
| lat | number | null | Optional | — |
| long | number | null | Optional | — |
| governorate_id | string | integer | null | Optional | Governorate id (UUID) or its number. |
| phone | string | null | Optional | — |
| secondary_phone | string | null | Optional | — |
| availability_times_from | string | null | Optional | Time of day, HH:MM. Example: 09:00. |
| availability_times_to | string | null | Optional | Time of day, HH:MM. Example: 09:00. |
| site_id | string | null | Optional | — |
The standard wrapper, with a Warehouse object in data.
| Field | Type | Description | |
|---|---|---|---|
| default_warehouse_id | uuid | Required | — |
The standard wrapper. data carries nothing useful.
| Name | Type | Description | |
|---|---|---|---|
| warehouse | uuid | Required | Warehouse id. |
The standard wrapper, with a Warehouse object in data.
Send governorate_id on every update: when it is left out, the warehouse's governorate is cleared.
| Name | Type | Description | |
|---|---|---|---|
| warehouse | uuid | Required | Warehouse id. |
| Field | Type | Description | |
|---|---|---|---|
| name | string | Optional | — |
| address | string | Optional | — |
| lat | number | null | Optional | — |
| long | number | null | Optional | — |
| governorate_id | string | integer | null | Optional | Governorate id (UUID) or its number. |
| phone | string | null | Optional | — |
| secondary_phone | string | null | Optional | — |
| availability_times_from | string | null | Optional | Time of day, HH:MM. Example: 09:00. |
| availability_times_to | string | null | Optional | Time of day, HH:MM. Example: 09:00. |
| site_id | string | null | Optional | — |
The standard wrapper, with a Warehouse object in data.
| Name | Type | Description | |
|---|---|---|---|
| warehouse | uuid | Required | Warehouse id. |
The standard wrapper. data carries nothing useful.
| Name | Type | Description | |
|---|---|---|---|
| warehouse | uuid | Required | Warehouse id. |
An array of BusinessHour objects, returned directly without the wrapper.
Sets the opening hours for the days you send. Days you leave out are not changed.
| Name | Type | Description | |
|---|---|---|---|
| warehouse | uuid | Required | Warehouse id. |
| Field | Type | Description | |
|---|---|---|---|
| business_hours | object | Required | Keyed by day name. |
| Field | Type | Description | |
|---|---|---|---|
| is_closed | boolean | Required | — |
| opens_at | string | null | Optional | Time of day, HH:MM. Example: 09:00. |
| closes_at | string | null | Optional | Time of day, HH:MM. Example: 09:00. |
The standard wrapper. data carries nothing useful.
Your own grouping of orders. Every order needs one.
| Name | Type | Description | |
|---|---|---|---|
| take | integer | Optional | Items per page. Default 10. Max 500. |
| page | integer | Optional | Page number. Default 1. |
A page object without the wrapper. The items (OrderCategory) are in data.
| Field | Type | Description | |
|---|---|---|---|
| name | string | Required | — |
The standard wrapper, with an OrderCategory object in data.
| Field | Type | Description | |
|---|---|---|---|
| default_order_category_id | uuid | Required | — |
The standard wrapper. data carries nothing useful.
| Name | Type | Description | |
|---|---|---|---|
| order_category | uuid | Required | Order category id. |
The category, without the usual status/message/data wrapper. An OrderCategory object, returned directly.
| Name | Type | Description | |
|---|---|---|---|
| order_category | uuid | Required | Order category id. |
| Field | Type | Description | |
|---|---|---|---|
| name | string | Required | — |
The standard wrapper, with an OrderCategory object in data.
| Name | Type | Description | |
|---|---|---|---|
| order_category | uuid | Required | Order category id. |
The standard wrapper. data carries nothing useful.
Governorates, statuses and product types.
There are few governorates; send take=50 to get them all in one page.
| Name | Type | Description | |
|---|---|---|---|
| take | integer | Optional | Items per page. Default 10. Max 500. |
| page | integer | Optional | Page number. Default 1. |
A page object without the wrapper. The items (Governorate) are in data.
| Name | Type | Description | |
|---|---|---|---|
| governorate | uuid | Required | Governorate id. |
The standard wrapper, with a Governorate object in data.
The statuses an order of yours can be in. Send take=50 to get them all in one page.
| Name | Type | Description | |
|---|---|---|---|
| take | integer | Optional | Items per page. Default 10. Max 500. |
| page | integer | Optional | Page number. Default 1. |
A page object without the wrapper. The items (Status) are in data.
| Name | Type | Description | |
|---|---|---|---|
| status | uuid | Required | Status id. |
The standard wrapper, with a Status object in data.
Values for order_items[].attribute_id.
| Name | Type | Description | |
|---|---|---|---|
| take | integer | Optional | Items per page. Default 15. Max 500. |
| page | integer | Optional | Page number. Default 1. |
A page object without the wrapper. The items (Attribute) are in data.
Receive order events at your own URL.
Sent to your webhook URL whenever one of your orders is created or changes.
Verify every event. Compute HMAC-SHA256 over {X-Jayik-Timestamp}.{raw request body} with your webhook secret as the key, and compare sha256= plus the hex digest with X-Jayik-Signature. Use the raw bytes of the body, before any JSON parsing. Reject events whose timestamp is more than a few minutes old.
Answer with any 2xx status within 5 seconds. Do slow work after answering.
| Name | Type | Description | |
|---|---|---|---|
| X-Jayik-Timestamp | string | Required | Unix time the event was sent, in seconds. |
| X-Jayik-Signature | string | Required | sha256= followed by the hex HMAC-SHA256 digest. |
| secret-key | string | Optional | Your webhook secret, sent as a plain header for older integrations. Prefer checking the signature. |
| Field | Type | Description | |
|---|---|---|---|
| opration | string | Required | The event. The field name is spelled opration. One of: created, updated, assigned, deleted, restored, forceDeleted. |
| data | OrderRecord | Required | The OrderRecord, plus a driver object. Driver fields are null unless driver details are enabled for your account. |
Returns your webhook URL and the secret used to verify events.
The settings, without the usual status/message/data wrapper. A WebhookConfig object, returned directly.
Sets where order events are sent. The URL must use HTTPS. Send null to stop receiving events.
| Field | Type | Description | |
|---|---|---|---|
| webhook | uri | null | Optional | Must start with https://. |
Saved. data.webhook shows the URL from before this call; read the settings again to see the new one. The standard wrapper, with a WebhookConfig object in data.
Sends one event to your webhook URL. Without tr, sample data is sent. Answers 422 when no URL is set.
| Field | Type | Description | |
|---|---|---|---|
| tr | string | null | Optional | Send this order's real data. |
| operation | string | null | Optional | Event name to put in opration. Default created. |
The standard wrapper, with the result in data.
Sends a created event for one of your orders to your webhook URL again.
| Name | Type | Description | |
|---|---|---|---|
| tr | string | Required | Tracking number. |
The standard wrapper, with an OrderRecord object in data.
Keys for server integrations.
Key values are never listed.
| Name | Type | Description | |
|---|---|---|---|
| take | integer | Optional | Items per page. Default 10. Max 500. |
| page | integer | Optional | Page number. Default 1. |
A page object without the wrapper. The items (ApiKey) are in data.
The key value is in the response and is shown only this once.
| Field | Type | Description | |
|---|---|---|---|
| description | string | null | Required | A label, such as the system that will use the key. The field must be present; it may be null. |
The standard wrapper, with an ApiKeyWithSecret object in data.
Replaces the key's value. The old value stops working immediately; the new one is shown only this once.
| Field | Type | Description | |
|---|---|---|---|
| id | uuid | Required | — |
The standard wrapper, with an ApiKeyWithSecret object in data.
| Name | Type | Description | |
|---|---|---|---|
| api_key | uuid | Required | API key id. |
The key's details, without its value and without the usual wrapper. An ApiKey object, returned directly.
Rename a key, or switch it off and on.
| Name | Type | Description | |
|---|---|---|---|
| api_key | uuid | Required | API key id. |
| Field | Type | Description | |
|---|---|---|---|
| description | string | null | Optional | — |
| active | integer | Required | 1 = usable, 0 = switched off. |
The standard wrapper, with an ApiKey object in data.
| Name | Type | Description | |
|---|---|---|---|
| api_key | uuid | Required | API key id. |
The standard wrapper, with an ApiKey object in data.
The objects returned by the API, field by field. Other fields may be present; ignore the ones you do not use.
include.| Field | Type | Description |
|---|---|---|
| id | integer | Numeric id. Used in GET and DELETE /orders/{order}. |
| uuid | uuid | — |
| tr | string | Tracking number. Example: ORD-1001. |
| amount | number | Amount to collect from the receiver, in IQD. Example: 25000. |
| invoice_url | string | null | — |
| delivery_type | integer | null | 0 = normal, 1 = fawri (express). |
| delivery_type_label | string | null | — |
| last_four_digits | string | null | — |
| customer_id | uuid | — |
| customer | Customer | — |
| governorate_id | uuid | — |
| governorate | GovernorateSummary | — |
| status_id | uuid | — |
| status | StatusSummary | — |
| merchant | object | — |
| warehouse | Warehouse | null | — |
| order_items | OrderItem[] | — |
| history | OrderHistoryEntry[] | — |
| amount_changes | AmountChange[] | — |
| settlement | object | null | — |
| created_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| updated_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| Field | Type | Description |
|---|---|---|
| id | integer | — |
| uuid | uuid | — |
| tr | string | — |
| amount | number | — |
| status_id | uuid | — |
| governorate_id | uuid | — |
| district_id | uuid | null | — |
| customer_id | uuid | — |
| merchant_id | uuid | — |
| company_id | uuid | null | — |
| warehouse_id | uuid | null | — |
| order_category_id | uuid | null | — |
| delivery_type | integer | null | 0 = normal, 1 = fawri (express). |
| verification_type | integer | How delivery is confirmed: 0 = none, 1 = one-time code, 2 = photo, 3 = QR. |
| destination_coordinate | Coordinate | — |
| notes | string | null | — |
| total_products | integer | null | — |
| invoice_url | string | null | — |
| scheduled_delivery_date_from | string | null | — |
| scheduled_delivery_date_to | string | null | — |
| rate | number | null | — |
| assigned_at | string | null | — |
| picked_up_at | string | null | — |
| delivered_at | string | null | — |
| returned_at | string | null | — |
| cancelled_at | string | null | — |
| status | Status | — |
| governorate | GovernorateSummary | — |
| order_category | OrderCategory | null | — |
| warehouse | Warehouse | null | — |
| customer | Customer | — |
| created_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| updated_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| name | string | null | — |
| phone | string | — |
| address | string | null | — |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| name | string | — |
| attribute_id | uuid | — |
| attribute | object | — |
| weight | string | number | — |
| unit | string | null | — |
| count | integer | — |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| order_id | uuid | The order's uuid. |
| status_id | uuid | — |
| status | Status | — |
| notes | string | null | — |
| description | string | null | — |
| lat | string | null | — |
| long | string | null | — |
| image | string | null | — |
| note_image | string | null | — |
| driver_id | uuid | null | — |
| merchant_id | uuid | null | — |
| warehouse_id | uuid | null | — |
| delay_days | integer | null | — |
| created_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| updated_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| Field | Type | Description |
|---|---|---|
| id | string | — |
| old_amount | number | — |
| new_amount | number | — |
| changed_by_type | string | null | Who changed it. Example: Merchant. |
| notes | string | null | — |
| changed_at | datetime | — |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| name | string | — |
| address | string | null | — |
| lat | string | number | null | Example: 33.3128. |
| long | string | number | null | Example: 44.3615. |
| phone | string | null | — |
| secondary_phone | string | null | — |
| governorate_id | uuid | null | — |
| availability_times_from | string | null | Time of day, HH:MM. Example: 09:00. |
| availability_times_to | string | null | Time of day, HH:MM. Example: 09:00. |
| site_id | string | null | — |
| creator_id | uuid | null | — |
| created_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| updated_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| Field | Type | Description |
|---|---|---|
| id | string | — |
| warehouse_id | uuid | — |
| day | string | One of: sunday, monday, tuesday, wednesday, thursday, friday, saturday. |
| opens_at | string | null | — |
| closes_at | string | null | — |
| is_closed | boolean | — |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| name | string | Example: Clothes. |
| merchant_id | uuid | — |
| created_at | datetime | — |
| updated_at | datetime | — |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| name | string | Example: بغداد. |
| number | integer | null | Short numeric code. Accepted in place of the id when creating a single order or a warehouse. |
| created_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| updated_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| name | string | Stable status code. See the status list in the introduction. Example: Pending. |
| ar_name | string | null | — |
| en_name | string | null | — |
| kr_name | string | null | — |
| color | string | null | — |
| image | string | null | — |
| sort | integer | null | — |
| created_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| updated_at | string | Date and time, YYYY-MM-DD HH:MM:SS. Example: 2026-11-25 22:02:14. |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| name | string | — |
| description | string | null | — |
| created_at | datetime | — |
| updated_at | datetime | — |
| Field | Type | Description |
|---|---|---|
| webhook | uri | null | The URL order events are sent to. |
| secret | object | The static header sent with every event. |
| signature | object | How events are signed. |
| Field | Type | Description |
|---|---|---|
| opration | string | The event. The field name is spelled opration. One of: created, updated, assigned, deleted, restored, forceDeleted. |
| data | OrderRecord | — |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| description | string | null | — |
| active | boolean | integer | Whether the key can be used. |
| user_id | uuid | — |
| created_at | datetime | — |
| updated_at | datetime | — |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| description | string | null | — |
| key | string | The key value. Shown once; store it now. |
| user_id | uuid | — |
| created_at | datetime | — |
| updated_at | datetime | — |
| Field | Type | Description |
|---|---|---|
| id | uuid | — |
| full_name | string | — |
| business_name | string | null | — |
| phone | string | — |
| secondary_phone | string | null | — |
| is_active | boolean | — |
| status | integer | 0 = waiting for activation, 1 = active, 2 = rejected. |
| parent_merchant_id | uuid | null | Set on an employee; the account it belongs to. |
| governorate_id | uuid | null | — |
| lat | number | null | — |
| lng | number | null | — |
| default_order_category_id | uuid | null | — |
| default_warehouse_id | uuid | null | — |
| warehouse_id | uuid | null | When set on an employee, they only see orders of this warehouse. |
| availability_times_from | string | null | Time of day, HH:MM. Example: 09:00. |
| availability_times_to | string | null | Time of day, HH:MM. Example: 09:00. |
| webhook | string | null | — |
| company_id | uuid | null | — |
| created_at | datetime | — |
| updated_at | datetime | — |