API Test Keys

Delete an Allowed Payer With TPV

DELETE
/v1/virtual_accounts/:va_id/allowed_payers/:id

Click to copy

Available in

IN

India

Use this endpoint to delete the allowed payer's account details added to a Customer Identifier. You can delete one account detail in a single request.

Is this page helpful?

Curl

change language

change language

1
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
2
-X DELETE https://api.razorpay.com/v1/virtual_accounts/va_DlGmm7jInLudH9/allowed_payers/ba_DlGmm9mSj8fjRM \

Response

1
null
Path Parameters
va_id

*

string

The unique identifier of the Customer Identifier from which the allowed_payers account details should be deleted.

id

*

string

The unique identifier of the allowed_payers account that has to be deleted.

Request Parameters
type

*

string

The type of account. Possible value is bank_account.

bank_account

*

object

Indicates the bank account details such as ifsc and account_number.

Show child parameters (2)

Errors

Error Status: 400

Account validation is only applicable on bank account as a receiver type

This error occurs when you try to add an allowed payer account on a Customer Identifier with VPA added as a receiver (with or without a Bank account).

Solution

Error Status: 400

Only 10 allowed payer accounts can be added.

This error occurs when you try to add new allowed payer accounts when the overall allowed_payers limit is exceeded. You can only add up to 10 allowed payer accounts.

Solution

Error Status: 400

The bank account.account number field is required when bank account is present.

This error occurs when you do not pass the bank account number in the request.

Solution

Error Status: 400

Payer detail already exist for virtual account.

This error occurs when you try to add a duplicate allowed payer's account with the same IFSC and account number that already exists.

Solution

Delete an Allowed Payer With TPV

DELETE
/v1/virtual_accounts/:va_id/allowed_payers/:id

Click to copy

Available in

IN

India

Use this endpoint to delete the allowed payer's account details added to a Customer Identifier. You can delete one account detail in a single request.

Is this page helpful?

Path Parameters
va_id

*

string

The unique identifier of the Customer Identifier from which the allowed_payers account details should be deleted.

id

*

string

The unique identifier of the allowed_payers account that has to be deleted.

Request Parameters
type

*

string

The type of account. Possible value is bank_account.

bank_account

*

object

Indicates the bank account details such as ifsc and account_number.

Show child parameters (2)

Errors

Error Status: 400

Account validation is only applicable on bank account as a receiver type

This error occurs when you try to add an allowed payer account on a Customer Identifier with VPA added as a receiver (with or without a Bank account).

Solution

Error Status: 400

Only 10 allowed payer accounts can be added.

This error occurs when you try to add new allowed payer accounts when the overall allowed_payers limit is exceeded. You can only add up to 10 allowed payer accounts.

Solution

Error Status: 400

The bank account.account number field is required when bank account is present.

This error occurs when you do not pass the bank account number in the request.

Solution

Error Status: 400

Payer detail already exist for virtual account.

This error occurs when you try to add a duplicate allowed payer's account with the same IFSC and account number that already exists.

Solution

Curl

change language

change language

1
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
2
-X DELETE https://api.razorpay.com/v1/virtual_accounts/va_DlGmm7jInLudH9/allowed_payers/ba_DlGmm9mSj8fjRM \

Response

1
null