Skip to main content

Top-up wallet

Route

POST
/api/v1/wallet_transactions

Usage

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request POST "$LAGO_URL/api/v1/wallet_transactions" \
--header "Authorization: Bearer $API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"wallet_transaction": {
"wallet_id": "12345",
"paid_credits": "20.0",
"granted_credits": "10.0"
}
}'

Arguments

{
"wallet_transaction": {
"wallet_id": "12345",
"paid_credits": "20.0",
"granted_credits": "10.0"
}
}
AttributesTypeDescription
wallet_idString      RequiredWallet ID
paid_creditsString      Optional (This field is required only if there is no granted credits)Paid credits.
granted_creditsString      Optional (This field is required only if there is no paid credits)Granted (free) credits.

Responses

The wallet transactions were created

Returns a wallet_transaction List.