Skip to main content
POST
/
loyalty
/
cp
/
api
/
referral-rules
/
accept-offer
Accept referral offer (POST)
curl --request POST \
  --url https://loyalty-admin.appstle.com/loyalty/cp/api/referral-rules/accept-offer \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "email": "<string>"
}
'
{
  "id": 12345,
  "message": "Referral accepted successfully! Use code WELCOME20 for 20% off your first order.",
  "discountCode": "WELCOME20",
  "status": "SUCCESS"
}

Documentation Index

Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

Referral acceptance request containing referral token and email address of the new customer

token
string
email
string

Response

Referral offer accepted successfully

id
integer<int64>
message
string
discountCode
string
status
enum<string>
Available options:
SUCCESS,
FAILED