Get payment receipt
Changed onRender a receipt for a payment. Requires the documents:read scope. The payment must be PAID or REFUNDED; any other status, FREE included, returns 400 RECEIPT_NOT_AVAILABLE. The lookup is scoped to the environment of the key: a production key resolves only production payments and a sandbox key only sandbox ones, so an id from the other environment returns 404 even when it belongs to your own account.
Request
- Base URLhttps://api.yuvexpay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The payment ID.
Query parameters
Output format.
Response
The rendered receipt. The response body is the document itself — HTML with Content-Type: text/html, or plain text with Content-Type: text/plain. It is not JSON, and it is not a PDF.
Changes
- breaking
removed the media type
application/jsonfor the response with the status - info
added the media type
text/htmlfor the response with the status - info
added the media type
text/plainfor the response with the status - info
added the non-success response with the status
- breaking
- info
endpoint added
- info