Referrals
Set Referral
Applies a referral code to the user’s cart if the referral code exists and is valid.
POST
/
cart
/
setReferral
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
ref_code
string
requiredThe referral code to be applied to the cart.
Response
200 - application/json
success
boolean
Indicates if the referral code was successfully applied.
message
string
A message indicating the result of the referral code application.