Create refund
Media type of the body sent to the API.
application/jsonISO8601 Datetime with Timezone (e.g., 2023-05-27T10:00:00Z).
Merchant X-Login API Key.
Authorization control hash, calculated as explained in the onekeypayments documentation.
Unique idempotency key to prevent duplicate processing of the same request.
onekeypayments deposit_id. It is obtained when creating the deposit. Must be a valid deposit_id of a completed deposit.
300533646The invoice_id you sent while creating the deposit or the merchant_invoice_id auto-generated by onekeypayments. Must be a valid invoice_id of a completed deposit.
newIUnit45328731Amount to refund. Positive, up to 2 decimal places. Must be equal to or smaller than the deposit amount. If not sent, a full refund is assumed.
100Optional comments about the refund.
Test refund over v3Valid HTTPS URL (URI) used to send asynchronous notifications about the refund's status changes.
https://webhook.site/urlRefund request accepted and processing initiated, or completed synchronously (for some credit card refunds). The response structure might be more detailed for synchronously processed credit card refunds.
Error in the request, such as invalid amount or missing bank account information.
Unauthorized access. Indicates an issue with authentication credentials (X-Login, X-Date, Authorization).
Resource not found, typically meaning the specified deposit_id or invoice_id does not correspond to an existing deposit.
Last updated
Was this helpful?

