Add complimentary credits to a sub-account wallet
POST/wallet/company/balance/complimentary-credits
Adds complimentary credits to one of the agency's sub-account wallets and returns the resulting balance. The agency is resolved from the access token; the sub-account is named by the required locationId field.
Request
Version stringrequired
API Version
Available options
v3- application/json
- Body
- Example (auto)
Bodyrequired
locationIdstringrequired
Sub-account whose wallet is credited. Required: credits are granted by an agency to one of its sub-accounts.
complimentaryCreditsAmountnumber
Credit amount to be added
{
"locationId": "AUKAtFVo0lWezBsBQ3FE",
"complimentaryCreditsAmount": 100
}
Complimentary credits added successfully
- application/json
- Schema
- Example (auto)
Schema
walletIdstringrequired
Wallet Id
balancenumberrequired
Current wallet balance
complimentaryCreditsnumberrequired
Complimentary credits amount
{
"walletId": "xyz789",
"balance": 1500.5,
"complimentaryCredits": 100
}