Fidelity API source:
POST /api/v1/onboarding/drafts
Returned payload:
Payload containing draft_token, wallet_preview.install_url, wallet_preview.qr_url, studio_url, studio_activate_url, and 72-hour expiration.
{
"type": "object",
"additionalProperties": false,
"required": [
"name",
"business_type"
],
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 48,
"description": "Shop or merchant brand name shown on the Wallet pass."
},
"business_type": {
"type": "string",
"enum": [
"barbershop",
"coiffeur",
"bijoux",
"boucherie",
"boulangerie",
"brasserie",
"cafe",
"fleuriste",
"fromagerie",
"kebab",
"maraicher",
"ferme",
"garage",
"velos",
"pizzeria",
"vetements",
"restaurant",
"sandwich",
"station",
"beaute",
"autre"
],
"description": "Sector key from list_loyalty_sectors."
},
"mode_fidelite": {
"type": "string",
"enum": [
"tampons",
"points"
],
"description": "Loyalty mechanic: stamps (tampons) or points (€1 = 1 pt)."
},
"threshold": {
"type": "integer",
"minimum": 1,
"maximum": 99999,
"description": "Stamps count (8, 10, or 12) or points threshold (e.g. 100)."
},
"reward_text": {
"type": "string",
"minLength": 2,
"maxLength": 90,
"description": "Reward unlocked when the card is completed."
},
"bg_color": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$",
"description": "Optional 6-digit hex background color (WCAG contrast auto-adjusted)."
},
"wallet_theme_preset": {
"type": "string",
"maxLength": 64,
"description": "Optional preset visual ID from list_loyalty_sectors (or \"none\")."
},
"locale": {
"type": "string",
"enum": [
"fr",
"en"
],
"default": "fr"
}
}
}