For the complete documentation index, see llms.txt. This page is also available as Markdown.

Convert a referral to a lead

This endpoint can be used to update a referral in visitor status to a lead by providing basic information about the customer associated with it.

Providing the became_lead_at attribute will update the timestamp that signifies when the event occurred, thus allowing the event to be logged any time in the past. If this attribute is omitted, then the current timestamp will be used as a default value.

Note that this endpoint cannot be used to roll back a converted referral to lead status.

Request

Method
URL

POST

https://api.getrewardful.com/v1/referrals/:id/lead

Parameters

Parameter
Required?
Description

became_lead_at

No

The timestamp of conversion into a lead.

customer_name

No

The name of the referral.

customer_email

No

The email address of the referral

Example

curl --request POST \
  --url https://api.getrewardful.com/v1/referrals/d0ed8392-8880-4f39-8715-60230f9eceab/lead \
  -u YOUR_API_SECRET: \
  -d became_lead_at=2020-10-18T16:13:12.109Z \
  -d customer_name=John \
  -d customer_email=john@smith.com

Response

Response code
Body

200

A referral object (JSON)

Not found

Response code
Body

404

JSON object describing the error.

Authentication failure

Response code
Body

401

Description of the authentication failure.

Was this helpful?