Get Started › Partner Validation

Partner Validation Support and Rules

Each partner program has its own validation rules, and only some can check a membership live. The table lists both for every program.

Validation behavior

Member validation depends on the selected partner program. Some partners provide a member validation API endpoint, while others do not. Cosmo handles /programs/{programId}/validate-member as follows:

AVAILABLE
The partner has a validation endpoint

Cosmo first checks the submitted details against the partner's validation rules. If the checks pass, Cosmo calls the partner's endpoint and returns the validation result.

NOT AVAILABLE
The partner has no validation endpoint

Cosmo checks the submitted membership details against the validation rules provided by the partner. Cosmo returns isValid: true if the details satisfy these rules, and isValid: false otherwise. A true result confirms compliance with the validation rules only; it does not confirm that the membership exists or is eligible to receive points. For these partners, eligibility is checked when you submit the points issuance request.

Rules by program

Before the rules are applied, Cosmo removes spaces from destinationUserId, and trims and lowercases destinationUserEmail.

Program IDPartner Validation EndpointRequired validation fieldsValidation rulesRegex
AIR_REWARDSAVAILABLEdestinationUserEmailA valid email address.—
ALFURSANAVAILABLEdestinationUserIdDigits only, 8 or 10 digits long. A 10-digit number cannot start with 0; for an 8-digit number, the last digit must equal the first 7 digits mod 7.^(\d{8}|[1-9]\d{9})$
ALLNOT AVAILABLEdestinationUserIdALL card number: 16 letters or digits, starting with 308103, 308106 or 308409. The 7th character must be 1–6 and the last character is a check digit calculated with the Luhn algorithm over the first 15 characters (Luhn mod 36 when the number contains letters).^(308103|308106|308409)[1-6][A-Za-z0-9]{9}$
ALMOSAFER_POINTSAVAILABLEdestinationUserIdAlmosafer reference number: "ALM" followed by exactly 9 digits.^ALM[0-9]{9}$
EMCANAVAILABLEdestinationUserIdDigits only.^\d+$
FLYNASAVAILABLEdestinationUserIdnaSmiles membership number, digits only.^\d+$
GEMS_REWARDSAVAILABLEdestinationUserIdA non-empty membership number.—
MILES_AND_SMILESAVAILABLEdestinationUserIdMiles&Smiles number: uppercase "TK" followed by digits.^TK\d+$
PRIVILEGE_CLUBNOT AVAILABLEdestinationUserIdPrivilege Club membership number: digits only, at most 9 digits.^\d{1,9}$
QITAFNOT AVAILABLEdestinationUserIdSaudi mobile number as 05XXXXXXXX or 5XXXXXXXX, or a Saudi landline as 01XXXXXXXX or 1XXXXXXXX (area digit 1, 2, 3, 4, 6 or 7). Do not include the country code (+966 / 966).^(05|5)\d{8}$|^(01|1)[123467]\d{7}$
RADISSON_REWARDSAVAILABLEdestinationUserId, destinationUserEmailA 16-character membership number and a valid email address of at most 241 characters.—
SHUKRANNOT AVAILABLEdestinationUserIdShukran card number: exactly 16 digits, starting with 11–19, with a valid check digit (the last digit).^1[1-9]\d{14}$
← Get Started GuideAPI Reference →