v1

latestOpenAPI 3.0.42026-07-2685196386.6 KB
Affiliate

Update an existing affiliate for a customer.

Updates affiliate settings for the given customer in this store. Requires the stores.affiliates.update permission.

put/stores/{storeId}/affiliates/{customerId}

Path parameters

storeIdstring uuid required

Store containing the affiliate.

customerIdstring uuid required

Target customer ID.

Request body

isEnabledboolean nullable

Indicates whether the affiliate is active. If null, defaults to true when creating, or leaves unchanged when updating.

linkstring required

A link provided to affiliates for tracking and promotional purposes. Required and must not exceed 256 characters.

returnPercentageinteger nullable

The percentage of the order return the affiliate receives. If null, uses store’s default when creating, or leaves unchanged when updating.

percentageOffinteger nullable

The percentage discount offered by the affiliate link. If null, uses store’s default when creating, or leaves unchanged when updating.

balancenumber double nullable

The affiliate’s current balance. If null, defaults to zero when creating, or leaves unchanged when updating.

Response

The object was successfully updated.

successboolean required

Indicates whether the operation or response was successful.

messagestring nullable

A descriptive message providing additional context or information about the response.

codestring nullable

The error code (if there was an error) to use when referencing the error