POST
/
cart
/
setReferral
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successfully applied the referral code to the cart.

The response is of type object.