All API resources
Bills
Create draft supplier bills, submit them for review, approve them, and manage payment holds.
Base URL https://app.prosaic.works/api/public/v1. Every request needs an API key or access token; see the overview.
List supplier bills for an entity
/api/public/v1/entities/{entityId}/billsSDK: prosaic.bills.list(entityId, params)
Requires workspace staff access and entity view permission. Returns current payment balances and display statuses. Date filters are inclusive calendar days.
Path parameters
entityIdstringrequired
Query parameters
pageintegerDefault:
1pageSizeintegerDefault:
25displayStatusesstringComma-separated DRAFT, IN_REVIEW, AWAITING_PAYMENT, PART_PAID, OVERDUE, ON_HOLD, PAID or VOIDED.
contactIdstringdueDateFromstringdueDateTostringsearchstringSupplier name or supplier invoice number.
Responses
200 Successful response
dataarray of objectsrequiredShow 15 child attributesHide child attributes
idstringrequiredsupplierNamestringrequiredsupplierInvoiceNumberstringrequirednullablereferencestringrequirednullableissueDatestring (date-time)requireddueDatestring (date-time)requirednullablestatusstringrequireddisplayStatusstringrequiredOne of:
IN_REVIEW,DRAFT,VOIDED,AWAITING_PAYMENT,PART_PAID,OVERDUE,ON_HOLD,PAIDtotalnumberrequiredamountPaidstringrequiredamountDuestringrequirednullableheldAtstring (date-time)requirednullableholdReasonstringrequirednullablereviewerIdstringrequirednullableentityobjectrequiredShow 2 child attributesHide child attributes
idstringrequirednamestringrequired
paginationobjectrequiredShow 6 child attributesHide child attributes
currentPagenumberrequiredpageSizenumberrequiredtotalCountnumberrequiredtotalPagesnumberrequiredhasNextPagebooleanrequiredhasPreviousPagebooleanrequired
400Invalid filters or pagination (VALIDATION_ERROR).401Authentication required.403Staff access required or token entity mismatch.404Entity not found or bills disabled.500Unexpected bill listing failure.
const page = await prosaic.bills.list(entityId);curl https://app.prosaic.works/api/public/v1/entities/$ENTITY_ID/bills \
-H "Authorization: Bearer $PROSAIC_API_KEY"Retrieve a supplier bill and its lines
/api/public/v1/entities/{entityId}/bills/{billId}SDK: prosaic.bills.retrieve(entityId, billId)
Requires workspace staff and entity view permission. Bills outside the URL entity return 404. Monetary outputs are numeric; dates serialize as ISO strings. Use the list endpoint for current payment balances and display status.
Path parameters
entityIdstringrequiredbillIdstringrequired
Responses
200 Successful response
dataobjectrequiredShow 26 child attributesHide child attributes
idstringrequiredentityIdstringrequiredworkspaceIdstringrequiredcontactIdstringrequirednullablefileIdstringrequirednullablesupplierInvoiceNumberstringrequirednullablereferencestringrequirednullablestatusstringrequiredtaxModestringrequiredissueDatestring (date-time)requireddueDatestring (date-time)requirednullablesupplierobjectrequirednullableShow 4 child attributesHide child attributes
namestringrequiredcontactTypestringnullableOne of:
BUSINESS,INDIVIDUALgstNumberstringnullableaddressstringnullable
supplierNamestringrequiredsubtotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequirednotesstringrequirednullableheldAtstring (date-time)requirednullableholdReasonstringrequirednullablereviewerIdstringrequirednullablesentBackReasonstringrequirednullablesentBackByIdstringrequirednullablesentBackAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredupdatedAtstring (date-time)requiredlinesarray of objectsrequiredShow 11 child attributesHide child attributes
idstringrequiredentityAccountIdstringrequirednullablepositionnumberrequireddescriptionstringrequiredquantitynumberrequiredunitPricenumberrequiredtaxRatenumberrequiredtaxRateCodestringrequirednullableamountnumberrequiredtaxAmountnumberrequiredtaxAmountStatedbooleanrequired
401Authentication required.403Staff access required or token entity mismatch.404Bill or entity not found, or bills disabled.500Unexpected bill retrieval failure.
const { data } = await prosaic.bills.retrieve(entityId, billId);curl https://app.prosaic.works/api/public/v1/entities/$ENTITY_ID/bills/$BILL_ID \
-H "Authorization: Bearer $PROSAIC_API_KEY"Create a draft supplier bill
/api/public/v1/entities/{entityId}/billsSDK: prosaic.bills.create(entityId, params)
Creates DRAFT only. Upload one document using files.upload and pass its fileId. The document must belong to this entity. Approve separately with PATCH status APPROVED. Requires workspace staff and entity create permission. Amount inputs are finite decimal strings; dates are calendar days. Empty drafts are permitted.
Path parameters
entityIdstringrequired
Request body
application/json
issueDatestringrequiredreferencestringnullablenotesstringnullablecontactIdstringnullablefileIdstringnullablesupplierInvoiceNumberstringnullabletaxModestringOne of:
TAX_EXCLUSIVE,TAX_INCLUSIVE,NO_TAXsupplierNamestringdueDatestringnullablelinesarray of objectsShow 7 child attributesHide child attributes
descriptionstringrequiredtaxRateCodestringrequiredquantitystringrequiredunitPricestringrequiredtaxRatestringrequiredentityAccountIdstringnullabletaxAmountstringnullable
Responses
201 Successful response
dataobjectrequiredShow 26 child attributesHide child attributes
idstringrequiredentityIdstringrequiredworkspaceIdstringrequiredcontactIdstringrequirednullablefileIdstringrequirednullablesupplierInvoiceNumberstringrequirednullablereferencestringrequirednullablestatusstringrequiredtaxModestringrequiredissueDatestring (date-time)requireddueDatestring (date-time)requirednullablesupplierobjectrequirednullableShow 4 child attributesHide child attributes
namestringrequiredcontactTypestringnullableOne of:
BUSINESS,INDIVIDUALgstNumberstringnullableaddressstringnullable
supplierNamestringrequiredsubtotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequirednotesstringrequirednullableheldAtstring (date-time)requirednullableholdReasonstringrequirednullablereviewerIdstringrequirednullablesentBackReasonstringrequirednullablesentBackByIdstringrequirednullablesentBackAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredupdatedAtstring (date-time)requiredlinesarray of objectsrequiredShow 11 child attributesHide child attributes
idstringrequiredentityAccountIdstringrequirednullablepositionnumberrequireddescriptionstringrequiredquantitynumberrequiredunitPricenumberrequiredtaxRatenumberrequiredtaxRateCodestringrequirednullableamountnumberrequiredtaxAmountnumberrequiredtaxAmountStatedbooleanrequired
400Invalid JSON, bill input, contact, account, tax code or file (VALIDATION_ERROR).401Authentication required.403Staff access required or token entity mismatch.404Entity not found or bills disabled.500Unexpected bill creation failure.
const { data } = await prosaic.bills.create(entityId, {
issueDate: '2026-04-01',
});curl -X POST https://app.prosaic.works/api/public/v1/entities/$ENTITY_ID/bills \
-H "Authorization: Bearer $PROSAIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"issueDate": "2026-04-01"
}'Edit a draft bill or change its status
/api/public/v1/entities/{entityId}/bills/{billId}SDK: prosaic.bills.update(entityId, billId, params)
Send draft fields or one status change with its action-specific fields. IN_REVIEW submits a complete draft for review or changes its reviewer. Supply reviewerId for a specific reviewer, or omit it to leave the bill unassigned. DRAFT sends a bill in review back with a required reason, or unapproves a posted bill. APPROVED posts a draft or a bill in review. VOIDED voids an approved bill.
Existing period locks and live-payment restrictions apply. Omitted draft fields stay unchanged. Null clears nullable fields, and lines replaces all lines. Requires workspace staff and entity edit permission. Invalid JSON or mixed status and draft fields returns 400.
Path parameters
entityIdstringrequiredbillIdstringrequired
Request body
application/json
contactIdstringnullablefileIdstringnullablesupplierInvoiceNumberstringnullablereferencestringnullabletaxModestringOne of:
TAX_EXCLUSIVE,TAX_INCLUSIVE,NO_TAXsupplierNamestringnotesstringnullableissueDatestringdueDatestringnullablelinesarray of objectsShow 7 child attributesHide child attributes
descriptionstringrequiredtaxRateCodestringrequiredquantitystringrequiredunitPricestringrequiredtaxRatestringrequiredentityAccountIdstringnullabletaxAmountstringnullable
Responses
200 Successful response
dataobjectrequiredShow 26 child attributesHide child attributes
idstringrequiredentityIdstringrequiredworkspaceIdstringrequiredcontactIdstringrequirednullablefileIdstringrequirednullablesupplierInvoiceNumberstringrequirednullablereferencestringrequirednullablestatusstringrequiredtaxModestringrequiredissueDatestring (date-time)requireddueDatestring (date-time)requirednullablesupplierobjectrequirednullableShow 4 child attributesHide child attributes
namestringrequiredcontactTypestringnullableOne of:
BUSINESS,INDIVIDUALgstNumberstringnullableaddressstringnullable
supplierNamestringrequiredsubtotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequirednotesstringrequirednullableheldAtstring (date-time)requirednullableholdReasonstringrequirednullablereviewerIdstringrequirednullablesentBackReasonstringrequirednullablesentBackByIdstringrequirednullablesentBackAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredupdatedAtstring (date-time)requiredlinesarray of objectsrequiredShow 11 child attributesHide child attributes
idstringrequiredentityAccountIdstringrequirednullablepositionnumberrequireddescriptionstringrequiredquantitynumberrequiredunitPricenumberrequiredtaxRatenumberrequiredtaxRateCodestringrequirednullableamountnumberrequiredtaxAmountnumberrequiredtaxAmountStatedbooleanrequired
400Invalid input (VALIDATION_ERROR) or incomplete bill with structured issues (BILL_INCOMPLETE).401Authentication required.403Staff access required or token entity mismatch.404Bill or entity not found, or bills disabled.409Lifecycle or live-payment conflict (BILL_NOT_EDITABLE), or accounting period locked (ACCOUNTING_PERIOD_LOCKED).500Unexpected bill update failure.
const { data } = await prosaic.bills.update(entityId, billId, {
status: 'IN_REVIEW',
});curl -X PATCH https://app.prosaic.works/api/public/v1/entities/$ENTITY_ID/bills/$BILL_ID \
-H "Authorization: Bearer $PROSAIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "IN_REVIEW"
}'Put a supplier bill on hold
/api/public/v1/entities/{entityId}/bills/{billId}/holdSDK: prosaic.bills.hold(entityId, billId, params)
Hold an approved bill without changing its posting or payments. Holding an already held bill updates its reason. Requires workspace staff, entity edit permission and the bills feature. A hold does not prevent recording or matching an actual external payment. No journal is posted or reversed, so accounting period locks do not prevent holding a bill.
Path parameters
entityIdstringrequiredbillIdstringrequired
Request body
application/json
reasonstringnullable
Responses
200 Successful response
dataobjectrequiredShow 26 child attributesHide child attributes
idstringrequiredentityIdstringrequiredworkspaceIdstringrequiredcontactIdstringrequirednullablefileIdstringrequirednullablesupplierInvoiceNumberstringrequirednullablereferencestringrequirednullablestatusstringrequiredtaxModestringrequiredissueDatestring (date-time)requireddueDatestring (date-time)requirednullablesupplierobjectrequirednullableShow 4 child attributesHide child attributes
namestringrequiredcontactTypestringnullableOne of:
BUSINESS,INDIVIDUALgstNumberstringnullableaddressstringnullable
supplierNamestringrequiredsubtotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequirednotesstringrequirednullableheldAtstring (date-time)requirednullableholdReasonstringrequirednullablereviewerIdstringrequirednullablesentBackReasonstringrequirednullablesentBackByIdstringrequirednullablesentBackAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredupdatedAtstring (date-time)requiredlinesarray of objectsrequiredShow 11 child attributesHide child attributes
idstringrequiredentityAccountIdstringrequirednullablepositionnumberrequireddescriptionstringrequiredquantitynumberrequiredunitPricenumberrequiredtaxRatenumberrequiredtaxRateCodestringrequirednullableamountnumberrequiredtaxAmountnumberrequiredtaxAmountStatedbooleanrequired
400Invalid JSON, reason or unknown field (VALIDATION_ERROR).401Authentication required.403Staff access required or token entity mismatch.404Bill or entity not found, or bills disabled.409Bill is not approved (BILL_NOT_EDITABLE).500Unexpected bill hold failure.
const { data } = await prosaic.bills.hold(entityId, billId, {
reason: 'string',
});curl -X POST https://app.prosaic.works/api/public/v1/entities/$ENTITY_ID/bills/$BILL_ID/hold \
-H "Authorization: Bearer $PROSAIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'Release a supplier bill from hold
/api/public/v1/entities/{entityId}/bills/{billId}/holdSDK: prosaic.bills.release(entityId, billId)
Clear hold metadata on an approved bill; an already released approved bill remains released. Does not approve, pay, unapprove or change the journal. Requires workspace staff, entity edit permission and the bills feature. No request body. Accounting period locks do not prevent releasing a hold.
Path parameters
entityIdstringrequiredbillIdstringrequired
Responses
200 Successful response
dataobjectrequiredShow 26 child attributesHide child attributes
idstringrequiredentityIdstringrequiredworkspaceIdstringrequiredcontactIdstringrequirednullablefileIdstringrequirednullablesupplierInvoiceNumberstringrequirednullablereferencestringrequirednullablestatusstringrequiredtaxModestringrequiredissueDatestring (date-time)requireddueDatestring (date-time)requirednullablesupplierobjectrequirednullableShow 4 child attributesHide child attributes
namestringrequiredcontactTypestringnullableOne of:
BUSINESS,INDIVIDUALgstNumberstringnullableaddressstringnullable
supplierNamestringrequiredsubtotalnumberrequiredtaxTotalnumberrequiredtotalnumberrequirednotesstringrequirednullableheldAtstring (date-time)requirednullableholdReasonstringrequirednullablereviewerIdstringrequirednullablesentBackReasonstringrequirednullablesentBackByIdstringrequirednullablesentBackAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredupdatedAtstring (date-time)requiredlinesarray of objectsrequiredShow 11 child attributesHide child attributes
idstringrequiredentityAccountIdstringrequirednullablepositionnumberrequireddescriptionstringrequiredquantitynumberrequiredunitPricenumberrequiredtaxRatenumberrequiredtaxRateCodestringrequirednullableamountnumberrequiredtaxAmountnumberrequiredtaxAmountStatedbooleanrequired
401Authentication required.403Staff access required or token entity mismatch.404Bill or entity not found, or bills disabled.409Bill is not approved (BILL_NOT_EDITABLE).500Unexpected bill release failure.
const { data } = await prosaic.bills.release(entityId, billId);curl -X DELETE https://app.prosaic.works/api/public/v1/entities/$ENTITY_ID/bills/$BILL_ID/hold \
-H "Authorization: Bearer $PROSAIC_API_KEY"Delete a draft supplier bill
/api/public/v1/entities/{entityId}/bills/{billId}SDK: prosaic.bills.del(entityId, billId)
Only drafts can be deleted. Requires workspace staff and entity edit permission.
Path parameters
entityIdstringrequiredbillIdstringrequired
Responses
200 Successful response
successbooleanrequiredOne of:
true
401Authentication required.403Staff access required or token entity mismatch.404Bill or entity not found, or bills disabled.409Only drafts can be deleted (BILL_NOT_EDITABLE).500Unexpected bill deletion failure.
const result = await prosaic.bills.del(entityId, billId);curl -X DELETE https://app.prosaic.works/api/public/v1/entities/$ENTITY_ID/bills/$BILL_ID \
-H "Authorization: Bearer $PROSAIC_API_KEY"