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": "e432481b-017e-4a17-bc41-d273df65eaf7",
    "product": "49a18bfa-1478-4cef-8b97-16307d0346f0",
    "commission_structure": {
      "percent_commission": 33.33
    }
  }
}
'
{
  "id": "94f5db29-6d87-4d94-9ef7-ac9df82925a5",
  "object": "affiliation_product",
  "affiliation": "e432481b-017e-4a17-bc41-d273df65eaf7",
  "product": "49a18bfa-1478-4cef-8b97-16307d0346f0",
  "commission_structure": "9f662d44-55c9-4bb6-bea3-6bd6564e4f66",
  "created_at": 1773903524,
  "updated_at": 1773903524
}

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.