Skip to content

List Affiliates [PREVIEW]

Request

Returns a list of all available affiliates

Security
api_key
curl -i -X GET \
  https://api.oculos.no/v4/affiliates \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
Array [
idstring
Example:"154831A5-7E2E-44D8-8F2B-FB0D33CAD941"
namestring
Example:"Sample Affiliate"
descriptionstring
Example:"Affiliate agreement for Sample Affiliate"
activeboolean
Example:true
storestring or null
Example:null
storeIdstring or null
Example:null
contractTypestring
Example:"Central"
contractTypeIdinteger
Example:2
partnerTypestring
Example:"eCom"
partnerTypeIdinteger
Example:2
organizationNostring
Example:"0"
validFromstring, (date-time)
Example:"2025-05-01T00:00:00"
validTostring, (date-time)
Example:"2029-12-28T00:00:00"
contactFirstNamestring
Example:"John"
contactLastNamestring
Example:"Doe"
contactEmailstring
Example:"sample-affiliate@test.com"
contactPhonestring or null
Example:null
internalContactstring
Example:"John Doe"
extendedPropertiesobject
Example:
{}
]
Response
[ { "id": "154831A5-7E2E-44D8-8F2B-FB0D33CAD941", "name": "Sample Affiliate", "description": "Affiliate agreement for Sample Affiliate", "active": true, "store": null, "storeId": null, "contractType": "Central", "contractTypeId": 2, "partnerType": "eCom", "partnerTypeId": 2, "organizationNo": "0", "validFrom": "2025-05-01T00:00:00", "validTo": "2029-12-28T00:00:00", "contactFirstName": "John", "contactLastName": "Doe", "contactEmail": "sample-affiliate@test.com", "contactPhone": null, "internalContact": "John Doe", "extendedProperties": {} } ]