Update an affiliate
Changes an affiliate’s code, rates or whether their link works. Only what is sent changes.
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.
The affiliate.
Body
What their link ends in: 2 to 40 letters, digits and dashes. One affiliate a code in a store.
"ada"
The share of each order they earn, in percent: above 0, up to 90. It is taken on what the buyer paid for the products, after every discount, before fees and tax.
10
What their link takes off for the buyer, in percent: 0 to 90.
Whether their link works. Switched off, it takes nothing off and earns nothing.

