Skip to content

DR75 - Confirm accounting documents issuance

Request

Description

For fees documents (FEES, ONE_OFF_FEES) issued externally, confirms the issuance details without uploading a document.

A maximum of 100 requests can be confirmed simultaneously.

Security
Shop-API-Key(Required scopes: ROLE_SHOP_ADMIN
ROLE_PARTNER_CUSTOMER_ACCOUNTING...
)
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.

Bodyapplication/json
requestsArray of objects, [ 1 .. 100 ] itemsrequired

The details of the accounting documents issuance to confirm.

curl -i -X POST \
  'https://your-instance.mirakl.net/api/document-request/documents/confirm-issuance?shop_id=0' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "requests": [
      {
        "document_number": "INV-2022-0001",
        "due_date": "2022-02-02T00:00:00Z",
        "issue_date": "2022-01-02T00:00:00Z",
        "request_id": "4a29570a-5382-45af-9697-057de50f48a4",
        "total_amount_excluding_taxes": 32000,
        "total_tax_amount": 512
      },
      {
        "document_number": "INV-2022-0002",
        "due_date": "2022-02-02T00:00:00Z",
        "issue_date": "2022-01-02T00:00:00Z",
        "request_id": "7fd2bc17-5ca8-4383-a3b8-bb7e3ec6daf1",
        "total_amount_excluding_taxes": 32000,
        "total_tax_amount": 512
      }
    ]
  }'

Responses

OK

Bodyapplication/json
requestsArray of objectsrequired

Details of the documents for each request as they were sent

Response
{ "requests": [ { … }, { … } ] }