Wallets
Top up wallet
Add credits to a wallet
POST
Authorizations
Enter your API key in the format x-api-key <api-key>*
Path Parameters
Wallet ID
Body
application/json
Top up request
amount is the number of credits to add to the wallet
description to add any specific details about the transaction
expiry_date YYYYMMDD format in UTC timezone (optional to set nil means no expiry) for ex 20250101 means the credits will expire on 2025-01-01 00:00:00 UTC hence they will be available for use until 2024-12-31 23:59:59 UTC
generate_invoice when true, an invoice will be generated for the transaction
purchased_credits when true, the credits are added as purchased credits
reference_id is the ID of the reference ex payment ID, invoice ID, request ID
reference_type is the type of the reference ex payment, invoice, request
Response
200
application/json
OK
Available options:
disabled
, balance_below_threshold
Available options:
active
, frozen
, closed
Available options:
PROMOTIONAL
, PRE_PAID