200
affiliates.read_write
{ "name": "Sara Ahmed", "email": "[email protected]", "opportunity_id": 483380186, "parent_link_id": 1634268187 }
curl --location 'https://api.salla.dev/partners/v1/affiliates/opportunities/links' \ --header 'Authorization: Bearer prtapi_Q2x7mN4pR8sT1vW5yZ0aB3cD6eF9gH2jK5lM8nP1qR4sT7uV' \ --header 'Content-Type: application/json' \ --data-raw '{ "name": "Sara Ahmed", "email": "[email protected]", "opportunity_id": 483380186, "parent_link_id": 1634268187 }'
{ "status": 201, "success": true, "data": { "id": 1634268201, "parent_link_id": 1634268187, "name": "Sara Ahmed", "email": "[email protected]", "link": { "short": null, "full": "https://apps.salla.sa/en/app/562001483?utm_source=affiliate&utm_campaign=SARA10" }, "code": "SARA10", "status": { "slug": "active", "label": "Active" }, "opportunity": { "id": 483380186, "visibility": "public", "product": { "id": 562001483, "type": { "slug": "app", "label": "App" }, "name": "Reports App", "link": "https://apps.salla.sa/en/app/562001483" }, "excluded_products": [], "platform": { "slug": "partner", "label": "Partner Products" } } } }