post

/subaccounts/setsubaccountcredit

This API endpoint enables you to add or subtract credits for a particular subaccount.

Request Parameters

1 Header

Request Body

1 Example
Schema
object
username
string

Username of the subaccount

example: subaccount01
action
string

Action to be done on subaccount

  • increase - Add to credits of subaccount

  • decrease - Subtract from existing credits of subaccount

example: increase
amount
integer

Amount of credits for the transaction

example: 100

Responses

Schema
object
result
string

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.