Skip to main content
The operations on Affiliate are similar to Network, in that the interface is fully idempotent, and the create and update commands both expect the full set of affiliate sites and users each time. Similar to advertisers, you are not allowed to delete if one or more campaigns exist for this affiliate.

Affiliate Properties

Custom Data

Affiliates may have Custom Data Fields applied to them, which will be applied to calls originating through the affiliate. To apply Custom Data Values to an affiliate, the top level parameter custom_data should be assigned a hash with each pair’s key corresponding to a partner name. The value of the pair should be the value to be applied. For the following example, we would apply the value “Offline newspaper” to the Custom Data Field “channel”.
Endpoint: https://invoca.net/api/@@NETWORK_API_VERSION/<network_id>/affiliates/<affiliate_id_from_network>.json

GET All Affiliates

Read all Affiliates for this network. Endpoint: https://invoca.net/api/@@NETWORK_API_VERSION/<network_id>/affiliates.json Response Code: 200

Response Example


GET an Affiliate

Read a specific affiliate. Endpoint: https://invoca.net/api/@@NETWORK_API_VERSION/<network_id>/affiliates/222.json Response Code: 200

Response Example


POST Create an Affiliate

Create an affiliate with users. Endpoint: https://invoca.net/api/@@NETWORK_API_VERSION/<network_id>/affiliates.json Format: application/json

Request Example

Response Example

Same as a GET response, includes all the affiliate properties.

PUT Update an Affiliate

Update a single affiliate. Endpoint: https://invoca.net/api/@@NETWORK_API_VERSION/<network_id>/affiliates/222.json

Request Example

Response Example

Same as a GET response, includes all the affiliate properties.

DELETE an Affiliate

Delete a single affiliate.
You are not allowed to delete an affiliate if one or more campaigns exist for this affiliate.
Endpoint: https://invoca.net/api/@@NETWORK_API_VERSION/<network_id>/affiliates/222.json Response Code: 200

Response Example

Last modified on August 18, 2026