Processing a Visa Bank Account Validation Using REST API
REST API
Follow these steps to send a request to
Cybersource
:- Create the request with the required API fields.
- Send the request to one of these endpoints:
- Verify the response messages to make sure that the request succeeded. For more information, see the Transaction Response Codes.
Required Fields for Processing an Account Validation
- processingInformation.validationLevel
- The value for this field must indicate the validation mode.
- Use1for basic mode validation.
- Use2for advance mode validation.
- If you request advance mode validation, but the service is unavailable or it lacks sufficient information for this mode, the request defaults back to basic mode.
- The value for this field must be used for the routing number for your customer’s bank. This field only accepts non-negative integers.
- The value for this field must be used to input the bank account number for your customer's bank account. This field only accepts non-negative integers.
Optional Fields for Processing an Account Validation
- The value for this field can include any reference code that you choose to associate with a specific request. This code will be returned in the response exactly as provided.
REST Example: Processing an Account Validation
Request
1234567891011121314{"clientReferenceInformation": { "code": "TC50171_3" }, "processingInformation": { "validationLevel": 1 }, "paymentInformation": { "bank": { "routingNumber": "041210163", "account": { "number": "1234567" } } }}
Unsuccessful Response
12345678910{"submitTimeUtc": "string", "status": "string", "message": "string", "reason": "string", "details": [ { "field": "string", "reason": "string" } ]}
Successful Response
123456789101112{"clientReferenceInformation": { "code": "TC50171_3" }, "requestId": "string", "submitTimeUtc": "string", "bankAccountValidation": { "rawValidationCode": 0, "resultCode": 0, "resultMessage": "string", "correctedRoutingNumber": "string", "correctedAccountNumberFormat": "string" }}