# Invoicing and Accounting

## DR11 - List accounting documents requests

 - [GET /api/document-request/requests](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/dr11.md): Pagination

This resource supports seek pagination (see documentation)

Sort fields

sort field can have the following values:dateCreated (Default) - Sort by creation date (desc by default)

## DR12 - List of document request lines

 - [GET /api/document-request/{document_request_id}/lines](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/dr12.md): Pagination

This resource supports seek pagination (see documentation)

Sort fields

sort field can have the following values:dateCreated - Sort by creation date (asc by default)

## DR73 - Download accounting documents

 - [GET /api/document-request/documents/download](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/dr73.md): Description

At least one of the following filters must be applied: document_id or entity_idIf more than one document is requested, the output of the API will be a ZIP archive.The tree structure of this archive is as follows:
documents-1624624030618.zip
|
|__ product-logistic-order/
|   |__order1-A/|      |__ INV203837.pdf
|      |__ INV203837.cxml
|   |__order1-B/|      |__ INV203839.pdf

## DR74 - Upload accounting documents

 - [POST /api/document-request/documents/upload](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/dr74.md): Description

Documents filenames must be distinct.If several formats are required for a document request, they must all be uploaded at once.A maximum of 50 documents can be uploaded simultaneously.

## IV01 - List accounting documents

 - [GET /api/invoices](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/iv01.md): Call Frequency

Recommended usage: Once per day and as many times as there are invoice pages returned
Maximum usage: Once per day and as many times as there are invoice pages returned
Pagination

This resource supports offset pagination (see documentation)

Sort fields

sort field can have the following values:dateCreated (Default) - Sort by creation date (asc by default)

## IV02 - Download an accounting document

 - [GET /api/invoices/{accounting_document_id}](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/iv02.md): Call Frequency

Recommended usage: At each invoice download
Maximum usage: At each invoice download

## TL02 - List transaction lines

 - [GET /api/sellerpayment/transactions_logs](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/tl02.md): Description

This resource uses seek pagination. The maximum allowed value for parameter limit is 2000.


Call Frequency

Recommended usage: 20 times per day
Maximum usage: 20 times per min, 60 times per hour
Pagination

This resource supports seek pagination (see documentation)

Sort fields

sort field can have the following values:dateCreated (Default) - Sort by creation date (desc by default)lastUpdated - Sort by last updated date (Recommended) (desc by default)

## TL03 - Export transaction lines JSON file asynchronously

 - [POST /api/sellerpayment/transactions_logs/async](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/tl03.md): Description

The export is asynchronous. Export status can be retrieved by calling TL04.


Call Frequency

Recommended usage:  once per day
Maximum usage:  once per day

## TL04 - Poll the status of an asynchronous transaction log export (TL03)

 - [GET /api/sellerpayment/transactions_logs/async/status/{tracking_id}](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/tl04.md): Description

Retrieve the status for an TL03 transaction log export.
When the export is complete, the URLs to retrieve the files are returned.



Call Frequency

Recommended usage: Once per minute until you get an error or a success
Maximum usage: Every 10 seconds

## TL05 - Retrieve transaction logs files once asynchronous transaction logs export is complete (TL04)

 - [GET /dynamic-url/The+URL+is+retrieved+from+TL04+output/TL05](https://developer.mirakl.com/content/product/mmp/rest/seller/openapi3/invoicing-and-accounting/tl05.md): Description

Retrieve each chunk of an transaction logs export file via the URL generated once the asynchronous transaction logs export is complete

