Skip to content

IV02 - Download an accounting document

Request

Description

⚠️ Note: When the Enhanced Seller Invoicing toggle is enabled, the DR73 API should be used. Only documents created prior to the toggle activation remain downloadable via this API.

Call Frequency
Maximum usage: At each invoice download
Security
Shop-API-Key(Required scopes: ROLE_SHOP_ADMIN
ROLE_PARTNER_ACCOUNTING_DOCUMENT...
ROLE_PARTNER_OWN_ACCOUNTING_DOCU...
)
Path
accounting_document_idinteger, (int64)required

Accounting document identifier

Query
shop_idinteger, (int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/invoices/{accounting_document_id}?shop_id=0' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/octet-stream
string, (binary)
Response
string