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.