Save affiliate settings
PUT
/ admin/ v1/ stores/ {store_id}/ affiliates/ settings- discounts:write
Saves the store's rules.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
attribution_daysintegerrequiredHow long a click counts.
hold_daysintegerrequiredHow long a commission waits before it's owed.
auto_approvebooleanrequiredBy time, or staff approve each one.
applications_openbooleanrequireddefault_bpintegerrequiredWhat new affiliates start with, in basis points.
Returns
200 The rules.
Errors
- 422
validation_failedOut of range.