Download a refund receipt
Download the PDF receipt for a completed refund.
Get a temporary URL to download the receipt for a completed refund using its refund ID. Call this endpoint with your API key or OAuth session and use the returned url to download the PDF from files.raims.com, without sending the key in that download. The document shows the amount of that request, including partial refunds.
Pending or failed requests do not have a completion receipt. See Refund receipt for the conditions and how to use the document.
Path Params
Public refund identifier, received in the request or refund list.
Up to 100 characters
Responses
Response Body
Temporary receipt URL for the specified refund, without adding other refunds for the charge. Make a GET request to the returned address to download the PDF, without sending the API key. Sandbox receipts identify the simulated refund.
Temporary URL for downloading a financial document as a PDF. Anyone with the URL can access it until expires_at and reuse it within that period. Share it only with authorized people and do not record it in logs. After expiration, query the authenticated endpoint again to obtain another link. Downloading an invalid or expired link may return HTTP 403 without the API JSON error envelope.
Temporary HTTPS URL on files.raims.com. Send a GET to the full URL to download the PDF, without Authorization or the API key. Do not change its parameters.
Link expiration in UTC Unix seconds. After this time, query the document endpoint again with the API key.
Response Body
The refund identifier is invalid. Use the ID returned by the API.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
Refund or original charge details not found in the authenticated company and environment.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
The refund is not completed or has no confirmed completion date. Query the refund before trying to download the receipt again.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
For common errors, see HTTP response codes.