Method
POST /v1/verify/document-rules
Body Parameters
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)application/jsoncurl -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"]
}'
{
"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
}
]
}
Fetch document requirements for a given market and product itinerary.
POST /v1/verify/document-rules
Authorization: Bearer YOUR_API_KEY)application/jsoncurl -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"]
}'
{
"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
}
]
}