تخطَّ إلى المحتوى الرئيسي

Reference

Every endpoint with its parameters, scope and answer, drawn from the OpenAPI document itself.

Account

GET/me

The calling credential: tenant, principal, scopes and rate limit

Response

FieldTypeDescription
tenantobject
tenant.idstring
tenant.namestring | null
principalobject
principal.typeenum: key, oauth
principal.idstring
principal.namestring
scopesarray<string>
rate_limit_per_mininteger
company_idinteger | null

Branches

GET/branches

Branches (companies) of the tenant

Scope: branches:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it

Response (data: a list of …)

FieldTypeDescription
idinteger
namestring | null
citystring | null
phonestring | null
parent_idinteger | null
updated_atstring | null

GET/branches/{id}

Branches (companies) of the tenant (one)

Scope: branches:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
namestring | null
citystring | null
phonestring | null
parent_idinteger | null
updated_atstring | null

Products

GET/categories

Point-of-sale categories

Scope: products:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it

Response (data: a list of …)

FieldTypeDescription
idinteger
namestring | null
parent_idinteger | null
sequencenumber | null
updated_atstring | null

GET/products

Products

Scope: products:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
barcodequerystringExact barcode
default_codequerystringExact internal reference
available_in_posqueryenum: true, falseOnly products sold (or not) at the point of sale
category_idqueryintegerPOS category id

Response (data: a list of …)

FieldTypeDescription
idinteger
namestring | null
barcodestring | null
default_codestring | null
list_pricenumber | null
taxesarray<object>
taxes.idinteger
taxes.namestring
categoriesarray<object>
categories.idinteger
categories.namestring
available_in_posboolean
sale_okboolean
image_urlstring | null
updated_atstring | null

POST/products

Products

Scope: products:write

Parameters

FieldInTypeRequiredDescription
Idempotency-KeyheaderstringSame key + same body returns the first answer; a different body is 409

Request body

FieldTypeRequiredDescription
namestringyes
list_pricenumberyes
barcodestring | null
default_codestring | null
category_idsarray<integer>
available_in_posboolean

Response

FieldTypeDescription
idinteger
namestring | null
barcodestring | null
default_codestring | null
list_pricenumber | null
taxesarray<object>
taxes.idinteger
taxes.namestring
categoriesarray<object>
categories.idinteger
categories.namestring
available_in_posboolean
sale_okboolean
image_urlstring | null
updated_atstring | null

GET/products/{id}

Products (one)

Scope: products:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
namestring | null
barcodestring | null
default_codestring | null
list_pricenumber | null
taxesarray<object>
taxes.idinteger
taxes.namestring
categoriesarray<object>
categories.idinteger
categories.namestring
available_in_posboolean
sale_okboolean
image_urlstring | null
updated_atstring | null

PATCH/products/{id}

Products

Scope: products:write

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Request body

FieldTypeRequiredDescription
namestring
list_pricenumber
barcodestring | null
default_codestring | null
category_idsarray<integer>
available_in_posboolean

Response

FieldTypeDescription
idinteger
namestring | null
barcodestring | null
default_codestring | null
list_pricenumber | null
taxesarray<object>
taxes.idinteger
taxes.namestring
categoriesarray<object>
categories.idinteger
categories.namestring
available_in_posboolean
sale_okboolean
image_urlstring | null
updated_atstring | null

Customers

GET/customers

Customers

Scope: customers:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
phonequerystringExact phone
emailquerystringExact e-mail (case-insensitive)

Response (data: a list of …)

FieldTypeDescription
idinteger
namestring | null
phonestring | null
emailstring | null
vatstring | null
citystring | null
is_companyboolean
created_atstring | null
updated_atstring | null

POST/customers

Customers

Scope: customers:write

Parameters

FieldInTypeRequiredDescription
Idempotency-KeyheaderstringSame key + same body returns the first answer; a different body is 409

Request body

FieldTypeRequiredDescription
namestringyes
phonestring | null
emailstring (email) | null
vatstring | null
citystring | null

Response

FieldTypeDescription
idinteger
namestring | null
phonestring | null
emailstring | null
vatstring | null
citystring | null
is_companyboolean
created_atstring | null
updated_atstring | null

GET/customers/{id}

Customers (one)

Scope: customers:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
namestring | null
phonestring | null
emailstring | null
vatstring | null
citystring | null
is_companyboolean
created_atstring | null
updated_atstring | null

PATCH/customers/{id}

Customers

Scope: customers:write

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Request body

FieldTypeRequiredDescription
namestring
phonestring | null
emailstring (email) | null
vatstring | null
citystring | null

Response

FieldTypeDescription
idinteger
namestring | null
phonestring | null
emailstring | null
vatstring | null
citystring | null
is_companyboolean
created_atstring | null
updated_atstring | null

Orders

GET/orders

Point-of-sale orders

Scope: orders:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
statequeryenum: draft, paid, done, invoiced, cancelOrder state
customer_idqueryintegerCustomer id
branch_idqueryintegerBranch (company) id

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | null
referencestring | null
statestring | null
datestring | null
branchobject | null
customer_idinteger | null
currencystring | null
amount_totalnumber | null
amount_taxnumber | null
amount_paidnumber | null
amount_returnnumber | null
linesarray<object>
lines.product_idinteger | null
lines.namestring | null
lines.qtynumber | null
lines.price_unitnumber | null
lines.discountnumber | null
lines.subtotalnumber | null
lines.totalnumber | null
paymentsarray<object>
payments.methodstring | null
payments.amountnumber | null
updated_atstring | null

GET/orders/{id}

Point-of-sale orders (one)

Scope: orders:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | null
referencestring | null
statestring | null
datestring | null
branchobject | null
customer_idinteger | null
currencystring | null
amount_totalnumber | null
amount_taxnumber | null
amount_paidnumber | null
amount_returnnumber | null
linesarray<object>
lines.product_idinteger | null
lines.namestring | null
lines.qtynumber | null
lines.price_unitnumber | null
lines.discountnumber | null
lines.subtotalnumber | null
lines.totalnumber | null
paymentsarray<object>
payments.methodstring | null
payments.amountnumber | null
updated_atstring | null

Sales orders

GET/sales-orders

Sales orders

POST creates a confirmed order and requires an Idempotency-Key header.

Scope: sales_orders:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
statequeryenum: draft, sent, sale, cancelOrder state
customer_idqueryintegerCustomer id

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | null
statestring | null
datestring | null
customer_idinteger | null
branchobject | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
external_refstring | null
linesarray<object>
lines.product_idinteger | null
lines.namestring | null
lines.qtynumber | null
lines.price_unitnumber | null
lines.discountnumber | null
lines.subtotalnumber | null
lines.totalnumber | null
updated_atstring | null

POST/sales-orders

Sales orders

POST creates a confirmed order and requires an Idempotency-Key header.

Scope: sales_orders:write

Parameters

FieldInTypeRequiredDescription
Idempotency-KeyheaderstringyesSame key + same body returns the first answer; a different body is 409

Request body

FieldTypeRequiredDescription
customer_idinteger
customerobject
customer.namestringyes
customer.phonestring | null
customer.emailstring (email) | null
customer.vatstring | null
customer.citystring | null
linesarray<object>yes
lines.product_idintegeryes
lines.qtynumberyes
lines.price_unitnumber
lines.discountnumber
external_refstring
notestring

Response

FieldTypeDescription
idinteger
numberstring | null
statestring | null
datestring | null
customer_idinteger | null
branchobject | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
external_refstring | null
linesarray<object>
lines.product_idinteger | null
lines.namestring | null
lines.qtynumber | null
lines.price_unitnumber | null
lines.discountnumber | null
lines.subtotalnumber | null
lines.totalnumber | null
updated_atstring | null

GET/sales-orders/{id}

Sales orders (one)

POST creates a confirmed order and requires an Idempotency-Key header.

Scope: sales_orders:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | null
statestring | null
datestring | null
customer_idinteger | null
branchobject | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
external_refstring | null
linesarray<object>
lines.product_idinteger | null
lines.namestring | null
lines.qtynumber | null
lines.price_unitnumber | null
lines.discountnumber | null
lines.subtotalnumber | null
lines.totalnumber | null
updated_atstring | null

Invoices

GET/invoices

Posted customer invoices and credit notes

Scope: invoices:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
payment_statequeryenum: not_paid, in_payment, paid, partial, reversedPayment state
customer_idqueryintegerCustomer id

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | null
typeenum: invoice, credit_note
datestring | null
due_datestring | null
customer_idinteger | null
branchobject | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
amount_duenumber | null
payment_statestring | null
statestring | null
zatca_statestring | null
updated_atstring | null

GET/invoices/{id}

Posted customer invoices and credit notes (one)

Scope: invoices:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | null
typeenum: invoice, credit_note
datestring | null
due_datestring | null
customer_idinteger | null
branchobject | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
amount_duenumber | null
payment_statestring | null
statestring | null
zatca_statestring | null
updated_atstring | null

Inventory

GET/inventory

Stock on hand per product and location

Scope: inventory:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
product_idqueryintegerProduct id
branch_idqueryintegerBranch (company) id

Response (data: a list of …)

FieldTypeDescription
idinteger
product_idinteger | null
locationobject | null
branchobject | null
quantitynumber | null
reservednumber | null
updated_atstring | null

Loyalty

GET/loyalty/cards

Loyalty cards and points

Scope: loyalty:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
customer_idqueryintegerCustomer id

Response (data: a list of …)

FieldTypeDescription
idinteger
programobject | null
customer_idinteger | null
pointsnumber | null
expires_onstring | null
updated_atstring | 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.

Scope: reservations:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
statequeryenum: pending, confirmed, seated, completed, cancelled, no_showReservation state
sourcequeryenum: website, app, google, dashboard, pos, phone, api, waitlistWhere the booking came from
branch_idqueryintegerBranch (company) id
start_fromquerystringBookings starting at or after (UTC, ISO 8601; a bare date = 00:00 UTC)
start_toquerystringBookings starting at or before (UTC; a bare date = 23:59:59 UTC). Range ≤ 366 days

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | null
stateenum: pending, confirmed, seated, completed, cancelled, no_show | null
startstring | null
stopstring | null
party_sizeinteger | null
guest_namestring | null
phonestring | nullOnly with the customers:read scope, else null
emailstring | nullOnly with the customers:read scope, else null
notestring | null
occasionenum: birthday, business, family, other | null
sourceenum: website, app, google, dashboard, pos, phone, api, waitlist | null
branchobject | null
tablesarray<object>
tables.idinteger
tables.namestring
external_refstring | null
created_atstring | null
updated_atstring | 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.

Scope: reservations:write

Parameters

FieldInTypeRequiredDescription
Idempotency-KeyheaderstringyesSame key + same body returns the first answer; a different body is 409

Request body

FieldTypeRequiredDescription
startstringyesUTC instant of the booking (ISO 8601 with Z or an offset)
party_sizeintegeryes
guest_namestringyes
phonestringyes
emailstring (email)
notestring
occasionenum: birthday, business, family, other
branch_idintegerBranch (company) id; default = the key’s main company
external_refstring

Response

FieldTypeDescription
idinteger
numberstring | null
stateenum: pending, confirmed, seated, completed, cancelled, no_show | null
startstring | null
stopstring | null
party_sizeinteger | null
guest_namestring | null
phonestring | nullOnly with the customers:read scope, else null
emailstring | nullOnly with the customers:read scope, else null
notestring | null
occasionenum: birthday, business, family, other | null
sourceenum: website, app, google, dashboard, pos, phone, api, waitlist | null
branchobject | null
tablesarray<object>
tables.idinteger
tables.namestring
external_refstring | null
created_atstring | null
updated_atstring | 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.

Scope: reservations:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | null
stateenum: pending, confirmed, seated, completed, cancelled, no_show | null
startstring | null
stopstring | null
party_sizeinteger | null
guest_namestring | null
phonestring | nullOnly with the customers:read scope, else null
emailstring | nullOnly with the customers:read scope, else null
notestring | null
occasionenum: birthday, business, family, other | null
sourceenum: website, app, google, dashboard, pos, phone, api, waitlist | null
branchobject | null
tablesarray<object>
tables.idinteger
tables.namestring
external_refstring | null
created_atstring | null
updated_atstring | 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.

Scope: reviews:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
branch_idqueryintegerBranch (company) id
employee_idqueryintegerStaff member id
service_idqueryintegerService id
min_starsqueryintegerOnly reviews with at least this many stars
max_starsqueryintegerOnly reviews with at most this many stars
publicqueryenum: true, falsetrue = published public reviews only; false = the others

Response (data: a list of …)

FieldTypeDescription
idinteger
starsinteger | null
negativeboolean
reasonsarray<string>
publicbooleanThe customer allowed public display and the business published it
commentstring | nullOnly when public, else null
display_namestring | nullFirst name and initial; only when public, else null
replystring | nullThe business reply; only when public, else null
replied_atstring | null
branchobject | null
serviceobject | null
employeeobject | null
appointment_idinteger | null
submitted_atstring | null
updated_atstring | 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.

Scope: reviews:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
starsinteger | null
negativeboolean
reasonsarray<string>
publicbooleanThe customer allowed public display and the business published it
commentstring | nullOnly when public, else null
display_namestring | nullFirst name and initial; only when public, else null
replystring | nullThe business reply; only when public, else null
replied_atstring | null
branchobject | null
serviceobject | null
employeeobject | null
appointment_idinteger | null
submitted_atstring | null
updated_atstring | null

Accounting

GET/accounts

Chart of accounts

Scope: accounting:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
typequerystringAccount type (e.g. expense, asset_receivable)
code_prefixquerystringCode starts with

Response (data: a list of …)

FieldTypeDescription
idinteger
codestring | null
namestring | null
typestring | nullasset_receivable, asset_cash, liability_payable, income, expense, …
groupenum: asset, liability, equity, income, expense | null
reconcileboolean
activeboolean
currencystring | null
updated_atstring | null

GET/accounts/{id}

Chart of accounts (one)

Scope: accounting:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
codestring | null
namestring | null
typestring | nullasset_receivable, asset_cash, liability_payable, income, expense, …
groupenum: asset, liability, equity, income, expense | null
reconcileboolean
activeboolean
currencystring | null
updated_atstring | 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.

Scope: accounting:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
statequeryenum: posted, draftposted (default) or draft
typequeryenum: entry, out_invoice, out_refund, in_invoice, in_refund, out_receipt, in_receiptEntry type
journal_idqueryintegerJournal id
date_fromquerystringAccounting date on or after (YYYY-MM-DD)
date_toquerystringAccounting date on or before (YYYY-MM-DD)

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | null
typestring | nullentry, out_invoice, out_refund, in_invoice, in_refund, out_receipt, in_receipt
statestring | null
datestring | null
refstring | null
journalobject | null
branchobject | null
currencystring | null
amount_totalnumber | null
external_refstring | null
lines_completebooleanfalse when this page held more lines than one answer carries: read the entry by id
linesarray<object>
lines.account_idinteger | null
lines.labelstring | null
lines.debitnumber | null
lines.creditnumber | null
lines.amount_currencynumber | null
lines.currencystring | null
lines.partner_idinteger | null
updated_atstring | 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.

Scope: journal_entries:write

Parameters

FieldInTypeRequiredDescription
Idempotency-KeyheaderstringyesSame key + same body returns the first answer; a different body is 409

Request body

FieldTypeRequiredDescription
datestringyes
refstring
journal_idinteger
external_refstring
linesarray<object>yes
lines.account_idintegeryes
lines.debitnumber
lines.creditnumber
lines.labelstring
lines.partner_idinteger

Response

FieldTypeDescription
idinteger
numberstring | null
typestring | nullentry, out_invoice, out_refund, in_invoice, in_refund, out_receipt, in_receipt
statestring | null
datestring | null
refstring | null
journalobject | null
branchobject | null
currencystring | null
amount_totalnumber | null
external_refstring | null
lines_completebooleanfalse when this page held more lines than one answer carries: read the entry by id
linesarray<object>
lines.account_idinteger | null
lines.labelstring | null
lines.debitnumber | null
lines.creditnumber | null
lines.amount_currencynumber | null
lines.currencystring | null
lines.partner_idinteger | null
updated_atstring | 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.

Scope: accounting:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | null
typestring | nullentry, out_invoice, out_refund, in_invoice, in_refund, out_receipt, in_receipt
statestring | null
datestring | null
refstring | null
journalobject | null
branchobject | null
currencystring | null
amount_totalnumber | null
external_refstring | null
lines_completebooleanfalse when this page held more lines than one answer carries: read the entry by id
linesarray<object>
lines.account_idinteger | null
lines.labelstring | null
lines.debitnumber | null
lines.creditnumber | null
lines.amount_currencynumber | null
lines.currencystring | null
lines.partner_idinteger | null
updated_atstring | 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.

Scope: accounting:read

Parameters

FieldInTypeRequiredDescription
date_fromquerystringPeriod start (YYYY-MM-DD); without it the report runs from the first entry
date_toquerystringPeriod end (YYYY-MM-DD), default today
journal_idqueryintegerOnly this journal

Response

FieldTypeDescription
date_fromstring | null
date_tostring
basisstring
rowsarray<object>
rows.account_idinteger
rows.codestring | null
rows.namestring | null
rows.typestring | null
rows.groupenum: asset, liability, equity, income, expense
rows.openingnumber
rows.debitnumber
rows.creditnumber
rows.closingnumber
totalsobject
totals.openingnumber
totals.debitnumber
totals.creditnumber
totals.closingnumber
balancedboolean

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.

Scope: vendor_bills:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
statequeryenum: posted, draftposted (default) or draft
payment_statequeryenum: not_paid, in_payment, paid, partial, reversedPayment state
vendor_idqueryintegerVendor id

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | nullnull on a draft
typeenum: bill, credit_note
statestring | null
vendor_refstring | null
datestring | null
due_datestring | null
vendor_idinteger | null
branchobject | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
amount_duenumber | null
payment_statestring | null
external_refstring | null
linesarray<object>
lines.product_idinteger | null
lines.descriptionstring | null
lines.qtynumber | null
lines.price_unitnumber | null
lines.discountnumber | null
lines.account_idinteger | null
lines.tax_idsarray<integer>
lines.subtotalnumber | null
lines.totalnumber | null
updated_atstring | 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.

Scope: vendor_bills:write

Parameters

FieldInTypeRequiredDescription
Idempotency-KeyheaderstringyesSame key + same body returns the first answer; a different body is 409

Request body

FieldTypeRequiredDescription
typeenum: bill, credit_note
vendor_idinteger
vendorobject
vendor.namestringyes
vendor.phonestring | null
vendor.emailstring (email) | null
vendor.vatstring | null
vendor.citystring | null
datestring
due_datestring
vendor_refstring
external_refstring
notestring
linesarray<object>yes
lines.product_idinteger
lines.descriptionstring
lines.qtynumberyes
lines.price_unitnumberyes
lines.discountnumber
lines.account_idinteger
lines.tax_idsarray<integer>

Response

FieldTypeDescription
idinteger
numberstring | nullnull on a draft
typeenum: bill, credit_note
statestring | null
vendor_refstring | null
datestring | null
due_datestring | null
vendor_idinteger | null
branchobject | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
amount_duenumber | null
payment_statestring | null
external_refstring | null
linesarray<object>
lines.product_idinteger | null
lines.descriptionstring | null
lines.qtynumber | null
lines.price_unitnumber | null
lines.discountnumber | null
lines.account_idinteger | null
lines.tax_idsarray<integer>
lines.subtotalnumber | null
lines.totalnumber | null
updated_atstring | 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.

Scope: vendor_bills:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | nullnull on a draft
typeenum: bill, credit_note
statestring | null
vendor_refstring | null
datestring | null
due_datestring | null
vendor_idinteger | null
branchobject | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
amount_duenumber | null
payment_statestring | null
external_refstring | null
linesarray<object>
lines.product_idinteger | null
lines.descriptionstring | null
lines.qtynumber | null
lines.price_unitnumber | null
lines.discountnumber | null
lines.account_idinteger | null
lines.tax_idsarray<integer>
lines.subtotalnumber | null
lines.totalnumber | null
updated_atstring | 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.

Scope: payments:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
directionqueryenum: inbound, outboundinbound = received, outbound = paid out
partner_idqueryintegerCustomer or vendor id
date_fromquerystringPayment date on or after (YYYY-MM-DD)
date_toquerystringPayment date on or before (YYYY-MM-DD)

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | null
datestring | null
statestring | nullin_process, paid, canceled, rejected
directionenum: inbound, outbound
partner_typeenum: customer, vendor
partner_idinteger | null
amountnumber | null
currencystring | null
journalobject | null
branchobject | null
memostring | null
referencestring | null
reconciledboolean
invoice_idsarray<integer>
bill_idsarray<integer>
updated_atstring | 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.

Scope: payments:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | null
datestring | null
statestring | nullin_process, paid, canceled, rejected
directionenum: inbound, outbound
partner_typeenum: customer, vendor
partner_idinteger | null
amountnumber | null
currencystring | null
journalobject | null
branchobject | null
memostring | null
referencestring | null
reconciledboolean
invoice_idsarray<integer>
bill_idsarray<integer>
updated_atstring | null

Manufacturing

GET/manufacturing-orders

Manufacturing orders

Scope: manufacturing:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
statequeryenum: draft, confirmed, progress, to_close, done, cancelOrder state
product_idqueryintegerFinished product id
finished_fromquerystringFinished on or after (YYYY-MM-DD)

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | null
statestring | nulldraft, confirmed, progress, to_close, done, cancel
product_idinteger | null
product_namestring | null
qty_plannednumber | null
qty_producednumber | null
uomstring | null
bom_idinteger | null
originstring | null
priorityenum: normal, urgent
quality_holdboolean
startstring | null
finished_atstring | null
deadlinestring | null
branchobject | null
componentsarray<object>
components.product_idinteger | null
components.qty_requirednumber | null
components.qty_consumednumber | null
components.uomstring | null
components.statestring | null
updated_atstring | null

GET/manufacturing-orders/{id}

Manufacturing orders (one)

Scope: manufacturing:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | null
statestring | nulldraft, confirmed, progress, to_close, done, cancel
product_idinteger | null
product_namestring | null
qty_plannednumber | null
qty_producednumber | null
uomstring | null
bom_idinteger | null
originstring | null
priorityenum: normal, urgent
quality_holdboolean
startstring | null
finished_atstring | null
deadlinestring | null
branchobject | null
componentsarray<object>
components.product_idinteger | null
components.qty_requirednumber | null
components.qty_consumednumber | null
components.uomstring | null
components.statestring | null
updated_atstring | null

GET/boms

Bills of materials

Scope: manufacturing:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
typequeryenum: manufacture, kit, subcontractBoM type
product_template_idqueryintegerProduct template id

Response (data: a list of …)

FieldTypeDescription
idinteger
referencestring | null
typeenum: manufacture, kit, subcontract
product_template_idinteger | null
product_namestring | null
product_idinteger | nullset when the BoM is for one variant only
qtynumber | null
uomstring | null
activeboolean
branchobject | nullnull = shared by every branch
linesarray<object>
lines.product_idinteger | null
lines.qtynumber | null
lines.uomstring | null
updated_atstring | null

GET/boms/{id}

Bills of materials (one)

Scope: manufacturing:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
referencestring | null
typeenum: manufacture, kit, subcontract
product_template_idinteger | null
product_namestring | null
product_idinteger | nullset when the BoM is for one variant only
qtynumber | null
uomstring | null
activeboolean
branchobject | nullnull = shared by every branch
linesarray<object>
lines.product_idinteger | null
lines.qtynumber | null
lines.uomstring | null
updated_atstring | null

Deliveries

GET/deliveries

Delivery trips

The customer's name, phone and address are returned only with customers:read.

Scope: deliveries:read

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it
statequeryenum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelledTrip state
driver_idqueryintegerDriver id
sales_order_idqueryintegerSales order id
date_fromquerystringCreated on or after (YYYY-MM-DD)

Response (data: a list of …)

FieldTypeDescription
idinteger
numberstring | null
statestring | nullpending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled
sourcestring | nullsite, sale, pos
channelstring | null
order_refstring | null
sales_order_idinteger | null
pos_order_idinteger | null
branchobject | null
driverobject | null
customer_idinteger | null
customerobject | nullOnly with customers:read
payment_modestring | nullprepaid, cod
order_amountnumber | null
delivery_feenumber | null
cod_amountnumber | null
cod_collectednumber | null
currencystring | null
distance_kmnumber | null
zoneobject | null
run_idinteger | null
run_sequencenumber | null
proofstring | null
ratingnumber | null
timesobject
times.scheduledstring | null
times.assignedstring | null
times.acceptedstring | null
times.picked_upstring | null
times.arrivedstring | null
times.deliveredstring | null
times.closedstring | null
times.etastring | null
created_atstring | null
updated_atstring | null

GET/deliveries/{id}

Delivery trips (one)

The customer's name, phone and address are returned only with customers:read.

Scope: deliveries:read

Parameters

FieldInTypeRequiredDescription
idpathintegeryes

Response

FieldTypeDescription
idinteger
numberstring | null
statestring | nullpending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled
sourcestring | nullsite, sale, pos
channelstring | null
order_refstring | null
sales_order_idinteger | null
pos_order_idinteger | null
branchobject | null
driverobject | null
customer_idinteger | null
customerobject | nullOnly with customers:read
payment_modestring | nullprepaid, cod
order_amountnumber | null
delivery_feenumber | null
cod_amountnumber | null
cod_collectednumber | null
currencystring | null
distance_kmnumber | null
zoneobject | null
run_idinteger | null
run_sequencenumber | null
proofstring | null
ratingnumber | null
timesobject
times.scheduledstring | null
times.assignedstring | null
times.acceptedstring | null
times.picked_upstring | null
times.arrivedstring | null
times.deliveredstring | null
times.closedstring | null
times.etastring | null
created_atstring | null
updated_atstring | null

Webhooks

GET/webhooks

Webhook subscriptions of the tenant (API keys only)

Scope: webhooks:manage

Parameters

FieldInTypeRequiredDescription
limitqueryinteger
afterqueryintegerReturn records with id greater than this (keyset pagination)
updated_sincequerystring (date-time)ISO 8601; only records changed at or after it

Response (data: a list of …)

FieldTypeDescription
idstring
endpointstring
eventsarray<string>
enabledboolean
failure_countinteger
last_fired_atstring | null
created_atstring | null
secretstringOnly in the POST response, once

POST/webhooks

Webhook subscriptions of the tenant (API keys only)

Scope: webhooks:manage

Parameters

FieldInTypeRequiredDescription
Idempotency-KeyheaderstringSame key + same body returns the first answer; a different body is 409

Request body

FieldTypeRequiredDescription
endpointstringyes
eventsarray<string>yes

Response

FieldTypeDescription
idstring
endpointstring
eventsarray<string>
enabledboolean
failure_countinteger
last_fired_atstring | null
created_atstring | null
secretstringOnly in the POST response, once

DELETE/webhooks/{id}

Webhook subscriptions of the tenant (API keys only)

Scope: webhooks:manage

Parameters

FieldInTypeRequiredDescription
idpathstringyes

Webhook events

pos.order.paid

إتمام بيع في نقطة البيع

Requires scopes orders:read and customers:read (the payload carries the customer's phone and e-mail).

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

pos.order.refunded

استرجاع في نقطة البيع

Requires scopes orders:read and customers:read (the payload carries the customer's phone and e-mail).

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.invoice.paid

سداد فاتورة

Requires scopes invoices:read and customers:read (the payload carries the customer's phone and e-mail).

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.contact.created

عميل جديد

Requires scope customers:read.

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.loyalty.stamp

ختم ولاء جديد

Requires scopes loyalty:read and customers:read (the payload carries the customer's phone and e-mail).

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.loyalty.points

تغيّر نقاط الولاء

Requires scopes loyalty:read and customers:read (the payload carries the customer's phone and e-mail).

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.loyalty.reward_ready

مكافأة ولاء جاهزة

Requires scopes loyalty:read and customers:read (the payload carries the customer's phone and e-mail).

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.ecommerce.order

طلب من المتجر الإلكتروني

Requires scopes sales_orders:read and customers:read (the payload carries the customer's phone and e-mail).

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

reservation.created

حجز طاولة جديد

Requires scope reservations:read.

FieldTypeDescription
reservation_idinteger
numberstring | null
stateenum: pending, confirmed, seated, completed, cancelled, no_show
startstring | null (date-time)
stopstring | null (date-time)
party_sizeinteger | null
sourceenum: website, app, google, dashboard, pos, phone, api, waitlist
branch_idinteger | null

reservation.cancelled

إلغاء حجز طاولة

Requires scope reservations:read.

FieldTypeDescription
reservation_idinteger
numberstring | null
stateenum: pending, confirmed, seated, completed, cancelled, no_show
startstring | null (date-time)
stopstring | null (date-time)
party_sizeinteger | null
sourceenum: website, app, google, dashboard, pos, phone, api, waitlist
branch_idinteger | null

reservation.seated

جلوس ضيوف الحجز

Requires scope reservations:read.

FieldTypeDescription
reservation_idinteger
numberstring | null
stateenum: pending, confirmed, seated, completed, cancelled, no_show
startstring | null (date-time)
stopstring | null (date-time)
party_sizeinteger | null
sourceenum: website, app, google, dashboard, pos, phone, api, waitlist
branch_idinteger | null
seated_atstring | null (date-time)

review.submitted

تقييم جديد من عميل

Requires scope reviews:read.

FieldTypeDescription
review_idinteger
starsinteger | null
negativeboolean
branch_idinteger | null
service_idinteger | null
employee_idinteger | null
submitted_atstring | null (date-time)

invoice.posted

ترحيل فاتورة عميل

Requires scope invoices:read.

FieldTypeDescription
invoice_idinteger
numberstring | null
typeenum: invoice, credit_note
datestring | null (date)
due_datestring | null (date)
customer_idinteger | null
branch_idinteger | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
amount_duenumber | null
payment_statestring | null

bill.posted

ترحيل فاتورة مورد

Requires scope vendor_bills:read.

FieldTypeDescription
bill_idinteger
numberstring | null
typeenum: bill, credit_note
datestring | null (date)
due_datestring | null (date)
vendor_idinteger | null
branch_idinteger | null
currencystring | null
amount_untaxednumber | null
amount_taxnumber | null
amount_totalnumber | null
amount_duenumber | null
payment_statestring | null

installment.due

استحقاق قسط

Requires scope invoices:read.

FieldTypeDescription
installment_idinteger
plan_idinteger | null
plan_numberstring | null
sequenceinteger | null
kindenum: down, installment, fee
due_datestring | null (date)
amountnumber | null
amount_duenumber | null
stateenum: open, partial
currencystring | null
customer_idinteger | null
branch_idinteger | null

manufacturing.done

اكتمال أمر تصنيع

Requires scope manufacturing:read.

FieldTypeDescription
manufacturing_order_idinteger
numberstring | null
product_idinteger | null
qty_plannednumber | null
qty_producednumber | null
uomstring | null
bom_idinteger | null
originstring | null
finished_atstring | null (date-time)
branch_idinteger | null

delivery.assigned

إسناد مشوار توصيل لسائق

Requires scope deliveries:read.

FieldTypeDescription
delivery_idinteger
numberstring | null
stateenum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled
sourcestring | null
order_refstring | null
sales_order_idinteger | null
pos_order_idinteger | null
driver_idinteger | null
run_idinteger | null
payment_modeenum: prepaid, cod
order_amountnumber | null
delivery_feenumber | null
cod_amountnumber | null
eta_atstring | null (date-time)
occurred_atstring | null (date-time)
branch_idinteger | null

delivery.picked_up

استلام السائق للطلب

Requires scope deliveries:read.

FieldTypeDescription
delivery_idinteger
numberstring | null
stateenum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled
sourcestring | null
order_refstring | null
sales_order_idinteger | null
pos_order_idinteger | null
driver_idinteger | null
run_idinteger | null
payment_modeenum: prepaid, cod
order_amountnumber | null
delivery_feenumber | null
cod_amountnumber | null
eta_atstring | null (date-time)
occurred_atstring | null (date-time)
branch_idinteger | null

delivery.arrived

وصول السائق للعميل

Requires scope deliveries:read.

FieldTypeDescription
delivery_idinteger
numberstring | null
stateenum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled
sourcestring | null
order_refstring | null
sales_order_idinteger | null
pos_order_idinteger | null
driver_idinteger | null
run_idinteger | null
payment_modeenum: prepaid, cod
order_amountnumber | null
delivery_feenumber | null
cod_amountnumber | null
eta_atstring | null (date-time)
occurred_atstring | null (date-time)
branch_idinteger | null

delivery.delivered

تسليم الطلب

Requires scope deliveries:read.

FieldTypeDescription
delivery_idinteger
numberstring | null
stateenum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled
sourcestring | null
order_refstring | null
sales_order_idinteger | null
pos_order_idinteger | null
driver_idinteger | null
run_idinteger | null
payment_modeenum: prepaid, cod
order_amountnumber | null
delivery_feenumber | null
cod_amountnumber | null
eta_atstring | null (date-time)
occurred_atstring | null (date-time)
branch_idinteger | null

delivery.failed

تعذّر التسليم

Requires scope deliveries:read.

FieldTypeDescription
delivery_idinteger
numberstring | null
stateenum: pending, assigned, accepted, at_pickup, picked_up, arrived, delivered, returned, cancelled
sourcestring | null
order_refstring | null
sales_order_idinteger | null
pos_order_idinteger | null
driver_idinteger | null
run_idinteger | null
payment_modeenum: prepaid, cod
order_amountnumber | null
delivery_feenumber | null
cod_amountnumber | null
eta_atstring | null (date-time)
occurred_atstring | null (date-time)
branch_idinteger | null

growth.package.sold

بيع باقة

Requires scope customers:read.

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.package.renewed

تجديد باقة

Requires scope customers:read.

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.package.low

قرب نفاد جلسات باقة

Requires scope customers:read.

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

growth.package.expiring

قرب انتهاء باقة

Requires scope customers:read.

FieldTypeDescription
typestring
sourcestring | null
occurredAtstring (date-time)
partnerIdinteger | null
valuenumber | null
refModelstring | null
refIdstring | null
payloadobject

app.uninstalled

The app was uninstalled or suspended

FieldTypeDescription
installIdstring
appIdstring
clientIdstring
reasonenum: uninstalled, suspended