RevKeenDocs

Preview the Direct Debit collection date chain

Returns the backend-owned working-day date chain (advance notice → submission → collection → settlement) for a Direct Debit collection. Clients never compute these dates.


Related endpoints

  • POST /dd/validate — Validate a UK bank account for Direct Debit

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/preview
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/preview" \  -H "x-api-key: $REVKEEN_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "requestedCollectionDate": "2026-07-01",    "subscriptionId": "00000000-0000-0000-0000-000000000000"  }'
{
  "notice_date": "2026-06-20",
  "submission_date": "string",
  "collection_date": "string",
  "settlement_date": "string",
  "eligible": true,
  "ineligible_reason": "string",
  "notice_days": 10
}
Empty
Empty
Empty