المرجع
كل مسار بمعاملاته وصلاحيته وشكل جوابه، من وثيقة OpenAPI نفسها.
Account
GET/me
The calling credential: tenant, principal, scopes and rate limit
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
tenant | object | |
tenant.id | string | |
tenant.name | string | null | |
principal | object | |
principal.type | enum: key, oauth | |
principal.id | string | |
principal.name | string | |
scopes | array<string> | |
rate_limit_per_min | integer | |
company_id | integer | null |
Branches
GET/branches
Branches (companies) of the tenant
الصلاحية: branches:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
city | string | null | |
phone | string | null | |
parent_id | integer | null | |
updated_at | string | null |
GET/branches/{id}
Branches (companies) of the tenant (one)
الصلاحية: branches:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
city | string | null | |
phone | string | null | |
parent_id | integer | null | |
updated_at | string | null |
Products
GET/categories
Point-of-sale categories
الصلاحية: products:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
parent_id | integer | null | |
sequence | number | null | |
updated_at | string | null |
GET/products
Products
الصلاحية: products:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
barcode | query | string | Exact barcode | |
default_code | query | string | Exact internal reference | |
available_in_pos | query | enum: true, false | Only products sold (or not) at the point of sale | |
category_id | query | integer | POS category id |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
barcode | string | null | |
default_code | string | null | |
list_price | number | null | |
taxes | array<object> | |
taxes.id | integer | |
taxes.name | string | |
categories | array<object> | |
categories.id | integer | |
categories.name | string | |
available_in_pos | boolean | |
sale_ok | boolean | |
image_url | string | null | |
updated_at | string | null |
POST/products
Products
الصلاحية: products:write
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
Idempotency-Key | header | string | Same key + same body returns the first answer; a different body is 409 |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
name | string | نعم | |
list_price | number | نعم | |
barcode | string | null | ||
default_code | string | null | ||
category_ids | array<integer> | ||
available_in_pos | boolean |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
barcode | string | null | |
default_code | string | null | |
list_price | number | null | |
taxes | array<object> | |
taxes.id | integer | |
taxes.name | string | |
categories | array<object> | |
categories.id | integer | |
categories.name | string | |
available_in_pos | boolean | |
sale_ok | boolean | |
image_url | string | null | |
updated_at | string | null |
GET/products/{id}
Products (one)
الصلاحية: products:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
barcode | string | null | |
default_code | string | null | |
list_price | number | null | |
taxes | array<object> | |
taxes.id | integer | |
taxes.name | string | |
categories | array<object> | |
categories.id | integer | |
categories.name | string | |
available_in_pos | boolean | |
sale_ok | boolean | |
image_url | string | null | |
updated_at | string | null |
PATCH/products/{id}
Products
الصلاحية: products:write
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
name | string | ||
list_price | number | ||
barcode | string | null | ||
default_code | string | null | ||
category_ids | array<integer> | ||
available_in_pos | boolean |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
barcode | string | null | |
default_code | string | null | |
list_price | number | null | |
taxes | array<object> | |
taxes.id | integer | |
taxes.name | string | |
categories | array<object> | |
categories.id | integer | |
categories.name | string | |
available_in_pos | boolean | |
sale_ok | boolean | |
image_url | string | null | |
updated_at | string | null |
Customers
GET/customers
Customers
الصلاحية: customers:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
phone | query | string | Exact phone | |
email | query | string | Exact e-mail (case-insensitive) |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
phone | string | null | |
email | string | null | |
vat | string | null | |
city | string | null | |
is_company | boolean | |
created_at | string | null | |
updated_at | string | null |
POST/customers
Customers
الصلاحية: customers:write
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
Idempotency-Key | header | string | Same key + same body returns the first answer; a different body is 409 |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
name | string | نعم | |
phone | string | null | ||
email | string (email) | null | ||
vat | string | null | ||
city | string | null |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
phone | string | null | |
email | string | null | |
vat | string | null | |
city | string | null | |
is_company | boolean | |
created_at | string | null | |
updated_at | string | null |
GET/customers/{id}
Customers (one)
الصلاحية: customers:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
phone | string | null | |
email | string | null | |
vat | string | null | |
city | string | null | |
is_company | boolean | |
created_at | string | null | |
updated_at | string | null |
PATCH/customers/{id}
Customers
الصلاحية: customers:write
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
name | string | ||
phone | string | null | ||
email | string (email) | null | ||
vat | string | null | ||
city | string | null |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
name | string | null | |
phone | string | null | |
email | string | null | |
vat | string | null | |
city | string | null | |
is_company | boolean | |
created_at | string | null | |
updated_at | string | null |
Orders
GET/orders
Point-of-sale orders
الصلاحية: orders:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
state | query | enum: draft, paid, done, invoiced, cancel | Order state | |
customer_id | query | integer | Customer id | |
branch_id | query | integer | Branch (company) id |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
reference | string | null | |
state | string | null | |
date | string | null | |
branch | object | null | |
customer_id | integer | null | |
currency | string | null | |
amount_total | number | null | |
amount_tax | number | null | |
amount_paid | number | null | |
amount_return | number | null | |
lines | array<object> | |
lines.product_id | integer | null | |
lines.name | string | null | |
lines.qty | number | null | |
lines.price_unit | number | null | |
lines.discount | number | null | |
lines.subtotal | number | null | |
lines.total | number | null | |
payments | array<object> | |
payments.method | string | null | |
payments.amount | number | null | |
updated_at | string | null |
GET/orders/{id}
Point-of-sale orders (one)
الصلاحية: orders:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
reference | string | null | |
state | string | null | |
date | string | null | |
branch | object | null | |
customer_id | integer | null | |
currency | string | null | |
amount_total | number | null | |
amount_tax | number | null | |
amount_paid | number | null | |
amount_return | number | null | |
lines | array<object> | |
lines.product_id | integer | null | |
lines.name | string | null | |
lines.qty | number | null | |
lines.price_unit | number | null | |
lines.discount | number | null | |
lines.subtotal | number | null | |
lines.total | number | null | |
payments | array<object> | |
payments.method | string | null | |
payments.amount | number | null | |
updated_at | string | null |
Sales orders
GET/sales-orders
Sales orders
POST creates a confirmed order and requires an Idempotency-Key header.
الصلاحية: sales_orders:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
state | query | enum: draft, sent, sale, cancel | Order state | |
customer_id | query | integer | Customer id |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | string | null | |
date | string | null | |
customer_id | integer | null | |
branch | object | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
external_ref | string | null | |
lines | array<object> | |
lines.product_id | integer | null | |
lines.name | string | null | |
lines.qty | number | null | |
lines.price_unit | number | null | |
lines.discount | number | null | |
lines.subtotal | number | null | |
lines.total | number | null | |
updated_at | string | null |
POST/sales-orders
Sales orders
POST creates a confirmed order and requires an Idempotency-Key header.
الصلاحية: sales_orders:write
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
Idempotency-Key | header | string | نعم | Same key + same body returns the first answer; a different body is 409 |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
customer_id | integer | ||
customer | object | ||
customer.name | string | نعم | |
customer.phone | string | null | ||
customer.email | string (email) | null | ||
customer.vat | string | null | ||
customer.city | string | null | ||
lines | array<object> | نعم | |
lines.product_id | integer | نعم | |
lines.qty | number | نعم | |
lines.price_unit | number | ||
lines.discount | number | ||
external_ref | string | ||
note | string |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | string | null | |
date | string | null | |
customer_id | integer | null | |
branch | object | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
external_ref | string | null | |
lines | array<object> | |
lines.product_id | integer | null | |
lines.name | string | null | |
lines.qty | number | null | |
lines.price_unit | number | null | |
lines.discount | number | null | |
lines.subtotal | number | null | |
lines.total | number | null | |
updated_at | string | null |
GET/sales-orders/{id}
Sales orders (one)
POST creates a confirmed order and requires an Idempotency-Key header.
الصلاحية: sales_orders:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | string | null | |
date | string | null | |
customer_id | integer | null | |
branch | object | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
external_ref | string | null | |
lines | array<object> | |
lines.product_id | integer | null | |
lines.name | string | null | |
lines.qty | number | null | |
lines.price_unit | number | null | |
lines.discount | number | null | |
lines.subtotal | number | null | |
lines.total | number | null | |
updated_at | string | null |
Invoices
GET/invoices
Posted customer invoices and credit notes
الصلاحية: invoices:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
payment_state | query | enum: not_paid, in_payment, paid, partial, reversed | Payment state | |
customer_id | query | integer | Customer id |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
type | enum: invoice, credit_note | |
date | string | null | |
due_date | string | null | |
customer_id | integer | null | |
branch | object | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
amount_due | number | null | |
payment_state | string | null | |
state | string | null | |
zatca_state | string | null | |
updated_at | string | null |
GET/invoices/{id}
Posted customer invoices and credit notes (one)
الصلاحية: invoices:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
type | enum: invoice, credit_note | |
date | string | null | |
due_date | string | null | |
customer_id | integer | null | |
branch | object | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
amount_due | number | null | |
payment_state | string | null | |
state | string | null | |
zatca_state | string | null | |
updated_at | string | null |
Inventory
GET/inventory
Stock on hand per product and location
الصلاحية: inventory:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
product_id | query | integer | Product id | |
branch_id | query | integer | Branch (company) id |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
product_id | integer | null | |
location | object | null | |
branch | object | null | |
quantity | number | null | |
reserved | number | null | |
updated_at | string | null |
Loyalty
GET/loyalty/cards
Loyalty cards and points
الصلاحية: loyalty:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
customer_id | query | integer | Customer id |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
program | object | null | |
customer_id | integer | null | |
points | number | null | |
expires_on | string | null | |
updated_at | string | null |
Reservations
GET/reservations
Table reservations
POST books a table under the restaurant’s online-booking rules (hours, lead time, party size, closures) and requires an Idempotency-Key header. A full slot answers 409 CONFLICT. Phone and e-mail are returned only with the customers:read scope.
الصلاحية: reservations:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
state | query | enum: pending, confirmed, seated, completed, cancelled, no_show | Reservation state | |
source | query | enum: website, app, google, dashboard, pos, phone, api, waitlist | Where the booking came from | |
branch_id | query | integer | Branch (company) id | |
start_from | query | string | Bookings starting at or after (UTC, ISO 8601; a bare date = 00:00 UTC) | |
start_to | query | string | Bookings starting at or before (UTC; a bare date = 23:59:59 UTC). Range ≤ 366 days |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | enum: pending, confirmed, seated, completed, cancelled, no_show | null | |
start | string | null | |
stop | string | null | |
party_size | integer | null | |
guest_name | string | null | |
phone | string | null | Only with the customers:read scope, else null |
email | string | null | Only with the customers:read scope, else null |
note | string | null | |
occasion | enum: birthday, business, family, other | null | |
source | enum: website, app, google, dashboard, pos, phone, api, waitlist | null | |
branch | object | null | |
tables | array<object> | |
tables.id | integer | |
tables.name | string | |
external_ref | string | null | |
created_at | string | null | |
updated_at | string | null |
POST/reservations
Table reservations
POST books a table under the restaurant’s online-booking rules (hours, lead time, party size, closures) and requires an Idempotency-Key header. A full slot answers 409 CONFLICT. Phone and e-mail are returned only with the customers:read scope.
الصلاحية: reservations:write
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
Idempotency-Key | header | string | نعم | Same key + same body returns the first answer; a different body is 409 |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
start | string | نعم | UTC instant of the booking (ISO 8601 with Z or an offset) |
party_size | integer | نعم | |
guest_name | string | نعم | |
phone | string | نعم | |
email | string (email) | ||
note | string | ||
occasion | enum: birthday, business, family, other | ||
branch_id | integer | Branch (company) id; default = the key’s main company | |
external_ref | string |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | enum: pending, confirmed, seated, completed, cancelled, no_show | null | |
start | string | null | |
stop | string | null | |
party_size | integer | null | |
guest_name | string | null | |
phone | string | null | Only with the customers:read scope, else null |
email | string | null | Only with the customers:read scope, else null |
note | string | null | |
occasion | enum: birthday, business, family, other | null | |
source | enum: website, app, google, dashboard, pos, phone, api, waitlist | null | |
branch | object | null | |
tables | array<object> | |
tables.id | integer | |
tables.name | string | |
external_ref | string | null | |
created_at | string | null | |
updated_at | string | null |
GET/reservations/{id}
Table reservations (one)
POST books a table under the restaurant’s online-booking rules (hours, lead time, party size, closures) and requires an Idempotency-Key header. A full slot answers 409 CONFLICT. Phone and e-mail are returned only with the customers:read scope.
الصلاحية: reservations:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | enum: pending, confirmed, seated, completed, cancelled, no_show | null | |
start | string | null | |
stop | string | null | |
party_size | integer | null | |
guest_name | string | null | |
phone | string | null | Only with the customers:read scope, else null |
email | string | null | Only with the customers:read scope, else null |
note | string | null | |
occasion | enum: birthday, business, family, other | null | |
source | enum: website, app, google, dashboard, pos, phone, api, waitlist | null | |
branch | object | null | |
tables | array<object> | |
tables.id | integer | |
tables.name | string | |
external_ref | string | null | |
created_at | string | null | |
updated_at | string | null |
Reviews
GET/reviews
Customer reviews after a visit
Submitted reviews only. The comment, the customer’s display name and the reply are returned only for public reviews (the customer allowed it and the business published it); otherwise they are null.
الصلاحية: reviews:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
branch_id | query | integer | Branch (company) id | |
employee_id | query | integer | Staff member id | |
service_id | query | integer | Service id | |
min_stars | query | integer | Only reviews with at least this many stars | |
max_stars | query | integer | Only reviews with at most this many stars | |
public | query | enum: true, false | true = published public reviews only; false = the others |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
stars | integer | null | |
negative | boolean | |
reasons | array<string> | |
public | boolean | The customer allowed public display and the business published it |
comment | string | null | Only when public, else null |
display_name | string | null | First name and initial; only when public, else null |
reply | string | null | The business reply; only when public, else null |
replied_at | string | null | |
branch | object | null | |
service | object | null | |
employee | object | null | |
appointment_id | integer | null | |
submitted_at | string | null | |
updated_at | string | null |
GET/reviews/{id}
Customer reviews after a visit (one)
Submitted reviews only. The comment, the customer’s display name and the reply are returned only for public reviews (the customer allowed it and the business published it); otherwise they are null.
الصلاحية: reviews:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
stars | integer | null | |
negative | boolean | |
reasons | array<string> | |
public | boolean | The customer allowed public display and the business published it |
comment | string | null | Only when public, else null |
display_name | string | null | First name and initial; only when public, else null |
reply | string | null | The business reply; only when public, else null |
replied_at | string | null | |
branch | object | null | |
service | object | null | |
employee | object | null | |
appointment_id | integer | null | |
submitted_at | string | null | |
updated_at | string | null |
Accounting
GET/accounts
Chart of accounts
الصلاحية: accounting:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
type | query | string | Account type (e.g. expense, asset_receivable) | |
code_prefix | query | string | Code starts with |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
code | string | null | |
name | string | null | |
type | string | null | asset_receivable, asset_cash, liability_payable, income, expense, … |
group | enum: asset, liability, equity, income, expense | null | |
reconcile | boolean | |
active | boolean | |
currency | string | null | |
updated_at | string | null |
GET/accounts/{id}
Chart of accounts (one)
الصلاحية: accounting:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
code | string | null | |
name | string | null | |
type | string | null | asset_receivable, asset_cash, liability_payable, income, expense, … |
group | enum: asset, liability, equity, income, expense | null | |
reconcile | boolean | |
active | boolean | |
currency | string | null | |
updated_at | string | null |
GET/journal-entries
Journal entries
Lists posted entries (`state=draft` for drafts). POST saves a balanced entry as a DRAFT and requires an Idempotency-Key header; it is never posted through the API.
الصلاحية: accounting:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
state | query | enum: posted, draft | posted (default) or draft | |
type | query | enum: entry, out_invoice, out_refund, in_invoice, in_refund, out_receipt, in_receipt | Entry type | |
journal_id | query | integer | Journal id | |
date_from | query | string | Accounting date on or after (YYYY-MM-DD) | |
date_to | query | string | Accounting date on or before (YYYY-MM-DD) |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
type | string | null | entry, out_invoice, out_refund, in_invoice, in_refund, out_receipt, in_receipt |
state | string | null | |
date | string | null | |
ref | string | null | |
journal | object | null | |
branch | object | null | |
currency | string | null | |
amount_total | number | null | |
external_ref | string | null | |
lines_complete | boolean | false when this page held more lines than one answer carries: read the entry by id |
lines | array<object> | |
lines.account_id | integer | null | |
lines.label | string | null | |
lines.debit | number | null | |
lines.credit | number | null | |
lines.amount_currency | number | null | |
lines.currency | string | null | |
lines.partner_id | integer | null | |
updated_at | string | null |
POST/journal-entries
Journal entries
Lists posted entries (`state=draft` for drafts). POST saves a balanced entry as a DRAFT and requires an Idempotency-Key header; it is never posted through the API.
الصلاحية: journal_entries:write
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
Idempotency-Key | header | string | نعم | Same key + same body returns the first answer; a different body is 409 |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
date | string | نعم | |
ref | string | ||
journal_id | integer | ||
external_ref | string | ||
lines | array<object> | نعم | |
lines.account_id | integer | نعم | |
lines.debit | number | ||
lines.credit | number | ||
lines.label | string | ||
lines.partner_id | integer |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
type | string | null | entry, out_invoice, out_refund, in_invoice, in_refund, out_receipt, in_receipt |
state | string | null | |
date | string | null | |
ref | string | null | |
journal | object | null | |
branch | object | null | |
currency | string | null | |
amount_total | number | null | |
external_ref | string | null | |
lines_complete | boolean | false when this page held more lines than one answer carries: read the entry by id |
lines | array<object> | |
lines.account_id | integer | null | |
lines.label | string | null | |
lines.debit | number | null | |
lines.credit | number | null | |
lines.amount_currency | number | null | |
lines.currency | string | null | |
lines.partner_id | integer | null | |
updated_at | string | null |
GET/journal-entries/{id}
Journal entries (one)
Lists posted entries (`state=draft` for drafts). POST saves a balanced entry as a DRAFT and requires an Idempotency-Key header; it is never posted through the API.
الصلاحية: accounting:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
type | string | null | entry, out_invoice, out_refund, in_invoice, in_refund, out_receipt, in_receipt |
state | string | null | |
date | string | null | |
ref | string | null | |
journal | object | null | |
branch | object | null | |
currency | string | null | |
amount_total | number | null | |
external_ref | string | null | |
lines_complete | boolean | false when this page held more lines than one answer carries: read the entry by id |
lines | array<object> | |
lines.account_id | integer | null | |
lines.label | string | null | |
lines.debit | number | null | |
lines.credit | number | null | |
lines.amount_currency | number | null | |
lines.currency | string | null | |
lines.partner_id | integer | null | |
updated_at | string | null |
GET/trial-balance
Trial balance
Posted entries only. Query: `date_from`, `date_to` (YYYY-MM-DD, default today), `journal_id`. Income and expense accounts carry no opening balance, as in the dashboard report.
الصلاحية: accounting:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
date_from | query | string | Period start (YYYY-MM-DD); without it the report runs from the first entry | |
date_to | query | string | Period end (YYYY-MM-DD), default today | |
journal_id | query | integer | Only this journal |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
date_from | string | null | |
date_to | string | |
basis | string | |
rows | array<object> | |
rows.account_id | integer | |
rows.code | string | null | |
rows.name | string | null | |
rows.type | string | null | |
rows.group | enum: asset, liability, equity, income, expense | |
rows.opening | number | |
rows.debit | number | |
rows.credit | number | |
rows.closing | number | |
totals | object | |
totals.opening | number | |
totals.debit | number | |
totals.credit | number | |
totals.closing | number | |
balanced | boolean |
Vendor bills
GET/vendor-bills
Vendor bills and vendor credit notes
Lists posted bills (`state=draft` for drafts). POST saves a DRAFT bill and requires an Idempotency-Key header; it is never posted through the API.
الصلاحية: vendor_bills:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
state | query | enum: posted, draft | posted (default) or draft | |
payment_state | query | enum: not_paid, in_payment, paid, partial, reversed | Payment state | |
vendor_id | query | integer | Vendor id |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | null on a draft |
type | enum: bill, credit_note | |
state | string | null | |
vendor_ref | string | null | |
date | string | null | |
due_date | string | null | |
vendor_id | integer | null | |
branch | object | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
amount_due | number | null | |
payment_state | string | null | |
external_ref | string | null | |
lines | array<object> | |
lines.product_id | integer | null | |
lines.description | string | null | |
lines.qty | number | null | |
lines.price_unit | number | null | |
lines.discount | number | null | |
lines.account_id | integer | null | |
lines.tax_ids | array<integer> | |
lines.subtotal | number | null | |
lines.total | number | null | |
updated_at | string | null |
POST/vendor-bills
Vendor bills and vendor credit notes
Lists posted bills (`state=draft` for drafts). POST saves a DRAFT bill and requires an Idempotency-Key header; it is never posted through the API.
الصلاحية: vendor_bills:write
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
Idempotency-Key | header | string | نعم | Same key + same body returns the first answer; a different body is 409 |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
type | enum: bill, credit_note | ||
vendor_id | integer | ||
vendor | object | ||
vendor.name | string | نعم | |
vendor.phone | string | null | ||
vendor.email | string (email) | null | ||
vendor.vat | string | null | ||
vendor.city | string | null | ||
date | string | ||
due_date | string | ||
vendor_ref | string | ||
external_ref | string | ||
note | string | ||
lines | array<object> | نعم | |
lines.product_id | integer | ||
lines.description | string | ||
lines.qty | number | نعم | |
lines.price_unit | number | نعم | |
lines.discount | number | ||
lines.account_id | integer | ||
lines.tax_ids | array<integer> |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | null on a draft |
type | enum: bill, credit_note | |
state | string | null | |
vendor_ref | string | null | |
date | string | null | |
due_date | string | null | |
vendor_id | integer | null | |
branch | object | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
amount_due | number | null | |
payment_state | string | null | |
external_ref | string | null | |
lines | array<object> | |
lines.product_id | integer | null | |
lines.description | string | null | |
lines.qty | number | null | |
lines.price_unit | number | null | |
lines.discount | number | null | |
lines.account_id | integer | null | |
lines.tax_ids | array<integer> | |
lines.subtotal | number | null | |
lines.total | number | null | |
updated_at | string | null |
GET/vendor-bills/{id}
Vendor bills and vendor credit notes (one)
Lists posted bills (`state=draft` for drafts). POST saves a DRAFT bill and requires an Idempotency-Key header; it is never posted through the API.
الصلاحية: vendor_bills:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | null on a draft |
type | enum: bill, credit_note | |
state | string | null | |
vendor_ref | string | null | |
date | string | null | |
due_date | string | null | |
vendor_id | integer | null | |
branch | object | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
amount_due | number | null | |
payment_state | string | null | |
external_ref | string | null | |
lines | array<object> | |
lines.product_id | integer | null | |
lines.description | string | null | |
lines.qty | number | null | |
lines.price_unit | number | null | |
lines.discount | number | null | |
lines.account_id | integer | null | |
lines.tax_ids | array<integer> | |
lines.subtotal | number | null | |
lines.total | number | null | |
updated_at | string | null |
Payments
GET/payments
Customer receipts and vendor payments
Registered payments only. A sale settled at the till has no payment row: use /invoices and /orders for those.
الصلاحية: payments:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
direction | query | enum: inbound, outbound | inbound = received, outbound = paid out | |
partner_id | query | integer | Customer or vendor id | |
date_from | query | string | Payment date on or after (YYYY-MM-DD) | |
date_to | query | string | Payment date on or before (YYYY-MM-DD) |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
date | string | null | |
state | string | null | in_process, paid, canceled, rejected |
direction | enum: inbound, outbound | |
partner_type | enum: customer, vendor | |
partner_id | integer | null | |
amount | number | null | |
currency | string | null | |
journal | object | null | |
branch | object | null | |
memo | string | null | |
reference | string | null | |
reconciled | boolean | |
invoice_ids | array<integer> | |
bill_ids | array<integer> | |
updated_at | string | null |
GET/payments/{id}
Customer receipts and vendor payments (one)
Registered payments only. A sale settled at the till has no payment row: use /invoices and /orders for those.
الصلاحية: payments:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
date | string | null | |
state | string | null | in_process, paid, canceled, rejected |
direction | enum: inbound, outbound | |
partner_type | enum: customer, vendor | |
partner_id | integer | null | |
amount | number | null | |
currency | string | null | |
journal | object | null | |
branch | object | null | |
memo | string | null | |
reference | string | null | |
reconciled | boolean | |
invoice_ids | array<integer> | |
bill_ids | array<integer> | |
updated_at | string | null |
Manufacturing
GET/manufacturing-orders
Manufacturing orders
الصلاحية: manufacturing:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
state | query | enum: draft, confirmed, progress, to_close, done, cancel | Order state | |
product_id | query | integer | Finished product id | |
finished_from | query | string | Finished on or after (YYYY-MM-DD) |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | string | null | draft, confirmed, progress, to_close, done, cancel |
product_id | integer | null | |
product_name | string | null | |
qty_planned | number | null | |
qty_produced | number | null | |
uom | string | null | |
bom_id | integer | null | |
origin | string | null | |
priority | enum: normal, urgent | |
quality_hold | boolean | |
start | string | null | |
finished_at | string | null | |
deadline | string | null | |
branch | object | null | |
components | array<object> | |
components.product_id | integer | null | |
components.qty_required | number | null | |
components.qty_consumed | number | null | |
components.uom | string | null | |
components.state | string | null | |
updated_at | string | null |
GET/manufacturing-orders/{id}
Manufacturing orders (one)
الصلاحية: manufacturing:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | string | null | draft, confirmed, progress, to_close, done, cancel |
product_id | integer | null | |
product_name | string | null | |
qty_planned | number | null | |
qty_produced | number | null | |
uom | string | null | |
bom_id | integer | null | |
origin | string | null | |
priority | enum: normal, urgent | |
quality_hold | boolean | |
start | string | null | |
finished_at | string | null | |
deadline | string | null | |
branch | object | null | |
components | array<object> | |
components.product_id | integer | null | |
components.qty_required | number | null | |
components.qty_consumed | number | null | |
components.uom | string | null | |
components.state | string | null | |
updated_at | string | null |
GET/boms
Bills of materials
الصلاحية: manufacturing:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
type | query | enum: manufacture, kit, subcontract | BoM type | |
product_template_id | query | integer | Product template id |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
reference | string | null | |
type | enum: manufacture, kit, subcontract | |
product_template_id | integer | null | |
product_name | string | null | |
product_id | integer | null | set when the BoM is for one variant only |
qty | number | null | |
uom | string | null | |
active | boolean | |
branch | object | null | null = shared by every branch |
lines | array<object> | |
lines.product_id | integer | null | |
lines.qty | number | null | |
lines.uom | string | null | |
updated_at | string | null |
GET/boms/{id}
Bills of materials (one)
الصلاحية: manufacturing:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
reference | string | null | |
type | enum: manufacture, kit, subcontract | |
product_template_id | integer | null | |
product_name | string | null | |
product_id | integer | null | set when the BoM is for one variant only |
qty | number | null | |
uom | string | null | |
active | boolean | |
branch | object | null | null = shared by every branch |
lines | array<object> | |
lines.product_id | integer | null | |
lines.qty | number | null | |
lines.uom | string | null | |
updated_at | string | null |
Deliveries
GET/deliveries
Delivery trips
The customer's name, phone and address are returned only with customers:read.
الصلاحية: deliveries:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it | |
state | query | enum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled | Trip state | |
driver_id | query | integer | Driver id | |
sales_order_id | query | integer | Sales order id | |
date_from | query | string | Created on or after (YYYY-MM-DD) |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | string | null | pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled |
source | string | null | site, sale, pos |
channel | string | null | |
order_ref | string | null | |
sales_order_id | integer | null | |
pos_order_id | integer | null | |
branch | object | null | |
driver | object | null | |
customer_id | integer | null | |
customer | object | null | Only with customers:read |
payment_mode | string | null | prepaid, cod |
order_amount | number | null | |
delivery_fee | number | null | |
cod_amount | number | null | |
cod_collected | number | null | |
currency | string | null | |
distance_km | number | null | |
zone | object | null | |
run_id | integer | null | |
run_sequence | number | null | |
proof | string | null | |
rating | number | null | |
times | object | |
times.scheduled | string | null | |
times.assigned | string | null | |
times.accepted | string | null | |
times.picked_up | string | null | |
times.arrived | string | null | |
times.delivered | string | null | |
times.closed | string | null | |
times.eta | string | null | |
created_at | string | null | |
updated_at | string | null |
GET/deliveries/{id}
Delivery trips (one)
The customer's name, phone and address are returned only with customers:read.
الصلاحية: deliveries:read
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | integer | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | integer | |
number | string | null | |
state | string | null | pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled |
source | string | null | site, sale, pos |
channel | string | null | |
order_ref | string | null | |
sales_order_id | integer | null | |
pos_order_id | integer | null | |
branch | object | null | |
driver | object | null | |
customer_id | integer | null | |
customer | object | null | Only with customers:read |
payment_mode | string | null | prepaid, cod |
order_amount | number | null | |
delivery_fee | number | null | |
cod_amount | number | null | |
cod_collected | number | null | |
currency | string | null | |
distance_km | number | null | |
zone | object | null | |
run_id | integer | null | |
run_sequence | number | null | |
proof | string | null | |
rating | number | null | |
times | object | |
times.scheduled | string | null | |
times.assigned | string | null | |
times.accepted | string | null | |
times.picked_up | string | null | |
times.arrived | string | null | |
times.delivered | string | null | |
times.closed | string | null | |
times.eta | string | null | |
created_at | string | null | |
updated_at | string | null |
Webhooks
GET/webhooks
Webhook subscriptions of the tenant (API keys only)
الصلاحية: webhooks:manage
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
limit | query | integer | ||
after | query | integer | Return records with id greater than this (keyset pagination) | |
updated_since | query | string (date-time) | ISO 8601; only records changed at or after it |
الجواب (data: قائمة من …)
| الحقل | النوع | الوصف |
|---|---|---|
id | string | |
endpoint | string | |
events | array<string> | |
enabled | boolean | |
failure_count | integer | |
last_fired_at | string | null | |
created_at | string | null | |
secret | string | Only in the POST response, once |
POST/webhooks
Webhook subscriptions of the tenant (API keys only)
الصلاحية: webhooks:manage
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
Idempotency-Key | header | string | Same key + same body returns the first answer; a different body is 409 |
جسم الطلب
| الحقل | النوع | إلزامي | الوصف |
|---|---|---|---|
endpoint | string | نعم | |
events | array<string> | نعم |
الجواب
| الحقل | النوع | الوصف |
|---|---|---|
id | string | |
endpoint | string | |
events | array<string> | |
enabled | boolean | |
failure_count | integer | |
last_fired_at | string | null | |
created_at | string | null | |
secret | string | Only in the POST response, once |
DELETE/webhooks/{id}
Webhook subscriptions of the tenant (API keys only)
الصلاحية: webhooks:manage
المعاملات
| الحقل | في | النوع | إلزامي | الوصف |
|---|---|---|---|---|
id | path | string | نعم |
أحداث الويبهوك
pos.order.paid
إتمام بيع في نقطة البيع
Requires scopes orders:read and customers:read (the payload carries the customer's phone and e-mail).
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
pos.order.refunded
استرجاع في نقطة البيع
Requires scopes orders:read and customers:read (the payload carries the customer's phone and e-mail).
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.invoice.paid
سداد فاتورة
Requires scopes invoices:read and customers:read (the payload carries the customer's phone and e-mail).
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.contact.created
عميل جديد
Requires scope customers:read.
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.loyalty.stamp
ختم ولاء جديد
Requires scopes loyalty:read and customers:read (the payload carries the customer's phone and e-mail).
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.loyalty.points
تغيّر نقاط الولاء
Requires scopes loyalty:read and customers:read (the payload carries the customer's phone and e-mail).
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.loyalty.reward_ready
مكافأة ولاء جاهزة
Requires scopes loyalty:read and customers:read (the payload carries the customer's phone and e-mail).
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.ecommerce.order
طلب من المتجر الإلكتروني
Requires scopes sales_orders:read and customers:read (the payload carries the customer's phone and e-mail).
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
reservation.created
حجز طاولة جديد
Requires scope reservations:read.
| الحقل | النوع | الوصف |
|---|---|---|
reservation_id | integer | |
number | string | null | |
state | enum: pending, confirmed, seated, completed, cancelled, no_show | |
start | string | null (date-time) | |
stop | string | null (date-time) | |
party_size | integer | null | |
source | enum: website, app, google, dashboard, pos, phone, api, waitlist | |
branch_id | integer | null |
reservation.cancelled
إلغاء حجز طاولة
Requires scope reservations:read.
| الحقل | النوع | الوصف |
|---|---|---|
reservation_id | integer | |
number | string | null | |
state | enum: pending, confirmed, seated, completed, cancelled, no_show | |
start | string | null (date-time) | |
stop | string | null (date-time) | |
party_size | integer | null | |
source | enum: website, app, google, dashboard, pos, phone, api, waitlist | |
branch_id | integer | null |
reservation.seated
جلوس ضيوف الحجز
Requires scope reservations:read.
| الحقل | النوع | الوصف |
|---|---|---|
reservation_id | integer | |
number | string | null | |
state | enum: pending, confirmed, seated, completed, cancelled, no_show | |
start | string | null (date-time) | |
stop | string | null (date-time) | |
party_size | integer | null | |
source | enum: website, app, google, dashboard, pos, phone, api, waitlist | |
branch_id | integer | null | |
seated_at | string | null (date-time) |
review.submitted
تقييم جديد من عميل
Requires scope reviews:read.
| الحقل | النوع | الوصف |
|---|---|---|
review_id | integer | |
stars | integer | null | |
negative | boolean | |
branch_id | integer | null | |
service_id | integer | null | |
employee_id | integer | null | |
submitted_at | string | null (date-time) |
invoice.posted
ترحيل فاتورة عميل
Requires scope invoices:read.
| الحقل | النوع | الوصف |
|---|---|---|
invoice_id | integer | |
number | string | null | |
type | enum: invoice, credit_note | |
date | string | null (date) | |
due_date | string | null (date) | |
customer_id | integer | null | |
branch_id | integer | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
amount_due | number | null | |
payment_state | string | null |
bill.posted
ترحيل فاتورة مورد
Requires scope vendor_bills:read.
| الحقل | النوع | الوصف |
|---|---|---|
bill_id | integer | |
number | string | null | |
type | enum: bill, credit_note | |
date | string | null (date) | |
due_date | string | null (date) | |
vendor_id | integer | null | |
branch_id | integer | null | |
currency | string | null | |
amount_untaxed | number | null | |
amount_tax | number | null | |
amount_total | number | null | |
amount_due | number | null | |
payment_state | string | null |
installment.due
استحقاق قسط
Requires scope invoices:read.
| الحقل | النوع | الوصف |
|---|---|---|
installment_id | integer | |
plan_id | integer | null | |
plan_number | string | null | |
sequence | integer | null | |
kind | enum: down, installment, fee | |
due_date | string | null (date) | |
amount | number | null | |
amount_due | number | null | |
state | enum: open, partial | |
currency | string | null | |
customer_id | integer | null | |
branch_id | integer | null |
manufacturing.done
اكتمال أمر تصنيع
Requires scope manufacturing:read.
| الحقل | النوع | الوصف |
|---|---|---|
manufacturing_order_id | integer | |
number | string | null | |
product_id | integer | null | |
qty_planned | number | null | |
qty_produced | number | null | |
uom | string | null | |
bom_id | integer | null | |
origin | string | null | |
finished_at | string | null (date-time) | |
branch_id | integer | null |
delivery.assigned
إسناد مشوار توصيل لسائق
Requires scope deliveries:read.
| الحقل | النوع | الوصف |
|---|---|---|
delivery_id | integer | |
number | string | null | |
state | enum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled | |
source | string | null | |
order_ref | string | null | |
sales_order_id | integer | null | |
pos_order_id | integer | null | |
driver_id | integer | null | |
run_id | integer | null | |
payment_mode | enum: prepaid, cod | |
order_amount | number | null | |
delivery_fee | number | null | |
cod_amount | number | null | |
eta_at | string | null (date-time) | |
occurred_at | string | null (date-time) | |
branch_id | integer | null |
delivery.picked_up
استلام السائق للطلب
Requires scope deliveries:read.
| الحقل | النوع | الوصف |
|---|---|---|
delivery_id | integer | |
number | string | null | |
state | enum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled | |
source | string | null | |
order_ref | string | null | |
sales_order_id | integer | null | |
pos_order_id | integer | null | |
driver_id | integer | null | |
run_id | integer | null | |
payment_mode | enum: prepaid, cod | |
order_amount | number | null | |
delivery_fee | number | null | |
cod_amount | number | null | |
eta_at | string | null (date-time) | |
occurred_at | string | null (date-time) | |
branch_id | integer | null |
delivery.arrived
وصول السائق للعميل
Requires scope deliveries:read.
| الحقل | النوع | الوصف |
|---|---|---|
delivery_id | integer | |
number | string | null | |
state | enum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled | |
source | string | null | |
order_ref | string | null | |
sales_order_id | integer | null | |
pos_order_id | integer | null | |
driver_id | integer | null | |
run_id | integer | null | |
payment_mode | enum: prepaid, cod | |
order_amount | number | null | |
delivery_fee | number | null | |
cod_amount | number | null | |
eta_at | string | null (date-time) | |
occurred_at | string | null (date-time) | |
branch_id | integer | null |
delivery.delivered
تسليم الطلب
Requires scope deliveries:read.
| الحقل | النوع | الوصف |
|---|---|---|
delivery_id | integer | |
number | string | null | |
state | enum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled | |
source | string | null | |
order_ref | string | null | |
sales_order_id | integer | null | |
pos_order_id | integer | null | |
driver_id | integer | null | |
run_id | integer | null | |
payment_mode | enum: prepaid, cod | |
order_amount | number | null | |
delivery_fee | number | null | |
cod_amount | number | null | |
eta_at | string | null (date-time) | |
occurred_at | string | null (date-time) | |
branch_id | integer | null |
delivery.failed
تعذّر التسليم
Requires scope deliveries:read.
| الحقل | النوع | الوصف |
|---|---|---|
delivery_id | integer | |
number | string | null | |
state | enum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled | |
source | string | null | |
order_ref | string | null | |
sales_order_id | integer | null | |
pos_order_id | integer | null | |
driver_id | integer | null | |
run_id | integer | null | |
payment_mode | enum: prepaid, cod | |
order_amount | number | null | |
delivery_fee | number | null | |
cod_amount | number | null | |
eta_at | string | null (date-time) | |
occurred_at | string | null (date-time) | |
branch_id | integer | null |
growth.package.sold
بيع باقة
Requires scope customers:read.
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.package.renewed
تجديد باقة
Requires scope customers:read.
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.package.low
قرب نفاد جلسات باقة
Requires scope customers:read.
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
growth.package.expiring
قرب انتهاء باقة
Requires scope customers:read.
| الحقل | النوع | الوصف |
|---|---|---|
type | string | |
source | string | null | |
occurredAt | string (date-time) | |
partnerId | integer | null | |
value | number | null | |
refModel | string | null | |
refId | string | null | |
payload | object |
app.uninstalled
The app was uninstalled or suspended
| الحقل | النوع | الوصف |
|---|---|---|
installId | string | |
appId | string | |
clientId | string | |
reason | enum: uninstalled, suspended |