Skip to content

Save affiliate settings

PUT/admin/v1/stores/{store_id}/affiliates/settings
  • discounts:write

Saves the store's rules.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • attribution_daysintegerrequired

    How long a click counts.

  • hold_daysintegerrequired

    How long a commission waits before it's owed.

  • auto_approvebooleanrequired

    By time, or staff approve each one.

  • applications_openbooleanrequired
  • default_bpintegerrequired

    What new affiliates start with, in basis points.

Returns

200 The rules.

Errors

  • 422validation_failedOut of range.