cURL
curl --request POST \ --url https://api-dev.withflock.com/referrals \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "campaignId": "<string>", "refereeId": "<string>", "refereeExternalUserId": "<string>", "referralCode": "<string>" }'
{ "id": "<string>", "campaignId": "<string>", "refereeId": "<string>", "referrerId": "<string>", "status": {}, "suspectedFrauds": [ { "message": "<string>", "type": "<string>" } ], "environment": "production", "organizationId": "<string>", "applicationId": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "deletedAt": "2023-11-07T05:31:56Z" }
Create or update a referral
The ID of the customer being invited. Use this or refereeExternalUserId to identify the customer
The external ID of the customer being invited. Use this or refereeId to identify the customer
Show child attributes
production
test