Skip to main content
POST
/
v1
/
affiliation_products
Create
curl --request POST \
  --url https://{defaultHost}/v1/affiliation_products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "affiliation_product": {
    "affiliation": "1c2d74b1-d4c2-4564-a0b3-42f3cf97d332",
    "product": "783625df-80a0-4702-998c-a60b3ac2899c",
    "commission_structure": {
      "percent_commission": 33.33
    }
  }
}
'
{
  "id": "c24fa99e-f207-4e01-8ac2-1f9a580f04f5",
  "object": "affiliation_product",
  "affiliation": "1c2d74b1-d4c2-4564-a0b3-42f3cf97d332",
  "product": "783625df-80a0-4702-998c-a60b3ac2899c",
  "commission_structure": "fbe550c0-7c0b-4802-b0a4-3b56b491eef8",
  "created_at": 1772112909,
  "updated_at": 1772112909
}

Authorizations

Authorization
string
header
required

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

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.