Skip to main content
PATCH
/
dev
/
v1
/
affiliates
/
settings
Update affiliate settings
curl --request PATCH \
  --url https://api.shoppex.io/dev/v1/affiliates/settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "affiliate_revenue_active": true,
  "affiliate_revenue_percent": 25,
  "affiliate_customer_discount_active": true,
  "affiliate_customer_discount_percent": 10,
  "affiliate_custom_link_active": true,
  "affiliate_custom_link_must_approve": false
}
'
{
  "data": {
    "message": "Affiliate settings saved."
  }
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Body

affiliate_revenue_active
boolean
affiliate_revenue_percent
number
affiliate_customer_discount_active
boolean
affiliate_customer_discount_percent
number

Response

200 - application/json

Successful response

data
object