| description |
Use the Billing API to manage invoices, journals, and other billing operations programmatically. |
The Billing API lets you interact with the Marketplace Platform's billing features programmatically. The API centralizes billing workflow, allowing you to automate your financial operations fully.
With this API, you can create, update, retrieve, and manage financial documents through secure endpoints. The documents include invoices, credit memos, statements, journals, and custom ledgers. The API also includes endpoints for managing journal and invoice attachments.
Review the shared API docs before you work with billing resources.
The Billing API is built around the following core resources:
- Credit memo – Represents credit memos within the ERP system.
- Custom ledger – Represents a ledger generated by the
rating function within the context of a specific seller. Each ledger is derived from the corresponding entries recorded in the journal.
- Invoice – Represents an
invoice in the ERP system.
- Invoice line – Represents a record of
invoice generated in the ERP system.
- Journal – Represents the journal object, associated with the
authorization . A journal is generated by vendors using raw data obtained from their services.
- Journal charge – Represents individual charges within a
journal.
- Journal attachment – Represents files attached to journals.
- Override – Makes a client eligible for manual billing, bypassing the automated billing process. Assigning an
override indicates that the client’s billing requires flexibility and will be processed manually.
- Statement – Represents billing entries generated within the context of a specific
agreement, based on the corresponding ledger.
The API is organized into collections, each containing a set of operations. Access to these operations varies by role, depending on whether you are a client, vendor, or operations user.
Use the following links to jump to the collection you need:
View Credit Memo operations
View Custom Ledgers operations
View Invoices operations
| Operation |
Method |
Description |
Access |
| List invoices |
GET |
Retrieves the invoices collection. |
client, ops |
| Get invoice |
GET |
Retrieves an invoice by ID. |
client, ops |
| Update invoice |
PUT |
Updates properties of an invoice. |
client, ops |
| Create invoice attachment |
POST |
Create an invoice attachment. |
|
| List invoice attachments |
GET |
Retrieves the list of attachments for an invoice. |
client, ops |
| Get invoice attachment |
GET |
Retrieves a specific invoice attachment by ID. |
client, ops |
| Delete invoice attachment |
DELETE |
Deletes an invoice attachment. |
|
| List of Invoice lines |
GET |
Returns a list of all invoice lines for the invoice. |
client, ops |
| Get an invoice line |
GET |
Returns a specific invoice line by ID that exists in the invoice. |
client, ops |
View Journals operations
| Operation |
Method |
Description |
Access |
| Create journal |
POST |
Creates a journal. |
vendor |
| List journals |
GET |
Retrieves the journals collection. |
vendor, ops |
| Get journal |
GET |
Retrieves a journal by ID. |
vendor, ops |
| Update journal |
PUT |
Updates properties of a journal. |
vendor, ops |
| Delete journal |
DELETE |
Deletes a journal; vendor can delete before submission. |
vendor |
| Upload journal charges |
POST |
Uploads a file with journal charges; validation starts automatically. |
vendor |
| Submit journal |
POST |
Submits a journal for SWO review; moves status to Review. |
vendor |
| Regenerate journal |
POST |
Regenerates a journal while in Review status. |
ops |
| Enquire journal |
POST |
Moves journal to Inquiring status while in Review. |
ops |
| Accept journal |
POST |
Moves journal to Accepted status while in Review. |
ops |
| Complete journal |
POST |
Moves journal to Completed status. |
ops |
| Get journal sellers |
GET |
Retrieves distinct sellers derived from journal charges. |
vendor, ops |
View Journal Charges operations
| Operation |
Method |
Description |
Access |
| List journal charges |
GET |
Returns list of all charges for the journal. |
vendor, ops |
| Get journal charge |
GET |
Returns a specific charge by ID that exists in the journal. |
vendor, ops |
View Journal Attachments operations
View Ledgers operations
View Overrides operations
| Operation |
Method |
Description |
Access |
| Create override |
POST |
Creates an override. |
ops |
| List overrides |
GET |
Retrieves the overrides collection. |
ops |
| Get override |
GET |
Retrieves an override by ID. |
ops |
| Update override |
PUT |
Updates properties of an override. |
ops |
| Disable override |
POST |
Disables an override. |
ops |
| Enable override |
POST |
Enables a previously disabled override. |
ops |
View Statements operations