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": "c16fa05e-4d18-46c7-b52f-601fb2b3ee01",
  "object": "affiliation_product",
  "affiliation": "2fe46314-8807-4d41-98e2-8c0b33784d9d",
  "product": "3c0839e0-1806-4a32-b80c-2f864dbb9d1b",
  "commission_structure": "0a47a64e-cde0-4012-b131-d651fdcd4182",
  "created_at": 1769674924,
  "updated_at": 1769674924
}

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.