Processing flow
Cash receipt issuance and cancellation are asynchronous. The API first returns202 Accepted and an issuanceKey. Check the final result via webhook or the status API.
- Webhook - the API sends a result event to your registered URL. We recommend webhooks for real-time processing.
- Status API - query the current status with
Bolta-Client-Reference-Id.
202 means that the API accepted the request. It does not confirm issuance or cancellation. Always check the final result via webhook or the status API.Issuance
To issue a cash receipt, callPOST /v1/cashReceipts.
Register the supplier’s certificate before issuing a cash receipt. Issuance fails without a registered certificate. See Certificate Registration Integration.
issuanceKey). Store it for cancellation requests.
Recipient types
Setrecipient.value based on recipient.type.
Supplier information
Setissuer.businessRegistrationNumber to the business registration number linked to Supplier-Key.
Amount
Set each field inamount to no more than 9,999,999,999. The total (supplyAmount + vatAmount + taxFreeAmount) must also be no greater than 9,999,999,999 and greater than 0. If you omit taxFreeAmount, the API treats it as 0.
Status
Query the processing status with theBolta-Client-Reference-Id used in the issuance or cancellation request.
status to determine success or failure. If the request failed, check failure for details.
After successful issuance, the API also returns the cash receipt approval number in
cashReceiptApprovalNumber.
Cancellation
You can fully cancel an issued cash receipt. Partial cancellation is not supported. Set{issuanceKey} in the path to the issuanceKey from the issuance response.
Set the cancellation request’s
Bolta-Client-Reference-Id to a different value from the issuance request. Check the final result via webhook or the status API.Reproducing a failure webhook (testing)
When calling the issuance or cancellation API with a test key, set theBolta-Webhook-Test-Code header to a failure code. The API sends the corresponding failure webhook. Do not use this header in production (live).
Related documents
- Webhook events - cash receipt result event payloads
- Error codes - cash receipt failure codes
- Authentication guide -
Authorization,Supplier-Key,Bolta-Client-Reference-Id - API Reference - request/response schemas
