curl "{BASE_URL}/api/v1/payments/6c1d9a3e-2f0b-4a7e-9d51-0b3a7c2e9f14/receipt" \
-H "x-api-key: $MIZANIYA_API_KEY" \
-o receipt.pdf
Content-Type: application/pdf
Content-Disposition: attachment;
filename="receipt-COMMANDE-2024-8756-fr.pdf"
<PDF bytes>
Receipts
Download the receipt
PDF receipt of a successful payment, in the language chosen at registration.
GET
{BASE_URL}
/
api
/
v1
/
payments
/
{id}
/
receipt
curl "{BASE_URL}/api/v1/payments/6c1d9a3e-2f0b-4a7e-9d51-0b3a7c2e9f14/receipt" \
-H "x-api-key: $MIZANIYA_API_KEY" \
-o receipt.pdf
Content-Type: application/pdf
Content-Disposition: attachment;
filename="receipt-COMMANDE-2024-8756-fr.pdf"
<PDF bytes>
Path parameters
string
required
The payment id (UUID). The payment must have succeeded.
curl "{BASE_URL}/api/v1/payments/6c1d9a3e-2f0b-4a7e-9d51-0b3a7c2e9f14/receipt" \
-H "x-api-key: $MIZANIYA_API_KEY" \
-o receipt.pdf
Content-Type: application/pdf
Content-Disposition: attachment;
filename="receipt-COMMANDE-2024-8756-fr.pdf"
<PDF bytes>
Errors
| HTTP | errorCode | Cause |
|---|---|---|
| 404 | PAYMENT_INSTANCE404_NOT_FOUND | No payment with this id. |
| 409 | RECEIPT409_NOT_AVAILABLE | Payment did not succeed. |
| 500 | RECEIPT500_GENERATION_FAILED | The receipt could not be produced, retry later. |
