Referrals
Create Referral
Create or update a referral
POST
/
referrals
Copy
curl --request POST \
--url https://api-dev.withflock.com/referrals \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"campaignId": "<string>",
"refereeId": "<string>",
"referralCode": "<string>"
}'
Copy
{
"id": "<string>",
"campaignId": "<string>",
"refereeId": {},
"referrerId": "<string>",
"status": {},
"suspectedFrauds": [
{
"message": "<string>",
"type": "<string>"
}
],
"organizationId": "<string>",
"applicationId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
Authorizations
Body
application/json
Response
201 - application/json
The response is of type object
.
Copy
curl --request POST \
--url https://api-dev.withflock.com/referrals \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"campaignId": "<string>",
"refereeId": "<string>",
"referralCode": "<string>"
}'
Copy
{
"id": "<string>",
"campaignId": "<string>",
"refereeId": {},
"referrerId": "<string>",
"status": {},
"suspectedFrauds": [
{
"message": "<string>",
"type": "<string>"
}
],
"organizationId": "<string>",
"applicationId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.