Skip to main content
PATCH
/
v1
/
affiliation_products
/
{id}
Update
curl --request PATCH \
  --url https://{defaultHost}/v1/affiliation_products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "affiliation_product": {
    "commission_structure": {
      "percent_commission": 33.33
    }
  }
}
'
{
  "id": "4f3fdf04-aa16-44ca-abc2-f3165315308c",
  "object": "affiliation_product",
  "affiliation": "f9cfbc41-b481-4ab5-a448-77662f5f8fb4",
  "product": "eca8fd6b-9a04-4e0f-afcc-16b0bbed4675",
  "commission_structure": "c2af1ecf-63e3-4897-9b99-4494459c4a19",
  "created_at": 1767909660,
  "updated_at": 1767909660
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
affiliation_product
object

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

affiliation

Expandable – The associated affiliation ID.

commission_structure

Expandable – The associated commission structure ID.

product

Expandable – The associated product ID.

created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.