Skip to main content

Invoice

Invoices represent billing documents issued by a supplier to a buyer, recording the amounts owed for goods or services delivered.

The invoice Object

Field NameTypeDescription
iduuidPrimary key for the invoice.
user_createdobjectUser who created the record. Read-only.
date_createddatetimeTimestamp in ISO 8601 when the record was created. Read-only.
user_updatedobjectUser who last updated the record. Read-only.
date_updateddatetimeTimestamp in ISO 8601 when the record was last updated. Read-only.
statusstringCurrent status of the invoice (e.g. draft, issued, paid).
invoice_numberstringHuman-readable invoice number or reference.
urnstringUniform Resource Name uniquely identifying this invoice, for use in EPCIS messages (typically auto created by system).
invoice_issuerobjectOrganisation that issued this invoice.

Sub-Objects

User Object (user_created, user_updated)

See Users for the full schema.

Organisation Object (invoice_issuer)

See Organisation for the full schema.


List Invoices

GET /items/invoice

Query Parameters

Supports all global query parameters.

Returns

An array of up to limit invoice objects. If no items are available, data will be an empty array.


Retrieve an Invoice

GET /items/invoice/:id

Returns

Returns an invoice object if a valid primary key was provided.


Create an Invoice

POST /items/invoice

{
"invoice_number": "INV-2024-001",
"status": "issued",
"invoice_issuer": "org-uuid"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial invoice object.

Returns

Returns the invoice object for the created record.


Update an Invoice

PATCH /items/invoice/:id

{
"status": "paid"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial invoice object.

Returns

Returns the invoice object for the updated record.


Delete an Invoice

DELETE /items/invoice/:id

Returns

Empty body.