Prepay Accounts
  • Welcome!
  • Quick Start
  • API Reference
    • Balance Accounts
      • Transactions
      • Recharge settings
      • Refunds
Powered by GitBook
On this page
  1. API Reference
  2. Balance Accounts

Refunds

PreviousRecharge settings

Last updated 1 year ago

Refund Account Balance

post

Refund the balance of an account, either partially or totally.

Authorizations
Path parameters
accountIdstringRequired

Unique identifier of the account

Body
amountnumber ยท floatOptional

Amount to be refunded. If not specified, the total balance will be refunded.

Responses
200
Refund processed successfully
application/json
400
Invalid request or insufficient funds
404
Account not found
post
POST /v1/accounts/{accountId}/refund HTTP/1.1
Host: api.example.com
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 12

{
  "amount": 1
}
{
  "message": "text",
  "refundedAmount": 1
}