Update the affiliate programme
Changes the programme’s settings. Only what is sent changes. Switched off, no link takes anything off or earns anything, and the customer panel says nothing of affiliates.
Needs the affiliates.write permission (Change Affiliates).
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Headers
A word of your own for this one change, up to 180 letters, digits, dots, dashes, underscores and colons. Sent again with the same key, the request is not carried out twice: the first answer comes back, with Idempotent-Replay: true.
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
Body
Whether the programme is on.
The commission a new affiliate gets, in percent: above 0, up to 90.
The discount a new affiliate's link gives buyers, in percent: 0 to 90.
Whether a customer may join from the customer panel.
Whether an affiliate may change the code their link ends in.
Whether an affiliate may move commission to their store balance.
Whether an affiliate may ask for a payout.

