RevKeenDocs

Validate a UK bank account for Direct Debit

Validates UK bank account details (sort code + account number) for Direct Debit eligibility with the bureau.


Related endpoints

  • POST /dd/preview — Preview the Direct Debit collection date chain

Common errors

  • 400 invalid_request — malformed payload or failed validation.
  • 401 unauthenticated — missing, malformed, or revoked API key.

Idempotency

Pass an Idempotency-Key header (UUID v4 recommended) to make retries safe. Keys are valid for 24 hours; see the idempotency guide.

POST
/dd/validate
x-api-key<token>

Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.revkeen.com/v2/dd/validate" \  -H "x-api-key: $REVKEEN_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "sortCode": "20-00-00",    "accountNumber": "55779911"  }'
{
  "valid": true,
  "bank_name": "Barclays",
  "dd_enabled": true,
  "errors": [
    "string"
  ]
}
Empty
Empty
Empty