API reference · version 1
Receipts
Money received from customers.
- GET
/receiptsList receipts - GET
/receipts/{id}Get a customer receipt - POST
/receiptsRecord a customer receipt - POST
/receipts/{id}/voidVoid a customer receipt
List receipts
GET/api/v1/receipts
Receipts, newest first, with what each one settled.
Query parameters
| Field | Type | Description |
|---|---|---|
| limit | integer | Records per page, 1–100 (default 25).≥ 1 · ≤ 100 · default 25 |
| cursor | string | The nextCursor of the previous page.at most 64 characters |
| updatedSince | string | Only records changed at or after this instant (records without a change time: created). |
| contactId | string | The customer or supplier (GET /contacts).at most 64 characters |
| status | enum | one of POSTED, VOID |
Example
curl "https://your-workspace.omnibooks.online/api/v1/receipts" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"data": [
{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"direction": "SALES",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"paymentDate": "2026-12-05",
"bankAccountId": "cmabc123def456",
"amount": "105.000",
"unallocated": "105.000",
"currency": "OMR",
"exchangeRate": "1",
"reference": null,
"method": null,
"notes": null,
"branchId": "cmabc123def456",
"allocations": [
{
"documentId": "cmabc123def456",
"documentNumber": null,
"amount": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"voidedAt": null
}
],
"nextCursor": null
}Answer fields
| Field | Type | Description |
|---|---|---|
| datarequired | array of object | |
| data[].idrequired | string | An OmniBooks id. |
| data[].numberrequired | string | |
| data[].directionrequired | enum | one of SALES, PURCHASE |
| data[].statusrequired | string | POSTED or VOID. |
| data[].contactIdrequired | string | An OmniBooks id. |
| data[].contactNamerequired | string | |
| data[].paymentDaterequired | string | A calendar date, YYYY-MM-DD. |
| data[].bankAccountIdrequired | string | An OmniBooks id. |
| data[].amountrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].unallocatedrequired | string | What is left on the contact as a credit. |
| data[].currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| data[].exchangeRaterequired | string | Base currency per unit of currency; left out = the rate on the date from Settings → Currencies. |
| data[].referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| data[].methodrequired | string | How it was paid (cash, card, transfer…), free text.may be null |
| data[].notesrequired | string | Notes; on sales documents they are printed.may be null |
| data[].branchIdrequired | string | An OmniBooks id. |
| data[].allocationsrequired | array of object | The documents it settles and how much of each. |
| data[].allocations[].documentIdrequired | string | An OmniBooks id. |
| data[].allocations[].documentNumberrequired | string | may be null |
| data[].allocations[].amountrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].createdAtrequired | string | An instant, ISO 8601 in UTC. |
| data[].voidedAtrequired | string | An instant, ISO 8601 in UTC.may be null |
| nextCursorrequired | string | Pass as cursor for the next page; null on the last page.may be null |
Get a customer receipt
GET/api/v1/receipts/{id}
One customer receipt with its allocations.
Path
| Field | Type | Description |
|---|---|---|
| idrequired | string | The record's id. |
Example
curl "https://your-workspace.omnibooks.online/api/v1/receipts/<id>" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"direction": "SALES",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"paymentDate": "2026-12-05",
"bankAccountId": "cmabc123def456",
"amount": "105.000",
"unallocated": "105.000",
"currency": "OMR",
"exchangeRate": "1",
"reference": null,
"method": null,
"notes": null,
"branchId": "cmabc123def456",
"allocations": [
{
"documentId": "cmabc123def456",
"documentNumber": null,
"amount": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"voidedAt": null
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| numberrequired | string | |
| directionrequired | enum | one of SALES, PURCHASE |
| statusrequired | string | POSTED or VOID. |
| contactIdrequired | string | An OmniBooks id. |
| contactNamerequired | string | |
| paymentDaterequired | string | A calendar date, YYYY-MM-DD. |
| bankAccountIdrequired | string | An OmniBooks id. |
| amountrequired | string | A decimal amount as a string, e.g. "105.000". |
| unallocatedrequired | string | What is left on the contact as a credit. |
| currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| exchangeRaterequired | string | Base currency per unit of currency; left out = the rate on the date from Settings → Currencies. |
| referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| methodrequired | string | How it was paid (cash, card, transfer…), free text.may be null |
| notesrequired | string | Notes; on sales documents they are printed.may be null |
| branchIdrequired | string | An OmniBooks id. |
| allocationsrequired | array of object | The documents it settles and how much of each. |
| allocations[].documentIdrequired | string | An OmniBooks id. |
| allocations[].documentNumberrequired | string | may be null |
| allocations[].amountrequired | string | A decimal amount as a string, e.g. "105.000". |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| voidedAtrequired | string | An instant, ISO 8601 in UTC.may be null |
Record a customer receipt
POST/api/v1/receipts
Records the customer receipt and applies it to the documents in allocations in one step; what is left stays on the contact as a credit. bankAccountId is the bank's ledger account (the accountId from GET /bank-accounts). The amount is in the bank account's currency unless currency is given; allocations need documents in the same currency. Send an Idempotency-Key: a retried request never records the money twice.
Body
| Field | Type | Description |
|---|---|---|
| contactIdrequired | string | The customer or supplier (GET /contacts).at least 1 characters · at most 64 characters |
| paymentDaterequired | string | YYYY-MM-DD. |
| bankAccountIdrequired | string | The bank's ledger account: accountId from GET /bank-accounts.at least 1 characters · at most 64 characters |
| amountrequired | string | Decimal string.pattern ^\d+(\.\d+)?$ |
| reference | string | Your reference (the customer's PO number, the supplier's invoice number).at most 80 characters · may be null |
| method | string | How it was paid (cash, card, transfer…), free text.at most 40 characters · may be null |
| notes | string | Notes; on sales documents they are printed.at most 1000 characters · may be null |
| currency | string | ISO 4217 code; left out = the contact's currency, else the company's base currency.at most 3 characters · may be null |
| exchangeRate | string | Base currency per unit of currency; left out = the rate on the date from Settings → Currencies.at most 24 characters · may be null |
| allocations | array of object | The documents it settles and how much of each.at most 200 items · default [] |
| allocations[].documentIdrequired | string | An open invoice or bill of the same contact and currency.at most 64 characters |
| allocations[].amountrequired | string | Decimal string.at most 24 characters |
| branchId | string | GET /branches; left out = the head office (or the documents' branch).at most 64 characters · may be null |
| withheld | object | Customer receipts: tax the customer withheld from the payment.may be null |
| withheld.amountrequired | string | Decimal string.at most 24 characters · pattern ^\d*(\.\d+)?$ |
| withheld.kindrequired | enum | INVOICE, CREDIT_NOTE or DEBIT_NOTE (a debit note adds to an invoice already issued).one of VAT, INCOME_TAX |
| withheld.reference | string | Your reference (the customer's PO number, the supplier's invoice number).at most 80 characters · may be null |
Example
curl -X POST "https://your-workspace.omnibooks.online/api/v1/receipts" \
-H "Authorization: Bearer $OMNIBOOKS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"contactId": "cmcontact123",
"paymentDate": "2026-12-05",
"bankAccountId": "cmaccount1010",
"amount": "3780.000",
"reference": "TT 99812",
"allocations": [
{
"documentId": "cminvoice123",
"amount": "3780.000"
}
]
}'{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"direction": "SALES",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"paymentDate": "2026-12-05",
"bankAccountId": "cmabc123def456",
"amount": "105.000",
"unallocated": "105.000",
"currency": "OMR",
"exchangeRate": "1",
"reference": null,
"method": null,
"notes": null,
"branchId": "cmabc123def456",
"allocations": [
{
"documentId": "cmabc123def456",
"documentNumber": null,
"amount": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"voidedAt": null
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| numberrequired | string | |
| directionrequired | enum | one of SALES, PURCHASE |
| statusrequired | string | POSTED or VOID. |
| contactIdrequired | string | An OmniBooks id. |
| contactNamerequired | string | |
| paymentDaterequired | string | A calendar date, YYYY-MM-DD. |
| bankAccountIdrequired | string | An OmniBooks id. |
| amountrequired | string | A decimal amount as a string, e.g. "105.000". |
| unallocatedrequired | string | What is left on the contact as a credit. |
| currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| exchangeRaterequired | string | Base currency per unit of currency; left out = the rate on the date from Settings → Currencies. |
| referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| methodrequired | string | How it was paid (cash, card, transfer…), free text.may be null |
| notesrequired | string | Notes; on sales documents they are printed.may be null |
| branchIdrequired | string | An OmniBooks id. |
| allocationsrequired | array of object | The documents it settles and how much of each. |
| allocations[].documentIdrequired | string | An OmniBooks id. |
| allocations[].documentNumberrequired | string | may be null |
| allocations[].amountrequired | string | A decimal amount as a string, e.g. "105.000". |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| voidedAtrequired | string | An instant, ISO 8601 in UTC.may be null |
Void a customer receipt
POST/api/v1/receipts/{id}/void
Voids it: its allocations are removed (the documents become due again) and its journal is reversed on the date given.
Path
| Field | Type | Description |
|---|---|---|
| idrequired | string | The record's id. |
Body
| Field | Type | Description |
|---|---|---|
| reasonrequired | string | Why (kept in the audit log).at least 3 characters · at most 500 characters |
| date | string | The void's date (default: today). The reversal posts on it.pattern ^\d{4}-\d{2}-\d{2}$ |
Example
curl -X POST "https://your-workspace.omnibooks.online/api/v1/receipts/<id>/void" \
-H "Authorization: Bearer $OMNIBOOKS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{}'{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"direction": "SALES",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"paymentDate": "2026-12-05",
"bankAccountId": "cmabc123def456",
"amount": "105.000",
"unallocated": "105.000",
"currency": "OMR",
"exchangeRate": "1",
"reference": null,
"method": null,
"notes": null,
"branchId": "cmabc123def456",
"allocations": [
{
"documentId": "cmabc123def456",
"documentNumber": null,
"amount": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"voidedAt": null
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| numberrequired | string | |
| directionrequired | enum | one of SALES, PURCHASE |
| statusrequired | string | POSTED or VOID. |
| contactIdrequired | string | An OmniBooks id. |
| contactNamerequired | string | |
| paymentDaterequired | string | A calendar date, YYYY-MM-DD. |
| bankAccountIdrequired | string | An OmniBooks id. |
| amountrequired | string | A decimal amount as a string, e.g. "105.000". |
| unallocatedrequired | string | What is left on the contact as a credit. |
| currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| exchangeRaterequired | string | Base currency per unit of currency; left out = the rate on the date from Settings → Currencies. |
| referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| methodrequired | string | How it was paid (cash, card, transfer…), free text.may be null |
| notesrequired | string | Notes; on sales documents they are printed.may be null |
| branchIdrequired | string | An OmniBooks id. |
| allocationsrequired | array of object | The documents it settles and how much of each. |
| allocations[].documentIdrequired | string | An OmniBooks id. |
| allocations[].documentNumberrequired | string | may be null |
| allocations[].amountrequired | string | A decimal amount as a string, e.g. "105.000". |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| voidedAtrequired | string | An instant, ISO 8601 in UTC.may be null |