post https://staging.api.decentro.tech/v3/banking/settlement_account_setup
This API allows the platform to manage the settlement account to where the virtual account settlements are performed.
Overview
This API can be used by platforms to add or disable the settlement account against a virtual account with Decentro.
Note: Decentro might contact the platform even after a beneficiary is added in case it has any questions.
Flow
Below is the flow for using this API from a beneficiary addition perspective.
- The platform shares the relevant details with Decentro and Decentro shares the consumer URN with the platform offline.
- The platform can choose to share the settlement details offline with Decentro or share this online via this API's endpoints.
- The platform can create a virtual account using the Create a Virtual Account v3 API to facilitate virtual account-based collections.
- The platform can initiate a settlement account addition against the virtual account number.
- If the beneficiary addition is successful, Decentro responds to the request with a settlement account URN under the 'settlement_account_urn' field.
Below is the flow for using this API to disable a beneficiary.
- The platform passes the virtual account number against which a settlement account needs to be disabled.
- If the settlement account is to be disabled for a specific virtual account number, only that virtual account number needs to be passed.
Actions
Below are the action modes that this API supports.
- Activate: This feature allows the platform to add a new settlement account against the virtual account.
- Deactivate: This feature allows the platform to disable an existing settlement account against the virtual account.
Note: If a settlement account is disabled, the settlement transactions to that account will not be initiated.
API Endpoints
Environment | Endpoint |
---|---|
Staging / Sandbox | https://api.staging.decentro.tech/v3/banking/settlement_account_setup |
Production | https://api.decentro.tech/v3/banking/settlement_account_setup |
Response keys
Response Key | Message |
---|---|
success_settlement_account_added | Settlement account details added successfully |
success_settlement_account_disabled | Settlement account details disabled successfully |
error_invalid_reference_id | Reference ID is not valid. |
error_empty_reference_id | Reference ID cannot be empty. Hint: reference_id (string) |
error_invalid_format_reference_id | Reference ID is not of type string. Hint: reference_id (string) |
error_duplicate_reference_id | Duplicate Reference ID. Please pass an unique value. |
error_incorrect_length_reference_id | Reference ID needs to be between 5 and 50 characters |
error_invalid_consumer_urn | Consumer URN does not exist. Please retry with a valid consumer_urn |
error_empty_consumer_urn | Consumer URN cannot be empty. Hint: consumer_urn (string) |
error_invalid_format_consumer_urn | Consumer URN is not of type string. Hint: consumer_urn (string) |
error_invalid_format_action | Action is not of type string. Hint: action(string) |
error_invalid_action | Action value passed is invalid. Accepted values: ACTIVATE & DEACTIVATE |
error_missing_action | Action cannot be empty. Hint: action(string) |
error_unsanitized_values | Unsanitized values detected for key(s): purpose_message. Kindly sanitize the corresponding values by removing special characters such as . @ # $ % ^ & * ! ; : ' " ~ ` ? = + ) ( and retry. |
error_invalid_settlement _account_number | Invalid settlement account number. Please pass a valid settlement account number |
error_missing_settlement_account_number | Settlement account number cannot be empty. Please pass a settlement account number. |
error_invalid_settlement _account_ifsc | Invalid settlement account ifsc. Please pass a valid settlement account ifsc. |
error_missing_settlement_account_ifsc | Settlement account ifsc cannot be empty. Please pass a settlement account ifsc. |