Creates a new affiliate record for the given customer in this store.
Requires the stores.affiliates.update permission.
Your API key goes here
Store to create the affiliate in.
Target customer ID.
Affiliate details (link, percentages, etc.).
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.
256Indicates 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.
0 <= x <= 100The percentage discount offered by the affiliate link. If null, uses store’s default when creating, or leaves unchanged when updating.
0 <= x <= 100The affiliate’s current balance. If null, defaults to zero when creating, or leaves unchanged when updating.
0 <= x <= 1.7976931348623157e+308The object was successfully created.
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.