Refunds

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
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
}

Last updated