Skip to content

Read the partner programme

GET /program/affiliates/settings
Scopeprogram:read
Customer session tokenNot accepted: call from your server with an API key
Rate limit classread (limits)
Idempotency keyNot used
MCP toolcharm_get_affiliate_program_settings

The partner (affiliate) programme’s defaults: commission on codes and links, the buyer discount, what commission is calculated on, holdback, attribution window, code prefix, terms and UTM. 403 feature_disabled where the programme is not available.

Returns AffiliateProgramSettings.

FieldTypeDescription
revisioninteger
enabledbooleanWhether the partner programme is on. Switched in the Charm admin only.
applications_openbooleanPublic applications open. Admin only.
auto_approvebooleanApplications approved without review. Admin only.
commissionobject
customer_discountobject
commission_baseobject
holdback_daysintegerDays a commission waits before it can be paid out (refund window).
link_attribution_window_daysintegerHow long after a click an order still counts for the partner’s link.
code_prefixstringPartner codes start with this.
terms_urlstring or nullThe partner terms page. (nullable)
allow_self_referralbooleanA partner earns on their own orders.
hub_invite_after_referralsintegerCustomers are invited to become partners after this many referrals; 0 = straight away.
hide_order_valuebooleanPartners do not see order values.
utmobject
{
"revision": 1,
"enabled": true,
"applications_open": false,
"auto_approve": false,
"commission": {
"type": "percent",
"code_rate": 1,
"link_rate": 1
},
"customer_discount": {
"type": "percentage",
"value": 1
},
"commission_base": {
"include_shipping": false,
"include_tax": false,
"after_discounts": false
},
"holdback_days": 1,
"link_attribution_window_days": 1,
"code_prefix": "REF",
"terms_url": "terms url",
"allow_self_referral": false,
"hub_invite_after_referrals": 1,
"hide_order_value": false,
"utm": {
"enabled": true,
"source": "order",
"medium": "medium",
"campaign": "campaign"
}
}
Terminal window
curl -X GET "https://charm.appfleece.app/api/v1/program/affiliates/settings" \
-H "Authorization: Bearer chrm_live_..."

unauthorized · invalid_token · insufficient_scope · access_required · validation_error · rate_limited

Every error body carries code, message, request_id and a doc_url pointing at the matching entry in the error catalog.