cURL
curl --request POST \ --url https://v3.minestorecms.com/api/cart/setReferral \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "ref_code": "ABC123" } '
{ "success": true, "message": "<string>" }
Applies a referral code to the user’s cart if the referral code exists and is valid.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The referral code to be applied to the cart.
"ABC123"
Successfully applied the referral code to the cart.
Indicates if the referral code was successfully applied.
A message indicating the result of the referral code application.