Update an existing affiliate for a customer.
Store containing the affiliate.
Affiliate fields to update; nullable fields use store defaults.
Form for creating or updating a store‐affiliate record.
A link provided to affiliates for tracking and promotional purposes.
Required and must not exceed 256 characters.
Maximum string length: 256
Indicates whether the affiliate is active.
If null, defaults to true when creating, or leaves unchanged when updating.
The percentage of the order return the affiliate receives.
If null, uses store’s default when creating, or leaves unchanged when updating.
Required range: 0 <= x <= 100
The percentage discount offered by the affiliate link.
If null, uses store’s default when creating, or leaves unchanged when updating.
Required range: 0 <= x <= 100
The affiliate’s current balance.
If null, defaults to zero when creating, or leaves unchanged when updating.
Required range: 0 <= x <= 1.7976931348623157e+308
The object was successfully updated.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
Form for store owners to edit affiliate status.
Last modified on April 6, 2026