API reference
Account Validations
Payments API operations for Account Validations.
These operations are generated from the Payments API Swagger document. Use the sandbox host https://api.dhangodemo.com while testing and https://api.dhango.com in production.
POST /v1/accountValidations
Validates a payment method's account details.
Validation runs a paid account check on the account's behalf, so it requires an API key and secret. A request that carries only the public accountKey header is refused with 403.
| Parameter | In | Required | Description |
|---|---|---|---|
accountKey |
header | Used to make API calls on behalf of another account. | |
culture |
header | The culture to be used when setting the language for error messages. |
Request body: PostAccountValidationRequest.
PostAccountValidationRequest
| Field | Type | Required | Description |
|---|---|---|---|
ach |
Ach | ||
accountValidationMethod |
AccountValidationMethod |
Ach
| Field | Type | Required | Description |
|---|---|---|---|
bankAccountHolder |
string | yes | The name of the bank account holder. |
routingNumber |
string | yes | The 9 digit routing number. |
bankAccountType |
BankAccountType | ||
accountNumber |
string | yes | The full account number. |
BankAccountType values: PersonalSavings, PersonalChecking, CorporateSavings, CorporateChecking.
AccountValidationMethod values: AccountNumber, AccountNumberAndName.
Responses:
| Status | Description | Schema |
|---|---|---|
| 200 | The payment method is valid. | PostAccountValidationResponse |
| 403 | The caller holds only the public accountKey; an API key and secret are required. | ProblemDetails |