Brivio API reference
Purchases

Confirm a DRAFT declaration: posts the customs journal entry (Dr 371/607 = Cr 446; VAT Dr 4426 = Cr 446 or 4427), raises the cost of the stock still held, and flips the status — atomically. Runs inline; 202 with the result. 409 not_draft; 422 no_reception / no_period / no_journal / missing_account / period_closed. Requires Idempotency-Key. (scope: purchases:confirm)

POST
/purchases/import-declarations/{id}/confirm

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key as Bearer token

Path Parameters

id*string

Import declaration id

Formatuuid

Header Parameters

Idempotency-Key*string

Required. Retries with the same key replay the first response instead of starting a second job (24 h).

Lengthlength <= 200

Response Body

OK

application/json
  1. response
data*
error*null
curl -X POST "https://example.com/purchases/import-declarations/497f6eca-6276-4993-bfeb-53cbbbba6f08/confirm" \  -H "Idempotency-Key: string"
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "status": "CONFIRMED",    "regime": "PAID_AT_CUSTOMS",    "capitalisable_amount": "string",    "capitalized_amount": "string",    "expensed_amount": "string",    "vat_amount": "string",    "accessory_costs_excluded": true,    "journal_entry_id": "6652a24b-55f1-423a-bf69-8d8966f301ed",    "journal_entry_number": 0,    "layers_uplifted": 0,    "wavg_updated": 0,    "confirmed_at": "2019-08-24T14:15:22Z"  },  "error": null}