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 parametercustom_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”.
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.
https://invoca.net/api/@@NETWORK_API_VERSION/<network_id>/affiliates/222.json
Response Code: 200