All API resources
API reference

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

GET/api/public/v1/entities/{entityId}/bills

SDK: 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

  • pageinteger

    Default: 1

  • pageSizeinteger

    Default: 25

  • displayStatusesstring

    Comma-separated DRAFT, IN_REVIEW, AWAITING_PAYMENT, PART_PAID, OVERDUE, ON_HOLD, PAID or VOIDED.

  • contactIdstring
  • dueDateFromstring
  • dueDateTostring
  • searchstring

    Supplier name or supplier invoice number.

Responses

200 Successful response

  • dataarray of objectsrequired
    Show 15 child attributes
    • idstringrequired
    • supplierNamestringrequired
    • supplierInvoiceNumberstringrequirednullable
    • referencestringrequirednullable
    • issueDatestring (date-time)required
    • dueDatestring (date-time)requirednullable
    • statusstringrequired
    • displayStatusstringrequired

      One of: IN_REVIEW, DRAFT, VOIDED, AWAITING_PAYMENT, PART_PAID, OVERDUE, ON_HOLD, PAID

    • totalnumberrequired
    • amountPaidstringrequired
    • amountDuestringrequirednullable
    • heldAtstring (date-time)requirednullable
    • holdReasonstringrequirednullable
    • reviewerIdstringrequirednullable
    • entityobjectrequired
      Show 2 child attributes
      • idstringrequired
      • namestringrequired
  • paginationobjectrequired
    Show 6 child attributes
    • currentPagenumberrequired
    • pageSizenumberrequired
    • totalCountnumberrequired
    • totalPagesnumberrequired
    • hasNextPagebooleanrequired
    • hasPreviousPagebooleanrequired
  • 400 Invalid filters or pagination (VALIDATION_ERROR).
  • 401 Authentication required.
  • 403 Staff access required or token entity mismatch.
  • 404 Entity not found or bills disabled.
  • 500 Unexpected bill listing failure.
Node SDK
const page = await prosaic.bills.list(entityId);
curl
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

GET/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

  • entityIdstringrequired
  • billIdstringrequired

Responses

200 Successful response

  • dataobjectrequired
    Show 26 child attributes
    • idstringrequired
    • entityIdstringrequired
    • workspaceIdstringrequired
    • contactIdstringrequirednullable
    • fileIdstringrequirednullable
    • supplierInvoiceNumberstringrequirednullable
    • referencestringrequirednullable
    • statusstringrequired
    • taxModestringrequired
    • issueDatestring (date-time)required
    • dueDatestring (date-time)requirednullable
    • supplierobjectrequirednullable
      Show 4 child attributes
      • namestringrequired
      • contactTypestringnullable

        One of: BUSINESS, INDIVIDUAL

      • gstNumberstringnullable
      • addressstringnullable
    • supplierNamestringrequired
    • subtotalnumberrequired
    • taxTotalnumberrequired
    • totalnumberrequired
    • notesstringrequirednullable
    • heldAtstring (date-time)requirednullable
    • holdReasonstringrequirednullable
    • reviewerIdstringrequirednullable
    • sentBackReasonstringrequirednullable
    • sentBackByIdstringrequirednullable
    • sentBackAtstring (date-time)requirednullable
    • createdAtstring (date-time)required
    • updatedAtstring (date-time)required
    • linesarray of objectsrequired
      Show 11 child attributes
      • idstringrequired
      • entityAccountIdstringrequirednullable
      • positionnumberrequired
      • descriptionstringrequired
      • quantitynumberrequired
      • unitPricenumberrequired
      • taxRatenumberrequired
      • taxRateCodestringrequirednullable
      • amountnumberrequired
      • taxAmountnumberrequired
      • taxAmountStatedbooleanrequired
  • 401 Authentication required.
  • 403 Staff access required or token entity mismatch.
  • 404 Bill or entity not found, or bills disabled.
  • 500 Unexpected bill retrieval failure.
Node SDK
const { data } = await prosaic.bills.retrieve(entityId, billId);
curl
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

POST/api/public/v1/entities/{entityId}/bills

SDK: 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

  • issueDatestringrequired
  • referencestringnullable
  • notesstringnullable
  • contactIdstringnullable
  • fileIdstringnullable
  • supplierInvoiceNumberstringnullable
  • taxModestring

    One of: TAX_EXCLUSIVE, TAX_INCLUSIVE, NO_TAX

  • supplierNamestring
  • dueDatestringnullable
  • linesarray of objects
    Show 7 child attributes
    • descriptionstringrequired
    • taxRateCodestringrequired
    • quantitystringrequired
    • unitPricestringrequired
    • taxRatestringrequired
    • entityAccountIdstringnullable
    • taxAmountstringnullable

Responses

201 Successful response

  • dataobjectrequired
    Show 26 child attributes
    • idstringrequired
    • entityIdstringrequired
    • workspaceIdstringrequired
    • contactIdstringrequirednullable
    • fileIdstringrequirednullable
    • supplierInvoiceNumberstringrequirednullable
    • referencestringrequirednullable
    • statusstringrequired
    • taxModestringrequired
    • issueDatestring (date-time)required
    • dueDatestring (date-time)requirednullable
    • supplierobjectrequirednullable
      Show 4 child attributes
      • namestringrequired
      • contactTypestringnullable

        One of: BUSINESS, INDIVIDUAL

      • gstNumberstringnullable
      • addressstringnullable
    • supplierNamestringrequired
    • subtotalnumberrequired
    • taxTotalnumberrequired
    • totalnumberrequired
    • notesstringrequirednullable
    • heldAtstring (date-time)requirednullable
    • holdReasonstringrequirednullable
    • reviewerIdstringrequirednullable
    • sentBackReasonstringrequirednullable
    • sentBackByIdstringrequirednullable
    • sentBackAtstring (date-time)requirednullable
    • createdAtstring (date-time)required
    • updatedAtstring (date-time)required
    • linesarray of objectsrequired
      Show 11 child attributes
      • idstringrequired
      • entityAccountIdstringrequirednullable
      • positionnumberrequired
      • descriptionstringrequired
      • quantitynumberrequired
      • unitPricenumberrequired
      • taxRatenumberrequired
      • taxRateCodestringrequirednullable
      • amountnumberrequired
      • taxAmountnumberrequired
      • taxAmountStatedbooleanrequired
  • 400 Invalid JSON, bill input, contact, account, tax code or file (VALIDATION_ERROR).
  • 401 Authentication required.
  • 403 Staff access required or token entity mismatch.
  • 404 Entity not found or bills disabled.
  • 500 Unexpected bill creation failure.
Node SDK
const { data } = await prosaic.bills.create(entityId, {
  issueDate: '2026-04-01',
});
curl
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

PATCH/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

  • entityIdstringrequired
  • billIdstringrequired

Request body

application/json

  • contactIdstringnullable
  • fileIdstringnullable
  • supplierInvoiceNumberstringnullable
  • referencestringnullable
  • taxModestring

    One of: TAX_EXCLUSIVE, TAX_INCLUSIVE, NO_TAX

  • supplierNamestring
  • notesstringnullable
  • issueDatestring
  • dueDatestringnullable
  • linesarray of objects
    Show 7 child attributes
    • descriptionstringrequired
    • taxRateCodestringrequired
    • quantitystringrequired
    • unitPricestringrequired
    • taxRatestringrequired
    • entityAccountIdstringnullable
    • taxAmountstringnullable

Responses

200 Successful response

  • dataobjectrequired
    Show 26 child attributes
    • idstringrequired
    • entityIdstringrequired
    • workspaceIdstringrequired
    • contactIdstringrequirednullable
    • fileIdstringrequirednullable
    • supplierInvoiceNumberstringrequirednullable
    • referencestringrequirednullable
    • statusstringrequired
    • taxModestringrequired
    • issueDatestring (date-time)required
    • dueDatestring (date-time)requirednullable
    • supplierobjectrequirednullable
      Show 4 child attributes
      • namestringrequired
      • contactTypestringnullable

        One of: BUSINESS, INDIVIDUAL

      • gstNumberstringnullable
      • addressstringnullable
    • supplierNamestringrequired
    • subtotalnumberrequired
    • taxTotalnumberrequired
    • totalnumberrequired
    • notesstringrequirednullable
    • heldAtstring (date-time)requirednullable
    • holdReasonstringrequirednullable
    • reviewerIdstringrequirednullable
    • sentBackReasonstringrequirednullable
    • sentBackByIdstringrequirednullable
    • sentBackAtstring (date-time)requirednullable
    • createdAtstring (date-time)required
    • updatedAtstring (date-time)required
    • linesarray of objectsrequired
      Show 11 child attributes
      • idstringrequired
      • entityAccountIdstringrequirednullable
      • positionnumberrequired
      • descriptionstringrequired
      • quantitynumberrequired
      • unitPricenumberrequired
      • taxRatenumberrequired
      • taxRateCodestringrequirednullable
      • amountnumberrequired
      • taxAmountnumberrequired
      • taxAmountStatedbooleanrequired
  • 400 Invalid input (VALIDATION_ERROR) or incomplete bill with structured issues (BILL_INCOMPLETE).
  • 401 Authentication required.
  • 403 Staff access required or token entity mismatch.
  • 404 Bill or entity not found, or bills disabled.
  • 409 Lifecycle or live-payment conflict (BILL_NOT_EDITABLE), or accounting period locked (ACCOUNTING_PERIOD_LOCKED).
  • 500 Unexpected bill update failure.
Node SDK
const { data } = await prosaic.bills.update(entityId, billId, {
  status: 'IN_REVIEW',
});
curl
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

POST/api/public/v1/entities/{entityId}/bills/{billId}/hold

SDK: 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

  • entityIdstringrequired
  • billIdstringrequired

Request body

application/json

  • reasonstringnullable

Responses

200 Successful response

  • dataobjectrequired
    Show 26 child attributes
    • idstringrequired
    • entityIdstringrequired
    • workspaceIdstringrequired
    • contactIdstringrequirednullable
    • fileIdstringrequirednullable
    • supplierInvoiceNumberstringrequirednullable
    • referencestringrequirednullable
    • statusstringrequired
    • taxModestringrequired
    • issueDatestring (date-time)required
    • dueDatestring (date-time)requirednullable
    • supplierobjectrequirednullable
      Show 4 child attributes
      • namestringrequired
      • contactTypestringnullable

        One of: BUSINESS, INDIVIDUAL

      • gstNumberstringnullable
      • addressstringnullable
    • supplierNamestringrequired
    • subtotalnumberrequired
    • taxTotalnumberrequired
    • totalnumberrequired
    • notesstringrequirednullable
    • heldAtstring (date-time)requirednullable
    • holdReasonstringrequirednullable
    • reviewerIdstringrequirednullable
    • sentBackReasonstringrequirednullable
    • sentBackByIdstringrequirednullable
    • sentBackAtstring (date-time)requirednullable
    • createdAtstring (date-time)required
    • updatedAtstring (date-time)required
    • linesarray of objectsrequired
      Show 11 child attributes
      • idstringrequired
      • entityAccountIdstringrequirednullable
      • positionnumberrequired
      • descriptionstringrequired
      • quantitynumberrequired
      • unitPricenumberrequired
      • taxRatenumberrequired
      • taxRateCodestringrequirednullable
      • amountnumberrequired
      • taxAmountnumberrequired
      • taxAmountStatedbooleanrequired
  • 400 Invalid JSON, reason or unknown field (VALIDATION_ERROR).
  • 401 Authentication required.
  • 403 Staff access required or token entity mismatch.
  • 404 Bill or entity not found, or bills disabled.
  • 409 Bill is not approved (BILL_NOT_EDITABLE).
  • 500 Unexpected bill hold failure.
Node SDK
const { data } = await prosaic.bills.hold(entityId, billId, {
  reason: 'string',
});
curl
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

DEL/api/public/v1/entities/{entityId}/bills/{billId}/hold

SDK: 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

  • entityIdstringrequired
  • billIdstringrequired

Responses

200 Successful response

  • dataobjectrequired
    Show 26 child attributes
    • idstringrequired
    • entityIdstringrequired
    • workspaceIdstringrequired
    • contactIdstringrequirednullable
    • fileIdstringrequirednullable
    • supplierInvoiceNumberstringrequirednullable
    • referencestringrequirednullable
    • statusstringrequired
    • taxModestringrequired
    • issueDatestring (date-time)required
    • dueDatestring (date-time)requirednullable
    • supplierobjectrequirednullable
      Show 4 child attributes
      • namestringrequired
      • contactTypestringnullable

        One of: BUSINESS, INDIVIDUAL

      • gstNumberstringnullable
      • addressstringnullable
    • supplierNamestringrequired
    • subtotalnumberrequired
    • taxTotalnumberrequired
    • totalnumberrequired
    • notesstringrequirednullable
    • heldAtstring (date-time)requirednullable
    • holdReasonstringrequirednullable
    • reviewerIdstringrequirednullable
    • sentBackReasonstringrequirednullable
    • sentBackByIdstringrequirednullable
    • sentBackAtstring (date-time)requirednullable
    • createdAtstring (date-time)required
    • updatedAtstring (date-time)required
    • linesarray of objectsrequired
      Show 11 child attributes
      • idstringrequired
      • entityAccountIdstringrequirednullable
      • positionnumberrequired
      • descriptionstringrequired
      • quantitynumberrequired
      • unitPricenumberrequired
      • taxRatenumberrequired
      • taxRateCodestringrequirednullable
      • amountnumberrequired
      • taxAmountnumberrequired
      • taxAmountStatedbooleanrequired
  • 401 Authentication required.
  • 403 Staff access required or token entity mismatch.
  • 404 Bill or entity not found, or bills disabled.
  • 409 Bill is not approved (BILL_NOT_EDITABLE).
  • 500 Unexpected bill release failure.
Node SDK
const { data } = await prosaic.bills.release(entityId, billId);
curl
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

DEL/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

  • entityIdstringrequired
  • billIdstringrequired

Responses

200 Successful response

  • successbooleanrequired

    One of: true

  • 401 Authentication required.
  • 403 Staff access required or token entity mismatch.
  • 404 Bill or entity not found, or bills disabled.
  • 409 Only drafts can be deleted (BILL_NOT_EDITABLE).
  • 500 Unexpected bill deletion failure.
Node SDK
const result = await prosaic.bills.del(entityId, billId);
curl
curl -X DELETE https://app.prosaic.works/api/public/v1/entities/$ENTITY_ID/bills/$BILL_ID \
  -H "Authorization: Bearer $PROSAIC_API_KEY"