🚀 New: Theme Control Plane API — build, customize, and deploy themes programmatically. Learn more →
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."
}
}Developer API operation for PATCH /dev/v1/affiliates/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."
}
}Use your Shoppex API key in the Authorization header.
Successful response