---
title: "Update store affiliate options."
method: PUT
path: "/stores/{storeId}/affiliates/configure"
tags: ["Affiliate"]
---

# Update store affiliate options.

`PUT /stores/{storeId}/affiliates/configure`

Updates the configuration options for the affiliate program of the specified store.
Requires the `stores.affiliates.update` permission.

## Path parameters

- `storeId` string, uuid, required

## Request body

- AffiliateOptionsDto — Represents the configuration options for affiliate settings in a store.
  - `isEnabled` boolean, required — Determines if the affiliate settings are active for the store.
  - `defaultReturnPercentage` integer, required — Specifies the default return percentage for affiliates within a store, ranging from 0 to 100.
  - `defaultPercentageOff` integer, nullable — Represents the default percentage off value used in affiliate settings, where the value must be between 0 and 100.
  - `canConvertAffiliateBalance` boolean, required — Whether the store allows affiliate balance to be converted into customer balance to be used on the store, when enabled any affiliate can convert their affiliate balance into customer balance automatically
  - `isPublicRegistrationEnabled` boolean, required — Determines whether public registration is enabled for affiliates within the store.
  - `isLinkEditingEnabled` boolean, required — Indicates whether link editing capabilities are enabled within the affiliate options for a store.

## Response `200`

The object was successfully updated.

- ObjectResponse — Represents a default generic response for API endpoints.
  - `success` boolean, required — Indicates whether the operation or response was successful.
  - `message` string, nullable — A descriptive message providing additional context or information about the response.
  - `code` string, nullable — The error code (if there was an error) to use when referencing the error
  - `data` unknown

---

[API](https://skmtc.net/komerza/apis/komerza-api.md) · [All operations](https://skmtc.net/komerza/apis/komerza-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/komerza/komerza-api/versions/060e78bc7f80/schema)
