Skip to main content
Affiliate Campaign status can be replicated using this API. You are not allowed to delete affiliate campaigns. Relationship properties are shown below

Property

Type

Value

affiliate_id_from_network

string (read only)

Network specific id of the affiliate.

status

string (read and write)

One of: Applied, Approved, Suspended, Declined.

id

integer (read-only)

The internal Invoca id of the affiliate campaign.

id_from_network

string (read and write)

Network specific id of the affiliate campaign.

max_promo_numbers

integer (read only)

Promo number limit.

object_url

string (read-only)

URL for reaching the affiliate campaign in the UI.

current_terms

(read only)

advertiser_payin

max

decimal

Maximum payin amount (base + bonuses). null when any row in policies is formula-driven.

min

decimal

Minimum payin amount (base).

pricing

string

Human‐friendly representation of the payin pricing (eg. “$5.07 per call”). Includes the raw formula text for formula-driven rows. For example, when the list has more than one row: “Base: $4.50 per call” followed by a newline and “Bonus: <formula text> if <condition>”.

currency

string

USD, GBP, EUR.

range

string

Formatted string including min and max payin values. “Dynamic” when any row in policies is formula-driven.

policies

amount

decimal

Payin policy amount. 0 for a formula-driven policy row. See formula below.

currency

string

USD, GBP, EUR.

type

string

Base, Bonus.

condition

string

Condition options used to determine the base or bonus payout (eg. “duration >= 1 min 30 sec”).

formula

string (read-only)

Only present at API version 2026-02-01 or later. At earlier versions, including the 2022-08-01 version shown in the examples on this page, Invoca omits this key entirely rather than returning null. When present, contains the raw formula text for a formula-driven policy row, or null for a fixed-amount row. The Formula Payouts feature flag controls whether a formula row can be authored for the network. It does not control this field’s serialization, so a row authored as a formula continues to report its formula here even if the flag is later disabled.

pricing_type

string

Fixed, OverallMargin, IndividualMargin.

ivr_tree

hash

Interactive Voice Response tree.

affiliate_payout

max

decimal

Maximum payout amount (base + bonuses). null when any row in policies is formula-driven.

min

decimal

Minimum payout amount (base).

pricing

string

Human‐friendly representation of the payout pricing (eg. “$5.07 per call”). Includes the raw formula text for formula-driven rows. For example, when the list has more than one row: “Base: $4.50 per call” followed by a newline and “Bonus: <formula text> if <condition>”.

currency

string

USD, GBP, EUR.

range

string

Formatted string including min and max payin values policies. “Dynamic” when any row in policies is formula-driven.

policies

amount

decimal

Payout policy amount. 0 for a formula-driven policy row. See formula below.

currency

string

USD, GBP, EUR.

type

string

Base, Bonus.

condition

string

Condition options used to determine the base or bonus payout (eg. “duration >= 1 min 30 sec”).

formula

string (read-only)

Only present at API version 2026-02-01 or later. At earlier versions, including the 2022-08-01 version shown in the examples on this page, Invoca omits this key entirely rather than returning null. When present, contains the raw formula text for a formula-driven policy row, or null for a fixed-amount row. The Formula Payouts feature flag controls whether a formula row can be authored for the network. It does not control this field’s serialization, so a row authored as a formula continues to report its formula here even if the flag is later disabled.

Custom Data

Affiliate campaigns may have Custom Data Fields applied to them, which will be applied to calls originating through the affiliate campaign. To apply Custom Data Values to an affiliate campaign, 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>/advertisers/<advertiser_id_from_network>/advertiser_campaigns/<advertiser_campaign_id_from_network>/affiliates/<affiliate_id_from_network>/affiliate_campaigns.json

Examples

Get all Affiliate CampaignsEndpoint:https://invoca.net/api/2022-08-01/<network_id>/advertisers/<advertiser_id_from_network>/advertiser_campaigns/<advertiser_campaign_id_from_network>/affiliate_campaigns.json

Examples

GET of Affiliate Campaign status for Advertiser 354 Campaign 12 to Affiliate 976Endpoint:https://invoca.net/api/2022-08-01/<network_id>/advertisers/354/advertiser_campaigns/12/affiliates/976/affiliate_campaigns.jsonFormat: application/jsonResponse Body:
A policy row can also be formula-driven instead of a fixed amount. Invoca computes its payout from a formula rather than a static number. Formula-driven rows require the Formula Payouts feature to be enabled for the network. When any row in a policies list is formula-driven, that list’s max becomes null and range becomes "Dynamic". The formula-driven row’s own amount is 0. This behavior applies at every API version, including the 2022-08-01 version shown above.The per-row formula key is only present at API version 2026-02-01 or later. To receive it, request the endpoint above with 2026-02-01 in place of 2022-08-01 (for example, .../api/2026-02-01/...). At earlier versions, policies rows never include a formula key. Invoca omits it entirely rather than returning null.Example: an affiliate_payout block at API version 2026-02-01, with a formula-driven Bonus row

Examples

Create Affiliate Campaign with status for Advertiser 354 Campaign 12 to Affiliate 975Please note - The Network Integration API only provides the ability to create an affiliate campaign with status “Applied”. If the Advertiser Campaign is set to “Approve All”, the campaign will automatically transition to “Approved”.Endpoint:https://invoca.net/api/2022-08-01/<network_id>/advertisers/354/advertiser_campaigns/12/affiliates/975/affiliate_campaigns.jsonFormat: application/jsonRequest Body:
Response Body:Same as a GET response, includes all the affiliate campaign properties.
Not Found - 404Endpoint:https://invoca.net/api/api/2022-08-01/<network_id>/advertisers/354/advertiser_campaigns/13/affiliates/976/affiliate_campaigns.jsonFormat: application/jsonRequest Body:
Response Code: 403Response Body:

Examples

Update Affiliate Campaign status for Advertiser 354 Campaign 12 to Affiliate 976Endpoint:https://invoca.net/api/2022-08-01/<network_id>/advertisers/354/advertiser_campaigns/12/affiliates/976/affiliate_campaigns.jsonFormat: application/jsonRequest Body:
Response Body:Same as a GET response, includes all the affiliate campaign properties.

Examples

You are not allowed to delete an Affiliate Campaign.
Last modified on November 3, 2026