Validate a bank account
Changed onThis POST endpoint is used to validate a bank account against MassPay's account verification providers, independently of a payout. <br> The bank account is validated for the user identified by user_token in the path, and the account holder name on record for that user is used for name matching. <br> If a finalized result is available within ~5 seconds (including cached results), it is returned synchronously with HTTP 200. Otherwise HTTP 202 is returned with a status of PROCESSING and the finalized result is delivered asynchronously through the avs.completed webhook event. <br> Validations are charged per validation based on your client pricing configuration; validations that cannot be verified by any provider (UNSUPPORTED) are not charged.
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Token representing the user the bank account belongs to. The name on record for this user is used for account holder name matching.
Request body
Example request
{
"country_code": "US",
"attrs": [
{
"type": "BankAccountNumber",
"value": "31742287"
}
]
}Response
Finalized validation result.
Example response
{
"status": "MATCH",
"ownership_verified": true,
"first_name_match": "MATCH",
"last_name_match": "MATCH",
"match_score": 100
}Changes
- info
endpoint added
- info