Get refund status
onekeypayments refund_id. It is obtained when creating the refund.
1682844true / false value. The request with true value will return the refund invoice in base64 to be decoded to create a .pdf file.
Media type of the request. For GET, this is typically application/json if any specific content negotiation is implied by the server, even without a body.
application/jsonISO8601 Datetime with Timezone (yyyy-MM-dd'T'HH:mm:ssZ).
2023-05-27T10:30:00ZMerchant X-Login API Key.
your-x-login-keyAuthentication signature. The signature is generated based on specific headers and an empty payload for GET requests.
onekeypayments-HMAC-SHA256 SignedHeaders=x-date;x-login, Signature=your_signature_hashUnique idempotency key for ensuring that the same request is not processed more than once. (Generally more applicable for state-changing requests like POST, PUT, DELETE).
a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11Refund status successfully retrieved.
Details of the refund status. The API may add more fields to this response object in the future; integrations should be tolerant of new fields.
ID of the deposit refunded.
300533569Merchant invoice id of the deposit refunded.
84044Status of the refund. Possible values:
PENDING: The refund request has been created and is awaiting processing.DELIVERED: The refund has been sent for processing.COMPLETED: The refund has been successfully processed.INCORRECT_DETAILS: More information is needed, or details were incorrect.REJECTED: The refund was rejected (e.g., by the bank).CANCELLED: The refund was manually cancelled (only possible in PENDING or INCORRECT_DETAILS).
COMPLETEDPossible values: Amount of the refund. This field is typically present when the status is COMPLETED.
100Proof of refund in base64 coding for generation of a .pdf file. Included in the response only if voucher is sent as true in the query parameters.
JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMyAwIFIvTGFuZ...Unauthorized access. This could be due to an invalid X-Login, X-Date, or Authorization signature.
The refund with the specified refund_id could not be found.
Last updated
Was this helpful?

