Virtual Account as a Wallet: Request & Response Headers

Here is a sample request header for creating a virtual account as a wallet with VPA/UPI ID:

curl --request POST \
     --url https://api.zwitch.io/v1/accounts \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer <access_key>:<secret_key>' \
     --header 'Content-Type: application/json' \
     --data '
{
     "type": "virtual",
     "create_vpa": true,
     "kyc": {
          "title": "Mr",
          "state_code": "KA",
          "city": "Bengaluru",
          "pan": "ABCDE1234F",
          "postal_code": 560010,
          "business_type": "individual",
          "business_category": "banking_or_financial_services"
 },
     "name": "John Doe",
     "email": "john.doe@mail.com",
     "mobile_number": "9675196666",
     "used_as": "wallet"
}'

You can insert the above code snippet into your application/IDE after updating the access and secret key.

Note: All API calls require an Authorization header to be passed in the format ACCESS_KEY:SECRET_KEY. Make sure to replace <access key> and <secret key> with the actual access and secret key you will find in your Zwitch.io Sandbox Dashboard.

Here is a sample response header after the request for creating a virtual account as a wallet with VPA/UPI ID is completed:

Once the virtual account is created, you can find the account details in your Sandbox dashboard as well:

Discussion

4

0