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": "76d282f1-4373-40f7-ab31-0569554444bf",
    "product": "10811c75-64f3-4e20-9a62-2e87d9074d0d",
    "commission_structure": {
      "percent_commission": 33.33
    }
  }
}
'
{
  "id": "30fe7cc2-3752-4fca-ab5b-a42e6f7dae0d",
  "object": "affiliation_product",
  "affiliation": "76d282f1-4373-40f7-ab31-0569554444bf",
  "product": "10811c75-64f3-4e20-9a62-2e87d9074d0d",
  "commission_structure": "38dfbcd2-e4a6-4e51-b975-2ff67d4a3e2c",
  "created_at": 1778010856,
  "updated_at": 1778010856
}

Documentation Index

Fetch the complete documentation index at: https://developer.surecart.com/llms.txt

Use this file to discover all available pages before exploring further.

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.