Creates a temporary download URL for the given receipt. The identifier is the one the payment transaction carries in its receipt.id property.
A receipt that was never generated and one that does not exist are the same absence here, and both answer 404.
Headers
-
Determines the file type of the download. If the requested media type is not supported, a 406 Not Acceptable response is returned.
Responses
-
The receipt download has been created successfully.
-
The request parameters are invalid or missing.
-
Client authentication failed.
-
Missing one or more required scopes.
-
The receipt was not found.
-
The requested media type is not supported.
-
The receipt has not been generated yet.
-
An internal server error occurred.
POST
/2026-4/receipts/{receiptId}/download
curl \
--request POST 'https://api.pace.cloud/payment/2026-4/receipts/9b4d1a02-0f4c-4a0a-9e4d-2f8a3c6b1d55/download' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Accept: image/png, image/*;q=0.9"
Response examples (201)
{
"data": {
"downloadURL": "https://example.com/receipt.pdf",
"expiresAt": "2026-01-29T12:00:00.000Z"
}
}