For the complete documentation index, see llms.txt. This page is also available as Markdown.

Refund a deposit

This service enables you to issue and view refunds for completed payments.

  • For card deposits: The original charge is reversed, returning funds to the cardholder.

  • For alternative payment methods: The customer receives a refund via a bank transfer.

Please note, a processing fee may apply to refunds.


For technical details please visit the API Reference Create refunds

Card deposits

Total refund

curl -L \
  --request POST \
  --url 'https://api-stg.onekeypayments.com/v3/refunds' \
  --header 'Content-Type: application/json' \
  --header 'X-Date: 2025-07-25T13:13:08.220Z' \
  --header 'X-Login: text' \
  --header 'Authorization: text' \
  --data '{
    "deposit_id": 300533647,
    "invoice_id": "newIUnit45328732",
    "comments": "Test refund",
    "notification_url": "https://merchant.com/webhooks/onekeypayments/refunds"
  }'

Partial refund

curl -L \
  --request POST \
  --url 'https://api-stg.onekeypayments.com/v3/refunds' \
  --header 'Content-Type: application/json' \
  --header 'X-Date: 2025-07-25T13:13:08.220Z' \
  --header 'X-Login: text' \
  --header 'Authorization: text' \
  --data '{
    "deposit_id": 300533647,
    "invoice_id": "newIUnit45328732",
    "amount": 50,
    "comments": "Test refund",
    "notification_url": "https://merchant.com/webhooks/onekeypayments/refunds"
  }'

Synchronous response

Asynchronous response

In case of receiving IN_PROGRESS status for a card deposit refund, we will notify to the notification_url when the refund status change. Afterwards you should perform an additional Refund status check

For more information please visit the API Reference Get refund status

Alternative payment methods


Refund status

Each time that a refund changes its status we will send a webhook notification

Then, you will know that you should retrieve the status of the refund

For technical details regarding refunds status retrieval, please visit the API Reference Get refund status

Last updated

Was this helpful?