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.

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/2022-08-01/<network_id>/affiliates/<affiliate_id_from_network>.json

Examples

Read all Affiliates for this networkEndpoint:https://invoca.net/api/2022-08-01/<network_id>/affiliates.jsonResponse Body:

Examples

Read a specific affiliateEndpoint:https://invoca.net/api/2022-08-01/<network_id>/affiliates/222.jsonResponse Body:

Examples

Delete a single affiliateEndpoint:https://invoca.net/api/2022-08-01/<network_id>/affiliates/222.jsonResponse Body:

Examples

Create an affiliate with usersEndpoint:https://invoca.net/api/2022-08-01/<network_id>/affiliates.jsonFormat: application/jsonRequest Body:
Response Body:Same as a GET response, includes all the affiliate properties.

Examples

Update a single affiliateEndpoint:https://invoca.net/api/2022-08-01/<network_id>/affiliates/222.jsonRequest Body:
Response Body:Same as a GET response, includes all the affiliate properties.
Last modified on September 22, 2026