For the complete documentation index, see llms.txt. This page is also available as Markdown.

Billing API

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.

Before you start

Review the shared API docs before you work with billing resources.

Core 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.

Browse collections

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:

Credit Memo

View Credit Memo operations
Operation
Method
Description
Access

POST

Create a credit memo.

GET

Retrieves the credit memo collection.

client, ops

GET

Retrieves a credit memo by ID.

client, ops

PUT

Updates properties of a credit memo.

client, ops

POST

Creates a credit memo attachement.

GET

Retrieves the list of attachments for a credit memo.

client, ops

GET

Retrieves a specific credit memo attachment by ID.

client, ops

PUT

Updates a credit memo attachement.

client, ops

Deletes a credit memo attachment

client, ops

Custom Ledgers

View Custom Ledgers operations
Operation
Method
Description
Access

POST

Creates a custom ledger

ops

GET

Retrieves the custom ledgers collection

ops

GET

Retrieves a custom ledger by ID

ops

PUT

Updates properties of a custom ledger

ops

DELETE

Deletes a custom ledger

ops

POST

Uploads a file with charges; validation starts automatically

ops

POST

Transitions custom ledger to Accepted status, finalizing charges and generating statements.

ops

GET

Returns list of all charges for the custom ledger.

ops

GET

Returns a specific charge by ID that exists in the custom ledger.

ops

POST

Creates a custom ledger attachment, uploading a file.

ops

GET

Retrieves the list of attachments for the custom ledger.

ops

GET

Retrieves a specific custom ledger attachment by ID.

ops

DELETE

Deletes a custom ledger attachment.

ops

Invoices

View Invoices operations
Operation
Method
Description
Access

GET

Retrieves the invoices collection.

client, ops

GET

Retrieves an invoice by ID.

client, ops

PUT

Updates properties of an invoice.

client, ops

POST

Create an invoice attachment.

GET

Retrieves the list of attachments for an invoice.

client, ops

GET

Retrieves a specific invoice attachment by ID.

client, ops

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

Journals

View Journals operations
Operation
Method
Description
Access

POST

Creates a journal.

vendor

GET

Retrieves the journals collection.

vendor, ops

GET

Retrieves a journal by ID.

vendor, ops

PUT

Updates properties of a journal.

vendor, ops

DELETE

Deletes a journal; vendor can delete before submission.

vendor

POST

Uploads a file with journal charges; validation starts automatically.

vendor

POST

Submits a journal for SWO review; moves status to Review.

vendor

POST

Regenerates a journal while in Review status.

ops

POST

Moves journal to Inquiring status while in Review.

ops

POST

Moves journal to Accepted status while in Review.

ops

Complete journal

POST

Moves journal to Completed status.

ops

GET

Retrieves distinct sellers derived from journal charges.

vendor, ops

Journal Charges

View Journal Charges operations
Operation
Method
Description
Access

GET

Returns list of all charges for the journal.

vendor, ops

GET

Returns a specific charge by ID that exists in the journal.

vendor, ops

Journal Attachments

View Journal Attachments operations
Operation
Method
Description
Access

POST

Creates a journal attachment, uploading a file or specifying an external link.

vendor

GET

Retrieves the list of attachments for the journal.

vendor, ops

GET

Retrieves a specific journal attachment by ID.

vendor, ops

DELETE

Deletes a journal attachment.

vendor

Ledgers

View Ledgers operations
Operation
Method
Description
Access

GET

Retrieves the ledgers collection.

ops

GET

Retrieves a ledger by ID.

ops

PUT

Updates properties of a ledger.

ops

POST

Recalculates a ledger.

ops

POST

Accepts a ledger.

ops

GET

Returns list of all charges for the ledger.

ops

GET

Returns a specific charge by ID that exists in the ledger.

ops

POST

Creates a ledger attachment.

ops

GET

Retrieves the list of attachments for a ledger.

ops

GET

Retrieves a specific ledger attachment by ID.

ops

PUT

Updates a ledger attachment.

ops

DELETE

Deletes a specific ledger attachment by ID.

ops

Overrides

View Overrides operations
Operation
Method
Description
Access

POST

Creates an override.

ops

GET

Retrieves the overrides collection.

ops

GET

Retrieves an override by ID.

ops

PUT

Updates properties of an override.

ops

Disable override

POST

Disables an override.

ops

Enable override

POST

Enables a previously disabled override.

ops

Statements

View Statements operations
Operation
Method
Description
Access

GET

Retrieves the statements collection.

client, ops

GET

Retrieves a statement by ID.

client, ops

POST

Retries sending a statement to the ERP system.

ops

POST

Recalculates a statement.

ops

POST

Cancels a statement.

ops

GET

Returns list of all charges for the statement.

client, ops

GET

Returns a specific charge by ID that exists in the statement

client, ops

POST

Create a statement attachment.

GET

Retrieves a statement attachment by ID.

PUT

Update a statement attachment.

DELETE

Delete a statement attachment by ID.

Last updated

Was this helpful?