Virtual Account as a Collection Tool - Request 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",
     "kyc": {
          "state_code": "KA",
          "city": "Bengaluru",
          "pan": "ABCDE1234F",
          "postal_code": 560068,
          "business_type": "individual",
          "business_category": "agri_business"
     },
     "name": "John Doe",
     "email": "john.doe@email.com",
     "mobile_number": "9675196666",
     "used_as": "collection_tool",
     "create_vpa": true
}
'

Note: All Zwitch 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.

Discussion

3

0