post https://api.juspay.in/customers//wallets#createwallet
Wallet account can be created only for an existing customer. Please use POST /customers API
to create customer objects as needed.
Creating the wallet with command=authenticate
parameter will trigger an OTP which will be used for linking the wallet thereby enabling direct debit authorization. You also have the option of deferring the authentication to a later point of time by omitting the command=authenticate
parameter. In case you decide to defer it, Please use the Authenticate and Link APIs to authenticate and link the wallet. (See description for authenticate and linking process here).
Returns: Wallet Object (click to view)
Provides details of a selected wallet of a customer:
Parameter | Type | Description |
---|---|---|
id | String | The unique identifier generated by Juspay for a particular wallet |
object | String | Must be "wallet_account" |
wallet | String | Name of the Wallet Provider |
token | String | One time token used to initiate a wallet transaction (expires after 15 minutes) |
current_balance | String | The balance available in the wallet as of the last refresh update. Available only for linked wallets. |
linked | boolean | If true, wallet is linked with the respective customer account. Merchant can then use the given token to debit directly from the wallet. Note: The Create, Authenticate, and Delink APIs will always return "false" for this parameter. |
last_refreshed | String | Represents the date & time when the balance was updated last. |
metadata:wwwwwww {param1, param2,...} | Object | Custom key-value sets can be passed here. Example: {"mobile_number": "9999999999"} |
gateway_reference_id | String | Unique string identifier for the gateway supplying the wallet. Required in case of multiple MID setup |
⭣
The request consists of customer_id and other parameters, as listed below: