Recharge settings
Endpoint to retrieve account details.
Authorizations
Path parameters
idstringRequired
Account ID
Responses
200
Account details retrieved successfully
application/json
404
Account not found
get
GET /v1/account/{id} HTTP/1.1
Host: api.example.com
api_key: YOUR_API_KEY
Accept: */*
{
"id": "account123",
"stripe_customer_id": "cus_HKJ432LKJ12",
"balance": 100,
"recharge_settings": {
"autorecharge_enabled": true,
"autorecharge_threshold": 1,
"autorecharge_amount": 1
}
}
Update the recharge settings for a specified account.
Authorizations
Path parameters
accountIdstringRequired
The unique identifier of the account
Body
autorecharge_enabledbooleanOptional
Flag to enable or disable automatic recharging
autorecharge_thresholdnumber · doubleOptional
Balance threshold to trigger automatic recharge
autorecharge_amountnumber · doubleOptional
Amount to be added when automatic recharge is triggered
Responses
200
Successfully updated recharge settings
404
Account not found
put
PUT /v1/account/{accountId}/recharge-settings HTTP/1.1
Host: api.example.com
api_key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"autorecharge_enabled": true,
"autorecharge_threshold": 1,
"autorecharge_amount": 1
}
No content
Last updated