/api/v1/transactions/{transactionId}/exportGet Payment Confirmation
Downloads the proof of payment (payment confirmation) of a completed fiat transfer or withdrawal made through Fiat Republic, as a PDF file.
The transaction ID is the same one GET /api/v1/transactions/{transactionId} accepts, and it is looked up the same way. A confirmation exists only for fiat payments made through Fiat Republic and sent out of your account (transfers and withdrawals), once the payment has completed. For any other transaction (fiat payments made through another bank, crypto, deposits, trades), and for a Fiat Republic payment whose confirmation is not ready yet, the response is 400 "A payment confirmation is not available yet for this payment."
Request
curl -X GET "https://publicapi.sandbox.hercle.financial/api/v1/transactions/123e4567-e89b-12d3-a456-426614174000/export" \
-H "Authorization: Bearer YOUR_API_KEY" \
-o payment-confirmation-123e4567-e89b-12d3-a456-426614174000.pdfPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| transactionId | string | Yes | The transaction ID, as accepted by GET /api/v1/transactions/{transactionId}. Max 36 characters. Example: 123e4567-e89b-12d3-a456-426614174000 |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token for authentication |
Response
Success Response Schema
| Field | Type | Description |
|---|---|---|
value | string | Binary PDF file |
Responses
The payment confirmation as a binary PDF file, not JSON. The response has the header Content-Disposition: attachment; filename=payment-confirmation-123e4567-e89b-12d3-a456-426614174000.pdf, named after the transactionId you sent. Save the body to a file.
%PDF-1.7 … (binary PDF content)API Tester
Test this endpoint directly against the sandbox environment
Get your API key from Hercle Sandbox
The transaction ID, as accepted by GET /api/v1/transactions/{transactionId}. Max 36 characters.
https://publicapi.sandbox.hercle.financial/api/v1/transactions/{transactionId}/export