Add complimentary credits to a sub-account wallet
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. The amount is added to the existing complimentary credit balance. Requires an Idempotency-Key header: the same key replays the original response instead of granting the credits a second time, so a timed-out request is safe to retry.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
wallet. writeOAuthPrivate IntegrationAgency TokenRequest
Headers
API Version
v3v3Unique key identifying this grant, for example a UUID. Reusing a key returns the original response without crediting the wallet again. Keys are remembered for 24 hours and are scoped to the sub-account.
2f1c7e9a-5b3d-4f8a-9c21-7d6e4b0a1f33Body
Sub-account whose wallet is credited. Required: credits are granted by an agency to one of its sub-accounts.
AUKAtFVo0lWezBsBQ3FECredits to add to the sub-account wallet. Added to the existing complimentary credit balance rather than replacing it, so two calls with 100 leave the wallet 200 higher. Must be greater than zero -- this route only grants credits, it cannot take them away.
Possible values: > 0
100Response
Complimentary credits added successfully
Wallet the balance belongs to: the sub-account id for a Sub-Account token, the agency id for an Agency token reading its own wallet.
xyz789Current wallet balance
1500.5Complimentary credits on the wallet. Sub-account wallets only -- agency wallets have no complimentary credits, and the field is omitted rather than reported as zero.
100