API reference · version 1
Quotations
Quotations to customers (no ledger effect).
- GET
/quotationsList quotations - GET
/quotations/{id}Get a quotation - POST
/quotationsCreate a quotation - POST
/quotations/{id}/mark-sentMark a quotation as sent - POST
/quotations/{id}/acceptAccept a quotation
List quotations
GET/api/v1/quotations
Quotations, newest first.
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). |
| status | string | at most 24 characters |
| contactId | string | The customer or supplier (GET /contacts).at most 64 characters |
Example
curl "https://your-workspace.omnibooks.online/api/v1/quotations" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"data": [
{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"kind": "INVOICE",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"issueDate": "2026-11-30",
"dueDate": "2026-12-30",
"reference": null,
"notes": null,
"currency": "OMR",
"subtotal": "105.000",
"taxTotal": "105.000",
"total": "105.000",
"quoteId": null,
"branchId": "cmabc123def456",
"customFields": {
"delivery_slot": "Morning"
},
"lines": [
{
"productId": "cmabc123def456",
"description": "Ceramic floor tile 60×60",
"quantity": "105.000",
"unitPrice": "105.000",
"discountPercent": "text",
"unitCode": "H87",
"accountId": "cmabc123def456",
"taxCodeId": "cmabc123def456",
"netAmount": "105.000",
"taxAmount": "105.000",
"totalAmount": "105.000",
"lineNumber": 1,
"invoicedQty": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}
],
"nextCursor": null
}Answer fields
| Field | Type | Description |
|---|---|---|
| datarequired | array of object | |
| data[].idrequired | string | An OmniBooks id. |
| data[].numberrequired | string | |
| data[].kindrequired | enum | INVOICE, CREDIT_NOTE or DEBIT_NOTE (a debit note adds to an invoice already issued).one of QUOTE, ORDER |
| data[].statusrequired | string | DRAFT, SENT, ACCEPTED, DECLINED, CONFIRMED, PARTIALLY_INVOICED, INVOICED, CLOSED or CANCELLED. |
| data[].contactIdrequired | string | An OmniBooks id. |
| data[].contactNamerequired | string | |
| data[].issueDaterequired | string | A calendar date, YYYY-MM-DD. |
| data[].dueDaterequired | string | Quotations: valid until.may be null |
| data[].referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| data[].notesrequired | string | Notes; on sales documents they are printed.may be null |
| data[].currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| data[].subtotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].taxTotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].totalrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].quoteIdrequired | string | Sales orders: the quotation they came from.may be null |
| data[].branchIdrequired | string | An OmniBooks id. |
| data[].customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| data[].linesrequired | array of object | The lines, in order. |
| data[].lines[].productIdrequired | string | An OmniBooks id.may be null |
| data[].lines[].descriptionrequired | string | What is sold or bought, as printed. |
| data[].lines[].quantityrequired | string | A decimal quantity as a string. |
| data[].lines[].unitPricerequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].lines[].discountPercentrequired | string | Line discount, percent. |
| data[].lines[].unitCoderequired | string | UN/ECE unit code, e.g. H87 piece, KGM kilogram. |
| data[].lines[].accountIdrequired | string | An OmniBooks id. |
| data[].lines[].taxCodeIdrequired | string | An OmniBooks id.may be null |
| data[].lines[].netAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].lines[].taxAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].lines[].totalAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| data[].lines[].lineNumberrequired | number | |
| data[].lines[].invoicedQty | string | A decimal quantity as a string. |
| data[].createdAtrequired | string | An instant, ISO 8601 in UTC. |
| data[].updatedAtrequired | string | An instant, ISO 8601 in UTC. |
| nextCursorrequired | string | Pass as cursor for the next page; null on the last page.may be null |
Get a quotation
GET/api/v1/quotations/{id}
One quotation with its lines.
Path
| Field | Type | Description |
|---|---|---|
| idrequired | string | The record's id. |
Example
curl "https://your-workspace.omnibooks.online/api/v1/quotations/<id>" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"kind": "INVOICE",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"issueDate": "2026-11-30",
"dueDate": "2026-12-30",
"reference": null,
"notes": null,
"currency": "OMR",
"subtotal": "105.000",
"taxTotal": "105.000",
"total": "105.000",
"quoteId": null,
"branchId": "cmabc123def456",
"customFields": {
"delivery_slot": "Morning"
},
"lines": [
{
"productId": "cmabc123def456",
"description": "Ceramic floor tile 60×60",
"quantity": "105.000",
"unitPrice": "105.000",
"discountPercent": "text",
"unitCode": "H87",
"accountId": "cmabc123def456",
"taxCodeId": "cmabc123def456",
"netAmount": "105.000",
"taxAmount": "105.000",
"totalAmount": "105.000",
"lineNumber": 1,
"invoicedQty": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| numberrequired | string | |
| kindrequired | enum | INVOICE, CREDIT_NOTE or DEBIT_NOTE (a debit note adds to an invoice already issued).one of QUOTE, ORDER |
| statusrequired | string | DRAFT, SENT, ACCEPTED, DECLINED, CONFIRMED, PARTIALLY_INVOICED, INVOICED, CLOSED or CANCELLED. |
| contactIdrequired | string | An OmniBooks id. |
| contactNamerequired | string | |
| issueDaterequired | string | A calendar date, YYYY-MM-DD. |
| dueDaterequired | string | Quotations: valid until.may be null |
| referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| notesrequired | string | Notes; on sales documents they are printed.may be null |
| currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| subtotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| taxTotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| totalrequired | string | A decimal amount as a string, e.g. "105.000". |
| quoteIdrequired | string | Sales orders: the quotation they came from.may be null |
| branchIdrequired | string | An OmniBooks id. |
| customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| linesrequired | array of object | The lines, in order. |
| lines[].productIdrequired | string | An OmniBooks id.may be null |
| lines[].descriptionrequired | string | What is sold or bought, as printed. |
| lines[].quantityrequired | string | A decimal quantity as a string. |
| lines[].unitPricerequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].discountPercentrequired | string | Line discount, percent. |
| lines[].unitCoderequired | string | UN/ECE unit code, e.g. H87 piece, KGM kilogram. |
| lines[].accountIdrequired | string | An OmniBooks id. |
| lines[].taxCodeIdrequired | string | An OmniBooks id.may be null |
| lines[].netAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].taxAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].totalAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].lineNumberrequired | number | |
| lines[].invoicedQty | string | A decimal quantity as a string. |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| updatedAtrequired | string | An instant, ISO 8601 in UTC. |
Create a quotation
POST/api/v1/quotations
Creates a draft quotation. No ledger effect. Mark it sent, then accept it to make a confirmed sales order.
Body
| Field | Type | Description |
|---|---|---|
| customFields | object (by key) | Custom field values by key (GET /custom-fields). Only the keys you send change; an empty value clears one; unknown keys are refused.may be null |
| contactIdrequired | string | The customer or supplier (GET /contacts).at least 1 characters · at most 64 characters |
| contactPersonId | string | The person to address it to (one of the contact's people); left out = the contact's primary person.at most 64 characters · may be null |
| billingAddressId | string | One of the contact's addresses; left out = the contact's main address.at most 64 characters · may be null |
| deliveryAddressId | string | Delivery address; left out = the contact's default delivery address.at most 64 characters · may be null |
| issueDaterequired | string | YYYY-MM-DD. Must be in an open accounting period. |
| dueDate | string | YYYY-MM-DD.may be null |
| warehouseId | string | Where stock moves from or to; left out = the branch's default warehouse.at most 64 characters · may be null |
| reference | string | Your reference (the customer's PO number, the supplier's invoice number).at most 80 characters · may be null |
| notes | string | Notes; on sales documents they are printed.at most 2000 characters · may be null |
| branchId | string | GET /branches; left out = the head office (or the documents' branch).at most 64 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 |
| opportunityId | string | A CRM deal this quotation or order is for.at most 64 characters · may be null |
| linesrequired | array of object | The lines, in order.at most 200 items |
| lines[].productId | string | The item (GET /items). Needed for stock-tracked goods.at most 64 characters · may be null |
| lines[].descriptionrequired | string | What is sold or bought, as printed.at most 500 characters |
| lines[].descriptionAr | string | Arabic description, printed on bilingual documents.at most 500 characters · may be null |
| lines[].quantityrequired | string | Decimal string.at most 24 characters |
| lines[].unitPricerequired | string | Decimal string, in the document's currency.at most 24 characters |
| lines[].discountPercent | string | Line discount, percent.at most 12 characters · may be null |
| lines[].accountId | string | Ledger account (GET /accounts): the item's sales, purchase or inventory account, or any postable account for a line without an item.at most 64 characters · may be null |
| lines[].taxCodeId | string | GET /tax-codes; left out = no tax.at most 64 characters · may be null |
| lines[].unitCode | string | UN/ECE unit code, e.g. H87 piece, KGM kilogram.at most 8 characters · may be null |
Example
curl -X POST "https://your-workspace.omnibooks.online/api/v1/quotations" \
-H "Authorization: Bearer $OMNIBOOKS_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"contactId": "cmcontact123",
"issueDate": "2026-11-30",
"dueDate": "2026-12-30",
"lines": [
{
"productId": "cmitem123",
"description": "Ceramic floor tile 60×60",
"quantity": "200",
"unitPrice": "18.000",
"accountId": "cmaccount4100",
"taxCodeId": "cmtaxvat5"
}
]
}'{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"kind": "INVOICE",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"issueDate": "2026-11-30",
"dueDate": "2026-12-30",
"reference": null,
"notes": null,
"currency": "OMR",
"subtotal": "105.000",
"taxTotal": "105.000",
"total": "105.000",
"quoteId": null,
"branchId": "cmabc123def456",
"customFields": {
"delivery_slot": "Morning"
},
"lines": [
{
"productId": "cmabc123def456",
"description": "Ceramic floor tile 60×60",
"quantity": "105.000",
"unitPrice": "105.000",
"discountPercent": "text",
"unitCode": "H87",
"accountId": "cmabc123def456",
"taxCodeId": "cmabc123def456",
"netAmount": "105.000",
"taxAmount": "105.000",
"totalAmount": "105.000",
"lineNumber": 1,
"invoicedQty": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| numberrequired | string | |
| kindrequired | enum | INVOICE, CREDIT_NOTE or DEBIT_NOTE (a debit note adds to an invoice already issued).one of QUOTE, ORDER |
| statusrequired | string | DRAFT, SENT, ACCEPTED, DECLINED, CONFIRMED, PARTIALLY_INVOICED, INVOICED, CLOSED or CANCELLED. |
| contactIdrequired | string | An OmniBooks id. |
| contactNamerequired | string | |
| issueDaterequired | string | A calendar date, YYYY-MM-DD. |
| dueDaterequired | string | Quotations: valid until.may be null |
| referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| notesrequired | string | Notes; on sales documents they are printed.may be null |
| currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| subtotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| taxTotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| totalrequired | string | A decimal amount as a string, e.g. "105.000". |
| quoteIdrequired | string | Sales orders: the quotation they came from.may be null |
| branchIdrequired | string | An OmniBooks id. |
| customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| linesrequired | array of object | The lines, in order. |
| lines[].productIdrequired | string | An OmniBooks id.may be null |
| lines[].descriptionrequired | string | What is sold or bought, as printed. |
| lines[].quantityrequired | string | A decimal quantity as a string. |
| lines[].unitPricerequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].discountPercentrequired | string | Line discount, percent. |
| lines[].unitCoderequired | string | UN/ECE unit code, e.g. H87 piece, KGM kilogram. |
| lines[].accountIdrequired | string | An OmniBooks id. |
| lines[].taxCodeIdrequired | string | An OmniBooks id.may be null |
| lines[].netAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].taxAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].totalAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].lineNumberrequired | number | |
| lines[].invoicedQty | string | A decimal quantity as a string. |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| updatedAtrequired | string | An instant, ISO 8601 in UTC. |
Mark a quotation as sent
POST/api/v1/quotations/{id}/mark-sent
Marks a draft quotation as sent to the customer (it does not email it).
Path
| Field | Type | Description |
|---|---|---|
| idrequired | string | The record's id. |
Example
curl -X POST "https://your-workspace.omnibooks.online/api/v1/quotations/<id>/mark-sent" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"kind": "INVOICE",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"issueDate": "2026-11-30",
"dueDate": "2026-12-30",
"reference": null,
"notes": null,
"currency": "OMR",
"subtotal": "105.000",
"taxTotal": "105.000",
"total": "105.000",
"quoteId": null,
"branchId": "cmabc123def456",
"customFields": {
"delivery_slot": "Morning"
},
"lines": [
{
"productId": "cmabc123def456",
"description": "Ceramic floor tile 60×60",
"quantity": "105.000",
"unitPrice": "105.000",
"discountPercent": "text",
"unitCode": "H87",
"accountId": "cmabc123def456",
"taxCodeId": "cmabc123def456",
"netAmount": "105.000",
"taxAmount": "105.000",
"totalAmount": "105.000",
"lineNumber": 1,
"invoicedQty": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| numberrequired | string | |
| kindrequired | enum | INVOICE, CREDIT_NOTE or DEBIT_NOTE (a debit note adds to an invoice already issued).one of QUOTE, ORDER |
| statusrequired | string | DRAFT, SENT, ACCEPTED, DECLINED, CONFIRMED, PARTIALLY_INVOICED, INVOICED, CLOSED or CANCELLED. |
| contactIdrequired | string | An OmniBooks id. |
| contactNamerequired | string | |
| issueDaterequired | string | A calendar date, YYYY-MM-DD. |
| dueDaterequired | string | Quotations: valid until.may be null |
| referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| notesrequired | string | Notes; on sales documents they are printed.may be null |
| currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| subtotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| taxTotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| totalrequired | string | A decimal amount as a string, e.g. "105.000". |
| quoteIdrequired | string | Sales orders: the quotation they came from.may be null |
| branchIdrequired | string | An OmniBooks id. |
| customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| linesrequired | array of object | The lines, in order. |
| lines[].productIdrequired | string | An OmniBooks id.may be null |
| lines[].descriptionrequired | string | What is sold or bought, as printed. |
| lines[].quantityrequired | string | A decimal quantity as a string. |
| lines[].unitPricerequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].discountPercentrequired | string | Line discount, percent. |
| lines[].unitCoderequired | string | UN/ECE unit code, e.g. H87 piece, KGM kilogram. |
| lines[].accountIdrequired | string | An OmniBooks id. |
| lines[].taxCodeIdrequired | string | An OmniBooks id.may be null |
| lines[].netAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].taxAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].totalAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].lineNumberrequired | number | |
| lines[].invoicedQty | string | A decimal quantity as a string. |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| updatedAtrequired | string | An instant, ISO 8601 in UTC. |
Accept a quotation
POST/api/v1/quotations/{id}/accept
The customer accepted: a confirmed sales order is created with the same lines (and custom fields) and returned. A linked CRM deal is won when the CRM's auto-won option is on.
Path
| Field | Type | Description |
|---|---|---|
| idrequired | string | The record's id. |
Example
curl -X POST "https://your-workspace.omnibooks.online/api/v1/quotations/<id>/accept" \
-H "Authorization: Bearer $OMNIBOOKS_KEY"{
"id": "cmabc123def456",
"number": "INV-2026-00042",
"kind": "INVOICE",
"status": "POSTED",
"contactId": "cmabc123def456",
"contactName": "Gulf Star Trading LLC",
"issueDate": "2026-11-30",
"dueDate": "2026-12-30",
"reference": null,
"notes": null,
"currency": "OMR",
"subtotal": "105.000",
"taxTotal": "105.000",
"total": "105.000",
"quoteId": null,
"branchId": "cmabc123def456",
"customFields": {
"delivery_slot": "Morning"
},
"lines": [
{
"productId": "cmabc123def456",
"description": "Ceramic floor tile 60×60",
"quantity": "105.000",
"unitPrice": "105.000",
"discountPercent": "text",
"unitCode": "H87",
"accountId": "cmabc123def456",
"taxCodeId": "cmabc123def456",
"netAmount": "105.000",
"taxAmount": "105.000",
"totalAmount": "105.000",
"lineNumber": 1,
"invoicedQty": "105.000"
}
],
"createdAt": "2026-11-30T08:15:00.000Z",
"updatedAt": "2026-11-30T08:15:00.000Z"
}Answer fields
| Field | Type | Description |
|---|---|---|
| idrequired | string | An OmniBooks id. |
| numberrequired | string | |
| kindrequired | enum | INVOICE, CREDIT_NOTE or DEBIT_NOTE (a debit note adds to an invoice already issued).one of QUOTE, ORDER |
| statusrequired | string | DRAFT, SENT, ACCEPTED, DECLINED, CONFIRMED, PARTIALLY_INVOICED, INVOICED, CLOSED or CANCELLED. |
| contactIdrequired | string | An OmniBooks id. |
| contactNamerequired | string | |
| issueDaterequired | string | A calendar date, YYYY-MM-DD. |
| dueDaterequired | string | Quotations: valid until.may be null |
| referencerequired | string | Your reference (the customer's PO number, the supplier's invoice number).may be null |
| notesrequired | string | Notes; on sales documents they are printed.may be null |
| currencyrequired | string | ISO 4217 code; left out = the contact's currency, else the company's base currency. |
| subtotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| taxTotalrequired | string | A decimal amount as a string, e.g. "105.000". |
| totalrequired | string | A decimal amount as a string, e.g. "105.000". |
| quoteIdrequired | string | Sales orders: the quotation they came from.may be null |
| branchIdrequired | string | An OmniBooks id. |
| customFieldsrequired | object (by key) | The company's custom fields, by key (GET /custom-fields lists them). Empty fields are left out. |
| linesrequired | array of object | The lines, in order. |
| lines[].productIdrequired | string | An OmniBooks id.may be null |
| lines[].descriptionrequired | string | What is sold or bought, as printed. |
| lines[].quantityrequired | string | A decimal quantity as a string. |
| lines[].unitPricerequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].discountPercentrequired | string | Line discount, percent. |
| lines[].unitCoderequired | string | UN/ECE unit code, e.g. H87 piece, KGM kilogram. |
| lines[].accountIdrequired | string | An OmniBooks id. |
| lines[].taxCodeIdrequired | string | An OmniBooks id.may be null |
| lines[].netAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].taxAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].totalAmountrequired | string | A decimal amount as a string, e.g. "105.000". |
| lines[].lineNumberrequired | number | |
| lines[].invoicedQty | string | A decimal quantity as a string. |
| createdAtrequired | string | An instant, ISO 8601 in UTC. |
| updatedAtrequired | string | An instant, ISO 8601 in UTC. |