Top-up
1 API call in this section.
Top-up Wallet
/wallets/topup?language=enInitiates a wallet top-up payment. Currency: - The currency is resolved from Settings (currency.currency_code) using tenant override with system fallback. - The API does not accept a currency field in the request. Authentication: - Requires Bearer Token authentication: Authorization: Bearer {{access_token}} Query Parameters: - language (string, optional): Language code for localized response messages (default: en) Field Descriptions: - amount (number, required): Amount to add. Must be a positive number with min value 0.01. - payment_method_type_id (string, required): Payment method type id. - back_ref (string, optional): Return URL/reference for gateway flow. - description (string, optional): Description metadata. Response Fields: - currency (string): Currency code resolved from Settings.
1curl --request POST "$ONDI_BASE_URL/wallets/topup?language=en" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "amount": 100,7 "payment_method_type_id": "uuid",8 "back_ref": "https://your-site/return",9 "description": "Adding funds to wallet"10}'1{2 "amount": 100,3 "payment_method_type_id": "uuid",4 "back_ref": "https://your-site/return",5 "description": "Adding funds to wallet"6}Query parameters
languageOptionalen
Language code for response localization (Optional, default: en)
Request body fields
amountExampleExample field from the request body.
payment_method_type_idExampleExample field from the request body.
back_refExampleExample field from the request body.
descriptionExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
Content-TypeOptionalapplication/json
Responses
1{2 "success": true,3 "payment": { ... },4 "currency": "USD"5}