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": "200e9e24-836c-4c81-94ba-0043b1e1359a",
    "product": "7f9efe0a-1624-4ffe-a143-6bdea8810b21",
    "commission_structure": {
      "percent_commission": 33.33
    }
  }
}
'
{
  "id": "8f321430-d471-465e-9cf2-35b39f30612f",
  "object": "affiliation_product",
  "affiliation": "200e9e24-836c-4c81-94ba-0043b1e1359a",
  "product": "7f9efe0a-1624-4ffe-a143-6bdea8810b21",
  "commission_structure": "1a0064ad-a1e1-4087-804a-e297fe48f072",
  "created_at": 1780335045,
  "updated_at": 1780335045
}

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.