Custom Caps
Find All
/v1/networks/custom/caps
Paging
This endpoint supports paging. Refer to our User Guide for usage.
Filters
This endpoint supports basic filtering. Refer to API filters page for usage.
Value | Description |
---|---|
network_offer_id | Filter based on the offer id |
network_affiliate_id | Filter based on the affiliate id |
time_created | Filter based on the creation time |
time_saved | Filter based on the last update time |
Request Example
cURL
curl --request GET 'https://api.eflow.team/v1/networks/custom/caps' \
--header 'X-Eflow-API-Key: <INSERT API KEY>' \
--header 'content-type: application/json'
Response
{
"custom_cap_settings": [
{
"network_custom_cap_setting_id": 0,
"network_id": 0,
"network_affiliate_id": 0,
"network_offer_id": 0,
"name": "Custum Cap Example",
"daily_conversion_cap": 0,
"weekly_conversion_cap": 0,
"monthly_conversion_cap": 0,
"global_conversion_cap": 0,
"daily_payout_cap": 0,
"weekly_payout_cap": 0,
"monthly_payout_cap": 0,
"global_payout_cap": 0,
"daily_click_cap": 0,
"weekly_click_cap": 0,
"monthly_click_cap": 0,
"global_click_cap": 0,
"daily_revenue_cap": 0,
"weekly_revenue_cap": 0,
"monthly_revenue_cap": 0,
"global_revenue_cap": 0,
"time_created": 1493662646,
"time_saved": 1493662646,
"relationship":
{
"affiliate":
{
"network_affiliate_id": 0,
"network_id": 0,
"name": "Affiliate Example",
"account_status": "inactive",
"network_employee_id": 0,
"internal_notes": "",
"has_notifications": false,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "USD",
"is_contact_address_enabled": false,
"enable_media_cost_tracking_links": true,
"time_created": 1493662524,
"time_saved": 1495028680,
"referrer_id": 0
},
"offer":
{
"network_offer_id": 0,
"network_id": 0,
"network_advertiser_id": 0,
"network_offer_group_id": 0,
"name": "Offer Example",
"offer_status": "paused",
"network_tracking_domain_id": 0,
"visibility": "public",
"currency_id": "USD"
},
"currency_id": "USD"
}
}],
"paging":
{
"page": 1,
"page_size": 50,
"total_count": 54
}
}
Find By ID
/v1/networks/custom/caps/:settingId
Path Parameters
Parameter | Description |
---|---|
settingId | The ID of a network custom setting |
Request Example
cURL
curl --request GET 'https://api.eflow.team/v1/networks/custom/caps/<INSERT SETTING ID>' \
--header 'X-Eflow-API-Key: <INSERT API KEY>' \
--header 'content-type: application/json'
Response
{
"network_custom_cap_setting_id": 0,
"network_id": 0,
"network_affiliate_id": 0,
"network_offer_id": 0,
"name": "Custom Cap Example",
"daily_conversion_cap": 0,
"weekly_conversion_cap": 0,
"monthly_conversion_cap": 0,
"global_conversion_cap": 0,
"daily_payout_cap": 0,
"weekly_payout_cap": 0,
"monthly_payout_cap": 0,
"global_payout_cap": 0,
"daily_click_cap": 0,
"weekly_click_cap": 0,
"monthly_click_cap": 0,
"global_click_cap": 0,
"daily_revenue_cap": 0,
"weekly_revenue_cap": 0,
"monthly_revenue_cap": 0,
"global_revenue_cap": 0,
"time_created": 1493662524,
"time_saved": 1493662524,
"relationship":
{
"affiliate":
{
"network_affiliate_id": 0,
"network_id": 0,
"name": "Affiliate Example",
"account_status": "inactive",
"network_employee_id": 0,
"internal_notes": "",
"has_notifications": false,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "USD",
"is_contact_address_enabled": false,
"enable_media_cost_tracking_links": true,
"time_created": 0,
"time_saved": 1594668150,
"referrer_id": 1594668150
},
"offer":
{
"network_offer_id": 0,
"network_id": 0,
"network_advertiser_id": 0,
"network_offer_group_id": 0,
"name": "Offer Example",
"offer_status": "paused",
"network_tracking_domain_id": 0,
"visibility": "public",
"currency_id": "USD"
},
"currency_id": "USD"
}
}
Create
/v1/networks/custom/caps
Body Params
The affiliate id.
The offer id.
The custom cap setting name.
The daily conversion cap.
The weekly conversion cap.
The monthly conversion cap.
The global conversion cap.
The daily payout cap.
The weekly payout cap.
The monthly payout cap.
The global payout cap.
The daily click cap.
The weekly click cap.
The monthly click cap.
The global click cap.
The daily revenue cap.
The weekly revenue cap.
The monthly revenue cap.
The global revenue cap.
Payload Example
{
"network_affiliate_id": 11,
"network_offer_id": 234,
"name": "Custom Cap Example",
"daily_conversion_cap": 0,
"weekly_conversion_cap": 0,
"monthly_conversion_cap": 0,
"global_conversion_cap": 125,
"daily_payout_cap": 10.3,
"weekly_payout_cap": 0,
"monthly_payout_cap": 0,
"global_payout_cap": 300.50,
"daily_click_cap": 0,
"weekly_click_cap": 0,
"monthly_click_cap": 250000,
"global_click_cap": 0,
"daily_revenue_cap": 0,
"weekly_revenue_cap": 0,
"monthly_revenue_cap": 0,
"global_revenue_cap": 0
}
Request Example
cURL
curl --request POST \
--url 'https://api.eflow.team/v1/networks/custom/caps' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json' \
--data '<INSERT PAYLOAD>'
Response
{
"network_custom_cap_setting_id": 4,
"network_id": 64,
"network_affiliate_id": 11,
"network_offer_id": 234,
"name": "Custom Cap Example",
"daily_conversion_cap": 0,
"weekly_conversion_cap": 0,
"monthly_conversion_cap": 0,
"global_conversion_cap": 125,
"daily_payout_cap": 10.3,
"weekly_payout_cap": 0,
"monthly_payout_cap": 0,
"global_payout_cap": 300.50,
"daily_click_cap": 0,
"weekly_click_cap": 0,
"monthly_click_cap": 250000,
"global_click_cap": 0,
"daily_revenue_cap": 0,
"weekly_revenue_cap": 0,
"monthly_revenue_cap": 0,
"global_revenue_cap": 0,
"time_created": 0,
"time_saved": 0,
"relationship": {
"affiliate": {
"network_affiliate_id": 11,
"network_id": 64,
"name": "Affiliate Example",
"account_status": "active",
"network_employee_id": 0,
"internal_notes": "",
"has_notifications": true,
"network_traffic_source_id": 0,
"account_executive_id": 0,
"adress_id": 0,
"default_currency_id": "",
"is_contact_address_enabled": true,
"enable_media_cost_tracking_links": true,
"time_created": 0,
"time_saved": 0,
"referrer_id": 0
},
"offer": {
"network_offer_id": 234,
"network_id": 64,
"network_advertiser_id": 0,
"network_offer_group_id": 0,
"name": "Offer Example",
"offer_status": "active",
"network_tracking_domain_id": 0,
"visibility": "public",
"currency_id": ""
},
"currency_id": ""
}
}
Patch
/v1/networks/custom/caps
Body Params
List of network custom cap setting ids separated by comas.
List of fields to update.
Allowed values: daily_conversion_cap
, weekly_conversion_cap
, monthly_conversion_cap
, global_conversion_cap
, daily_payout_cap
, weekly_payout_cap
, monthly_payout_cap
, global_payout_cap
, daily_click_cap
, weekly_click_cap
, monthly_click_cap
, global_click_cap
, daily_revenue_cap
, weekly_revenue_cap
, monthly_revenue_cap
, global_revenue_cap
WARNING: dynamic value, please see endpoint docs
Payload Example
{
"network_custom_cap_setting_ids": [
0
],
"fields": [
{
"field_type": "",
"field_value": ""
}
]
}
Request Example
cURL
curl --request PATCH \
--url 'https://api.eflow.team/v1/networks/custom/caps' \
--header 'x-eflow-api-key: <INSERT API KEY>' \
--header 'content-type: application/json' \
--data '<INSERT PAYLOAD>'
Response
{
"result": true
}