curl -X GET "https://api.affonso.io/v1/affiliates/cmj8pptm10002p3010z8mk9ak/onboarding-responses" \ -H "Authorization: Bearer sk_live_your_api_key"
{ "success": true, "data": { "form_id": "cmf8onb0001p3010onbform1", "form_name": "Affiliate Onboarding", "form_description": "Tell us a bit about how you plan to promote our product.", "completed_at": "2024-04-22T17:32:11.000Z", "questions": [ { "id": "cmq1onb000onbq1", "question": "Which channels will you use to promote us?", "type": "multiple_choice", "is_required": true, "options": ["YouTube", "Newsletter", "Blog", "Social"], "order": 0, "answer": ["Newsletter", "Blog"] }, { "id": "cmq1onb000onbq2", "question": "Tell us about your audience", "type": "textarea", "is_required": false, "options": [], "order": 1, "answer": "Mostly indie SaaS founders and bootstrapped teams." } ] }}
{ "success": false, "error": { "code": "NOT_FOUND", "message": "No onboarding form configured for your team" }}
Affiliate Onboarding
Get Affiliate Onboarding Responses
Retrieve an affiliate’s saved answers to the onboarding form along with completion status
GET
/
v1
/
affiliates
/
{id}
/
onboarding-responses
curl -X GET "https://api.affonso.io/v1/affiliates/cmj8pptm10002p3010z8mk9ak/onboarding-responses" \ -H "Authorization: Bearer sk_live_your_api_key"
{ "success": true, "data": { "form_id": "cmf8onb0001p3010onbform1", "form_name": "Affiliate Onboarding", "form_description": "Tell us a bit about how you plan to promote our product.", "completed_at": "2024-04-22T17:32:11.000Z", "questions": [ { "id": "cmq1onb000onbq1", "question": "Which channels will you use to promote us?", "type": "multiple_choice", "is_required": true, "options": ["YouTube", "Newsletter", "Blog", "Social"], "order": 0, "answer": ["Newsletter", "Blog"] }, { "id": "cmq1onb000onbq2", "question": "Tell us about your audience", "type": "textarea", "is_required": false, "options": [], "order": 1, "answer": "Mostly indie SaaS founders and bootstrapped teams." } ] }}
{ "success": false, "error": { "code": "NOT_FOUND", "message": "No onboarding form configured for your team" }}
Returns the active onboarding form joined with the affiliate’s saved answers. Questions the affiliate has not yet answered are returned with answer: null. completed_at is null until the affiliate (or your integration) marks the onboarding complete.