cURL
curl --request POST \ --url https://admin.snagsolutions.io/api/referral/codes \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "loyaltyRuleId": "558bcf56-24f1-4ef4-9787-043086295780", "websiteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "customReferralCode": "<string>" } '
{ "id": "<string>", "websiteId": "<string>", "organizationId": "<string>", "referralCode": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "deletedAt": "2023-11-07T05:31:56Z", "userId": "<string>" }
This endpoint allows you to create a referral code
Body
"558bcf56-24f1-4ef4-9787-043086295780"
1 - 8
200
Was this page helpful?