Skip to Content

Public M2M API — invoices

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/invoices

Exported methods: GET, POST

GET

  • Resource scopes: invoices:read
  • Query parameters: limit, page, search, status
  • Shared pagination: Yes
  • Explicit response statuses: 422
  • Explicit error codes: invalid_request
  • Response keys observed across outcomes: data, pagination

POST

  • Resource scopes: invoices:write
  • Explicit response statuses: 201, 404, 409, 422
  • Explicit error codes: invalid_request, not_found, onboarding_incomplete
  • Response keys observed across outcomes: invoice

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
billerIdstringYesNo——
currencystringYesNo—length(3)
customerIdstringNoNo—min(1)
dueDatestringYesNo——
invoiceDatestringYesNo——
itemsarrayNoNo—min(1)
items[].descriptionstringNoNo—min(1)
items[].productCodestringYesNo——
items[].quantitynumberNoNo—positive()
items[].taxRatenumberYesNo—min(0)
items[].unitPricenumberNoNo—min(0)
notesstringYesNo——
statusenumYesNoDRAFT, ISSUED—

/api/v1/invoices/{id}

Exported methods: GET

GET

  • Resource scopes: invoices:read
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: invoice