post

/subaccounts/setsubaccountcredit

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

Request Parameters

1 Header

Request Body

Schema
object
username
string

Username of the subaccount

1 validation
action
string

Action to be done on subaccount

  • increase - Add to credits of subaccount

  • decrease - Subtract from existing credits of subaccount

1 validation
amount
integer

Amount of credits for the transaction

1 validation

Responses

Schema
object
result
string

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
host