Skip to main content

Method

POST /v1/verify/document-rules

Body Parameters

Headers

Authorization
string
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)
content-type
string
application/json

Request Example

curl -X POST https://api.voyantcloud.com/v1/verify/document-rules \
  -H "Authorization: Bearer $VOYANT_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "marketId": "market_eu",
    "productCountries": ["RO", "BG"]
  }'

Response

{
  "ok": true,
  "requirements": [
    {
      "id": "6f9f1848-72d9-46f4-9e63-2f92f3736c55",
      "appliesTo": { "travellerType": "adult" },
      "documentType": { "code": "passport" },
      "requireFields": ["number", "issueDate", "expiryDate"],
      "label": "Passport",
      "description": "Collect valid passport details for adult travellers"
    },
    {
      "id": "9507f64a-1d0b-4013-9d5b-89794c3dcb30",
      "appliesTo": { "travellerType": "child" },
      "documentType": { "code": "birth_certificate" },
      "requireFields": ["number"],
      "label": null,
      "description": null
    }
  ]
}
Rules are filtered by effective date and country conditions. Send both market and itinerary details to ensure travellers see accurate document requirements during checkout.