Awesome new campaign
destination_url: http://www.performancehorizon.com dont_consolidate: y dont_invoice: y extra_restricted_deep_linking: '' force_approve_period: 0 hidden_campaign: y invoice_address_1: null invoice_address_2: null invoice_address_3: null invoice_address_4: null invoice_address_country: null invoice_address_postcode: null invoice_company: null invoice_contact: null invoice_only: null ip_tracking_time: 0 is_cpc: y lead_confirmation_url_fail: '' lead_confirmation_url_success: '' multiple_conversions_per_click: n network_fee: null pay_publisher_directly: y payment_date: null prepend_url_string: http://google.com recurring_payment_setup: y report_meta_purge_period: null reporting_timezone: Australia/Sydney restricted_deep_linking: y secure_tracking: y status: a terms: en: terms: Important campaign terms and conditions test_mode: y title: PHG Aff Demo tq_auto_approve: 60 tq_enabled: y tq_enabled_publishers: '' tracking_method: s2s tracking_subdomain: null unique_conversion_refs: y vertical_id: 10 vertical_name: Other week_start: Monday advertiser_name: Advertiser Name schema: properties: campaigns: items: $ref: '#/components/schemas/Campaign_Wrapper' type: array description: OK tags: - Campaigns description: 'Return the details of all Campaigns attached to the Network account and visible to the authenticated User. The output is contextual based on the permissions of the User making the request to the endpoint. A limited Campaign schema will be utilised for any Campaign that the User does not have appropriate permissions to view.' operationId: listAllCampaigns summary: List all Campaigns post: responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign: advertiser_id: 10l110 allow_deep_linking: y allow_third_party_pixel: y append_url_parameters: '' associated_campaigns: '' automated_invoicing_date: 4 automated_invoicing_po_number: null auto_approve_publisher: y auto_rejected_ips: null budget_summary_interval: null budget_summary_start_time: null campaign_currency_conversions: [] campaign_id: 10l176 campaign_languages: null campaign_logo: http://performancehorizon.com/logo.png campaign_notes: '' campaign_overloads: [] commission_by_meta_label: '[ "label 1","label 2" ]' commission_by_meta: '[ "field_1","field_2" ]' commissions: [] conversion_hiatus_period: 7 conversion_type: sale cookie_period: 0 cookie_status: null default_commission_rate: '5' default_currency: GBP default_override: 10 deferred_lead_submission: null description: en:Awesome new campaign
destination_url: http://www.performancehorizon.com dont_consolidate: y dont_invoice: y extra_restricted_deep_linking: '' force_approve_period: 0 hidden_campaign: y invoice_address_1: null invoice_address_2: null invoice_address_3: null invoice_address_4: null invoice_address_country: null invoice_address_postcode: null invoice_company: null invoice_contact: null invoice_only: null ip_tracking_time: 0 is_cpc: y lead_confirmation_url_fail: '' lead_confirmation_url_success: '' multiple_conversions_per_click: n network_fee: null pay_publisher_directly: y payment_date: null prepend_url_string: http://google.com promotional_countries: - iso: US name: United States - iso: GB name: United Kingdom recurring_payment_setup: y report_meta_purge_period: null reporting_timezone: Australia/Sydney restricted_deep_linking: y secure_tracking: y status: a terms: en: terms: Important campaign terms and conditions test_mode: y title: PHG Aff Demo tq_auto_approve: 60 tq_enabled: y tq_enabled_publishers: '' tracking_method: s2s tracking_subdomain: null unique_conversion_refs: y vertical_id: 10 vertical_name: Other week_start: Monday advertiser_name: Advertiser Name schema: properties: $ref: '#/components/schemas/Campaign_Wrapper' description: OK tags: - Campaigns description: To create a new Campaign, the Brand must pass their associated `advertiser_id`. operationId: createACampaign requestBody: content: application/json: schema: example: advertiser_id: 10l110 allow_deep_linking: y allow_third_party_pixel: y append_url_parameters: '' associated_campaigns: '' auto_rejected_ips: null campaign_overloads: - publisher_id: 11111l1 append_url_parameters: ?a=b&c=d basket_value_cap: 10.01 default_destination: http://example.com description: Example hide_hybrid_from_publisher: y is_cpc: n prepend_url_string: http://example.com test_mode: y campaign_icon: http://example.com/path/to/image.png campaign_logo: http://performancehorizon.com/logo.png campaign_notes: '' cookie_period: 0 default_commission_rate: '5' default_currency: GBP description: en:Awesome new campaign
destination_url: http://www.performancehorizon.com hidden_campaign: y multiple_conversions_per_click: n prepend_url_string: http://google.com secure_tracking: y terms: en: terms: Important campaign terms and conditions test_mode: y title: PHG Aff Demo tq_auto_approve: 60 tracking_method: s2s unique_conversion_refs: y vertical_id: 10 vertical_name: Other oneOf: - properties: default_commission_rate: type: string type: object - properties: default_commission_value: type: string type: object properties: advertiser_id: description: ID of the brand the campaign should belong to type: string allow_deep_linking: $ref: '#/components/schemas/YesOrNo' allow_third_party_pixel: $ref: '#/components/schemas/YesOrNo' append_url_parameters: type: string associated_campaigns: type: string auto_rejected_ips: nullable: true type: string campaign_icon: nullable: true description: Url of image to download. Supports PNG and JPEG only. type: string campaign_icon_upload: description: Base64 encoded data url of image to upload. Supports PNG and JPEG only. type: string nullable: true campaign_logo: nullable: true type: string campaign_overloads: nullable: true type: array items: type: object properties: publisher_id: type: string append_url_parameters: type: string basket_value_cap: type: string default_destination: type: string description: type: string hide_hybrid_from_publisher: $ref: '#/components/schemas/YesOrNo' is_cpc: $ref: '#/components/schemas/YesOrNo' prepend_url_string: type: url test_mode: $ref: '#/components/schemas/YesOrNo' required: - publisher_id campaign_notes: type: string cookie_period: type: number default_currency: enum: - GBP - USD - EUR - JPY type: string description: nullable: true properties: en: type: string description: 'Supports the following HTML tags with no attributes: p, h1-h6, b, i, u, ol, ul, li' type: object destination_url: type: string hidden_campaign: $ref: '#/components/schemas/YesOrNo' multiple_conversions_per_click: anyOf: - enum: - y - n type: string - enum: - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 type: number prepend_url_string: description: Prepend all destination URLs nullable: true type: string secure_tracking: $ref: '#/components/schemas/YesOrNo' terms: nullable: true properties: en: properties: terms: type: string type: object type: object test_mode: $ref: '#/components/schemas/YesOrNo' title: type: string tq_auto_approve: type: number tracking_method: enum: - pixel - api - s2s type: string unique_conversion_refs: enum: - y - n - ignore type: string vertical_id: type: number vertical_name: type: string required: - advertiser_id - title - destination_url type: object summary: Create a Campaign /campaign/{campaign_id}: get: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign: campaign_icon: https://console.partnerize.com/assets/icons/campaigns/10l176.png advertiser_id: 10l110 allow_deep_linking: y allow_third_party_pixel: y append_url_parameters: '' associated_campaigns: '' automated_invoicing_date: 4 automated_invoicing_po_number: null auto_approve_publisher: y auto_rejected_ips: null budget_summary_interval: null budget_summary_start_time: null campaign_currency_conversions: [] campaign_id: 10l176 campaign_languages: null campaign_logo: http://performancehorizon.com/logo.png campaign_notes: '' campaign_overloads: [] commission_by_meta_label: '[ "label 1","label 2" ]' commission_by_meta: '[ "field_1","field_2" ]' commissions: [] conversion_hiatus_period: 7 conversion_type: sale cookie_period: 0 cookie_status: null default_commission_rate: '5' default_currency: GBP default_override: 10 deferred_lead_submission: null description: en: Awesome new campaign destination_url: http://www.performancehorizon.com dont_consolidate: y dont_invoice: y extra_restricted_deep_linking: '' force_approve_period: 0 hidden_campaign: y invoice_address_1: null invoice_address_2: null invoice_address_3: null invoice_address_4: null invoice_address_country: null invoice_address_postcode: null invoice_company: null invoice_contact: null invoice_only: null ip_tracking_time: 0 is_cpc: y lead_confirmation_url_fail: '' lead_confirmation_url_success: '' multiple_conversions_per_click: n network_fee: null pay_publisher_directly: y payment_date: null prepend_url_string: http://google.com promotional_countries: - iso: US name: United States - iso: GB name: United Kingdom recurring_payment_setup: y report_meta_purge_period: null reporting_timezone: Australia/Sydney restricted_deep_linking: y secure_tracking: y status: a terms: en: terms: Important campaign terms and conditions test_mode: y title: PHG Aff Demo tq_auto_approve: 60 tq_enabled: y tq_enabled_publishers: '' tracking_method: s2s tracking_subdomain: null unique_conversion_refs: y vertical_id: 10 vertical_name: Other week_start: Monday advertiser_name: Advertiser Name schema: $ref: '#/components/schemas/Campaign_Wrapper' description: OK tags: - Campaigns description: Outputs the specified Campaign. operationId: Retrieve a Campaign summary: Retrieve a Campaign post: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign: campaign_icon: http://example.com/path/to/image.png advertiser_id: 10l110 allow_deep_linking: y allow_third_party_pixel: y append_url_parameters: '' associated_campaigns: '' automated_invoicing_date: 4 automated_invoicing_po_number: null auto_approve_publisher: y auto_rejected_ips: null budget_summary_interval: null budget_summary_start_time: null campaign_currency_conversions: [] campaign_id: 10l176 campaign_languages: null campaign_logo: http://performancehorizon.com/logo.png campaign_notes: '' campaign_overloads: [] commission_by_meta_label: '[ "label 1","label 2" ]' commission_by_meta: '[ "field_1","field_2" ]' commissions: [] conversion_hiatus_period: 7 conversion_type: sale cookie_period: 0 cookie_status: null default_commission_rate: '5' default_currency: GBP default_override: 10 deferred_lead_submission: null description: en: Awesome new campaign destination_url: http://www.performancehorizon.com dont_consolidate: y dont_invoice: y extra_restricted_deep_linking: '' force_approve_period: 0 hidden_campaign: y invoice_address_1: null invoice_address_2: null invoice_address_3: null invoice_address_4: null invoice_address_country: null invoice_address_postcode: null invoice_company: null invoice_contact: null invoice_only: null ip_tracking_time: 0 is_cpc: y lead_confirmation_url_fail: '' lead_confirmation_url_success: '' multiple_conversions_per_click: n network_fee: null pay_publisher_directly: y payment_date: null prepend_url_string: http://google.com recurring_payment_setup: y report_meta_purge_period: null reporting_timezone: Australia/Sydney restricted_deep_linking: y secure_tracking: y status: a terms: en: terms: Important campaign terms and conditions test_mode: y title: PHG Aff Demo tq_auto_approve: 60 tq_enabled: y tq_enabled_publishers: '' tracking_method: s2s tracking_subdomain: null unique_conversion_refs: y vertical_id: 10 vertical_name: Other week_start: Monday status: campaign_id: 10l176 message: Campaign successfully deleted retire_reason: No longer needed status: Deleted schema: properties: $ref: '#/components/schemas/Campaign_Wrapper' status: properties: campaign_id: type: string message: type: string retire_reason: type: string status: type: string type: object description: OK headers: {} tags: - Campaigns description: 'To delete a specific campaign, you must pass 3 required parameters: 1. `''action'' => ''delete''` 2. `''campaign_id'' => ''''` 3. `''retire_reason'' => ''some excuse''`.' operationId: Delete a Campaign requestBody: content: application/json: schema: example: action: delete campaign_id: 10l176 retire_reason: No longer needed properties: action: type: string campaign_id: description: ID of the campaign type: string retire_reason: type: string required: - campaign_id - action - retire_reason type: object summary: Delete a Campaign put: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign: campaign_icon: https://console.partnerize.com/assets/icons/campaigns/10l176.png advertiser_id: 10l110 allow_deep_linking: y allow_third_party_pixel: y append_url_parameters: '' associated_campaigns: '' automated_invoicing_date: 4 automated_invoicing_po_number: null auto_approve_publisher: y auto_rejected_ips: null budget_summary_interval: null budget_summary_start_time: null campaign_currency_conversions: [] campaign_id: 10l176 campaign_languages: null campaign_logo: http://performancehorizon.com/logo.png campaign_notes: '' campaign_overloads: [] commission_by_meta_label: '[ "label 1","label 2" ]' commission_by_meta: '[ "field_1","field_2" ]' commissions: [] conversion_hiatus_period: 7 conversion_type: sale cookie_period: 0 cookie_status: null default_commission_rate: '5' default_currency: GBP default_override: 10 deferred_lead_submission: null description: en: Awesome new campaign destination_url: http://www.performancehorizon.com dont_consolidate: y dont_invoice: y extra_restricted_deep_linking: '' force_approve_period: 0 hidden_campaign: y invoice_address_1: null invoice_address_2: null invoice_address_3: null invoice_address_4: null invoice_address_country: null invoice_address_postcode: null invoice_company: null invoice_contact: null invoice_only: null ip_tracking_time: 0 is_cpc: y lead_confirmation_url_fail: '' lead_confirmation_url_success: '' multiple_conversions_per_click: n network_fee: null pay_publisher_directly: y payment_date: null prepend_url_string: http://google.com recurring_payment_setup: y report_meta_purge_period: null reporting_timezone: Australia/Sydney restricted_deep_linking: y secure_tracking: y status: a terms: en: terms: terms for the locale test_mode: y title: PHG Aff Demo tq_auto_approve: 60 tq_enabled: y tq_enabled_publishers: '' tracking_method: s2s tracking_subdomain: null unique_conversion_refs: y vertical_id: 10 vertical_name: Other week_start: Monday schema: $ref: '#/components/schemas/Campaign_Wrapper' description: OK tags: - Campaigns description: Update the specified Campaign. operationId: Update a Campaign requestBody: content: application/json: schema: properties: campaign_id: description: ID of the campaign type: string example: 10l176 destination_url: type: string format: uri example: http://www.partnerize.com minLength: 1 title: type: string example: PHG Aff Demo minLength: 5 maxLength: 45 terms: properties: en: properties: terms: type: string example: terms for the en locale type: object type: object promotional_countries: type: array items: type: object properties: iso: type: string example: GB associated_campaigns: type: string auto_rejected_ips: type: string description: Comma separated list example: 1.1.1.1,2.2.2.2 campaign_notes: type: string campaign_overloads: nullable: true type: array items: type: object properties: publisher_id: type: string append_url_parameters: type: string example: ?a=b&c=d basket_value_cap: type: float example: 10.01 default_destination: type: string description: type: string hide_hybrid_from_publisher: $ref: '#/components/schemas/YesOrNo' is_cpc: $ref: '#/components/schemas/YesOrNo' prepend_url_string: type: url example: http://example.com test_mode: $ref: '#/components/schemas/YesOrNo' required: - publisher_id week_start: type: string enum: - Monday - Tuesday - Wednesday - Thursday - Friday - Saturday - Sunday vertical_id: type: string default_currency: type: string example: GBP multiple_conversions_per_click: oneOf: - type: string enum: - y - n - suppress - type: integer unique_conversion_refs: type: string enum: - y - n - ignore reporting_timezone: type: string example: Australia/Melbourne tracking_method: type: string enum: - pixel - s2s - api deeplink_method: type: string enum: - standard - direct cookie_period: type: integer minimum: 0 tq_auto_approve: type: integer minimum: 0 campaign_logo: type: string format: uri short_link_subdomain: type: string minLength: 1 app_tracking_provider: type: string enum: - branch - partnerize app_tracking_provider_tracking_link: type: string test_mode: type: string enum: - y - n hidden_campaign: type: string enum: - y - n allow_deep_linking: type: string enum: - y - n allow_third_party_pixel: type: string enum: - y - n secure_tracking: type: string enum: - y - n is_cpc: type: string enum: - y - n append_url_parameters: type: string prepend_url_string: type: string format: uri description: type: object properties: en: type: string description: 'Supports the following HTML tags with no attributes: p, h1-h6, b, i, u, ol, ul, li' campaign_languages: type: object properties: en: type: object properties: destination_url: type: string format: uri oneOf: - type: object properties: campaign_icon: nullable: true description: Url of image to download. Supports PNG and JPEG only. type: string - type: object properties: campaign_icon_upload: description: Base64 encoded data url of image to upload. Supports PNG and JPEG only. type: string nullable: true example: data:image/png;base64,... required: - campaign_id type: object summary: Update a Campaign /campaign/{campaign_id}/publisher: get: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: publishers: - publisher: abn: null account_name: partner123 campaign_custom_terms_and_conditions_id: 10l176 campaign_custom_terms_and_conditions_title: Some fancy title campaign_select: null campaign_status: a company_division: null company_name: Demo Partner contact_email: demo@partnerize.com contact_locale: bg contact_name: John Smith databases: - active: y creation_method: Email database_id: 111111l300347 database_name: Partnerize Database female: 50 male: 50 max_age: 77 min_age: 25 publisher_id: 1l1007802 size: 53000 default_currency: GBP description: null foreign_identifier: null gst_registered: null im_provider: Skype im_username: elisangis is_affiliate_user: y is_foreign_network: y is_lead_user: y legal_entity: GB network_id: 1l1000003 network_notes: null network_status: a operating_country: GB phone: 01595725007 phone_area: '+44' promotional_method: 10 promotional_method_name: Portal publisher_id: 1l1007802 reporting_identifier: null reporting_timezone: Australia/Sydney signup_ip: 178.23.129.160 uk_vat_registered: y us_tax_state: null vat_number: 974997534 vertical: 10 vertical_name: Other websites: - active: y primary: n description: Demo Partner website publisher_id: 1l1007802 website_country: GB website_id: 11l18694 website_name: null website_type: 9 website_type_name: PPC website_url: http://www.partnerize.com website_vertical: 10 website_vertical_name: Technical week_start: Monday schema: properties: publishers: items: $ref: '#/components/schemas/Publisher_Wrapper' type: array type: object description: OK tags: - Participating Partners description: View all Partners Participating on the Campaign. operationId: List all Participating Partners summary: List all Participating Partners post: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: publishers: - publisher: abn: null account_name: partner123 campaign_custom_terms_and_conditions_id: 10l176 campaign_custom_terms_and_conditions_title: Some fancy title campaign_select: null campaign_status: a company_division: null company_name: Demo Partner contact_email: demo@partnerize.com contact_locale: bg contact_name: John Smith databases: - active: y creation_method: Email database_id: 111111l300347 database_name: Partnerize Database female: 50 male: 50 max_age: 77 min_age: 25 publisher_id: 1l1007802 size: 53000 default_currency: GBP description: null foreign_identifier: null gst_registered: null im_provider: Skype im_username: elisangis is_affiliate_user: y is_foreign_network: y is_lead_user: y legal_entity: GB network_id: 1l1000003 network_notes: null network_status: a operating_country: GB phone: 01595725007 phone_area: '+44' promotional_method: 10 promotional_method_name: Portal publisher_id: 1l1007802 reporting_identifier: null reporting_timezone: Australia/Sydney signup_ip: 178.23.129.160 uk_vat_registered: y us_tax_state: null vat_number: 974997534 vertical: 10 vertical_name: Other websites: - active: y primary: n description: Demo Partner website publisher_id: 1l1007802 website_country: GB website_id: 11l18694 website_name: null website_type: 9 website_type_name: PPC website_url: http://www.partnerize.com website_vertical: 10 website_vertical_name: Technical week_start: Monday schema: properties: publishers: items: $ref: '#/components/schemas/Publisher_Wrapper' type: array type: object description: OK tags: - Participating Partners description: 'Add new Campaign participations by passing each `publisher_id` along with the relevant `campaign_status` in an object within a `publishers` array.' operationId: update-partner-participation requestBody: content: application/json: schema: example: publishers: - campaign_status: a publisher_id: 1l1007802 properties: publishers: items: properties: campaign_status: $ref: '#/components/schemas/Status' publisher_id: type: string required: - campaign_status - publisher_id type: array summary: Update a Partner Participation on a Campaign /campaign/{campaign_id}/publisher/{publisher_id}: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the Partner example: 1l1007802 in: path name: publisher_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: publishers: - publisher: abn: null account_name: partner123 campaign_custom_terms_and_conditions_id: 10l176 campaign_custom_terms_and_conditions_title: Some fancy title campaign_select: null campaign_status: a company_division: null company_name: Demo Partner contact_email: demo@partnerize.com contact_locale: bg contact_name: John Smith databases: - active: y creation_method: Email database_id: 111111l300347 database_name: Partnerize Database female: 50 male: 50 max_age: 77 min_age: 25 publisher_id: 1l1007802 size: 53000 default_currency: GBP description: null foreign_identifier: null gst_registered: null im_provider: Skype im_username: elisangis is_affiliate_user: y is_foreign_network: y is_lead_user: y legal_entity: GB network_id: 1l1000003 network_notes: null network_status: a operating_country: GB phone: 01595725007 phone_area: '+44' promotional_method: 10 promotional_method_name: Portal publisher_id: 1l1007802 reporting_identifier: null reporting_timezone: Australia/Sydney signup_ip: 178.23.129.160 uk_vat_registered: y us_tax_state: null vat_number: 974997534 vertical: 10 vertical_name: Other websites: - active: y primary: n description: Demo Partner website publisher_id: 1l1007802 website_country: GB website_id: 11l18694 website_name: null website_type: 9 website_type_name: PPC website_url: http://www.partnerize.com website_vertical: 10 website_vertical_name: Technical week_start: Monday schema: properties: publishers: items: $ref: '#/components/schemas/Publisher_Wrapper' type: array type: object description: OK tags: - Participating Partners description: View a specific Participating Partner. operationId: Retrieve a Participating Partner summary: Retrieve a Participating Partner /user/advertiser/{advertiser_id}/campaign: get: parameters: - description: ID of the brand example: 10l110 in: path name: advertiser_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: campaigns: - campaign: advertiser_id: 10l110 allow_deep_linking: y allow_third_party_pixel: y append_url_parameters: '' associated_campaigns: '' automated_invoicing_date: 4 automated_invoicing_po_number: null auto_approve_publisher: y auto_rejected_ips: null budget_summary_interval: null budget_summary_start_time: null campaign_currency_conversions: [] campaign_id: 10l176 campaign_languages: null campaign_logo: http://partnerize.com/logo.png campaign_notes: '' campaign_overloads: [] commission_by_meta_label: '["label 1","label 2"]' commission_by_meta: '["field_1","field_2"]' commissions: [] conversion_hiatus_period: 7 conversion_type: sale cookie_period: 0 cookie_status: null default_commission_rate: '5' default_currency: GBP default_override: 10 deferred_lead_submission: null description: en: Awesome new campaign destination_url: http://www.partnerize.com dont_consolidate: y dont_invoice: y extra_restricted_deep_linking: '' force_approve_period: 0 hidden_campaign: y invoice_address_1: null invoice_address_2: null invoice_address_3: null invoice_address_4: null invoice_address_country: null invoice_address_postcode: null invoice_company: null invoice_contact: null invoice_only: null ip_tracking_time: 0 is_cpc: y lead_confirmation_url_fail: '' lead_confirmation_url_success: '' multiple_conversions_per_click: n network_fee: null pay_publisher_directly: y payment_date: null prepend_url_string: http://google.com recurring_payment_setup: y report_meta_purge_period: null reporting_timezone: Australia/Sydney restricted_deep_linking: y secure_tracking: y status: a terms: en: terms: Important campaign terms and conditions test_mode: y title: PHG Aff Demo tq_auto_approve: 60 tq_enabled: y tq_enabled_publishers: '' tracking_method: s2s tracking_subdomain: null unique_conversion_refs: y vertical_id: 10 vertical_name: Other week_start: Monday count: 5 execution_time: 0.08001 seconds schema: properties: campaigns: items: $ref: '#/components/schemas/Campaign_Wrapper' type: array count: type: number execution_time: type: string type: object description: OK tags: - Campaigns description: 'This endpoint will output a listing of all Campaigns that reside under the provided Brand on the Network and the output is contextual based on the permissions of the User making the request to the endpoint. A limited Campaign schema will be utilised for any Campaign that the User does not have appropriate permissions to view.' operationId: List all Brand Campaigns summary: List all Brand Campaigns /user/advertiser: get: parameters: - description: '' example: '100' in: query name: limit required: false schema: type: number - description: '' example: '0' in: query name: offset required: false schema: type: number responses: '200': content: application/json; charset=utf-8: examples: response: value: advertisers: - advertiser: account_name: demo_brand address1: Gardegasse 11 address2: Top 7 address3: London address4: null advertiser_id: 10l110 budget_summary_interval: null budget_summary_start_time: null company_name: Partnerize Demo Brand contact_email: someone@partnerize.com country: GB current_balance: null default_currency: GBP display_name: PHG payment_currency: GBP phone: 01595725007 phone_area: '+44' postcode: A-101 pre_payment: null signup_ip: 178.23.129.160 status: a vat_number: GB974997534 count: 86 execution_time: 0.23640 seconds limit: 100 offset: 0 schema: properties: advertisers: items: $ref: '#/components/schemas/Brand_Account_Wrapper' type: array count: type: number execution_time: type: string limit: type: number offset: type: number type: object description: OK tags: - Brands description: 'One or more Brands can reside on a Network. This endpoint will output a listing of all Brands who reside on the Network and the output is contextual based on the permissions of the User making the request to the endpoint. A limited Brand schema will be utilised for any Brand that the User does not have appropriate permissions to view.' operationId: List all Brands summary: List all Brands post: responses: '200': content: application/json; charset=utf-8: examples: response: value: advertiser: account_name: demo_brand address1: Gardegasse 11 address2: Top 7 address3: London address4: null advertiser_id: 10l110 budget_summary_interval: null budget_summary_start_time: null company_name: Partnerize Demo Brand contact_email: someone@partnerize.com country: GB current_balance: null default_currency: GBP display_name: PHG payment_currency: GBP phone: 01595725007 phone_area: '+44' postcode: A-101 pre_payment: null signup_ip: 178.23.129.160 status: a vat_number: GB974997534 schema: $ref: '#/components/schemas/Brand_Account_Wrapper' description: OK tags: - Brands description: Create a new Brand account attached to the authenticated User. operationId: Create Brand Account requestBody: content: application/json: schema: example: account_name: newbrand123 address1: Gardegasse 11 address2: Top 7 address3: London address4: null company_name: PHG Demo Brand country: GB display_name: PHG phone: 01595725007 phone_area: '+44' postcode: A-101 signup_ip: 178.23.129.160 $ref: '#/components/schemas/Brand_Account' summary: Create Brand /user/advertiser/{advertiser_id}: get: parameters: - description: ID of the brand example: 10l110 in: path name: advertiser_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: advertiser: account_name: demo_brand address1: Gardegasse 11 address2: Top 7 address3: London address4: null advertiser_id: 10l110 budget_summary_interval: null budget_summary_start_time: null company_name: Partnerize Demo Brand contact_email: someone@partnerize.com country: GB current_balance: null default_currency: GBP display_name: PHG payment_currency: GBP phone: 01595725007 phone_area: '+44' postcode: A-101 pre_payment: null signup_ip: 178.23.129.160 status: a vat_number: GB974997534 schema: $ref: '#/components/schemas/Brand_Account_Wrapper' description: OK tags: - Brands description: Outputs the specified brand. operationId: Retrieve a Brand summary: Retrieve a Brand post: parameters: - description: ID of the brand example: 10l110 in: path name: advertiser_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: advertiser: account_name: demo_brand address1: Gardegasse 11 address2: Top 7 address3: London address4: null advertiser_id: 10l110 advertiser_icon: https://console.partnerize.com/assets/icons/10l110.png budget_summary_interval: null budget_summary_start_time: null company_name: Partnerize Demo Brand contact_email: someone@partnerize.com country: GB current_balance: null default_currency: GBP display_name: PHG payment_currency: GBP phone: 01595725007 phone_area: '+44' postcode: A-101 pre_payment: null signup_ip: 178.23.129.160 status: a vat_number: GB974997534 schema: $ref: '#/components/schemas/Brand_Account_Wrapper' description: OK tags: - Brands description: Update the specified Brand. operationId: Update a Brand requestBody: content: application/json: schema: example: address1: Gardegasse 11 address2: Top 7 address3: London address4: null advertiser_id: 10l110 advertiser_icon: http://example.com/path/to/image.png company_name: Partnerize Demo Brand country: GB phone: 01595725007 phone_area: '+44' postcode: A-101 signup_ip: 178.23.129.160 properties: address1: description: 1st line of the address type: string address2: description: 2nd line of the address nullable: true type: string address3: description: 3rd line of the address nullable: true type: string address4: description: 4th line of the address nullable: true type: string advertiser_id: description: ID of the brand type: string company_name: type: string country: description: Country of the address $ref: '#/components/schemas/Country' phone: description: Primary contact telephone number type: string phone_area: description: Phone prefix to declare country or region nullable: true type: string postcode: description: Postcode/Zipcode attached to the address type: string signup_ip: type: string oneOf: - properties: advertiser_icon: description: Url of image to download. Supports PNG and JPEG only. type: string nullable: true type: object - properties: advertiser_icon_upload: description: Base64 encoded data url of image to upload. Supports PNG and JPEG only. type: string nullable: true type: object required: - address1 - country - postcode - phone - signup_ip type: object summary: Update a Brand /campaign/{campaign_id}/voucher_code: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: voucher_codes: - voucher_code: active: y campaign_id: 10l176 commission_groups: [] description: '' end_date_time: '2013-09-30 15:00:00' on_expiry: ignore on_invalid_user: ignore start_date_time: '2013-08-31 15:00:00' voucher_code: promocode voucher_code_id: 111111l1000015 schema: properties: voucher_codes: items: $ref: '#/components/schemas/Voucher_Code_Wrapper' type: array type: object description: OK tags: - Voucher Codes description: View all Voucher Codes associated with the Campaign. operationId: List all Voucher Codes summary: List all Campaign Voucher Codes post: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: voucher_code: active: y campaign_id: 10l176 commission_groups: [] description: '' end_date_time: '2013-09-30 15:00:00' on_expiry: ignore on_invalid_user: ignore start_date_time: '2013-08-31 15:00:00' voucher_code: promocode voucher_code_id: 111111l1000015 schema: properties: voucher_codes: items: $ref: '#/components/schemas/Voucher_Code_Wrapper' type: array type: object description: OK tags: - Voucher Codes description: 'Create new Vouchers by passing each Voucher object within a `voucher_codes` array. A `voucher_code` string to define the actual code must be passed with each object, and to allocate the Voucher to specific Groups, pass the Group ids in a `commission_groups` array.' operationId: Create Voucher Codes requestBody: content: application/json: schema: example: voucher_codes: - commission_groups: [] description: '' end_date_time: '2013-09-30 15:00:00' start_date_time: '2013-08-31 15:00:00' voucher_code: specialoffer69 properties: voucher_codes: items: properties: commission_groups: description: IDs of the commission groups to be associated with the voucher items: type: string type: array description: type: string voucher_code: type: string start_date_time: type: string end_date_time: type: string type: object type: array type: object summary: Create Voucher Codes put: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: voucher_code: active: y campaign_id: 10l176 commission_groups: [] description: '' end_date_time: '2013-09-30 15:00:00' on_expiry: ignore on_invalid_user: ignore start_date_time: '2013-08-31 15:00:00' voucher_code: promocode voucher_code_id: 111111l1000015 schema: properties: voucher_codes: items: $ref: '#/components/schemas/Voucher_Code_Wrapper' type: array type: object description: OK tags: - Voucher Codes description: Update Vouchers by referencing the `voucher_code_id` in each Group object within the `voucher_codes` array. operationId: Update Voucher Codes requestBody: content: application/json: schema: example: voucher_codes: - commission_groups: [] description: '' end_date_time: '2013-09-30 15:00:00' start_date_time: '2013-08-31 15:00:00' voucher_code: promocode voucher_code_id: 111111l1000015 properties: voucher_codes: items: properties: voucher_code_id: type: string commission_groups: description: IDs of the commission groups to be associated with the voucher items: type: string type: array description: type: string voucher_code: type: string start_date_time: type: string end_date_time: type: string type: object type: array type: object summary: Update Voucher Codes /campaign/{campaign_id}/voucher_code/{voucher_code_id}: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the voucher code example: 111111l1000015 in: path name: voucher_code_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: voucher_code: active: y campaign_id: 10l176 commission_groups: [] description: '' end_date_time: '2013-09-30 15:00:00' on_expiry: ignore on_invalid_user: ignore start_date_time: '2013-08-31 15:00:00' voucher_code: promocode voucher_code_id: 111111l1000015 schema: $ref: '#/components/schemas/Voucher_Code_Wrapper' description: OK tags: - Voucher Codes description: Outputs the specified Voucher Code. operationId: Retrieve a Voucher Code summary: Retrieve a Voucher Code /campaign/{campaign_id}/creative: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: creatives: - creative: tags: '' active: y advertiser_reference: Promotion July 2020 campaign_id: 10l176 created_at: '2016-04-07 04:21:51' created_by: '300621' creative_id: '300441' creative_items: - tags: '' active: y campaign_id: 10l176 content_type: image/jpeg created_at: '2016-04-07 04:21:51' created_by: '300621' creative_item_id: '300396' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' description: '' filename: 4fdf4b3879da1funny-animals-page.jpg img_url: https://demophgconsole.partnerize.com/upload/4fdf4b3879da1funny-animals-page.jpg preview: https://demo.prf.hn/preview/screativeref:300396 specific_destination: '' creative_tracking_link: '' creative_tracking_link_rotate: '' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' default_specific_creative_id: '300396' description: Demo Text destination: http://www.partnerize.com dynamic_tracking_link: '' end_date_time: '2013-09-30 15:00:00' height: 360 html_tracking_link: '' limits: '' preview: https://demo.prf.hn/preview/creativeref:300442 start_date_time: '2013-08-31 15:00:00' width: 400 schema: properties: creatives: items: $ref: '#/components/schemas/Creative_Wrapper' type: array type: object description: OK tags: - Creatives description: List and view all Creatives for the specified Campaign. operationId: List all Creatives for a Campaign summary: List all Creatives for a Campaign post: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: creatives: - creative: tags: '' active: y advertiser_reference: Promotion July 2016 campaign_id: 10l176 created_at: '2016-04-07 04:21:51' created_by: '300621' creative_id: '300441' creative_items: - tags: '' active: y campaign_id: 10l176 content_type: image/jpeg created_at: '2016-04-07 04:21:51' created_by: '300621' creative_item_id: '300396' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' description: '' filename: 4fdf4b3879da1funny-animals-page.jpg img_url: https://demophgconsole.partnerize.com/upload/4fdf4b3879da1funny-animals-page.jpg preview: https://demo.prf.hn/preview/screativeref:300396 specific_destination: '' creative_tracking_link: '' creative_tracking_link_rotate: '' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' default_specific_creative_id: '300396' description: Demo Text destination: http://www.partnerize.com dynamic_tracking_link: '' end_date_time: '2013-09-30 15:00:00' height: 360 html_tracking_link: '' limits: '' preview: https://demo.prf.hn/preview/creativeref:300442 start_date_time: '2013-08-31 15:00:00' width: 400 schema: properties: creatives: items: $ref: '#/components/schemas/Creative_Wrapper' type: array type: object description: OK tags: - Creatives description: Create one or more Creatives against the Campaign entity. Each Creative is sent as an array within a top level `creatives` array. operationId: Create Campaign Creatives requestBody: content: application/json: schema: example: creatives: - tags: '' active: y advertiser_reference: Promotion July 2016 campaign_id: 10l176 creative_items: - tags: '' active: y campaign_id: 10l176 content_type: image/jpeg created_at: '2016-04-07 04:21:51' created_by: '300621' creative_item_id: '300396' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' description: '' filename: 4fdf4b3879da1funny-animals-page.jpg img_url: https://demophgconsole.partnerize.com/upload/4fdf4b3879da1funny-animals-page.jpg preview: https://demo.prf.hn/preview/screativeref:300396 specific_destination: '' creative_tracking_link: '' creative_tracking_link_rotate: '' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' default_specific_creative_id: '300396' description: Demo Text destination: http://www.partnerize.com dynamic_tracking_link: '' end_date_time: '2013-09-30 15:00:00' height: 360 html_tracking_link: '' limits: '' preview: https://demo.prf.hn/preview/creativeref:300442 start_date_time: '2013-08-31 15:00:00' width: 400 properties: creatives: items: $ref: '#/components/schemas/Creative_Wrapper' type: array type: object summary: Create Campaign Creatives put: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: creatives: - creative: tags: '' active: y advertiser_reference: Promotion July 2016 campaign_id: 10l176 created_at: '2016-04-07 04:21:51' created_by: '300621' creative_id: '300441' creative_items: - tags: '' active: y campaign_id: 10l176 content_type: image/jpeg created_at: '2016-04-07 04:21:51' created_by: '300621' creative_item_id: '300396' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' description: '' filename: 4fdf4b3879da1funny-animals-page.jpg img_url: https://demophgconsole.partnerize.com/upload/4fdf4b3879da1funny-animals-page.jpg preview: https://demo.prf.hn/preview/screativeref:300396 specific_destination: '' creative_tracking_link: '' creative_tracking_link_rotate: '' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' default_specific_creative_id: '300396' description: Demo Text destination: http://www.partnerize.com dynamic_tracking_link: '' end_date_time: '2013-09-30 15:00:00' height: 360 html_tracking_link: '' limits: '' preview: https://demo.prf.hn/preview/creativeref:300442 start_date_time: '2013-08-31 15:00:00' width: 400 schema: properties: creatives: items: $ref: '#/components/schemas/Creative_Wrapper' type: array type: object description: OK tags: - Creatives description: Update one or more Creatives against the Campaign entity. Each Creative is sent as an array within a top level `creatives` array and must contain its associated `creative_id`. operationId: Update Campaign Creatives requestBody: content: application/json: schema: example: creatives: - tags: '' active: y advertiser_reference: Promotion July 2016 campaign_id: 10l176 creative_id: '300441' creative_items: - tags: '' active: y campaign_id: 10l176 content_type: image/jpeg created_at: '2016-04-07 04:21:51' created_by: '300621' creative_item_id: '300396' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' description: '' filename: 4fdf4b3879da1funny-animals-page.jpg img_url: https://demophgconsole.partnerize.com/upload/4fdf4b3879da1funny-animals-page.jpg preview: https://demo.prf.hn/preview/screativeref:300396 specific_destination: '' creative_tracking_link: '' creative_tracking_link_rotate: '' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' default_specific_creative_id: '300396' description: Demo Text destination: http://www.partnerize.com dynamic_tracking_link: '' end_date_time: '2013-09-30 15:00:00' height: 360 html_tracking_link: '' limits: '' preview: https://demo.prf.hn/preview/creativeref:300442 start_date_time: '2013-08-31 15:00:00' width: 400 properties: creatives: items: $ref: '#/components/schemas/Creative_Wrapper' type: array type: object summary: Update Campaign Creatives /campaign/{campaign_id}/creative/tags: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: creative_tags: - creative_tag: campaign_id: 10l176 created_at: '2016-04-07 04:21:51' created_by: '300621' creative_tag_id: 111111l2 creatives: - creative_id: '300441' creative_item_id: '300396' name: logo schema: properties: creative_tags: items: $ref: '#/components/schemas/Creative_Tag_Wrapper' type: array type: object description: OK tags: - Creatives description: View all Creative Tags for the specified Campaign. operationId: List all Creative Tags for Campaign summary: List all Creative Tags for Campaign post: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: creative_tags: - creative_tag: campaign_id: 10l176 created_at: '2016-04-07 04:21:51' created_by: '300621' creative_tag_id: 111111l2 creatives: - creative_id: '300441' creative_item_id: '300396' name: logo schema: properties: creative_tags: items: $ref: '#/components/schemas/Creative_Tag_Wrapper' type: array type: object description: OK tags: - Creatives description: Create one or more Creative Tags against the Campaign entity. Each Tag is sent as an array within a top level `tags` array. operationId: Create Campaign Creative Tags requestBody: content: application/json: schema: example: tags: - name: promo properties: tags: items: $ref: '#/components/schemas/Creative_Tag_Wrapper' type: array type: object summary: Create Campaign Creative Tags put: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: creative_tags: - creative_tag: campaign_id: 10l176 created_at: '2016-04-07 04:21:51' created_by: '300621' creative_tag_id: 111111l2 creatives: - creative_id: '300441' creative_item_id: '300396' name: logo schema: properties: creative_tags: items: $ref: '#/components/schemas/Creative_Tag_Wrapper' type: array type: object description: OK tags: - Creatives description: Update one or more Creative Tags against the Campaign entity. Each Tag is sent as an array within a top level `tags` array and must contain its associated `creative_tag_id`. operationId: Update Campaign Creative Tags requestBody: content: application/json: schema: example: tags: - creative_tag_id: 111111l2 name: promotion properties: tags: items: $ref: '#/components/schemas/Creative_Tag_Wrapper' type: array type: object summary: Update Campaign Creative Tags delete: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: creative_tags: - creative_tag: campaign_id: 10l176 created_at: '2016-04-07 04:21:51' created_by: '300621' creative_tag_id: 111111l2 creatives: - creative_id: '300441' creative_item_id: '300396' name: logo schema: properties: creative_tags: items: $ref: '#/components/schemas/Creative_Tag_Wrapper' type: array type: object description: OK tags: - Creatives description: Delete one or more Creative Tags against the Campaign entity. Each Tag is sent as an array within a top level `tags` array and must contain its associated `creative_tag_id`. operationId: Delete Campaign Creative Tags requestBody: content: application/json: schema: example: tags: - creative_tag_id: 111111l2 properties: tags: items: $ref: '#/components/schemas/Creative_Tag_Wrapper' type: array type: object summary: Delete Campaign Creative Tags /campaign/{campaign_id}/creative_tags/creative: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: An array of tags IDs to filter the creatives by example: 1011l56,1011l57 in: query name: tags[] required: false schema: type: string allowReserved: true responses: '200': content: application/json; charset=utf-8: examples: response: value: creatives: - creative: tags: '' active: y advertiser_reference: Promotion July 2020 campaign_id: 10l176 created_at: '2016-04-07 04:21:51' created_by: '300621' creative_id: '300441' creative_items: - tags: - creative_tag_id: 1011l56 campaign_id: 10l176 name: My tag created_at: '2016-04-03 16:16:02' active: y campaign_id: 10l176 content_type: image/jpeg created_at: '2016-04-07 04:21:51' created_by: '300621' creative_item_id: '300396' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' description: '' filename: 4fdf4b3879da1funny-animals-page.jpg img_url: https://demophgconsole.partnerize.com/upload/4fdf4b3879da1funny-animals-page.jpg preview: https://demo.prf.hn/preview/screativeref:300396 specific_destination: '' creative_tracking_link: '' creative_tracking_link_rotate: '' creative_type_id: 1 custom_append_url_parameters: '' custom_prepend_url_parameters: '' default_specific_creative_id: '300396' description: Demo Text destination: http://www.partnerize.com dynamic_tracking_link: '' end_date_time: '2013-09-30 15:00:00' height: 360 html_tracking_link: '' limits: '' preview: https://demo.prf.hn/preview/creativeref:300442 start_date_time: '2013-08-31 15:00:00' width: 400 schema: properties: creatives: items: $ref: '#/components/schemas/Creative_Wrapper' type: array type: object description: OK tags: - Creatives description: List and view all Creatives for the specified Campaign and filter by tags. operationId: List all Creatives for a Campaign by Tags summary: List all Creatives for a Campaign by Tags /campaign/{campaign_id}/feed: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: feeds: - feed: active: y dynamic: 0 feed_id: 1111l13 fetch_frequency: 3600 filesize: 0 last_processed: 1378980455 location: http://example.com/feed.xml name: Sample Product Feed updated: 1378980455 schema: properties: feeds: items: $ref: '#/components/schemas/Feed_Wrapper' type: array type: object description: OK tags: - Product Feeds description: Return the details of all Product Feeds associated with a Campaign. operationId: List all Product Feeds summary: List all Product Feeds for a Campaign post: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '201': content: application/json; charset=utf-8: examples: response: value: feeds: - feed: active: y dynamic: 0 feed_id: 1111l13 fetch_frequency: 3600 filesize: 0 last_processed: 1378980455 location: http://example.com/feed.xml name: Sample Feed updated: 1378980455 schema: properties: feeds: items: $ref: '#/components/schemas/Feed_Wrapper' type: array type: object description: Created tags: - Product Feeds description: Create one or more Product Feeds against the Campaign entity. Each Product Feed is sent as an array within a top level `feeds` array. operationId: Create a Product Feed for a Campaign requestBody: content: application/json: schema: example: feeds: - active: y dynamic: 0 fetch_frequency: 3600 location: http://example.com/feed.xml name: Sample Feed properties: feeds: items: $ref: '#/components/schemas/Feed' type: array required: - feeds type: object summary: Create a Product Feed put: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: feeds: - feed: action: update active: y dynamic: 0 feed_id: 1111l13 fetch_frequency: 3600 filesize: 0 last_processed: 1378980455 location: http://example.com/feed.xml name: Sample Feed updated: 1378980455 schema: properties: feeds: items: $ref: '#/components/schemas/Feed_Wrapper' type: array type: object description: OK tags: - Product Feeds description: 'Update one or more `feeds` against the Campaign entity. Each Product Feed is sent as an array within a top level `feeds` array and must contain its associated `feed_id` or `location`. As `location` is a unique identifier, it''s not possible to change the location of a feed once created. To update the location, first update the feed and set `active: n`, then create a new feed with the new location.' operationId: Update a Campaign Feed requestBody: content: application/json: schema: example: feeds: - active: y feed_id: 1111l13 fetch_frequency: 3600 name: Sample Feed properties: feeds: items: oneOf: - properties: feed_id: description: ID of the Product Feed type: string type: object - properties: location: description: URL of the feed type: string type: object properties: active: $ref: '#/components/schemas/YesOrNo' fetch_frequency: type: number name: type: string type: object type: array required: - feeds type: object summary: Update a Product Feed for a Campaign /campaign/{campaign_id}/deal: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign_deals: - campaign_deal: active: y advertiser_reference: Promo012 category: Clothing country_iso: GB coupon_code: DEAL45 description: There are a lot of awesome deals destination: https://dealz.bargain/promo end_date_time: '2017-09-01T00:00:00+01:00' offer_type: coupon offer_value: 40% off start_date_time: '2017-08-01T00:00:00+01:00' terms: No terms for this deal title: 40% off everything schema: properties: campaign_deals: items: $ref: '#/components/schemas/Deal_Wrapper' type: array type: object description: OK tags: - Deals description: Return the details of all Deals associated to the Campaign. operationId: List all Campaign Deals summary: List all Campaign Deals post: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '201': content: application/json; charset=utf-8: examples: response: value: campaign_deal: active: y advertiser_reference: Promo012 campaign_deal_id: 111111l2 category: Clothing country_iso: GB coupon_code: DEAL45 created_at: '2017-07-01T00:00:00+01:00' description: There are a lot of awesome deals destination: https://dealz.bargain/promo end_date_time: '2017-09-01T00:00:00+01:00' offer_type: coupon offer_value: 40% off start_date_time: '2017-08-01T00:00:00+01:00' terms: No terms for this deal title: 40% off everything updated_at: null schema: $ref: '#/components/schemas/Deal_Wrapper' description: Created tags: - Deals description: Create a new Deal against the Campaign entity. operationId: Create a Campaign Deal requestBody: content: application/json: schema: $ref: '#/components/schemas/Deal' summary: Create a Campaign Deal /campaign/{campaign_id}/deal/{deal_id}: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the Deal example: 111111l2 in: path name: deal_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign_deal: active: y advertiser_reference: Promo012 campaign_deal_id: 111111l2 category: Clothing country_iso: GB coupon_code: DEAL45 created_at: '2017-07-01T00:00:00+01:00' description: There are a lot of awesome deals destination: https://dealz.bargain/promo end_date_time: '2017-09-01T00:00:00+01:00' offer_type: coupon offer_value: 40% off start_date_time: '2017-08-01T00:00:00+01:00' terms: No terms for this deal title: 40% off everything updated_at: null schema: $ref: '#/components/schemas/Deal_Wrapper' description: OK tags: - Deals description: Review the specified Deal. operationId: Retrieve a Campaign Deal summary: Retrieve a Campaign Deal patch: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the Deal example: 111111l2 in: path name: deal_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign_deal: active: y advertiser_reference: Promo012 campaign_deal_id: 111111l2 category: Clothing country_iso: GB coupon_code: DEAL45 created_at: '2017-07-01T00:00:00+01:00' description: There are a lot of awesome deals destination: https://dealz.bargain/promo end_date_time: '2017-09-01T00:00:00+01:00' offer_type: coupon offer_value: 40% off start_date_time: '2017-08-01T00:00:00+01:00' terms: No terms for this deal title: 40% off everything updated_at: null schema: $ref: '#/components/schemas/Deal_Wrapper' description: OK tags: - Deals description: Update properties of the specified Deal. operationId: Update a Campaign Deal requestBody: content: application/json: schema: example: active: y advertiser_reference: Promo012 category: Clothing country_iso: GB coupon_code: DEAL45 description: There are a lot of awesome deals destination: https://dealz.bargain/promo end_date_time: '2017-09-01T00:00:00+01:00' offer_type: coupon offer_value: 40% off start_date_time: '2017-08-01T00:00:00+01:00' terms: No terms for this deal title: 40% off everything $ref: '#/components/schemas/Deal' summary: Update a Campaign Deal delete: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the deal example: 111111l2 in: path name: deal_id required: true schema: type: string responses: '204': description: No Content tags: - Deals description: Delete a Deal, which is the same as updating the Deal by setting `active` to `n`. operationId: Delete a Campaign summary: Delete a Campaign /campaign/{campaign_id}/meta: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign: campaign_id: 10l176 meta: currencies: - GBP meta_conversion: [] meta_item: [] schema: properties: campaign: properties: campaign_id: description: ID of the campaign type: string meta: properties: currencies: items: $ref: '#/components/schemas/Currency' type: array meta_conversion: items: {} type: array meta_item: items: {} type: array type: object type: object type: object description: OK tags: - Meta Attributes description: View all unique Meta attributes for the Campaign. operationId: List all Meta attributes for Campaign summary: List all Meta attributes for Campaign /campaign/{campaign_id}/tq: get: parameters: - description: ID of the Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: Filter by the ID of a transaction query example: 1l1000532 in: query name: transaction_query_id required: false schema: type: string - description: Filter by the type example: untracked in: query name: transaction_query_type required: false schema: type: string - description: Filter by a partner reference example: A200FG1 in: query name: publisher_reference required: false schema: type: string - description: Filter by a conversion reference example: AF222PO in: query name: conversion_reference required: false schema: type: string - description: Filter by a conversion date example: '2017-01-01 00:00:00' in: query name: conversion_date_time required: false schema: type: string - description: Filter by the ID of a campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: Filter by the current state example: pending in: query name: current_state required: false schema: type: string - description: Field to filter the date range on example: created_at in: query name: date_range_column required: false schema: type: string - description: Start of a date range example: '2017-01-01 00:00:00' in: query name: date_range_start required: false schema: type: string - description: End of a date range example: '2017-12-30 00:00:00' in: query name: date_range_end required: false schema: type: string - description: Natural language representation of a date range example: last 10 days in: query name: text_date required: false schema: type: string - description: Field to sort the results by example: created_at in: query name: sort_column required: false schema: type: string - description: Direction to sort the results by example: ASC in: query name: order_by required: false schema: type: string - description: Download the results as a CSV file example: 'true' in: query name: tq_export required: false schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: count: 5 execution_time: 0.08001 seconds filters: {} sort: column: created_at direction: ASC transaction_queries: - transaction_query: actions_available: - approve - reject campaign: advertiser_id: 10l110 campaign_id: 10l176 created: '2017-01-01 00:00:00' created_by: 11l16829 default_override: '1' hidden_campaign: y last_modified: '2017-01-01 00:00:00' network_fee: null payment_date: null reporting_timezone: Australia/Sydney status: a title: Example Campaign type: sale vertical_id: 10 week_start: monday campaign_id: 10l176 camref: hrDu67 conversion_currency: GBP conversion_date_time: '2017-01-01 00:00:00' conversion_id: 111111l304972 conversion_reference: AUTO-5953bd8c5fe7b conversion_value: 9729 created_at: '2017-01-01 00:00:00' current_state: pending expected_commission: 907.43 notes: Quam ex rerum nulla enim. publisher: agreed_to_latest_network_terms: y created: '2017-01-01 00:00:00' created_by: 11l16829 name: Example Partner network_id: 1l1000003 network_status: a publisher_id: 1l1007802 ref_terms_and_conditions_locale_id: 1l100284 reporting_timezone: Australia/Sydney signup_ip: 127.0.0.1 week_start: saturday publisher_id: 1l1007802 publisher_reference: rerum state_history: conversion_expected_commission: 837.49 conversion_item_id: 111111l1107235 created_at: '2017-01-01 00:00:00' notes: Quidem facilis iste sapiente reiciendis. state: pending transaction_query_id: 111111l10 transaction_query_state_id: 111111l9 user_id: 11l16829 transaction_query_id: 111111l10 transaction_query_type: untracked updated_at: '2017-02-01 00:00:00' schema: properties: count: type: number execution_time: type: string filters: description: The filters applied to the results properties: {} type: object sort: properties: column: description: The column the results are sorted by type: string direction: description: The direction the results are sorted in enum: - ASC - DESC type: string type: object transaction_queries: items: $ref: '#/components/schemas/Transaction_Query_Wrapper' type: array type: object description: OK tags: - Campaign Transaction Queries description: Return the details of all Transaction Queries created on a campaign. operationId: List all Transaction Queries requestBody: content: application/json: schema: type: string description: Generate a CSV file in a job and send the result to this email address, helpful when processing takes too long for a normal download summary: List all Transaction Queries for a Campaign /campaign/{campaign_id}/tq/{transaction_query_id}/approve: post: parameters: - description: ID of a Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the Transaction Query example: 1l1000532 in: path name: transaction_query_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: execution_time: 0.08001 seconds transaction_query: actions_available: [] campaign: advertiser_id: 10l110 campaign_id: 10l176 created: '2017-01-01 00:00:00' created_by: 11l16829 default_override: '1' hidden_campaign: y last_modified: '2017-01-01 00:00:00' network_fee: null payment_date: null reporting_timezone: Australia/Sydney status: a title: Example Campaign type: sale vertical_id: 10 week_start: monday campaign_id: 10l176 camref: hrDu67 conversion_currency: GBP conversion_date_time: '2017-01-01 00:00:00' conversion_id: 111111l304972 conversion_reference: AUTO-5953bd8c5fe7b conversion_value: 9729 created_at: '2017-01-01 00:00:00' current_state: pending expected_commission: 907.43 notes: Quam ex rerum nulla enim. publisher: agreed_to_latest_network_terms: y created: '2017-01-01 00:00:00' created_by: 11l16829 name: Example Partner network_id: 1l1000003 network_status: a publisher_id: 1l1007802 ref_terms_and_conditions_locale_id: 1l100284 reporting_timezone: Australia/Sydney signup_ip: 127.0.0.1 week_start: saturday publisher_id: 1l1007802 publisher_reference: rerum state_history: conversion_expected_commission: 837.49 conversion_item_id: 111111l1107235 created_at: '2017-01-01 00:00:00' notes: Quidem facilis iste sapiente reiciendis. state: pending transaction_query_id: 111111l10 transaction_query_state_id: 111111l9 user_id: 11l16829 transaction_query_id: 111111l10 transaction_query_type: untracked updated_at: '2017-02-01 00:00:00' schema: $ref: '#/components/schemas/Transaction_Query_Wrapper' description: OK '400': content: application/json; charset=utf-8: examples: response: value: error: message: Requested action around TQs that does not exists type: '400' schema: properties: error: properties: message: type: string type: type: string type: object type: object description: Bad Request '404': content: application/json; charset=utf-8: examples: response: value: error: message: The TQ ID supplied for this action does not match an existing TQ. type: '404' schema: properties: error: properties: message: type: string type: type: string type: object type: object description: Not Found tags: - Campaign Transaction Queries description: Approve a single Transaction Query. Only Transaction Queries with a status of pending can be approved. operationId: Approve a Transaction Query requestBody: content: application/json: schema: example: expected_commission: 907.43 properties: expected_commission: description: The commission that the conversion should have after being approved type: number type: object summary: Approve a Transaction Query /campaign/{campaign_id}/tq/{transaction_query_id}/pend: post: parameters: - description: ID of a Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the Transaction Query example: 1l1000532 in: path name: transaction_query_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: execution_time: 0.08001 seconds transaction_query: actions_available: - approve - reject campaign: advertiser_id: 10l110 campaign_id: 10l176 created: '2017-01-01 00:00:00' created_by: 11l16829 default_override: '1' hidden_campaign: y last_modified: '2017-01-01 00:00:00' network_fee: null payment_date: null reporting_timezone: Australia/Sydney status: a title: Example Campaign type: sale vertical_id: 10 week_start: monday campaign_id: 10l176 camref: hrDu67 conversion_currency: GBP conversion_date_time: '2017-01-01 00:00:00' conversion_id: 111111l304972 conversion_reference: AUTO-5953bd8c5fe7b conversion_value: 9729 created_at: '2017-01-01 00:00:00' current_state: pending expected_commission: 907.43 notes: Quam ex rerum nulla enim. publisher: agreed_to_latest_network_terms: y created: '2017-01-01 00:00:00' created_by: 11l16829 name: Example Partner network_id: 1l1000003 network_status: a publisher_id: 1l1007802 ref_terms_and_conditions_locale_id: 1l100284 reporting_timezone: Australia/Sydney signup_ip: 127.0.0.1 week_start: saturday publisher_id: 1l1007802 publisher_reference: rerum state_history: conversion_expected_commission: 837.49 conversion_item_id: 111111l1107235 created_at: '2017-01-01 00:00:00' notes: Quidem facilis iste sapiente reiciendis. state: pending transaction_query_id: 111111l10 transaction_query_state_id: 111111l9 user_id: 11l16829 transaction_query_id: 111111l10 transaction_query_type: untracked updated_at: '2017-02-01 00:00:00' schema: $ref: '#/components/schemas/Transaction_Query_Wrapper' description: OK '400': content: application/json; charset=utf-8: examples: response: value: error: message: Requested action around TQs that does not exists type: '400' schema: properties: error: properties: message: type: string type: type: string type: object type: object description: Bad Request '404': content: application/json; charset=utf-8: examples: response: value: error: message: The TQ ID supplied for this action does not match an existing TQ. type: '404' schema: properties: error: properties: message: type: string type: type: string type: object type: object description: Not Found tags: - Campaign Transaction Queries description: Pend a single Transaction Query. Only Transaction Queries with a status of rejected can be pended. operationId: Pend a Transaction Query summary: Pend a Transaction Query /campaign/{campaign_id}/tq/{transaction_query_id}/reject: post: parameters: - description: ID of a campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the transaction query example: 1l1000532 in: path name: transaction_query_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: execution_time: 0.08001 seconds transaction_query: actions_available: - pend campaign: advertiser_id: 10l110 campaign_id: 10l176 created: '2017-01-01 00:00:00' created_by: 11l16829 default_override: '1' hidden_campaign: y last_modified: '2017-01-01 00:00:00' network_fee: null payment_date: null reporting_timezone: Australia/Sydney status: a title: Example Campaign type: sale vertical_id: 10 week_start: monday campaign_id: 10l176 camref: hrDu67 conversion_currency: GBP conversion_date_time: '2017-01-01 00:00:00' conversion_id: 111111l304972 conversion_reference: AUTO-5953bd8c5fe7b conversion_value: 9729 created_at: '2017-01-01 00:00:00' current_state: pending expected_commission: 907.43 notes: Quam ex rerum nulla enim. publisher: agreed_to_latest_network_terms: y created: '2017-01-01 00:00:00' created_by: 11l16829 name: Example Partner network_id: 1l1000003 network_status: a publisher_id: 1l1007802 ref_terms_and_conditions_locale_id: 1l100284 reporting_timezone: Australia/Sydney signup_ip: 127.0.0.1 week_start: saturday publisher_id: 1l1007802 publisher_reference: rerum state_history: conversion_expected_commission: 837.49 conversion_item_id: 111111l1107235 created_at: '2017-01-01 00:00:00' notes: Quidem facilis iste sapiente reiciendis. state: pending transaction_query_id: 111111l10 transaction_query_state_id: 111111l9 user_id: 11l16829 transaction_query_id: 111111l10 transaction_query_type: untracked updated_at: '2017-02-01 00:00:00' schema: $ref: '#/components/schemas/Transaction_Query_Wrapper' description: OK '400': content: application/json; charset=utf-8: examples: response: value: error: message: Requested action around TQs that does not exists type: '400' schema: properties: error: properties: message: type: string type: type: string type: object type: object description: Bad Request '404': content: application/json; charset=utf-8: examples: response: value: error: message: The TQ ID supplied for this action does not match an existing TQ. type: '404' schema: properties: error: properties: message: type: string type: type: string type: object type: object description: Not Found tags: - Campaign Transaction Queries description: Reject a single Transaction Query. Only Transaction Queries with a status of pending can be rejected. operationId: Reject a Transaction Query requestBody: content: application/json: schema: example: reason: Example reason properties: reason: description: The reason for rejecting the Transaction Query type: string type: object summary: Reject a Transaction Query /campaign/{campaign_id}/tq/process: post: parameters: - description: ID of a Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: execution_time: 0.08001 seconds job: completed_at: '2016-04-07 04:21:52' created_at: '2016-04-07 04:21:51' created_by: '300621' created_by_uri: '' estimated_completion: null job_id: 111111l470 percentage_complete: 100 reference: null response: /job/111111l1177306/response.json response_within_retention: true status: complete time_elapsed: 0 update: /job/111111l1177306.json schema: properties: execution_time: type: string job: properties: completed_at: nullable: true type: string created_at: type: string created_by: description: ID of the user who created the job type: string created_by_uri: type: string estimated_completion: nullable: true type: string job_id: description: ID of the job type: string percentage_complete: type: number reference: nullable: true type: string response: description: The raw response nullable: true type: string response_within_retention: type: boolean status: enum: - complete - created - active type: string time_elapsed: type: number update: description: The update URI nullable: true type: string type: object type: object description: OK '400': content: application/json; charset=utf-8: examples: response: value: error: message: Requested action around TQs that does not exists type: '400' schema: properties: error: properties: message: type: string type: type: string type: object type: object description: Bad Request tags: - Campaign Transaction Queries description: Process multiple Transaction Queries in a single API call. The same rules as approving, rejecting and pending single Transaction Queries apply. The actions are processed asynchronously and the Job endpoint must be polled to find out when all have been completed. operationId: Bulk process Transaction Queries requestBody: content: application/json: schema: example: transaction_queries: - new_expected_commission: 13.45 new_reason: Example reason new_state: pending transaction_query_id: 1l1000532 properties: transaction_queries: items: properties: new_expected_commission: description: expected commission value after the state change type: number new_reason: description: reason for the state change type: string new_state: $ref: '#/components/schemas/Transaction_Query_State' transaction_query_id: description: ID of the Transaction Query type: string type: array type: object summary: Bulk processing of Transaction Queries /campaign/{campaign_id}/tq_reasons: get: parameters: - description: ID of a Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: count: 1 execution_time: 0.08001 seconds transaction_query_reasons: - transaction_query_reason: campaign_id: 10l176 created_at: '2017-01-01 00:00:00' reason: Example reason transaction_query_reason_id: 111111l3 schema: properties: count: type: number execution_time: type: string transaction_query_reasons: items: $ref: '#/components/schemas/Transaction_Query_Reason' type: array type: object description: OK tags: - Transaction Query Reasons description: Return the details of all saved Transaction Query Reasons. operationId: List Transaction Query Reasons summary: List Transaction Query Reasons for a Campaign post: parameters: - description: ID of a Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: execution_time: 0.08001 seconds transaction_query_reason: campaign_id: 10l176 created_at: '2017-01-01 00:00:00' reason: Example reason transaction_query_reason_id: 111111l3 schema: $ref: '#/components/schemas/Transaction_Query_Reason' description: OK '400': content: application/json; charset=utf-8: examples: response: value: error: fields: {} message: Reason already exists type: Validation Fail schema: properties: error: properties: fields: properties: {} type: object message: type: string type: type: string type: object type: object description: Bad Request tags: - Transaction Query Reasons description: Create a new saved Transaction Query reason. operationId: Create a Transaction Query Reason requestBody: content: application/json: schema: example: reason: Example reason properties: reason: description: The reason for rejecting a Transaction Query type: string required: - reason type: object summary: Create a Transaction Query Reason for a Campaign /campaign/{campaign_id}/tq_reasons/{transaction_query_reason_id}/delete: post: parameters: - description: ID of a Campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the Transaction Query Reason example: 111111l3 in: path name: transaction_query_reason_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: execution_time: 0.08001 seconds transaction_query_reason: deleted: 'true' schema: properties: execution_time: type: string transaction_query_reason: properties: deleted: type: string type: object type: object description: OK '404': content: application/json; charset=utf-8: examples: response: value: error: message: Transaction Query Reason not found type: '404' schema: properties: error: properties: message: type: string type: type: string type: object type: object description: Not Found tags: - Transaction Query Reasons description: Delete a saved Transaction Query Reason for a Campaign. operationId: Delete a Transaction Query Reason summary: Delete a Transaction Query Reason for a Campaign /user/advertiser/{advertiser_id}/invoice: get: parameters: - description: ID of the Brand example: 10l110 in: path name: advertiser_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: invoices: - invoice: average_conversion_age: 14 campaign_id: 10l176 creation_date: '2015-12-14 22:58:25' currency: GBP download: null invoice_id: 1101l1536 invoice_net_value: 770.84 invoice_reference: I-10l176-1101l1536 invoice_total_value: 770.84 invoice_vat_value: 0 invoiced: All item_download: null merchant_invoice_id: null paid_currency: GBP payment_date: '' payment_due_by_date: '' payment_reference: null publisher_commission: 700.76 publisher_override: 70.08 set_end_date: '2015-12-09' set_start_date: '2015-08-30' set_timezone: Australia/Sydney status: created vat_rate: 0 schema: properties: invoices: items: $ref: '#/components/schemas/Invoice_Wrapper' type: array type: object description: OK tags: - Invoices description: View all Invoices that have been created. operationId: List all Invoices summary: List all Invoices /user/advertiser/{advertiser_id}/invoice/{invoice_id}: get: parameters: - description: ID of the Brand example: 10l110 in: path name: advertiser_id required: true schema: type: string - description: ID of the Invoice example: 1101l1536 in: path name: invoice_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: invoice: average_conversion_age: 14 campaign_id: 10l176 creation_date: '2015-12-14 22:58:25' currency: GBP download: null invoice_id: 1101l1536 invoice_net_value: 770.84 invoice_reference: I-10l176-1101l1536 invoice_total_value: 770.84 invoice_vat_value: 0 invoiced: All item_download: null merchant_invoice_id: null paid_currency: GBP payment_date: '' payment_due_by_date: '' payment_reference: null publisher_commission: 700.76 publisher_override: 70.08 set_end_date: '2015-12-09' set_start_date: '2015-08-30' set_timezone: Australia/Sydney status: created vat_rate: 0 schema: $ref: '#/components/schemas/Invoice_Wrapper' description: OK tags: - Invoices description: View an individual Invoice. operationId: Retrieve an Invoice summary: Retrieve an Invoice /campaign/{campaign_id}/custom_terms/: parameters: - name: campaign_id in: path description: ID of the campaign examples: - 10l176 required: true schema: type: string post: operationId: Create Custom Terms and Conditions tags: - Custom Terms and Conditions summary: Create Custom Terms and Conditions description: Creates Custom Terms and Conditions for a given campaign and associates them with the provided partners. requestBody: content: application/json: schema: $schema: http://json-schema.org/draft-04/schema# type: object properties: publisher_id: type: array description: a list of partner ids to associate with the custom terms and conditions. The list needs to contain at least one valid partner id. items: type: string title: type: string description: title of the custom terms and conditions terms: type: string description: the custom terms and conditions content locale: $ref: '#/components/schemas/Locale' required: - publisher_id - title - terms example: publisher_id: - '21' - '250001' - '3' - '300009' - 4d00ecdbe65e6 - 4d0122781f1f6 - 4d012e7a77288 title: Terms and conditions title terms: Terms and conditions content locale: pl responses: '201': description: Success content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Custom Terms Response allOf: - $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/get/responses/200/content/application~1json/schema/allOf/0' - properties: custom_terms: type: array items: $schema: http://json-schema.org/draft-04/schema title: Campaign Custom Terms and Conditions Entity type: object properties: campaign_custom_terms_and_conditions_id: type: string description: Entity id eg `111111l43` title: type: string description: Terms and conditions title terms: type: string description: Terms and conditions content created: type: string description: eg `2019-05-29 09:18:17` campaign_id: type: string description: ID of associated campaign eg `10l176` locale: $ref: '#/components/schemas/Locale' active: type: string description: '`y` or `n`' additionalProperties: false example: execution_time: 1.05973 seconds custom_terms: - campaign_custom_terms_and_conditions_id: 111111l43 title: Terms and conditions title terms: Terms and conditions content created: '2019-05-29 09:18:17' campaign_id: 10l176 locale: pl active: y '400': description: Validation Fail content: application/json: schema: $schema: http://json-schema.org/draft-04/schema title: Validation Errors type: object properties: error: properties: message: string type: string fields: type: array items: type: string example: error: message: Locale is invalid type: Validation Fail fields: - locale get: operationId: List Terms and Conditions for a given Campaign tags: - Custom Terms and Conditions summary: List All Custom Terms and Conditions for given campaign description: List All Custom Terms and Conditions for given campaign responses: '200': description: Success content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Custom Terms Response allOf: - $schema: http://json-schema.org/draft-04/schema type: object title: Custom Terms Empty Response properties: execution_time: type: string description: Script execution time eg `1.05973 seconds` custom_terms: type: array description: Data array additionalProperties: false - properties: custom_terms: type: array items: $schema: http://json-schema.org/draft-04/schema title: Campaign Custom Terms and Conditions Entity type: object allOf: - $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/post/responses/201/content/application~1json/schema/allOf/1/properties/custom_terms/items' - type: object properties: publishers: type: array items: type: string description: An array of publisher_id values eg `111111l43` additionalProperties: false example: execution_time: 1.05973 seconds custom_terms: - campaign_custom_terms_and_conditions_id: 111111l43 title: Terms and conditions title terms: Terms and conditions content created: '2019-05-29 09:18:17' campaign_id: 10l176 locale: pl active: y publishers: [] /campaign/{campaign_id}/custom_terms/{terms_id}?{download=true}: parameters: - name: campaign_id in: path description: ID of the campaign examples: - 10l176 required: true schema: type: string - name: terms_id in: path description: ID of Campaign Terms and Conditions examples: - 1111l123 required: true schema: type: string - name: download in: path description: Use this query string parameter to indicate the terms and conditions should be downloaded as a file examples: - true required: false schema: type: string get: operationId: readCustomTerms tags: - Campaign Terms and Conditions summary: Retrieve Campaign Terms and Conditions description: Retrieve the Campaign Terms and Conditions for a given Terms and Conditions id. You can download them by specifying the `download=true` query string parameter. responses: '200': description: Success content: application/json: schema: $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/post/responses/201/content/application~1json/schema' example: execution_time: 1.05973 seconds custom_terms: - campaign_custom_terms_and_conditions_id: 111111l43 title: Terms and conditions title terms: Terms and conditions content created: '2019-05-29 09:18:17' campaign_id: 10l176 locale: pl active: y /campaign/{campaign_id}/custom_terms/publisher/{publisher_id}: parameters: - name: campaign_id in: path description: ID of the campaign examples: - 10l176 required: true schema: type: string - name: publisher_id in: path description: ID of the Partner examples: - 10l176 required: true schema: type: string get: operationId: readPartnerCampaignCustomTerms tags: - Custom Terms and Conditions summary: List Partner's Terms and Conditions for a capaign. description: List Terms and Conditions for a Partner on the specified campaign. responses: '200': description: Success content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Custom Terms Response allOf: - $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/get/responses/200/content/application~1json/schema/allOf/0' - properties: custom_terms: type: array items: $schema: http://json-schema.org/draft-04/schema title: Campaign Custom Terms and Conditions Entity type: object allOf: - $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/post/responses/201/content/application~1json/schema/allOf/1/properties/custom_terms/items' - properties: publisher_id: type: string description: ID of a partner approved: type: string agreed_latest_terms: type: string status: type: string additionalProperties: false example: execution_time: 1.05973 seconds custom_terms: - campaign_custom_terms_and_conditions_id: 111111l43 title: Terms and conditions title terms: Terms and conditions content created: '2019-05-29 09:18:17' campaign_id: 10l176 locale: pl active: y publisher_id: '1' approved: 'null' agreed_latest_terms: n status: a /campaign/{campaign_id}/custom_terms/{custom_terms_id}: parameters: - name: campaign_id in: path description: ID of the Campaign examples: - 10l176 required: true schema: type: string - name: custom_terms_id in: path description: Id of the Campaign Terms and Conditions to delete examples: - 1111l123 required: true schema: type: string delete: operationId: deleteCampaignCustomTerms tags: - Custom Terms and Conditions summary: Delete specific Custom Terms and Conditions description: Delete Campaign Terms and Conditions for a given campaign. responses: '200': description: Success content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Custom Terms Response allOf: - $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/get/responses/200/content/application~1json/schema/allOf/0' - properties: custom_terms: type: array items: type: object properties: removed_terms: type: integer description: Number of deleted entities additionalProperties: false example: execution_time: 1.05973 seconds custom_terms: - removed_terms: 1 '404': description: Failure content: application/json: schema: $schema: http://json-schema.org/draft-04/schema title: Validation Errors type: object properties: error: type: object properties: message: type: string type: type: string example: error: message: Terms with given id (111111l3) does not exist type: '404' /campaign/{campaign_id}/custom_terms/custom_terms_id/association: parameters: - name: campaign_id in: path description: ID of the Campaign examples: - 10l176 required: true schema: type: string - name: custom_terms_id in: path description: ID of Campaign Terms and Conditions to associate with a list of Partners examples: - 1111l123 required: true schema: type: string post: operationId: createAssocCampaignCustomTerms tags: - Custom Terms and Conditions summary: Associate Custom Terms and Conditions with Partners description: Associate the Custom Terms and Conditions with a list of Partners. requestBody: content: application/json: schema: $schema: http://json-schema.org/draft-04/schema# type: object properties: publisher_id: type: array description: IDs of Partners items: type: string required: - publisher_id example: publisher_id: - 4d00ecdbe65e6 - 4d0122781f1f6 - 4d012e7a77288 responses: '200': description: Success content: application/json: schema: $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/get/responses/200/content/application~1json/schema' example: $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/get/responses/200/content/application~1json/example' '404': description: Failure content: application/json: schema: $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1%7Bcustom_terms_id%7D/delete/responses/404/content/application~1json/schema' example: $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1%7Bcustom_terms_id%7D/delete/responses/404/content/application~1json/example' delete: operationId: deleteAssocCampaignCustomTerms tags: - Custom Terms and Conditions summary: Remove associations between the Custom Terms and Conditions and Partners description: Remove associations between the Custom Terms and Conditions and a list of Partners. If all associations are removed successfully a `200 OK` status code response is returned. In the cases where there were errors a `207 Multi-status` response is returned and the body of the response will contain the list of errors for the failed ones. requestBody: content: application/json: schema: $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1custom_terms_id~1association/post/requestBody/content/application~1json/schema' example: publisher_id: - 4d00ecdbe65e6 - 4d0122781f1f6 - 4d012e7a77288 responses: '200': description: Success content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Custom Terms Response allOf: - $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/get/responses/200/content/application~1json/schema/allOf/0' - properties: custom_terms: type: array items: type: object properties: removed_associations: type: integer description: Number of deleted entities additionalProperties: false example: execution_time: 1.05973 seconds custom_terms: - removed_associations: 1 '207': description: Success content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Custom Terms Response allOf: - $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1/get/responses/200/content/application~1json/schema/allOf/0' - properties: custom_terms: type: array items: type: object properties: removed_associations: type: integer description: Number of deleted entities - $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1%7Bcustom_terms_id%7D/delete/responses/404/content/application~1json/schema' additionalProperties: false example: execution_time: 1.05973 seconds custom_terms: - removed_associations: 1 errors: - Terms with given id (111111l3) does not exist '404': description: Failure content: application/json: schema: $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1%7Bcustom_terms_id%7D/delete/responses/404/content/application~1json/schema' example: $ref: '#/paths/~1campaign~1%7Bcampaign_id%7D~1custom_terms~1%7Bcustom_terms_id%7D/delete/responses/404/content/application~1json/example' /v2/campaigns/{campaignId}/commissions: get: operationId: get-commissions tags: - Commissions summary: List Commissions description: 'This endpoint lists all upcoming and currently active standard commissions ' parameters: - in: path name: campaignId description: The ID of the campaign to list the commissions for required: true schema: type: string - in: query name: at description: The date and time to show active commissions for. If not set defaults to now. required: false schema: type: string format: date-time example: '2023-05-04T12:00:00+00:00' responses: '200': description: Commission List content: application/json: schema: type: object title: Commissions properties: count: type: integer minimum: 0 example: 1 commissions: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema' additionalProperties: false post: operationId: create-commission tags: - Commissions summary: Create Commission description: 'This endpoint creates a new commission ' parameters: - in: path name: campaignId description: The ID of the campaign to list the commissions for required: true schema: type: string requestBody: required: true content: application/json: schema: type: object title: Commissions Create properties: description: type: string maxLength: 300 start_date: type: string format: date-time description: The Start Date of the Commission end_date: type: - string - 'null' nullable: true format: date-time description: The End Date of the Commission commission_based_on_field: type: - string - 'null' nullable: true description: The tracking field used to calculate publisher commission default: value meta_fields: type: array items: title: Meta Fields oneOf: - title: Meta Field Rules allOf: - type: object title: Meta Field properties: name: type: string description: The name of the meta field example: category required: - name - type: object properties: rules: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/meta_fields/items/allOf/1/properties/rules/items' required: - rules - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/meta_fields/items' rates: type: array minItems: 1 items: type: object title: Commission Rate properties: id: type: string description: The ID of the Partner, Group or Campaign this commission is assigned to type: title: Commission Rate Types description: These values are internally managed and represent the level of the Commission type: string enum: - publisher - group - campaign performance_value: type: number minimum: 0 description: The value to be rewarded based on selected Performance Measurement performance_model: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/performance_model' cookie_period: type: integer minimum: 0 maximum: 31536000 description: The cookie period defined in seconds. If not specified, campaign default will be used. required: - id - type - performance_model - performance_value additionalProperties: false additionalProperties: false required: - description - start_date - rates responses: '201': description: Commission Create content: application/json: schema: properties: commission: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema' /v2/campaigns/{campaignId}/commissions/{commissionId}: parameters: - in: path name: campaignId description: The ID of the campaign the commission belongs to required: true schema: type: string - in: path name: commissionId description: The ID of the commission to retrieve required: true schema: type: string get: operationId: get-commission summary: Get Commission description: Get the given commission parameters: - in: query name: include description: 'The historical edits will be shown under the history.data attribute when set to ''history''. The endpoint will also return v1 Commissions when set to ''v1''" ' required: false schema: type: string enum: - history - v1 - in: query name: at description: The date and time to show active commissions for. If not set defaults to now. required: false schema: type: string format: date-time example: '2023-05-04T12:00:00+00:00' tags: - Commissions responses: '200': description: Commission Found content: application/json: schema: type: object title: Commission properties: commission: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema' history: type: object title: Commission History properties: data: type: array description: Audit data of the commission items: {} required: - data additionalProperties: false patch: operationId: update-commission summary: Update Commission description: 'Update the given commission. If it is currently active it will be retired and a new commission will be set up with the updated configuration. ' tags: - Commissions requestBody: content: application/json: schema: type: object title: Commission Update properties: description: type: string maxLength: 300 start_date: type: string format: date-time description: The Start Date of the Commission end_date: type: - string - 'null' nullable: true format: date-time description: The End Date of the Commission commission_based_on_field: type: - string - 'null' nullable: true description: The tracking field used to calculate partner commission default: value meta_fields: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions/post/requestBody/content/application~1json/schema/properties/meta_fields/items' rates: type: array minItems: 1 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions/post/requestBody/content/application~1json/schema/properties/rates/items' additionalProperties: false responses: '200': description: Commission Updated content: application/json: schema: properties: commission: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema' /v2/campaigns/{campaignId}/commissions/{commissionId}/migrate: post: operationId: migrate-commission tags: - Commissions summary: Migrate Commission description: 'This endpoint migrates a given V1 Commission to a V2 Commission ' parameters: - in: path name: campaignId description: The ID of the campaign the commission belongs to required: true schema: type: string - in: path name: commissionId description: The ID of the commission to migrate required: true schema: type: string responses: '200': description: Commission Migrated content: application/json: schema: properties: commission: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema' /v2/campaigns/{campaignId}/commissions/{commissionId}/retire: post: operationId: retire-commission tags: - Commissions summary: Retire Commission description: 'This endpoint retires a given Commission. ' parameters: - in: path name: campaignId description: The ID of the campaign the commission belongs to required: true schema: type: string - in: path name: commissionId description: The ID of the commission to retire required: true schema: type: string responses: '200': description: Commission Retired content: application/json: schema: type: object title: Commission properties: id: type: string description: The ID of the Commission description: type: string start_date: type: - string - 'null' nullable: true format: date-time description: The Start Date of the Commission end_date: type: - string - 'null' nullable: true format: date-time description: The End Date of the Commission last_modified: allOf: - type: object title: Last Modified By properties: id: type: string description: The ID of the user to last modify this item username: type: string description: The Username of the user to last modify this item date: type: string nullable: true format: date-time - description: The last modified details of the Commission commission_based_on_field: type: string description: The tracking field used to calculate partner commission meta_fields: type: array items: title: Meta Field Rules allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/meta_fields/items' - type: object properties: rules: type: array items: type: object title: Meta Field Rule description: Meta Field Rule with operator and values. example: operator: EQUALS value: clothing oneOf: - title: Exact Match properties: operator: description: Operator used to evaluate the meta field value is an exact match. type: string enum: - EQUALS example: EQUALS value: title: Meta Field Value description: Meta field matching value. type: - string - number - title: Contains properties: operator: description: Operator used to test the meta field value against part of a string or numeric value. type: string enum: - STARTS_WITH - ENDS_WITH - CONTAINS example: STARTS_WITH value: $ref: '#/paths/~1campaign~1%7BcampaignId%7D~1optimisation~1voucher~1commission/post/responses/200/content/application~1json/schema/properties/voucher_commission/properties/meta_fields/items/properties/rules/items/oneOf/0/properties/value' - title: Comparison properties: operator: description: Comparison operator used to test a numeric meta field value. Values are inclusive. type: string enum: - GREATER_THAN - LESS_THAN example: GREATER_THAN value: title: Meta Field Value description: Meta field matching value. type: number - title: Between properties: operator: description: Match the meta field value falls within the specified range. type: string enum: - BETWEEN value: description: The lower and upper bounds of the range as an array. Values are inclusive. minItems: 2 maxItems: 2 type: array items: title: Meta Field Value description: Meta field matching value. type: number example: - 0 - 50 - title: One Of properties: operator: description: Operator used to match against a set of values. The meta field value must exactly match one of the values in the array. type: string enum: - ONE_OF value: description: A list of values to match against. minItems: 1 type: array items: title: Meta Field Value description: Meta field matching value. type: string example: - accessories - clothing - shoes required: - operator - value required: - rules status: title: Commission Status description: These values are internally managed and represent the statue of the Commission type: string enum: - ACTIVE - RETIRED - DELETED - SCHEDULED rates: type: array items: type: object title: Commission Rate properties: id: type: string description: The ID of the Partner, Group or Campaign this commission is assigned to type: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions/post/requestBody/content/application~1json/schema/properties/rates/items/properties/type' name: type: string description: The name of the Partner or Group. In the case of Voucher commissions this will be Voucher Code performance_value: type: number description: The value to be rewarded based on selected Performance Measurement performance_model: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/performance_model' cookie_period: type: integer nullable: true minimum: 0 maximum: 31536000 description: The cookie period defined in seconds. If not specified, campaign default will be used. additionalProperties: false version: type: integer description: Commission version. Only applicable when requesting V1 commissions. required: - id - description - start_date - end_date - last_modified - meta_fields - status - rates '204': description: Commission Deleted /v2/campaigns/{campaignId}/commissions/all.csv: get: operationId: get-commission-csv-download tags: - Commissions CSV Download description: 'Request a CSV for a Commission report which includes all individual items defined for the Campaign. Each item represents a commission type of default, standard, promotional or voucher commission and rates. ' summary: CSV Download. parameters: - in: path name: campaignId description: The ID of the campaign for the commissions required: true schema: type: string - in: query name: start_date_time description: Limits list to commissions active at/from this date required: false schema: type: string format: datetime - in: query name: end_date_time description: Limits list to commissions active until this date required: false schema: type: string format: datetime - in: query name: type description: Limits list to commissions of specified types required: false schema: type: string enum: - default - standard - promotional - voucher - in: query name: status description: Limits list to commissions with specified status required: false schema: type: string enum: - retired - active - scheduled responses: '200': description: Commissions CSV Download content: text/csv: examples: response: value: 'commission_group_id,commission_id,commission_type,scope,campaign_id,group_id,group_name,publisher_id,publisher_name,voucher_id,voucher_code,group_limit,start_date_time,end_date_time,status,name,performance_model,commission,commission_based_on_field,cookie_period_seconds,dynamic_sut,created,created_by_id,created_by_name,last_modified,last_modified_by,last_modified_by_name 1111111l1,1111111l3,promotional,publisher,,,,111111l9,test_publisher,,,,"2023-05-05 16:00:00","2023-09-30 00:00:00",ACTIVE,"Test Promotional Commission","% CPA",10.0000,,,,,,,,promosku,,,,avalue,"2023-05-05 14:46:54",111111l1,user_name,"2023-05-05 14:46:54",111111l1,user_name ' /v2/campaigns/{campaignId}/commissions/promotions: get: operationId: get-promotional-commissions tags: - Promotional Commissions summary: List Promotional Commissions description: 'This endpoint lists all active and scheduled promotional commissions for the given campaign. ' parameters: - in: path name: campaignId description: The ID of the campaign to list the promotional commissions for required: true schema: type: string - in: query name: at description: Check the promotional commissions for a given moment required: false example: '2021-07-02T12:00:00+01:00' schema: type: string responses: '200': description: Promotional Commission List content: application/json: schema: type: object title: Promotional Commissions properties: promotions: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/responses/201/content/application~1json/schema/properties/promotion' post: operationId: create-promotional-commission tags: - Promotional Commissions summary: Create Promotional Commission description: 'This creates a new promotional commission for the given campaign ' parameters: - in: path name: campaignId description: The ID of the campaign to create the promotional commission for required: true schema: type: string requestBody: required: true content: application/json: schema: type: object title: Promotional Commission properties: description: type: string performance_value: type: number description: The value to be rewarded based on selected Performance Measurement performance_model: title: Performance Model description: Model used to calculate Partner commission type: string enum: - fixed_cpa - percentage_cpa - cpc start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The Start Date of the Promotional Commission end_date: allOf: - title: Date Time type: string nullable: true pattern: ^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}|null)$ - description: The End Date of the Promotional Commission cookie_period: type: integer minimum: 0 maximum: 31536000 description: The cookie period defined in seconds commission_based_on_field: type: string description: The tracking field used to calculate partner commission meta_fields: type: array items: type: object title: Meta Field Values description: Meta Field with assigned values allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions/post/requestBody/content/application~1json/schema/properties/meta_fields/items/oneOf/0/allOf/0' - properties: values: description: An array of the values of a meta field type: array items: type: string title: Meta Field Value example: - clothing required: - values publishers: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/publishers/items' groups: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/groups/items' additionalProperties: false required: - performance_value - performance_model - start_date responses: '201': description: Promotional Commission Created content: application/json: schema: type: object properties: promotion: type: object title: Promotional Commission properties: id: type: string description: type: string performance_value: type: number description: The value to be rewarded based on selected Performance Measurement performance_model: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/performance_model' last_modified_by: type: string last_modified: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The date on which the commission was last modified start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The Start Date of the Promotional Commission end_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The End Date of the Promotional Commission cookie_period: type: integer description: The cookie period defined in seconds commission_based_on_field: type: string description: The tracking field used to calculate partner commission. This field will only be returned when Commission By Meta is enabled meta_fields: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/meta_fields/items' publishers: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier/properties/publishers/items' groups: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier/properties/groups/items' status: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/status' required: - id - description - performance_value - performance_model - last_modified_by - last_modified - start_date - end_date - cookie_period - meta_fields - publishers - groups - status /campaign/{campaignId}/optimisation/voucher/commission: get: operationId: get-voucher-commissions tags: - Voucher Commissions summary: List Voucher Commissions description: 'This endpoint lists all active and scheduled Voucher commissions for the given campaign. ' parameters: - in: path name: campaignId description: The ID of the campaign to list the Voucher commissions for required: true example: 11111l1 schema: type: string - in: query name: at description: Check the Voucher commissions for a given moment required: false example: '2021-07-02T12:00:00+01:00' schema: type: string responses: '200': description: Voucher Commission List content: application/json: schema: title: Voucher List Response type: object description: Voucher List Object example: count: '1' execution_time: 0.30000 seconds voucher_commissions: - description: example end_date: '2023-10-01 00:00:00' group_limit: id: 111111l1 name: example id: 111111l1 last_modified: '2023-10-01 00:00:00' last_modified_by: 111111l1 meta_fields: - name: sku value: - '1' weight: 1 performance_model: fixed_cpa performance_value: 20 start_date: '2023-10-01 00:00:00' status: SCHEDULED voucher_codes: - code: example-code description: example end_date: '2023-10-01 00:00:00' id: 111111l1 start_date: '2023-10-01 00:00:00' groups: - id: 111111l1 name: example properties: count: type: integer execution_time: type: string voucher_commissions: type: array items: type: object title: Voucher Commission properties: description: type: string end_date: type: string format: date-time group_limit: type: - object - 'null' properties: id: type: string name: type: string id: type: string last_modified: type: string format: date-time last_modified_by: type: string format: date-time meta_fields: type: - array - 'null' items: type: object properties: name: type: string value: type: - string - integer weight: type: integer rules: type: array items: type: object $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/meta_fields/items/allOf/1/properties/rules/items' performance_model: type: string performance_value: type: number start_date: type: string format: date-time status: type: string voucher_codes: type: array items: type: object properties: code: type: string description: type: - string - 'null' end_date: type: - string - 'null' format: date-time id: type: string start_date: type: string format: date-time groups: type: - array - 'null' items: type: object properties: id: type: string name: type: string post: operationId: post-voucher-commission tags: - Voucher Commissions summary: Create Voucher Commission description: This endpoint saves a given Voucher Commission parameters: - in: path name: campaignId description: The ID of the campaign the voucher commission belongs to required: true example: 11111l1 schema: type: string requestBody: required: true content: application/json: schema: title: Voucher Commission type: object example: description: example end_date: '2023-10-01 00:00:00' start_date: '2023-10-01 00:00:00' group_limit_id: 111111l1 meta_fields: - name: sku value: '1' performance_model: fixed_cpa performance_value: 20 voucher_codes: - 111111l1 - 111111l2 properties: description: type: - string - 'null' start_date: type: string format: date-time end_date: type: - string - 'null' format: date-time group_limit_id: type: - string - 'null' meta_fields: type: array items: type: object properties: name: type: string value: type: - string - integer voucher_codes: type: array items: type: string performance_value: type: integer performance_model: type: string responses: '200': description: Save Voucher Commission content: application/json: schema: title: Voucher Commission type: object example: execution_time: 0.30000 seconds voucher_commission: description: example end_date: '2023-10-01 00:00:00' group_limit: id: 111111l1 name: example id: 111111l1 last_modified: '2023-10-01 00:00:00' last_modified_by: 111111l1 meta_fields: - name: sku value: - '1' weight: 1 rules: - operator: EQUALS value: '1' performance_model: fixed_cpa performance_value: 20 start_date: '2020-01-01 00:00:00' status: SCHEDULED voucher_codes: - code: example-code description: example end_date: '2023-10-01 00:00:00' id: 111111l1 start_date: '2023-10-01 00:00:00' groups: - id: 111111l1 name: example properties: execution_time: type: string voucher_commission: type: object $ref: '#/paths/~1campaign~1%7BcampaignId%7D~1optimisation~1voucher~1commission/get/responses/200/content/application~1json/schema/properties/voucher_commissions/items' /campaign/{campaignId}/optimisation/voucher/commission/{commissionId}: get: operationId: get-voucher-commission tags: - Voucher Commissions summary: Show Voucher Commissions description: 'This endpoint shows an active or scheduled Voucher commission for the given campaign. ' parameters: - in: path name: campaignId description: The ID of the campaign to list the Voucher commissions for required: true example: 11111l1 schema: type: string - in: path name: commissionId description: The ID of the commission to edit the Voucher commissions for required: true example: 11111l1 schema: type: string responses: '200': description: Voucher Commission Edit content: application/json: schema: title: Voucher Show Response type: object description: Voucher Show Object example: execution_time: 0.30000 seconds voucher_commission: description: example end_date: '2023-10-01 00:00:00' group_limit: id: 111111l1 name: example id: 111111l1 last_modified: '2023-10-01 00:00:00' last_modified_by: 111111l1 meta_fields: - name: sku value: - '1' weight: 1 performance_model: fixed_cpa performance_value: 20 start_date: '2023-10-01 00:00:00' status: SCHEDULED voucher_codes: - code: example-code description: example end_date: '2023-10-01 00:00:00' id: 111111l1 start_date: '2023-10-01 00:00:00' groups: - id: 111111l1 name: example properties: execution_time: type: string voucher_commission: type: object $ref: '#/paths/~1campaign~1%7BcampaignId%7D~1optimisation~1voucher~1commission/get/responses/200/content/application~1json/schema/properties/voucher_commissions/items' put: operationId: get-voucher-commissions tags: - Voucher Commissions summary: Edit Voucher Commissions description: 'This endpoint edits all active and scheduled Voucher commission for the given campaign. ' parameters: - in: path name: campaignId description: The ID of the campaign to list the Voucher commissions for required: true example: 11111l1 schema: type: string - in: path name: commissionId description: The ID of the commission to edit the Voucher commissions for required: true example: 11111l1 schema: type: string requestBody: required: true content: application/json: schema: title: Voucher Commission type: object example: description: example end_date: '2023-10-01 00:00:00' start_date: '2023-10-01 00:00:00' meta_fields: - name: sku value: '1' performance_model: fixed_cpa performance_value: 20 voucher_codes: - 111111l1 - 111111l2 properties: description: type: - string - 'null' start_date: type: string format: date-time end_date: type: - string - 'null' format: date-time meta_fields: type: array items: type: object properties: name: type: string values: type: - string - integer performance_value: type: number performance_model: type: string voucher_codes: type: array items: type: string responses: '200': description: Voucher Commission Edit content: application/json: schema: title: Voucher Edit Response type: object description: Voucher Edit Object example: execution_time: 0.30000 seconds voucher_commission: description: example end_date: '2023-10-01 00:00:00' group_limit: id: 111111l1 name: example id: 111111l1 last_modified: '2023-10-01 00:00:00' last_modified_by: 111111l1 meta_fields: - name: sku value: - '1' weight: 1 performance_model: fixed_cpa performance_value: 20 start_date: '2023-10-01 00:00:00' status: SCHEDULED voucher_codes: - code: example-code description: example end_date: '2023-10-01 00:00:00' id: 111111l1 start_date: '2023-10-01 00:00:00' groups: - id: 111111l1 name: example properties: execution_time: type: string voucher_commission: type: object $ref: '#/paths/~1campaign~1%7BcampaignId%7D~1optimisation~1voucher~1commission/get/responses/200/content/application~1json/schema/properties/voucher_commissions/items' delete: operationId: delete-voucher-commission tags: - Voucher Commissions summary: Delete Scheduled Voucher Commission description: This endpoint deletes a scheduled Voucher Commission. Active Voucher Commissions should be retired. parameters: - in: path name: campaignId description: The ID of the campaign the voucher commission belongs to required: true example: 11111l1 schema: type: string - in: path name: commissionId description: The ID of the commission to retire the Voucher commissions for required: true example: 11111l1 schema: type: string responses: '200': description: Delete scheduled Voucher Commission content: application/json: schema: title: Delete Active Voucher Commission type: object example: execution_time: 0.30000 seconds voucher_commission: description: example end_date: '2023-10-01 00:00:00' group_limit: id: 111111l1 name: example id: 111111l1 last_modified: '2023-10-01 00:00:00' last_modified_by: 111111l1 meta_fields: - name: sku value: - '1' weight: 1 performance_model: fixed_cpa performance_value: 20 start_date: '2023-10-01 00:00:00' status: DELETED voucher_codes: - code: example-code description: example end_date: '2023-10-01 00:00:00' id: 111111l1 start_date: '2023-10-01 00:00:00' groups: - id: 111111l1 name: example properties: execution_time: type: string voucher_commission: type: object $ref: '#/paths/~1campaign~1%7BcampaignId%7D~1optimisation~1voucher~1commission/get/responses/200/content/application~1json/schema/properties/voucher_commissions/items' '400': description: Delete active Voucher Commission content: application/json: schema: title: Retire Scheduled Voucher Commission type: object example: errors: - type: Validation Exception messages: commission_not_active: Voucher Commission status must be 'SCHEDULED' errors_count: 1 properties: errors_count: integer errors: type: array items: type: object properties: type: type: string messages: type: object properties: commission_not_active: commission_not_active: string /campaign/{campaignId}/optimisation/voucher/commission/{commissionId}/retire: post: operationId: retire-voucher-commission tags: - Voucher Commissions summary: Retire Active Voucher Commission description: This endpoint retires an active Voucher Commission. Scheduled Voucher Commissions should be deleted. parameters: - in: path name: campaignId description: The ID of the campaign the voucher commission belongs to required: true example: 11111l1 schema: type: string - in: path name: commissionId description: The ID of the commission to retire the Voucher commissions for required: true example: 11111l1 schema: type: string responses: '200': description: Retire active Voucher Commission content: application/json: schema: title: Delete Active Voucher Commission type: object example: execution_time: 0.30000 seconds voucher_commission: description: example end_date: '2023-10-01 00:00:00' group_limit: id: 111111l1 name: example id: 111111l1 last_modified: '2023-10-01 00:00:00' last_modified_by: 111111l1 meta_fields: - name: sku value: - '1' weight: 1 performance_model: fixed_cpa performance_value: 20 start_date: '2023-10-01 00:00:00' status: RETIRED voucher_codes: - code: example-code description: example end_date: '2023-10-01 00:00:00' id: 111111l1 start_date: '2023-10-01 00:00:00' groups: - id: 111111l1 name: example properties: execution_time: type: string voucher_commission: type: object $ref: '#/paths/~1campaign~1%7BcampaignId%7D~1optimisation~1voucher~1commission/get/responses/200/content/application~1json/schema/properties/voucher_commissions/items' '400': description: Retire scheduled Voucher Commission content: application/json: schema: title: Retire Active Voucher Commission type: object example: errors: - type: Validation Exception messages: commission_not_active: Voucher Commission status must be 'ACTIVE' errors_count: 1 properties: errors_count: integer errors: type: array items: type: object properties: type: type: string messages: type: object properties: commission_not_active: commission_not_active: string /v2/campaigns/{campaignId}/commissions/promotions/{promotionalId}: get: operationId: get-promotional-commission tags: - Promotional Commissions summary: Get Promotional Commission description: 'This endpoint returns the promotional commission for the given campaign and promotional commission ID. ' parameters: - in: path name: campaignId description: The ID of the campaign the promotional commission belongs to required: true schema: type: string - in: path name: promotionalId description: The ID of the promotional commission to retrieve required: true schema: type: string - in: query name: include description: The historical edits will be shown under the history.data attribute when set to 'history'. required: false schema: type: string enum: - history responses: '200': description: Promotional Commission content: application/json: schema: type: object title: Promotional Commission properties: promotion: type: object $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/responses/201/content/application~1json/schema/properties/promotion' history: type: object title: Promotional Commission History properties: data: type: array description: Audit data of the commission items: {} required: - data delete: operationId: delete-promotional-commission tags: - Promotional Commissions summary: Delete Promotional Commission description: 'This endpoint deletes a given Promotional Commission ' parameters: - in: path name: campaignId description: The ID of the campaign the promotional commission belongs to required: true schema: type: string - in: path name: promotionalId description: The ID of the promotional commission to delete required: true schema: type: string responses: '200': description: Promotional Commission Deleted patch: operationId: update-promotional-commission tags: - Promotional Commissions summary: Modify Promotional Commission description: 'Modifies the promotional commission for the given commission ID and campaign ' parameters: - in: path name: campaignId description: The ID of the campaign to update the promotional commission for required: true schema: type: string - in: path name: promotionalId description: The ID of the promotional commission to update required: true schema: type: string requestBody: required: true content: application/json: schema: type: object title: Promotional Commission properties: id: type: string description: type: string nullable: true performance_value: type: number description: The value to be rewarded based on selected Performance Measurement performance_model: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/performance_model' start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The Start Date of the Promotional Commission end_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/end_date/allOf/0' - description: The End Date of the Promotional Commission cookie_period: type: integer nullable: true minimum: 0 maximum: 31536000 description: The cookie period defined in seconds commission_based_on_field: type: string description: The tracking field used to calculate partner commission meta_fields: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/meta_fields/items' publishers: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/publishers/items' groups: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/groups/items' additionalProperties: false responses: '200': description: Promotional Commission Updated content: application/json: schema: type: object properties: promotion: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/responses/201/content/application~1json/schema/properties/promotion' /v2/campaigns/{campaignId}/commissions/promotions/{promotionalId}/retire: post: operationId: retire-promotional-commission tags: - Promotional Commissions summary: Retire Promotional Commission description: 'This endpoint retires a given Promotional Commission ' parameters: - in: path name: campaignId description: The ID of the campaign the promotional commission belongs to required: true schema: type: string - in: path name: promotionalId description: The ID of the promotional commission to retire required: true schema: type: string responses: '200': description: Promotional Commission Retired content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions~1%7BpromotionalId%7D/get/responses/200/content/application~1json/schema' /v2/campaigns/{campaignId}/commissions/tiers: get: operationId: get-commission-tiers tags: - Tiers summary: List Commission Tiers description: 'This endpoint lists all upcoming and currently active commission tiers for the given campaign. ' parameters: - in: path name: campaignId description: The ID of the campaign to list the commission tiers for required: true schema: type: string responses: '200': description: Commission Tier List content: application/json: schema: type: object title: Commission Tiers properties: tiers: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier' post: operationId: create-commission-tier tags: - Tiers summary: Create Commission Tier description: 'This creates a new commission tier for the given campaign ' parameters: - in: path name: campaignId description: The ID of the campaign to create the commission tier for required: true schema: type: string requestBody: required: true content: application/json: schema: type: object title: Commission Tier properties: id: type: string name: type: string start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The Start Date of the Commission Tier end_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The End Date of the Commission Tier evaluation_period: type: integer description: The earliest number of seconds after the end date the Commission Tier will be rewarded. Maximum length is 86,399,999 seconds, or rather, less than 1000 days exactly minimum: 0 maximum: 86399999 reward_pending: allOf: - title: Reward Pending description: If enabled, pending conversion items can also be rewarded. type: boolean enum: - true - false - description: Will pending conversion items be rewarded reward_model: title: Reward Model description: Model used to calculate Partner rewards type: string enum: - fixed_reward - fixed_cpa - percentage_cpa performance_measurement: title: Performance Measurement description: The measurement used to calculate Partners performance type: string enum: - total_items - total_revenue meta_fields: type: array items: type: object title: Meta Field Value description: Meta Field with an assigned value allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions/post/requestBody/content/application~1json/schema/properties/meta_fields/items/oneOf/0/allOf/0' - properties: value: description: The value of meta field to look for required: - value levels: type: array minItems: 1 description: An array of Commission Tier Levels. Each Commission Tier Level's threshold must be unique. items: type: object title: Commission Tier Level properties: threshold: description: The minimum amount to be considered for this Commission Tier Level. Used in calculating Performance type: number minimum: 0.01 bonus_value: description: The amount rewarded to Partners that reach this Commission Tier Level, based on Reward Model type: number minimum: 0.01 required: - threshold - bonus_value publishers: type: array minItems: 0 items: type: string title: Partner ID groups: type: array minItems: 0 items: type: string title: Group ID additionalProperties: false required: - name - start_date - end_date - evaluation_period - reward_pending - reward_model - performance_measurement - meta_fields - levels responses: '201': description: Tier Created content: application/json: schema: type: object properties: tier: type: object title: Commission Tier properties: id: type: string name: type: string start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The Start Date of the Commission Tier end_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The End Date of the Commission Tier evaluation_period: type: integer description: The earliest number of seconds after the end date the Commission Tier will be rewarded. Maximum length is 86,399,999 seconds, or rather, less than 1000 days exactly minimum: 0 maximum: 86399999 reward_pending: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/reward_pending/allOf/0' - description: Which approval statuses to reward reward_model: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/reward_model' performance_measurement: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/performance_measurement' meta_fields: type: array items: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1meta-fields/get/responses/200/content/application~1json/schema/properties/meta_fields/items/allOf/0' - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/meta_fields/items' levels: type: array minItems: 1 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/levels/items' publishers: type: array minItems: 0 items: type: object title: Partner properties: id: type: string name: type: string required: - id - name groups: type: array minItems: 0 items: type: object title: Partner Group properties: id: type: string name: type: string required: - id - name status: title: Commission Tier Status description: These values are internally managed and represent the statue of the Commission Tier type: string enum: - ACTIVE - COMPLETED - DELETED - SCHEDULED required: - name - start_date - end_date - evaluation_period - reward_pending - reward_model - performance_measurement - meta_fields - levels - publishers - groups - status /v2/campaigns/{campaignId}/commissions/tiers/{tierId}: delete: operationId: delete-commission-tier tags: - Tiers summary: Delete Commission Tier description: 'This endpoint deletes a given Commission Tier ' parameters: - in: path name: campaignId description: The ID of the campaign to list the commission tiers for required: true schema: type: string - in: path name: tierId description: The ID of the commission tier to delete required: true schema: type: string responses: '204': description: Commission Tier Deleted patch: operationId: update-commission-tier tags: - Tiers summary: Modify Commission Tier description: 'Modifies the commission tier for the given tier ID and campaign ' parameters: - in: path name: campaignId description: The ID of the campaign to update the commission tier for required: true schema: type: string - in: path name: tierId description: The ID of the tier to update required: true schema: type: string requestBody: required: true content: application/json: schema: type: object title: Commission Tier properties: name: type: string start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The Start Date of the Commission Tier end_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The End Date of the Commission Tier evaluation_period: type: integer description: The earliest number of seconds after the end date the Commission Tier will be rewarded. Maximum length is 86,399,999 seconds, or rather, less than 1000 days exactly minimum: 0 maximum: 86399999 reward_pending: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/reward_pending/allOf/0' - description: Will pending conversion items be rewarded reward_model: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/reward_model' performance_measurement: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/performance_measurement' meta_fields: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/meta_fields/items' levels: type: array minItems: 1 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/levels/items' publishers: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/publishers/items' groups: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/groups/items' additionalProperties: false responses: '200': description: Tier Updated content: application/json: schema: type: object properties: tier: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier' /v2/campaigns/{campaignId}/publishers/{publisherId}/commissions: get: operationId: get-publisher-commissions tags: - Partner Commissions summary: Get Partner Commissions description: Get Partner Commissions. Active and Scheduled Commissions will be returned parameters: - in: path name: campaignId description: The ID of the campaign for which to get partner commission rates required: true schema: type: string - in: path name: publisherId description: The ID of a partner on a campaign required: true schema: type: string - in: query name: status description: Retrieve Commissions with a specifc Status required: false schema: type: string enum: - scheduled - in: query name: type description: Retrieve Commissions of a specific Commission Type required: false schema: type: string enum: - default - campaign responses: '200': description: Partner Commissions Returned content: application/json: schema: type: object properties: commissions: type: array items: anyOf: - type: object title: Partner Commission properties: id: type: - string - 'null' nullable: true description: The ID of the Commission type: title: Commission Types description: These values represent the type of Commission being returned type: string enum: - default - campaign - promotional - voucher description: type: string start_date: type: - string - 'null' nullable: true format: date-time description: The Start Date of the Commission end_date: type: - string - 'null' nullable: true format: date-time description: The End Date of the Commission commission_based_on_field: type: string description: The tracking field used to calculate partner commission status: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/status' meta_fields: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/meta_fields/items' rates: type: array items: type: object title: Commission Rate properties: id: type: string description: The ID of the Partner, Group or Campaign this commission is assigned to scope: title: Commission Rate Scopes description: These values represent the Scope of the Commission. Used to determine commission overrides. type: string enum: - publisher - group - campaign - voucher name: type: string description: The name of the Partner, Group or Campaign. In the case of Voucher commissions this will be the Voucher Code performance_value: type: number description: The value to be rewarded based on selected Performance Measurement performance_model: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/performance_model' cookie_period: type: - integer - 'null' nullable: true minimum: 0 maximum: 31536000 description: The cookie period defined in seconds. If not specified, campaign default will be used. additionalProperties: false required: - id - scope - name - performance_value - performance_model - cookie_period minItems: 1 required: - id - type - description - start_date - end_date - status - meta_fields - rates - type: object title: Commission Tier properties: id: type: string name: type: string type: type: string enum: - tier scope: title: Commission Tier Scope description: These values are internally managed and represent the scope of the commission tier type: string enum: - publisher - group - campaign start_date: type: - string - 'null' nullable: true format: date-time description: The Start Date of the Commission Tier end_date: type: - string - 'null' nullable: true format: date-time description: The End Date of the Commission Tier performance_model: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/reward_model' performance_measurement: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/performance_measurement' status: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier/properties/status' meta_fields: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/meta_fields/items' levels: type: array minItems: 1 description: An array of Commission Tier Levels. items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/levels/items' additionalProperties: false required: - id - name - type - scope - start_date - end_date - performance_model - performance_measurement - status - meta_fields - levels /v2/campaigns/{campaignId}/publishers/{publisherId}/commissions/default: get: operationId: get-publisher-commissions-default tags: - Partner Commissions summary: Get Partner Default Commissions description: Get Partner Default Commissions parameters: - in: path name: campaignId description: The ID of the campaign for which to get partner commission rates required: true schema: type: string - in: path name: publisherId description: The ID of a Partner on a campaign required: true schema: type: string responses: '200': description: Partner Default Commissions Returned content: application/json: schema: type: object properties: description: type: string performance_value: type: string performance_model: type: string last_modified_by: type: string last_modified: type: string title: Date Time pattern: ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$ publishers: type: object properties: id: type: string performance_value: type: string name: type: string groups: type: object properties: id: type: string performance_value: type: string name: type: string examples: Commission: value: description: The Default Commission performance_value: '2.5' performance_model: fixed_cpa last_modified_by: '3' last_modified: '2010-01-01 12:30:00' publishers: id: 10110l2398476 performance_value: '3.25' name: Best Partner groups: id: 111001l90872354 performance_value: '3.75' name: Special Group /v2/campaigns/{campaignId}/publishers/{publisherId}/commissions/campaign: get: operationId: get-publisher-commissions-campaign tags: - Partner Commissions summary: List Partner Commissions For Specific Campaign description: 'This endpoint lists partner commissions for the given partner and campaign. ' parameters: - in: path name: publisherId description: The ID of the Partner to list commissions for required: true schema: type: string - in: path name: campaignId description: The ID of the campaign to list the Partner commissions for required: true schema: type: string responses: '200': description: Partner Commissions List content: application/json: schema: type: object properties: commissions: type: array items: type: object properties: id: type: string description: type: string performance_value: type: number description: The amount to be paid to the partner for commission. Must be greater than 0. Will be rounded to 2 decimal places. minimum: 0.01 performance_model: type: string description: The performance model by which the partner is rewarded. enum: - cpc - fixed_cpa - percentage_cpa start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' end_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' status: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/status' meta_fields: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/meta_fields/items' last_modified: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' - description: The date the campaign was last updated last_modified_by: type: string description: ID of the most recent user to modify this record. cookie_period: type: number description: Period tracking cookie will remain on users device. commission_based_on_field: type: string /v2/campaigns/{campaignId}/publishers/{publisherId}/commissions/voucher: get: operationId: get-publisher-commissions-voucher tags: - Partner Commissions summary: List Partner Voucher Commissions For Specific Campaign description: 'This endpoint lists partner voucher commissions for the given partner and campaign. ' parameters: - in: path name: publisherId description: The ID of the partner to list commissions for required: true schema: type: string - in: path name: campaignId description: The ID of the campaign to list the partner commissions for required: true schema: type: string responses: '200': description: Partner Voucher Commissions List content: application/json: schema: type: object properties: voucher_commissions: type: array items: type: object properties: id: type: string description: type: string performance_value: type: number description: The amount to be paid to the partner for commission. Must be greater than 0. Will be rounded to 2 decimal places. minimum: 0.01 performance_model: type: string description: The performance model by which the partner is rewarded. enum: - cpc - fixed_cpa - percentage_cpa start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' end_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' status: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/status' meta_fields: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/requestBody/content/application~1json/schema/properties/meta_fields/items' last_modified: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' last_modified_by: type: string description: ID of the most recent user to modify this record. voucher_codes: type: array minItems: 0 description: Voucher code details associated with this voucher commission items: type: object properties: id: type: string code: type: string description: type: string start_date: type: string end_date: type: string groups: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier/properties/groups/items' commission_based_on_field: type: string /v2/campaigns/{campaignId}/publishers/{publisherId}/commissions/promotion: get: operationId: get-publisher-commissions-promotion tags: - Partner Commissions summary: List Partner Promotional Commissions For Specific Campaign description: 'This endpoint lists partner promotional commissions for the given partner and campaign. ' parameters: - in: path name: publisherId description: The ID of the Partner to list commissions for required: true schema: type: string - in: path name: campaignId description: The ID of the campaign to list the Partner commissions for required: true schema: type: string responses: '200': description: Partner Promotional Commissions List content: application/json: schema: type: object properties: promotions: type: array items: type: object properties: id: type: string description: type: string performance_value: type: number description: The amount to be paid to the partner for commission. Must be greater than 0. Will be rounded to 2 decimal places. minimum: 0.01 performance_model: type: string description: The performance model by which the partner is rewarded. enum: - cpc - fixed_cpa - percentage_cpa start_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' end_date: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' cookie_period: type: number description: Period tracking cookie will remain on users device. commission_based_on_field: type: string status: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/status' meta_fields: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/meta_fields/items' publishers: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier/properties/publishers/items' groups: type: array minItems: 0 items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier/properties/groups/items' last_modified: allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1default/get/responses/200/content/application~1json/schema/properties/last_modified' last_modified_by: type: string description: ID of the most recent user to modify this record. /v2/campaigns/{campaignId}/publishers/{publisherId}/commissions/tier: get: operationId: get-publisher-commissions-tier tags: - Partner Commissions summary: List Partner Tiered Commissions For Specific Campaign description: 'This endpoint lists partner tiered commissions for the given partner and campaign. ' parameters: - in: path name: publisherId description: The ID of the Partner to list commissions for required: true schema: type: string - in: path name: campaignId description: The ID of the campaign to list the Partner commissions for required: true schema: type: string responses: '200': description: Partner Tiered Commissions List content: application/json: schema: type: object properties: tiers: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1tiers/post/responses/201/content/application~1json/schema/properties/tier' /v2/campaigns/{campaignId}/publishers/{publisherId}/commissions/active: get: operationId: get-active-publisher-commissions tags: - Partner Commissions summary: List Active Partner Commissions description: 'This endpoint lists all active commissions including default, standard, voucher and promotional commissions for a partner a campaign ' parameters: - in: path name: campaignId description: The ID of the campaign to list the commissions for required: true schema: type: string - in: path name: publisherId description: The ID of a Partner on a campaign required: true schema: type: string - in: query name: at description: The date and time to show the active commissions for. If not set defaults to now. required: false schema: type: string format: date-time responses: '200': description: Partner Active Commissions List content: application/json: schema: type: object properties: active_commissions: type: array items: anyOf: - type: object title: Active Partner Commissions properties: id: type: string description: The ID of the Commission type: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions/get/responses/200/content/application~1json/schema/properties/commissions/items/anyOf/0/properties/type' description: type: string start_date: type: string nullable: true format: date-time description: The Start Date of the Commission end_date: type: string nullable: true format: date-time description: The End Date of the Commission commission_based_on_field: type: string description: The tracking field used to calculate partner commission status: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/status' meta_fields: type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1%7BcommissionId%7D~1retire/post/responses/200/content/application~1json/schema/properties/meta_fields/items' rates: type: array items: type: object title: Commission Rate properties: id: type: string description: The ID of the Partner, Group or Campaign this commission is assigned to scope: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions/get/responses/200/content/application~1json/schema/properties/commissions/items/anyOf/0/properties/rates/items/properties/scope' name: type: string description: In the case of Voucher commissions this will be the Voucher Code performance_value: type: number description: The value to be rewarded based on selected Performance Measurement performance_model: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions~1promotions/post/requestBody/content/application~1json/schema/properties/performance_model' cookie_period: type: - integer - 'null' nullable: true minimum: 0 maximum: 31536000 description: The cookie period defined in seconds. If not specified, campaign default will be used. Cookie Period will not be returned for Voucher Commissions. additionalProperties: false required: - id - scope - performance_value - performance_model minItems: 1 - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions/get/responses/200/content/application~1json/schema/properties/commissions/items/anyOf/1' /v2/campaigns/{campaignId}/meta-fields: get: operationId: get-meta-fields tags: - Meta Fields summary: List Campaign Meta Fields description: 'Determine the meta fields available when filtering commissions. This endpoint returns either the default set of meta fields, or a custom set which replaces the default fields. ' parameters: - in: path name: campaignId description: The ID of the campaign to list the commission tiers for required: true schema: type: string responses: '200': description: Meta Field List content: application/json: schema: type: object title: Meta Fields properties: meta_fields: type: array items: allOf: - type: object title: Meta Field Weight description: Meta Field with weight allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1commissions/post/requestBody/content/application~1json/schema/properties/meta_fields/items/oneOf/0/allOf/0' - type: object properties: weight: type: number description: The weight of the meta field required: - weight /v2/campaigns/{campaignId}/commissions/tiers/meta-fields: get: operationId: get-tier-meta-fields tags: - Meta Fields summary: List Tier Meta Fields description: 'Returns the meta fields available when defining commission tiers. This endpoint returns campaign meta fields, plus meta fields that can be used to refine commission tiers, but not commission rates. ' parameters: - in: path name: campaignId description: The ID of the campaign to list the commission tiers for required: true schema: type: string responses: '200': description: Meta Field List content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1meta-fields/get/responses/200/content/application~1json/schema' /campaign/{campaign_id}/commission_group: get: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: commission_groups: - commission_group: active: y campaign_id: 10l176 commission_group_id: 10l169 description: '' end_date_time: '2013-09-30 15:00:00' last_modified: '2015-04-10 01:59:54' name: Fansites 3 percent publishers: - 100l06 - 100l08 start_date_time: '2013-08-31 15:00:00' schema: properties: commission_groups: items: $ref: '#/components/schemas/Commission_Group_Wrapper' type: array type: object description: OK tags: - Partner Groups description: View all Partner (Commission) Groups for a campaign with all associated partners. operationId: List Partner Groups summary: List all Partner (Commission) Groups for a given campaign /campaign/{campaign_id}/commission_group/{commission_group_id}: get: parameters: - description: ID of the campaign example: 10l176 in: path name: campaign_id required: true schema: type: string - description: ID of the Partner (Commission) group example: 10l169 in: path name: commission_group_id required: true schema: type: string responses: '200': content: application/json; charset=utf-8: examples: response: value: commission_group: active: y campaign_id: 10l176 commission_group_id: 10l169 description: '' end_date_time: '2013-09-30 15:00:00' last_modified: '2015-04-10 01:59:54' name: Fansites 3 percent publishers: - 100l06 - 100l08 start_date_time: '2013-08-31 15:00:00' schema: properties: commission_group: properties: active: enum: - y - n type: string campaign_id: description: ID of the campaign type: string commission_group_id: description: ID of the Partner (Commission) group type: string description: type: string end_date_time: nullable: true type: string last_modified: type: string name: type: string publishers: description: IDs of the publishers to be associated with the group start_date_time: nullable: true type: string type: object type: object description: OK tags: - Partner Groups description: Retrieves the specified Partner (Commission) Group. operationId: Retrieve a Partner Group summary: Retrieve a Partner (Commission) Group /commission_group: post: responses: '200': content: application/json; charset=utf-8: examples: response: value: commission_group: active: y campaign_id: 10l176 commission_group_id: 10l169 description: '' end_date_time: '2013-09-30 15:00:00' last_modified: '2015-04-10 01:59:54' name: Fansites 3 percent publishers: - 100l06 - 100l08 start_date_time: '2013-08-31 15:00:00' schema: properties: commission_group: properties: active: enum: - y - n type: string campaign_id: description: ID of the campaign type: string commission_group_id: description: ID of the Partner (Commission) group type: string description: type: string end_date_time: nullable: true type: string last_modified: type: string name: type: string publishers: description: IDs of the partners to be associated with the group start_date_time: nullable: true type: string required: - name - campaign_id type: object type: object description: OK tags: - Partner Groups description: Create new Partner (Commission) Groups. To add Partners into the Partner (Commission) Group pass them in a `publishers` array. operationId: Create Partner Groups requestBody: content: application/json: schema: example: commission_groups: - campaign_id: 10l176 description: '' end_date_time: '2013-09-30 15:00:00' name: Top Sites 2 percent publishers: - 100l06 - 100l08 start_date_time: '2013-08-31 15:00:00' properties: commission_groups: type: array type: object summary: Create Partner (Commission) Groups put: responses: '200': content: application/json; charset=utf-8: examples: response: value: commission_group: active: y campaign_id: 10l176 commission_group_id: 10l169 description: '' end_date_time: '2013-09-30 15:00:00' last_modified: '2015-04-10 01:59:54' name: Fansites 3 percent publishers: - 100l06 - 100l08 start_date_time: '2013-08-31 15:00:00' schema: properties: commission_group: properties: active: enum: - y - n type: string campaign_id: description: ID of the campaign type: string commission_group_id: description: ID of the Partner (Commission) group type: string description: type: string end_date_time: nullable: true type: string last_modified: type: string name: type: string publishers: description: IDs of the partners to be associated with the group start_date_time: nullable: true type: string required: - name - campaign_id type: object type: object description: OK tags: - Partner Groups description: Update Partner (Commission) Groups by referencing the `commission_group_id` in each Group object within the `commission_groups` array. operationId: Update Partner (Commission) Groups requestBody: content: application/json: schema: example: commission_groups: - campaign_id: 10l176 commission_group_id: 10l169 description: '' end_date_time: '2013-09-30 15:00:00' name: Top Sites 4 percent publishers: - 100l06 - 100l08 start_date_time: '2013-08-31 15:00:00' properties: commission_groups: type: array type: object summary: Update Partner (Commission) Groups /v2/campaigns/{campaignId}/publishers/{publisherId}/attribution: get: summary: Partner Attributions tags: - Attribution responses: '200': description: OK content: application/json: schema: description: Attribution models active for the Partner on the Campaign type: object properties: data: type: object properties: preferred_partner: type: array minItems: 1 description: Partner Preferred Date Ranges items: title: Partner Preferred Date Range type: object description: Partner Preferred Date Range properties: start_date: type: string format: date-time end_date: type: string format: date-time exclusive_codes: type: array minItems: 1 description: Partner Exclusive Codes items: title: Partner Exclusive Code type: object description: Partner Exclusive Code properties: code: title: Exclusive Code Definition type: object description: Exclusive Code Definition properties: operator: type: string enum: - EQUALS - CONTAINS - STARTS_WITH - ENDS_WITH value: type: string minLength: 1 pattern: ^[a-zA-Z0-9]*$ start_date: type: string format: date-time end_date: type: - string - 'null' format: date-time in_cart: title: In Cart Threshold type: object description: In Cart Threshold properties: threshold: type: number description: Time in seconds that In Cart is applied for minimum: 0 maximum: 3540 split: title: Partner Split Commissioning type: object description: Partner Split Commissioning properties: initiator: type: number description: How much as a percentage the initiator receives minimum: 0 maximum: 100 contributor_fallback: type: string description: How the remaining percentage is split for a conversion without any contributors enum: - converter - initiator - split example: split converter: type: number description: How much as a percentage the converter receives minimum: 0 maximum: 100 meta: type: object properties: preferred_partner: type: boolean description: If Preferred Partner Attribution is enabled on this Campaign exclusive_codes: type: boolean description: If Exclusive Code Attribution is enabled on this Campaign operationId: get-partners-attribution description: 'Get available ongoing and upcoming attribution opportunities for the given partner. Any of the keys within the response will be excluded if they are not applicable, such as not being enabled or configured for the partner.' parameters: - schema: type: string name: campaign_id in: path required: true description: The ID of the campaign - schema: type: string name: partner_id in: path required: true description: The ID of the partner /v2/campaigns/{campaignId}/attribution: parameters: - $ref: '#/components/parameters/campaignId' get: summary: List Attribution Settings tags: - Attribution responses: '200': description: OK content: application/json: schema: title: Attribution Response type: object description: Attribution Response Object example: data: code_suppression: false preferred_partners: true exclusive_codes: true in_cart: false split: true properties: data: type: object properties: code_suppression: type: boolean description: Is Code Suppression enabled? preferred_partners: type: boolean description: Is Preferred Partners Enabled? exclusive_codes: type: boolean description: Is Exclusive Codes enabled? in_cart: type: boolean description: Is In-Cart enabled? split: type: boolean description: Is Split enabled? operationId: get-v2-attribution description: Get the status of each of the Attribution Settings patch: summary: Update Attribution Settings operationId: post-v2-attribution responses: '200': description: OK content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution/get/responses/200/content/application~1json/schema' requestBody: content: application/json: schema: title: Attribution Update Request type: object description: Attribution Update Request Object properties: code_suppression: type: boolean description: Is Code Suppression enabled? preferred_partners: type: boolean description: Is Preferred Partners Enabled? exclusive_codes: type: boolean description: Is Exclusive Codes enabled? in_cart: type: boolean description: Is In-Cart enabled? Mutually exclusive with Split split: type: boolean description: Is Split enabled? Mutually exclusive with In-Cart first_click: type: boolean description: Is First Click enabled? Mutually exclusive with In-Cart and Split description: '' tags: - Attribution description: Update the Attribution Settings /v2/campaigns/{campaignId}/attribution/suppressed-codes: parameters: - $ref: '#/components/parameters/campaignId' get: summary: List All Suppressed Codes tags: - Suppressed Code responses: '200': description: OK content: application/json: schema: title: suppressed Code Response type: object properties: data: title: Suppressed Codes type: array description: A Collection of Suppressed Codes items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1suppressed-codes/post/responses/201/content/application~1json/schema/properties/data' hypermedia: type: object required: - next properties: next: type: - string - 'null' description: The URL to call for the next set of preferred partners meta: type: object required: - enabled properties: enabled: type: boolean description: Is Suppressed Code attribution enabled on this campaign? required: - data - hypermedia - meta operationId: get-v2-attribution-suppressed-codes parameters: - schema: type: integer minimum: 0 maximum: 200 in: query name: limit description: Used to limit the response to a number of results - schema: type: integer minimum: 0 in: query name: offset description: Used to offset the results we're returning - schema: type: string pattern: ^[-a-z0-9_]++$ in: query name: query description: Search for specific codes - schema: type: string pattern: ^.*?,.*?$ example: 2020-10-01,2020-10-31 in: query name: dates description: Search for codes within a date-time range. Comma separated start and end date-times - schema: type: string example: active,scheduled,expired pattern: ^\w+(,\w+)*$ in: query name: statuses description: A comma separated list of statuses to return results for description: Show a list of all configured suppressed codes. May be filtered with several filters. post: summary: Create a Suppressed Code operationId: post-v2-campaigns-campaignId-attribution-suppressed-codes responses: '201': description: Created content: application/json: schema: title: Suppressed Code Response type: object properties: data: title: Suppressed Code type: object x-examples: Example Suppressed Code Instance: id: 1111l1 voucher_code: NEWITEM start_date: 2020-10-01T15:00:00+0100 end_date: 2020-10-05T23:59:59+0100 status: expired properties: id: type: string description: The unique ID of this Suppressed Code voucher_code: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1suppressed-codes/post/requestBody/content/application~1json/schema/properties/voucher_code/oneOf/1/allOf/0' start_date: type: string format: date-time description: The date the code is considered suppressed from end_date: type: - string - 'null' format: date-time description: The date the code is considered suppressed until. This is inclusive. status: type: string enum: - scheduled - active - expired description: The status of this Suppressed Code instance required: - id - voucher_code - start_date - end_date - status required: - data description: Create a Suppressed Code configuration tags: - Suppressed Code requestBody: content: application/json: schema: title: Suppressed Code Request type: object properties: voucher_code: oneOf: - type: string pattern: ^[a-zA-Z0-9_-]+$ minLength: 1 description: An exact match voucher code - allOf: - title: Suppressed Code Fuzzy Value type: object description: A fuzzy matched value properties: value: type: string pattern: ^[a-zA-Z0-9_-]+$ minLength: 1 example: SUPP-1 operator: type: string enum: - EQUALS - CONTAINS - STARTS_WITH - ENDS_WITH - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1exclusive-codes/post/requestBody/content/application~1json/schema/properties/voucher_code/oneOf/1/allOf/1' - title: Suppressed Code All Values type: object description: Suppresses all voucher codes properties: operator: type: string enum: - ALL required: - operator start_date: type: string format: date-time end_date: type: - string - 'null' format: date-time required: - voucher_code - start_date delete: summary: Delete Suppressed Codes operationId: bulk-delete-v2-campaigns-campaignId-attribution-suppressed-codes responses: '204': description: No Content '400': description: Bad Request content: application/json: schema: type: object properties: error: type: object required: - errors properties: errors: type: array items: type: object properties: type: type: string code: type: string message: type: string required: - type - code - message code: type: integer message: type: string required: - error - code - message examples: Cannot delete active Suppressed Code: value: error: errors: - type: validation_error code: invalid_suppressed_code message: Unable to delete Suppressed Code 12344. Only scheduled Suppressed Code can be deleted. code: 400 message: Bad Request description: Delete Suppressed Codes. This is only possible if the Suppressed Codes are scheduled, otherwise an error will occur. requestBody: content: application/json: schema: title: Delete Suppressed Code Request type: object properties: suppressed_code_ids: minItems: 1 items: type: string description: The Unique ID of Suppressed Code to be deleted required: - suppressed_code_ids tags: - Suppressed Code /v2/campaigns/{campaignId}/attribution/suppressed-codes/{id}: parameters: - $ref: '#/components/parameters/campaignId' - schema: type: string example: 1001l1 name: id in: path required: true description: The ID of the Suppressed Code get: summary: Get a Suppressed Code tags: - Suppressed Code responses: '200': description: OK content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1suppressed-codes/post/responses/201/content/application~1json/schema' operationId: get-campaigns-campaignId-attribution-suppressed-codes-id description: Get a Suppressed Code instance patch: summary: Update a Suppressed Code operationId: patch-v2-campaigns-campaignId-attribution-suppressed-codes-id responses: '200': description: OK content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1suppressed-codes/post/responses/201/content/application~1json/schema' description: Update a Suppressed Code. All request body properties are optional but at least one must be specified for update. tags: - Suppressed Code requestBody: content: application/json: schema: title: Suppressed Code Update Request type: object description: Update a Suppressed Code x-examples: Update suppressed code: voucher_code: NEWITEM publisher_id: 1111l2 start_date: '2020-12-05T15:13:00+00:00' end_date: '2020-12-31T23:59:59+00:00' minProperties: 1 properties: voucher_code: oneOf: - type: string pattern: ^[a-zA-Z0-9_-]+$ minLength: 1 description: An exact match voucher code - allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1suppressed-codes/post/requestBody/content/application~1json/schema/properties/voucher_code/oneOf/1/allOf/0' - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1exclusive-codes/post/requestBody/content/application~1json/schema/properties/voucher_code/oneOf/1/allOf/1' - title: Suppressed Code All Values type: object description: Suppresses all voucher codes properties: operator: type: string enum: - ALL required: - operator start_date: type: string format: date-time description: The date from which the voucher code is valid. This is inclusive. end_date: allOf: - description: The date until the voucher code is valid. This is inclusive. - anyOf: - type: string format: date-time - type: 'null' delete: summary: Delete a Suppressed Code responses: '204': description: No Content operationId: delete-campaigns-campaignId-attribution-suppressed-codes-id description: Delete and Suppressed Code tags: - Suppressed Code /v2/campaigns/{campaignId}/attribution/preferred-partners: parameters: - $ref: '#/components/parameters/campaignId' get: summary: List All Preferred Partners responses: '200': description: OK content: application/json: schema: title: Preferred Partners Response type: object properties: data: title: Preferred Partners type: array items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1preferred-partners/post/responses/201/content/application~1json/schema/properties/data' description: A Collection of Preferred Partners hypermedia: type: object description: '' properties: next: type: - string - 'null' description: The URL to call for the next set of preferred partners example: https://api.partnerize.com/v2/campaigns/1101l40123/attribution/preferred-partners?limit=100&offset=100 meta: type: object properties: enabled: type: boolean description: Is Preferred Partners attribution enabled on this campaign? example: true operationId: get-v2-attribution-preferred-partner parameters: - schema: type: integer minimum: 0 maximum: 200 in: query name: limit description: Used to limit the response to a number of results. Defaults to 20 - schema: type: integer minimum: 0 in: query name: offset description: Used to offset the results we're returning - schema: type: string pattern: ^[-a-z0-9_]++$ in: query name: name description: 'Search for partner by name. Alphanumeric with dashes and underscores ' - schema: type: string pattern: ^.*?,.*?$ example: 2020-10-01T00:00:00Z,2020-10-31T00:00:00Z in: query name: dates description: Search for preferred partners within a date range. Comma separated start and end date - schema: type: string example: active,scheduled,expired pattern: ^\w+(,\w+)*$ in: query name: statuses description: A comma separated list of statuses to return results for description: Show a list of all configured preferred partners. May be filtered with several filters. tags: - Preferred Partner post: summary: Create Preferred Partner operationId: post-v2-campaigns-campaignId-attribution-preferred-partners responses: '201': description: Created content: application/json: schema: title: Preferred Partner Response type: object properties: data: title: Preferred Partner type: object description: A Preferred Partner properties: id: type: string description: The Unique ID of this configuration of Preferred Partner example: 10110l2398476 partner: type: object description: The information about the Partner that is preferred properties: id: type: string description: The Partners unique identifier example: 10110l567801 name: type: string description: The Partners name example: Joel status: type: string enum: - invited - rejected - approved - requested description: The status of the partner on the campaign example: approved start_date: type: string format: date-time description: The date the partner is considered preferred from example: '2022-11-01T00:00:00+00:00' end_date: type: string format: date-time description: The date the partner is considered preferred until. This is inclusive. example: '2022-11-30T23:59:59+00:00' status: type: string enum: - scheduled - active - expired description: The status of this Preferred Partner instance example: scheduled created: type: string format: date-time description: The date and time this configuration was created at example: '2022-09-24T14:15:22+00:00' description: Create a Preferred Partner configuration requestBody: content: application/json: schema: title: Preferred Partner Request type: object description: A Preferred Partner properties: partner_id: type: string pattern: ^[a-z0-9]+$ minLength: 1 description: The ID of the Partner to prefer for this date range example: 10110l567801 start_date: type: string format: date-time description: The date the partner is considered preferred from end_date: type: string format: date-time description: The date the partner is considered preferred until. This is inclusive. required: - partner_id - start_date - end_date tags: - Preferred Partner delete: summary: Delete Preferred Partners operationId: bulk-delete-v2-campaigns-campaignId-attribution-preferred-partners responses: '204': description: No Content description: Delete Preferred Partners. This is only possible if the Preferred Partners are scheduled, otherwise an error will occur. requestBody: content: application/json: schema: title: Delete Preferred Partner Request type: object properties: preferred_partner_ids: minItems: 1 items: type: string description: The Unique ID of Preferred Partner to be deleted required: - preferred_partner_ids tags: - Preferred Partner /v2/campaigns/{campaignId}/attribution/preferred-partners/{id}: parameters: - $ref: '#/components/parameters/campaignId' - schema: type: string in: path name: id description: The Preferred Partner ID required: true example: 10110l2398476 delete: summary: Delete a Preferred Partner operationId: delete-v2-campaigns-campaignId-attribution-preferred-partners-id responses: '204': description: No Content description: Delete a Preferred Partner. This is only possible if the Preferred Partner is scheduled, otherwise an error will occur. tags: - Preferred Partner get: summary: Get a Preferred Partner operationId: get-v2-campaigns-campaignId-attribution-preferred-partners-id responses: '200': description: OK content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1preferred-partners/post/responses/201/content/application~1json/schema' description: Get a Preferred Partner by ID tags: - Preferred Partner patch: summary: Update a Preferred Partner operationId: patch-v2-campaigns-campaignId-attribution-preferred-partners-id responses: '200': description: OK content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1preferred-partners/post/responses/201/content/application~1json/schema' description: Update Preferred Partner tags: - Preferred Partner requestBody: content: application/json: schema: title: Preferred Partner Update Request type: object description: A Preferred Partner minProperties: 1 properties: partner_id: type: string description: The ID of the Partner to prefer for this date range example: 10110l567801 start_date: type: string format: date-time description: The date the partner is considered preferred from example: '2022-11-01T00:00:00+00:00' end_date: type: string format: date-time description: The date the partner is considered preferred until. This is inclusive. example: '2022-11-30T23:59:59+00:00' /v2/campaigns/{campaignId}/attribution/exclusive-codes: parameters: - $ref: '#/components/parameters/campaignId' get: summary: List All Exclusive Codes tags: - Exclusive Code responses: '200': description: OK content: application/json: schema: title: Exclusive Code Response type: object properties: data: title: Exclusive Codes type: array description: A Collection of Exclusive Codes items: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1exclusive-codes/post/responses/201/content/application~1json/schema/properties/data' count: type: integer description: The total number of results available example: 15 hypermedia: type: object properties: next: type: - string - 'null' description: The URL to call for the next set of preferred partners example: https://api.partnerize.com/v2/campaigns/1101l40123/attribution/exclusive-codes?limit=100&offset=100 meta: type: object properties: enabled: type: boolean description: Is Exclusive Codes attribution enabled on this campaign? example: true operationId: get-v2-attribution-exclusive-codes parameters: - schema: type: integer minimum: 0 maximum: 200 in: query name: limit description: Used to limit the response to a number of results - schema: type: integer minimum: 0 in: query name: offset description: Used to offset the results we're returning - schema: type: string pattern: ^[-a-z0-9_]++$ in: query name: query description: Search for specific codes or partner names - schema: type: string pattern: ^.*?,.*?$ example: 2020-10-01T00:00:00Z,2020-10-31T00:00:00Z in: query name: dates description: Search for codes within a date-time range. Comma separated start and end date-times - schema: type: string example: active,scheduled,expired pattern: ^\w+(,\w+)*$ in: query name: statuses description: A comma separated list of statuses to return results for description: Show a list of all configured exclusive codes. May be filtered with several filters. post: summary: Create an Exclusive Code operationId: post-v2-campaigns-campaignId-attribution-exclusive-codes responses: '201': description: Created content: application/json: schema: title: Exclusive Code Response type: object properties: data: title: Exclusive Code type: object properties: id: type: string description: The unique ID of this Exclusive Code example: 10110l22587 voucher_code: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1exclusive-codes/post/requestBody/content/application~1json/schema/properties/voucher_code/oneOf/1/allOf/0' partner: type: object description: The information about the Partner that the exclusive code belongs to properties: id: type: string description: The Partners unique identifier example: 10110l567801 name: type: string description: The Partners name example: Joel status: type: string enum: - invited - rejected - approved - requested description: The status of the partner on the campaign example: approved start_date: type: string format: date-time description: The date the code is considered exclusive from example: '2022-11-01T00:00:00+00:00' end_date: type: - string - 'null' format: date-time description: The date the code is considered exclusive until. This is inclusive. example: '2022-11-30T23:59:59+00:00' is_clickless: type: boolean description: Specifies if the Exclusive Code has Clickless Campaign Based Reallocation behaviour. example: false status: type: string enum: - scheduled - active - expired description: The status of this Exclusive Code instance example: active description: Create an Exclusive Code configuration tags: - Exclusive Code requestBody: content: application/json: schema: title: Exclusive Code Request type: object properties: voucher_code: oneOf: - type: string pattern: ^[a-zA-Z0-9_-]+$ minLength: 1 description: An exact match voucher code - allOf: - title: Exclusive Code Fuzzy Value type: object description: A fuzzy matched value properties: value: type: string pattern: ^[a-zA-Z0-9_-]+$ minLength: 1 example: SUMMER10 operator: type: string enum: - EQUALS - CONTAINS - STARTS_WITH - ENDS_WITH - type: object required: - value - operator partner_id: type: string pattern: ^[a-z0-9]+$ minLength: 1 start_date: type: string format: date-time end_date: type: - string - 'null' format: date-time is_clickless: type: boolean description: Specifies if the Exclusive Code has Clickless Campaign Based Reallocation behaviour. This setting only applies to Master Campaign setups. default: false required: - voucher_code - partner_id - start_date delete: summary: Delete Exclusive Codes operationId: bulk-delete-v2-campaigns-campaignId-attribution-exclusive-codes responses: '204': description: No Content description: Delete Exclusive Codes. This is only possible if the Exclusive Codes are scheduled, otherwise an error will occur. requestBody: content: application/json: schema: title: Delete Exclusive Code Request type: object properties: exclusive_code_ids: minItems: 1 items: type: string description: The Unique ID of Exclusive Code to be deleted required: - exclusive_code_ids tags: - Exclusive Code /v2/campaigns/{campaignId}/attribution/exclusive-codes/{id}: parameters: - $ref: '#/components/parameters/campaignId' - schema: type: string example: 1001l1 name: id in: path required: true description: The ID of the Exclusive Code get: summary: Get an Exclusive Code tags: - Exclusive Code responses: '200': description: OK content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1exclusive-codes/post/responses/201/content/application~1json/schema' operationId: get-campaigns-campaignId-attribution-exclusive-codes-id description: Get an Exclusive Code instance patch: summary: Update an Exclusive Code operationId: patch-v2-campaigns-campaignId-attribution-exclusive-codes-id responses: '200': description: OK content: application/json: schema: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1exclusive-codes/post/responses/201/content/application~1json/schema' description: Update an Exclusive Code. All request body properties are optional but at least one must be specified for update. tags: - Exclusive Code requestBody: content: application/json: schema: title: Exclusive Code Update Request type: object description: Update an exclusive code minProperties: 1 properties: voucher_code: oneOf: - type: string pattern: ^[a-zA-Z0-9_-]+$ minLength: 1 description: An exact match voucher code - allOf: - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1exclusive-codes/post/requestBody/content/application~1json/schema/properties/voucher_code/oneOf/1/allOf/0' - $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1exclusive-codes/post/requestBody/content/application~1json/schema/properties/voucher_code/oneOf/1/allOf/1' partner_id: type: string description: The ID of the Partner who will receive commission when this voucher code is used. start_date: type: string format: date-time description: The date from which the voucher code is valid. This is inclusive. end_date: description: The date until the voucher code is valid. This is inclusive. type: - string - 'null' format: date-time is_clickless: type: boolean description: Specifies if the Exclusive Code has Clickless Campaign Based Reallocation behaviour. This setting only applies to Master Campaign setups. default: false delete: summary: Delete an Exclusive Code responses: '204': description: No Content operationId: delete-campaigns-campaignId-attribution-exclusive-codes-id description: Delete an Exclusive Code tags: - Exclusive Code /v2/campaigns/{campaignId}/attribution/in-cart: parameters: - $ref: '#/components/parameters/campaignId' get: summary: List In-Cart Settings responses: '200': description: OK content: application/json: schema: title: In Cart Response type: object properties: data: title: In Cart type: object properties: threshold: type: integer description: Duration in seconds minimum: 1 maximum: 3540 example: 60 excluded_partners: type: array description: An array of partners excluded from in cart attribution. items: title: Partner type: object properties: id: type: string example: 10110l1 name: type: string example: Joel example: - id: 10110l123 name: Joel - id: 10110l456 name: Jenny reject_solo_click: title: Reject solo click type: object properties: enabled: type: boolean description: Whether reject solo click in cart is enabled default: false example: true meta: type: object properties: enabled: type: boolean description: Is In-Cart attribution enabled on this campaign? operationId: get-v2-attribution-in-cart description: Get the In-Cart settings for the given Campaign tags: - In-Cart patch: summary: Update In-Cart Settings operationId: post-v2-attribution-in-cart responses: '200': description: OK content: application/json: schema: title: In Cart Response type: object properties: data: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1in-cart/get/responses/200/content/application~1json/schema/properties/data' requestBody: content: application/json: schema: title: In Cart request type: object properties: threshold: type: integer description: Duration in seconds minimum: 1 maximum: 3540 example: 60 excluded_partners: type: array description: An array of partner IDs that are not affected by in cart attribution items: type: string maxItems: 200 example: - 10110l123 - 10110l456 reject_solo_click: title: Reject solo click type: object properties: enabled: type: boolean description: Whether reject solo click in cart is enabled default: false example: true required: - enabled required: - threshold - excluded_partners description: Update the In-Cart settings for the Given Campaign tags: - In-Cart /v2/campaigns/{campaignId}/attribution/split: parameters: - $ref: '#/components/parameters/campaignId' get: summary: List Split Settings tags: - Split responses: '200': description: OK content: application/json: schema: title: Split Response type: object description: '' properties: data: title: Split type: object properties: initiator: type: number minimum: 0 description: What portion of the conversion does the initiator receive maximum: 100 example: 50 contributor_missing: type: string description: 'If no contributors are found, how should the remaining amount be divided? ' enum: - converter - initiator - split example: split converter: type: number minimum: 0 description: What portion of the conversion does the converter receive maximum: 100 example: 50 excluded_partners: type: array description: An array of partner IDs that are not affected by split attribution. items: title: Partner type: object properties: id: type: string example: 10110l1 name: type: string example: Joel example: - id: 10110l123 name: Joel - id: 10110l456 name: Jenny excluded_groups: type: array description: An array of group IDs that are not affected by split attribution. items: title: Group type: object properties: id: type: string example: 10110l3 name: type: string example: Cashback example: - id: 10110l789 name: Cashback - id: 10110l246 name: Voucher meta: type: object properties: enabled: type: boolean description: Is Split attribution enabled on this campaign? operationId: get-v2-campaigns-campaignId-attribution-split description: Get the Split attribution settings for the given Campaign patch: summary: Update Split Settings tags: - Split responses: '200': description: OK content: application/json: schema: title: Split Response type: object description: '' properties: data: $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1attribution~1split/get/responses/200/content/application~1json/schema/properties/data' operationId: patch-v2-campaigns-campaignId-attribution-split requestBody: content: application/json: schema: title: Split Request type: object minProperties: 1 properties: initiator: type: number minimum: 0 description: What portion of the conversion does the initiator receive maximum: 100 example: 50 contributor_missing: type: string description: 'If no contributors are found, how should the remaining amount be divided? ' enum: - converter - initiator - split example: split converter: type: number minimum: 0 description: What portion of the conversion does the converter receive maximum: 100 example: 50 excluded_partners: type: array description: An array of partner IDs that are not affected by split attribution. items: type: string example: - 10110l123 - 10110l456 excluded_groups: type: array description: An array of group IDs that are not affected by split attribution. items: type: string example: - 10110l789 - 10110l246 description: Update the Split settings for the given Campaign /v2/networks/{network_id}/publishers: parameters: - name: network_id description: The publishers' network id in: path required: true schema: type: string get: tags: - Publishers summary: Get publishers list parameters: - $ref: '#/components/schemas/Publishers_V2_Filters/account_created' - $ref: '#/components/schemas/Publishers_V2_Filters/campaign_ids' - $ref: '#/components/schemas/Publishers_V2_Filters/campaign_statuses' - $ref: '#/components/schemas/Publishers_V2_Filters/commission_group_ids' - $ref: '#/components/schemas/Publishers_V2_Filters/company_name' - $ref: '#/components/schemas/Publishers_V2_Filters/fields' - $ref: '#/components/schemas/Publishers_V2_Filters/ids' - $ref: '#/components/schemas/Publishers_V2_Filters/include_discovery' - $ref: '#/components/schemas/Publishers_V2_Filters/website_verified' - $ref: '#/components/schemas/Publishers_V2_Filters/limit' - $ref: '#/components/schemas/Publishers_V2_Filters/locales' - $ref: '#/components/schemas/Publishers_V2_Filters/network_statuses' - $ref: '#/components/schemas/Publishers_V2_Filters/offset' - $ref: '#/components/schemas/Publishers_V2_Filters/operating_countries' - $ref: '#/components/schemas/Publishers_V2_Filters/partner_collection_id' - $ref: '#/components/schemas/Publishers_V2_Filters/promotional_countries' - $ref: '#/components/schemas/Publishers_V2_Filters/promotional_method_ids' - $ref: '#/components/schemas/Publishers_V2_Filters/publisher_email' - $ref: '#/components/schemas/Publishers_V2_Filters/publisher_name' - $ref: '#/components/schemas/Publishers_V2_Filters/publisher_tag_ids' - $ref: '#/components/schemas/Publishers_V2_Filters/publisher_website' - $ref: '#/components/schemas/Publishers_V2_Filters/reporting_identifier' - $ref: '#/components/schemas/Publishers_V2_Filters/search' - $ref: '#/components/schemas/Publishers_V2_Filters/sort' - $ref: '#/components/schemas/Publishers_V2_Filters/vertical_ids' - in: query name: recipient_status description: Accepts a communication ID. Adds a flag into the response whether publishers are on that communication's recipient list schema: type: string example: 111111l1 responses: '200': description: The list of filtered publishers content: application/json: schema: allOf: - $ref: '#/paths/~1v2~1communications/get/responses/200/content/application~1json/schema/allOf/0' - type: object properties: count: type: integer example: 56 limit: type: integer example: 100 offset: type: integer publishers: type: array items: allOf: - $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/0' - type: object properties: recipient_status: type: boolean description: Only included if valid recipient_status query argument is supplied '400': description: Invalid filter property content: application/json: schema: title: Error Response type: object properties: error: title: Errors type: object required: - errors - message - code description: Error Definition properties: errors: type: array description: Occurred Errors minItems: 1 items: title: Error type: object description: Error properties: type: type: string description: Error Type code: type: string description: Error Code message: type: string description: Error Message required: - type - code - message message: type: string description: Status Message code: type: integer description: Status Code required: - error '403': description: Unauthorised request content: application/json: schema: example: error: errors: - type: error code: unauthorised message: You do not have 'read' permission on publisher with id '1' code: 403 message: Forbidden type: object properties: error: type: object properties: errors: items: type: object properties: type: type: string code: type: string message: type: string code: type: integer message: type: string operationId: get-publishers description: Get Publishers for Network /v2/networks/{network_id}/publishers.csv: parameters: - in: header name: Accept schema: type: string enum: - charset=UTF-16 - name: network_id description: The publishers' network id in: path required: true schema: type: string post: operationId: export-publishers description: Export publishers for a network requestBody: required: false content: application/json: schema: $schema: http://json-schema.org/draft-04/schema# type: object properties: delimiter: type: string enum: - ',' - '|' - "\t" default: ',' excluded_publisher_id: type: array items: type: string limit: type: integer default: 50000 maximum: 50000 description: 'Note: these default and maximum values only apply when you are not emailing the result csv. When emailing the csv, the default is `null` and there is no maximum limit' offset: type: integer default: null nullable: true filter: type: array items: anyOf: - type: object additionalProperties: false required: - property - value properties: property: enum: - campaign_ids - campaign_statuses - commission_group_ids - ids - locales - network_statuses - operating_countries - promotional_country - promotional_method_ids - vertical_id value: type: - string - array - type: object additionalProperties: false required: - property - value properties: property: enum: - account_created - company_name - include_discovery - search - sort - website_verified value: type: string email_result: oneOf: - type: string minLength: 1 description: An email address of the email's recipient format: email - type: boolean description: '''true'' sends email to the authenticated user. ''false'' does not send an email and returns the csv contents in the request response instead.' fields: type: array items: type: string enum: - account_created - campaigns - company_name - contact_email - contact_name - id - instant_messaging - locale - metadata - name - network_id - network_notes - operating_country - phone_number - promotional_method - reporting_identifier - signup_ip - vertical - websites - commission_groups - website_info tags: - Publishers summary: Export publishers produces: - text/csv responses: '201': description: The list of filtered publishers content: text/csv: schema: type: string example: 'created_date,signup_ip,publisher_id,account_name,reporting_identifier,available_campaigns,approved_campaigns,invited_campaigns,requested_campaigns,rejected_campaigns,contact_name,contact_email,company_name,phone_area,phone,im_provider,im_username,operating_country,contact_locale,vertical_name,promotional_method_name,websites_website_url,website_verification_status,network_metadata_1,network_metadata_2,network_metadata_3 "2019-10-30 11:08:41",80.80.80.80,111111l1,my_account,acc_reporting_id,"Campaign Avail","Campaign App A,Campaign App B","Campaign Inv","Campaign Req","Campaign Rej","Joe Bloggs",info@partnerize.com,"Partnerize",0191,12345678,Skype,jbskype,GB,en,Retail,PPC,http://www.partnerize.com,"https://partnerize.com :: verified | https://partner.com :: unverified","Network metadata 1","Network metadata 2","Network metadata 3" ' '202': description: When the exported report has been accepted and will be emailed to the user '400': description: Invalid filter property content: application/json: schema: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers/get/responses/400/content/application~1json/schema' '403': description: Unauthorised request content: application/json: schema: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers/get/responses/403/content/application~1json/schema' /v2/networks/{network_id}/publishers/{publisher_id}: parameters: - name: network_id description: The publishers' network id in: path required: true schema: type: string - name: publisher_id description: The publisher id in: path required: true schema: type: string get: tags: - Publishers summary: Get publisher details responses: '200': description: Details about an individual Publisher on the network. content: application/json: schema: allOf: - type: object title: Publisher properties: id: type: string example: 10000l1 name: type: string example: Name company_name: type: string example: Company Name company_logo: type: string example: http://some.url/image.jpg contact_email: type: string example: contact@partnerize.com locale: type: string example: en operating_country: type: object properties: id: type: string iso: type: string name: type: string vertical: title: Vertical $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/0/properties/commission_groups/items' promotional_method: title: Promotional method $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/0/properties/commission_groups/items' websites: type: array items: type: object title: Website properties: id: type: string website_url: type: string example: http://www.partnerize.com description: type: string example: A blog about partner marketing campaigns: type: array items: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/1/properties/campaigns/items/allOf/0' commission_groups: type: array items: type: object properties: id: type: string name: type: string partner_collection_ids: type: array items: type: string signup_ip: type: string example: 127.0.0.1 network_notes: type: string nullable: true network_id: type: string example: 111111l1 - type: object properties: campaigns: type: array items: allOf: - type: object title: Campaign properties: id: type: string name: type: string status: $ref: '#/components/schemas/Publishers_V2_Filters/campaign_statuses/schema/oneOf/0' camref: type: - 'null' - string tracking_link: type: - 'null' - string status_changed_at: description: The datetime when the status of the campaign-publisher relationship was last updated nullable: true type: datetime - type: object properties: destination_url: type: string advertiser_id: type: string account_created: type: string format: - date-time example: '2020-09-01T14:20:03+00:01' contact_name: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/1/properties/description' description: oneOf: - type: string - type: 'null' active: oneOf: - type: boolean - type: 'null' address: type: object properties: line1: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/1/properties/description' line2: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/1/properties/description' line3: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/1/properties/description' line4: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/1/properties/description' postcode: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/1/properties/description' country: allOf: - $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers~1%7Bpublisher_id%7D/get/responses/200/content/application~1json/schema/allOf/1/properties/description' - description: 2 letter ISO country code, see https://api.partnerize.com/reference/country network_notes: type: string nullable: true '403': description: Unauthorised request content: application/json: schema: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers/get/responses/403/content/application~1json/schema' '404': description: Publisher not found content: application/json: schema: type: object properties: error: type: object example: error: errors: - type: error code: entity_not_found message: publisher not found for id '{id}' code: 404 message: Not Found operationId: get-publisher-details description: Get Publishers Details for Network /v2/networks/{network_id}/publishers/ids: parameters: - name: network_id description: The publishers' network id in: path required: true schema: type: string get: tags: - Publishers summary: Get publishers ids list parameters: - $ref: '#/components/schemas/Publishers_V2_Filters/account_created' - $ref: '#/components/schemas/Publishers_V2_Filters/campaign_ids' - $ref: '#/components/schemas/Publishers_V2_Filters/campaign_statuses' - $ref: '#/components/schemas/Publishers_V2_Filters/commission_group_ids' - $ref: '#/components/schemas/Publishers_V2_Filters/company_name' - $ref: '#/components/schemas/Publishers_V2_Filters/ids' - $ref: '#/components/schemas/Publishers_V2_Filters/include_discovery' - $ref: '#/components/schemas/Publishers_V2_Filters/website_verified' - $ref: '#/components/schemas/Publishers_V2_Filters/limit' - $ref: '#/components/schemas/Publishers_V2_Filters/locales' - $ref: '#/components/schemas/Publishers_V2_Filters/network_statuses' - $ref: '#/components/schemas/Publishers_V2_Filters/offset' - $ref: '#/components/schemas/Publishers_V2_Filters/operating_countries' - $ref: '#/components/schemas/Publishers_V2_Filters/promotional_countries' - $ref: '#/components/schemas/Publishers_V2_Filters/promotional_method_ids' - $ref: '#/components/schemas/Publishers_V2_Filters/publisher_email' - $ref: '#/components/schemas/Publishers_V2_Filters/publisher_name' - $ref: '#/components/schemas/Publishers_V2_Filters/publisher_tag_ids' - $ref: '#/components/schemas/Publishers_V2_Filters/publisher_website' - $ref: '#/components/schemas/Publishers_V2_Filters/reporting_identifier' - $ref: '#/components/schemas/Publishers_V2_Filters/search' - $ref: '#/components/schemas/Publishers_V2_Filters/sort' - $ref: '#/components/schemas/Publishers_V2_Filters/vertical_ids' responses: '200': description: The list of filtered publishers ids content: application/json: schema: allOf: - $ref: '#/paths/~1v2~1communications/get/responses/200/content/application~1json/schema/allOf/0' - type: object properties: count: type: integer example: 1 publisher_ids: type: array items: type: string '400': description: Invalid filter property content: application/json: schema: type: object properties: error: type: object properties: errors: items: type: object properties: type: type: string code: type: string message: type: string code: type: integer message: type: string '403': description: Unauthorised request content: application/json: schema: $ref: '#/paths/~1v2~1networks~1%7Bnetwork_id%7D~1publishers/get/responses/403/content/application~1json/schema' operationId: get-publishers-ids description: Get a list of publisher ids /v2/networks/{networkId}/campaign-requests-invites: parameters: - name: networkId in: path description: ID of the brand network examples: - 1l1007802 required: true schema: type: string - name: vertical_id in: query description: ID of the vertical being filtered by examples: - '10' required: false schema: type: string - name: promo_method_id in: query description: ID of the promo method being filtered by examples: - '17' required: false schema: type: string - name: operating_country in: query description: The operating country code being filtered by examples: - '10' required: false schema: type: string - name: promotional_country in: query description: The promotional country ISO code examples: - GB required: false schema: type: string - name: campaign_id in: query description: ID of the vertical being filtered by examples: - '10' required: false schema: type: string - name: status in: query description: The status of the interaction examples: - invited - requested required: false schema: type: string - name: search in: query description: Query string being search for which gets checked against the applicable fields. examples: - campaign 123 required: false schema: type: string get: operationId: partner-requests-invites tags: - Campaign Requests and Invites summary: List Partner Campaign Requests and Invites description: Lists partners with campaign requests or invites responses: '200': description: OK content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Partner Response properties: partners: type: array items: $schema: http://json-schema.org/draft-04/schema title: Partner type: object allOf: - $ref: '#/paths/~1v2~1networks~1%7BnetworkId%7D~1campaign-requests-invites~1partners~1%7BpublisherId%7D/get/responses/200/content/application~1json/schema/properties/partner/allOf/0' - properties: request_count: type: integer title: Campaign request count invite_count: type: integer title: Campaign Invitations hypermedia: $schema: http://json-schema.org/draft-04/schema title: Currency type: object properties: pagination: type: object properties: total_page_count: type: number total_item_count: type: number first_page: type: string last_page: type: string next_page: type: string previous_page: anyOf: - type: 'null' - type: string /v2/networks/{networkId}/campaign-requests-invites/filters: parameters: - name: networkId in: path description: ID of the brand network examples: - 1l1007802 required: true schema: type: string get: operationId: partner-requests-invites-filters tags: - Campaign Requests and Invites summary: List Campaign Requests and Invites Filters. description: Lists filters which can be used in conjuction with the List Campaign Requests and Invites contains the values required for the campaign interaction page filters. responses: '200': description: OK content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Filters Response description: Multiple values are comma delimited. properties: filters: $schema: http://json-schema.org/draft-04/schema title: Filter type: object properties: promo_methods: type: array title: Promo methods description: Any applicable promo method/partner type. items: properties: name: type: string example: Cashback value: type: string example: '73' verticals: type: array title: Verticals description: Any applicable vertical items: properties: name: type: string example: Automotive value: type: string example: '179' campaigns: type: array title: Campaigns description: The campaigns the current logged in user has access to on the included network items: properties: name: type: string example: Adidas value: type: string example: 111111l32 operating_countries: type: array title: Operating countries description: List of available operating countries to filter by. items: properties: name: type: string example: Afghanistan value: type: string example: AF statuses: description: The different status filter options available. type: array title: Status' items: type: string example: - invited - requested custom_promo_methods: type: array title: Custom promo methods description: Network specific promo method/partner type. items: properties: name: type: string example: Cashback value: type: string example: '73' custom_verticals: type: array title: Custom Verticals description: Network specific verticals items: properties: name: type: string example: Automotive value: type: string example: '179' /v2/networks/{networkId}/campaign-requests-invites/partners/{publisherId}: parameters: - name: networkId in: path description: ID of the brand network examples: - 1l1007802 required: true schema: type: string - name: publisherId in: path description: The ID of the partner examples: - 1lPUBA001,1lPUBB002 required: true schema: type: string get: operationId: partner-requests-invites-detail tags: - Campaign Requests and Invites summary: Retrieve Partner Campaign Invites and Requests Details. description: Retrieve details for campaign invites and requests of a particular partner. responses: '200': description: OK content: application/json: schema: $schema: http://json-schema.org/draft-04/schema type: object title: Partner Response properties: partner: $schema: http://json-schema.org/draft-04/schema title: Partner type: object allOf: - $schema: http://json-schema.org/draft-04/schema title: Partner type: object properties: id: type: string description: ID of the partner example: 111111l300761 name: type: string example: Partner UK reporting_identifier: type: string example: wedo.com active: type: boolean title: Partner Active Status example: false company_name: type: string example: Partner UK company_logo: oneOf: - type: string - type: 'null' example: http://some.url/image.png contact_name: type: string example: John Smith contact_email: type: string example: john@partner.uk description: type: string example: Partner UK account_created: type: string format: - date - time example: '2020-09-01 14:20:03' phone_number: type: string example: '+440201234123' operating_country: title: Operating country $schema: http://json-schema.org/draft-04/schema type: object properties: iso: type: string enum: - GB example: GB name: type: string enum: - United Kingdom example: United Kingdom vertical: $schema: http://json-schema.org/draft-04/schema title: Vertical type: object properties: id: type: string example: '1' name: type: string example: Retail promotional_method: $schema: http://json-schema.org/draft-04/schema title: Promotional method type: object properties: id: type: integer example: 1 name: type: string example: PPC promotional_countries: type: array items: type: object properties: iso: type: string name: type: string websites: type: array items: type: object properties: id: type: string example: 111111l1 website_url: type: string example: http://url.uk description: type: string example: Partner UK website - properties: address: title: Postal Address $schema: http://json-schema.org/draft-04/schema type: object properties: line1: anyOf: - type: 'null' - type: string line2: anyOf: - type: 'null' - type: string line3: anyOf: - type: 'null' - type: string line4: anyOf: - type: 'null' - type: string postcode: anyOf: - type: 'null' - type: string country: anyOf: - type: 'null' - type: string requests: type: array title: Campaign Requests items: properties: id: type: string example: 111111l300883 campaign: $ref: '#/paths/~1v2~1networks~1%7BnetworkId%7D~1campaign-requests-invites~1partners~1%7BpublisherId%7D/get/responses/200/content/application~1json/schema/properties/partner/allOf/1/properties/invites/items/properties/campaign' invites: type: array title: Campaign Invitations items: properties: id: type: string example: 111111l300878 campaign: $schema: http://json-schema.org/draft-04/schema title: Campaign type: object properties: id: type: string default_destination: anyOf: - type: 'null' - type: string title: type: string currency: $schema: http://json-schema.org/draft-04/schema title: Currency type: object properties: iso: type: string enum: - AED - AFN - ALL - AMD - ANG - AOA - ARS - AUD - AWG - AZN - BAM - BBD - BDT - BGN - BHD - BIF - BMD - BND - BOB - BRL - BSD - BTN - BWP - BYR - BZD - CAD - CDF - CHF - CLF - CLP - CNY - COP - COU - CRC - CUC - CUP - CVE - CZK - DJF - DKK - DOP - DZD - EGP - ERN - ETB - EUR - FJD - FKP - GBP - GEL - GHS - GIP - GMD - GNF - GTQ - GYD - HKD - HNL - HRK - HTG - HUF - IDR - ILS - INR - IQD - IRR - ISK - JMD - JOD - JPY - KES - KGS - KHR - KMF - KPW - KRW - KWD - KYD - KZT - LAK - LBP - LKR - LRD - LSL - LTL - LVL - LYD - MAD - MDL - MKD - MMK - MNT - MOP - MUR - MVR - MWK - MXN - MXV - MYR - MZN - NAD - NGN - NIO - NOK - NPR - NZD - OMR - PAB - PEN - PGK - PHP - PKR - PLN - PYG - QAR - RMB - RON - RSD - RUB - RWF - SAR - SBD - SCR - SDG - SEK - SGD - SHP - SLL - SOS - SRD - SSP - STD - SYP - SZL - THB - TJS - TMT - TND - TOP - TRY - TTD - TWD - TZS - UAH - UGX - USD - UYU - UZS - VEF - VND - VUV - WST - XAF - XCD - XOF - XPF - YER - ZAR - ZMW example: GBP name: type: string enum: - United Arab Emirates dirham - Azerbaijani manat - Mexican Unidad de Inversion - Malaysian ringgit - Mozambican metical - Namibian dollar - Nigerian naira - Nicaraguan cordoba - Norwegian krone - Nepalese rupee - New Zealand dollar - Omani rial - Bosnia and Herzegovina convertible mark - Panamanian balboa - Peruvian nuevo sol - Papua New Guinean kina - Philippine peso - Pakistani rupee - Polish zloty - Paraguayan guarani - Qatari riyal - Romanian new leu - Serbian dinar - Barbados dollar - Russian rouble - Rwandan franc - Saudi riyal - Solomon Islands dollar - Seychelles rupee - Sudanese pound - Swedish krona - Singapore dollar - Saint Helena pound - Sierra Leonean leone - Bangladeshi taka - Somali shilling - Surinamese dollar - South Sudanese pound - Sao Tome and Principe dobra - Syrian pound - Swazi lilangeni - Thai baht - Tajikistani somoni - Turkmenistani manat - Tunisian dinar - Bulgarian lev - Tongan pa'anga - Turkish lira - Trinidad and Tobago dollar - New Taiwan dollar - Tanzanian shilling - Ukrainian hryvnia - Ugandan shilling - United States dollar - Uruguayan peso - Uzbekistan som - Bahraini dinar - Venezuelan example: Pound sterling symbol: type: string enum: - AED - ман - MXV - RM - MT - ₦ - C$ - KM - B/. - S/. - PGK - zł - Gs - lei - Дин. - руб - RWF - SDG - SLL - BDT - S - SSP - STD - SZL - ฿ - TJS - TMT - TND - TOP - TRY - TT$ - NT$ - TZS - ₴ - UGX - $U - BHD - Bs - ₫ - VUV - WST - XAF - XAG - XAU - XBA - XBB - XBC - BIF - XBD - XDR - XFU - XOF - XPD - XPF - XPT - R - ZMW - $b - ؋ - R$ - BTN - P - p. - BZ$ - CDF - CHE - CHF - Lek - CHW - CLF - COU - ₡ - CUC - ₱ - CVE - AMD - Kč - DJF - RD$ - DZD - ERN - ETB - € - GEL - GHS - GMD - GNF - Q - AOA - L - kn - HTG - Ft - Rp - ₪ - INR - IQD - ﷼ - kr - J$ - JOD - ¥ - KES - ៛ - KMF - KWD - лв - ₭ - £ - $ - LSL - Lt - Ls - LYD - ƒ - MAD - MDL - ден - MMK - ₮ - MOP - ₨ - MVR - MWK example: £ advertiser_id: type: string /v2/networks/{networkId}/campaign-requests/accept: parameters: - name: networkId in: path description: ID of the network examples: - 1l1007802 required: true schema: type: string post: summary: Accept Campaign Requests description: 'This endpont is now `Obsolete`. Use [Approve and Invite Partners to Campaigns](#tag/Campaign-Requests-and-Invites/operation/post-v2-networks-network_id-invite-network-partners) insteadPlease agree to the following terms:
locale: $ref: '#/components/schemas/Locale' created_at: $ref: '#/paths/~1v3~1jobs~1%7BjobID%7D/get/responses/200/content/application~1json/schema/properties/data/properties/created_at/definitions/date-time' /v3/brand/network-terms-and-conditions-acknowledgments: post: summary: Create network terms and conditions acknowledgment description: Create an acknowledgement for network terms and conditions tags: - Network Terms and Conditions Acknowledgments (v3) requestBody: content: application/json: schema: $schema: http://json-schema.org/draft-07/schema# type: object properties: network_id: type: string example: 0000l00 terms_locale_id: type: string example: 1010l00 required: - network_id - terms_locale_id responses: '201': description: Created /v3/network/{networkId}/commission-groups: get: summary: List commission groups description: Lists all network commission groups tags: - Commission Groups parameters: - name: network_id in: query description: Filter by a network required: true schema: type: string example: 1111l11 - name: active in: query description: Whether the commission groups are still ongoing schema: type: boolean, default: true - name: has_participation in: query description: Only return commission groups that have partners participating schema: type: boolean responses: '200': description: Request Success content: application/json: schema: $schema: http://json-schema.org/draft-07/schema# type: object properties: data: type: array items: $schema: http://json-schema.org/draft-07/schema# type: object properties: id: type: string example: 1111l11 name: type: string example: My Commission Group active: type: boolean start_date: $ref: '#/paths/~1v3~1jobs~1%7BjobID%7D/get/responses/200/content/application~1json/schema/properties/data/properties/created_at/definitions/date-time' end_date: $ref: '#/paths/~1v3~1jobs~1%7BjobID%7D/get/responses/200/content/application~1json/schema/properties/data/properties/created_at/definitions/date-time' campaign: type: object properties: id: type: string example: 1111l11 name: type: string example: Campaign A /v3/network/{networkId}/brands: get: summary: Get brands for a network description: Lists brands for a given network tags: - Brands parameters: - name: networkId in: path description: Network ID to get brands for schema: type: string example: 1111l11 - name: with in: query description: Extra data to fetch as a comma seperated list. Currently only accepts "deeplink-domains" schema: type: string example: deeplink-domains responses: '200': description: Request Success content: application/json: schema: $ref: '#/paths/~1v3~1brand/get/responses/200/content/application~1json/schema' /v3/brand: get: summary: Get brands for a user description: Lists brands the user has access to tags: - Brands parameters: - name: network_id in: query description: A way to filter brands by network schema: type: string example: 1111l11 - name: with in: query description: Extra data to fetch as a comma seperated list. Currently only accepts "deeplink-domains" schema: type: string example: deeplink-domains responses: '200': description: Request Success content: application/json: schema: $schema: http://json-schema.org/draft-07/schema# type: object title: v3 Brand list response examples: - data: - brand_id: 111111l1 brand_name: Brand One - brand_id: 111111l2 brand_name: Brand Two - data: - brand_id: 111111l1 brand_name: Brand One deeplink-domains: - domain: onebrand.com brand_id: 111111l1 created_by: 111111l1 created_at: '2024-07-25T15:10:03+00:00' - domain: shop.onebrand.com brand_id: 111111l1 created_by: 111111l1 created_at: '2024-07-25T15:10:03+00:00' /v3/brand/participations/{participationId}/paid_search_violation: post: summary: Create a paid search violation description: Create a paid search violation time frame for a given participation tags: - Paid Search Violations parameters: - name: participationId in: path description: The ID of the participation that the paid search violation will be applied to required: true schema: type: string example: 1111l11 requestBody: content: application/json: schema: properties: start_date_time: type: string format: date-time example: '2024-10-10T12:01:00+00:00' description: Datetime when the violation time window should start. The field is optional and will default to the current datetime end_date_time: type: string format: date-time nullable: true example: '2025-10-10T12:01:00+00:00' description: Datetime when the violation time window should end. The field is optional and will default 'null'. If this field is 'null' then all commissions for the participation after the 'start_date_time' will not be paid to the partner additionalProperties: false responses: '201': description: Created content: application/json: schema: properties: data: type: object properties: id: type: string example: 111111l1 participation_id: type: string example: 111111l1 start_date_time: type: string format: date-time example: '2024-10-10T12:01:00+00:00' end_date_time: type: string format: date-time nullable: true example: '2025-10-10T12:01:00+00:00' get: summary: List paid search violations description: Get a timeline of paid search violations for a given participation tags: - Paid Search Violations parameters: - name: participationId in: path description: The ID of the participation that the paid search violation is associated with required: true schema: type: string example: 1111l11 responses: '200': description: Request Success content: application/json: schema: $schema: http://json-schema.org/draft-07/schema# type: object properties: data: type: array items: $ref: '#/paths/~1v3~1brand~1participations~1%7BparticipationId%7D~1paid_search_violation/post/responses/201/content/application~1json/schema/properties/data' /v3/brand/participations/{participationId}/paid_search_violation/{paidSearchViolationId}: delete: summary: Delete a paid search violation description: Deletes or ends a paid search violation. If a paid search violation has been started but the end date has not elapsed, then the end date will be updated to the current datetime. If the paid search violation has not been started then the paid search violation will be completely deleted. tags: - Paid Search Violations parameters: - name: participationId in: path description: The ID of the participation that the paid search violation is associated with required: true schema: type: string example: 1111l11 - name: paidSearchViolationId in: path description: The ID of the paid search violation that will be deleted required: true schema: type: string example: 1111l11 responses: '204': description: Delete Successful /v3/brand/user: patch: summary: Update Current user operationId: updateCurrentUser description: Updates a current User data tags: - Current User requestBody: content: application/json: schema: $schema: http://json-schema.org/draft-07/schema# type: object title: Current User update description: Current User Patch Request properties: emailAddress: type: string description: User email value to be updated format: email responses: '200': content: application/json; charset=utf-8: examples: response: value: data: user_id: 111111l63 email_verified: false email: user@test.com schema: $schema: http://json-schema.org/draft-07/schema# type: object description: Current User data properties: data: type: object $schema: http://json-schema.org/draft-07/schema# description: Current User data properties: user_id: type: string description: Unique identifier of a Current User email_verified: type: boolean description: If user emil has been verified email: type: string format: email description: Email address identifier of a Current User description: OK /reference/vertical: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: verticals: - vertical: description: App downloads name: Downloads vertical_id: 1 schema: properties: verticals: items: $ref: '#/components/schemas/Vertical' type: array type: object description: OK tags: - Verticals description: Reference data endpoint which lists all the verticals. operationId: List all Verticals summary: List all Verticals /reference/locale: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: locales: - locale: code: en printable_name: English schema: properties: locales: items: $ref: '#/components/schemas/Reference_Locale' type: array type: object description: OK tags: - Locales description: List all active locales. operationId: List all Locales summary: List all Locales /reference/country: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: countries: - country: area_sq_km: 468 capital: Andorra la Vella continent_iso: EU continent_name: Europe currency_iso: EUR east: '42.656043' fips_code: AN geoname_id: 3041565 iso: AD iso3: AND iso_numeric: '020' languages: ca north: '42.656043' population: 84000 printable_name: Andorra ref_country_id: 1 south: '42.656043' west: '42.656043' zone: Outside EU VAT area schema: properties: countries: items: $ref: '#/components/schemas/Reference_Country' type: array type: object description: OK tags: - Countries description: List all active countries. operationId: List all Countries summary: List all Countries /reference/currency: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: currencies: - currency: currency_id: 51 iso: GBP minor_unit: 2 name: Pound Sterling schema: properties: currencies: items: $ref: '#/components/schemas/Reference_Currency' type: array type: object description: OK tags: - Currencies description: List all the types of currency. operationId: List all Currencies summary: List all Currencies /reference/currency/country: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: - currency_country: currency_iso: AED: country_iso: - GB AUD: country_iso: - AU - CN - HK - LV - US schema: items: $ref: '#/components/schemas/Reference_Currency_Country' type: array description: OK tags: - Currency countries description: List all Country Currency Combinations operationId: List Country Currency Combinations summary: List Country Currency Combinations /reference/us_state: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: us_states: - us_state: code: AZ printable_name: Alabama schema: properties: us_states: items: $ref: '#/components/schemas/US_State' type: array type: object description: OK tags: - US States description: List all US states. operationId: List US States summary: List US States /reference/timezone: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: timezones: - timezone: description: '[GMT-10:00] Pacific/Tahiti' local_time: '' name: Pacific/Tahiti ref_timezone_id: '3' utc_offset: '-36000' schema: properties: timezones: items: $ref: '#/components/schemas/Timezone' type: array type: object description: OK tags: - Timezones description: List all the timezones. operationId: List all Timezones summary: List all Timezones /reference/device: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: devices: - device: ref_device_id: 2 title: Desktop description: Standard desktop web skip_invoice: 0 skip_selfbill: 0 skip_override: 0 key: desktop schema: properties: devices: items: $ref: '#/components/schemas/Device' type: array type: object description: OK tags: - Devices description: List all device types. operationId: List all Devices summary: List all Devices /reference/campaign_extra_field: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: campaign_extra_fields: - campaign_extra_field: campaign_extra_field_id: 102 field_comment: campaign level country setting field_default_value: nil field_name: country schema: properties: campaign_extra_fields: items: $ref: '#/components/schemas/Campaign_Extra_Field' type: array type: object description: OK tags: - Campaign Extra Fields description: List all the types of campaign extra fields. operationId: List all Campaign Extra Fields summary: List all Campaign Extra Fields /reference/user_context: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: user_contexts: - user_context: ref_user_context_id: 1 title: Other description: Other user context skip_invoice: 0 skip_selfbill: 0 skip_override: 0 key: other schema: properties: user_contexts: items: $ref: '#/components/schemas/User_Context' type: array type: object description: OK tags: - User Contexts description: List all User Context types. operationId: List all User Contexts summary: List all User Contexts /reference/traffic_source: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: traffic_sources: - traffic_source: ref_traffic_source_id: 1 title: Other description: Other traffic source skip_invoice: 0 skip_selfbill: 0 skip_override: 0 schema: properties: traffic_sources: items: $ref: '#/components/schemas/Traffic_Source' type: array type: object description: OK tags: - Traffic Sources description: List all available Traffic Source types. operationId: List Traffic Sources summary: List Traffic Sources /reference/website_type: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: website_types: - website_type: description: null name: Blog website_id: '1' schema: properties: website_types: items: $ref: '#/components/schemas/Website_Type' type: array type: object description: OK tags: - Website Types description: List all the website types. operationId: List Website Types summary: List Website Types /reference/promotional_method: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: promotional_methods: - promotional_method: description: Pay per click name: PPC promotional_method_id: 1 schema: properties: promotional_methods: items: $ref: '#/components/schemas/Promotional_Method' type: array type: object description: OK tags: - Promotional Methods description: List all the types of payment methods. operationId: List all Promotional Method summary: List all Promotional Method /reference/conversion_type: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: conversion_types: - conversion_type: available_to_invoice: y available_to_selfbill: y conversion_type: standard conversion_type_id: 1 description: Standard Transaction exclude_from_override_rules: y schema: properties: conversion_types: items: $ref: '#/components/schemas/Conversion_Type' type: array type: object description: OK tags: - Conversion Types description: List all the conversion types. operationId: List Conversion Type summary: List Conversion Type /reference/conversion_metric: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: conversion_metrics: - conversion_metrics: ref_conversion_metric_id: 3 title: App Download description: '' skip_invoice: 0 skip_selfbill: 0 skip_override: 0 schema: properties: website_types: items: $ref: '#/components/schemas/Conversion_Metric' type: array type: object description: OK tags: - Conversion Metrics description: List all available Conversion Metrics. operationId: List Conversion Metrics summary: List Conversion Metrics /reference/partnership_model: get: responses: '200': content: application/json; charset=utf-8: examples: response: value: partnership_models: - partnership_model: ref_partnership_model_id: 2 title: CPA description: Cost per acquisition skip_invoice: 0 skip_selfbill: 0 skip_override: 0 schema: properties: website_types: items: $ref: '#/components/schemas/Partnership_Model' type: array type: object description: OK tags: - Partnership Models description: List all available partnership models. operationId: List Partnership Models summary: List Partnership Models components: schemas: Fraud_Incident_Base: properties: id: description: A unique ID for the incident type: string type: description: Which type of entity triggered this incident type: string enum: - ip_address - conversion - partner date: description: The date of the incident type: string time_window: description: Over how many days did we calculate the metric type: string status: description: Status of the record type: string enum: - active - deleted created_at: description: Timestamp of the record creation type: string deleted_at: description: Timestamp of the record deletion type: string required: - id - type - date - time_window - status - created_at - deleted_at type: object Fraud_Incident_Type_Partner: allOf: - $ref: '#/components/schemas/Fraud_Incident_Base' - type: object properties: partner: type: object properties: id: description: ID of the partner type: string name: description: The name of the partner type: string required: - id - name required: - partner Fraud_Incident_Type_IP_Address: allOf: - $ref: '#/components/schemas/Fraud_Incident_Base' - type: object properties: ip_address: type: string description: A hashed identifier for an IP address required: - ip_address Fraud_Incident_Metric_Basket: allOf: - oneOf: - $ref: '#/components/schemas/Fraud_Incident_Type_IP_Address' - $ref: '#/components/schemas/Fraud_Incident_Type_Partner' - type: object description: Properties unique to fraud incident baskets allOf: - type: object required: - metric properties: metric: type: string description: The metric name enum: - basket_variability_sku - type: object description: This is supplemental data for fraud incident baskets required: - data properties: data: type: object required: - conversions - total properties: total: type: number description: Total value of this basket conversions: type: array items: type: object title: The Items Schema required: - items - count - conversion_reference properties: items: type: array items: type: object required: - id - sku - category - status properties: id: type: string description: The conversion item ID sku: type: string description: The conversion item SKU category: type: string description: The conversion item category status: type: string description: Status of the conversion item count: type: integer description: The number of items conversion_reference: type: string description: The conversion reference - $ref: '#/components/schemas/Fraud_Incident_Metric_Ttc/allOf/1/allOf/2' Fraud_Incident_Metric_Basic: allOf: - oneOf: - $ref: '#/components/schemas/Fraud_Incident_Type_IP_Address' - $ref: '#/components/schemas/Fraud_Incident_Type_Partner' - type: object description: Properties that all indicent types share required: - metric allOf: - type: object properties: metric: type: string description: The metric name enum: - volume_clicks - volume_conversions - conversion_ratio - $ref: '#/components/schemas/Fraud_Incident_Metric_Ttc/allOf/1/allOf/2' Fraud_Incident_Metric_Conversion_Value: allOf: - oneOf: - $ref: '#/components/schemas/Fraud_Incident_Type_IP_Address' - $ref: '#/components/schemas/Fraud_Incident_Type_Partner' - type: object description: Properties for Conversion value allOf: - type: object required: - metric properties: metric: type: string description: The metric name enum: - conversion_value - allOf: - $ref: '#/components/schemas/Fraud_Incident_Metric_Ttc/allOf/1/allOf/1' - type: object required: - data properties: data: type: object required: - currency properties: currency: type: string description: The campaigns default currency - $ref: '#/components/schemas/Fraud_Incident_Metric_Ttc/allOf/1/allOf/2' Fraud_Incident_Metric_Ttc: allOf: - oneOf: - $ref: '#/components/schemas/Fraud_Incident_Type_IP_Address' - $ref: '#/components/schemas/Fraud_Incident_Type_Partner' - type: object description: Properties for ttc allOf: - type: object required: - metric properties: metric: type: string description: The metric name enum: - ttc - type: object description: This is supplemental data for fraud incidents ttc and conversion value required: - data properties: data: type: object required: - conversion_reference - conversion_items properties: conversion_reference: type: string description: The conversion reference conversion_items: type: array items: type: object required: - id - sku - category - status properties: id: type: string description: The conversion item ID sku: type: string description: The conversion item SKU category: type: string description: The conversion item category status: type: string description: Status of the conversion item - type: object description: This is supplemental data common to all fraud incidents required: - data properties: data: type: object required: - threshold - value properties: threshold: type: number description: The threshold for this metric value: type: number description: The actual value of this metric Network: properties: auto_approve_publishers: $ref: '#/components/schemas/YesOrNo' cm_client_id: type: string default_campaign_id: type: string network_application_id: type: string network_contact_email: type: string network_description: description: Description of the network type: string network_id: description: ID of the network type: string network_locale: $ref: '#/components/schemas/Locale' network_name: description: Name of the network type: string network_notes: description: Any additional notes for the network type: string type: object Network_Wrapper: properties: network: $ref: '#/components/schemas/Network' type: object Publisher: type: object properties: websites: items: $ref: '#/components/schemas/Publisher_Website_Wrapper' type: array us_tax_state: type: string reporting_identifier: type: string publisher_id: description: ID of the partner type: string network_status: $ref: '#/components/schemas/Status' network_notes: type: string network_id: description: ID of the network this partner belongs to type: string legal_entity: $ref: '#/components/schemas/Country' is_affiliate_user: $ref: '#/components/schemas/YesOrNo' gst_registered: type: string foreign_identifier: type: string databases: items: $ref: '#/components/schemas/Publisher_Database_Wrapper' type: array campaign_select: type: string abn: type: string account_name: type: string company_division: type: string company_name: type: string contact_email: type: string contact_locale: $ref: '#/components/schemas/Locale' contact_name: type: string default_currency: $ref: '#/components/schemas/Currency' description: description: Description of the partner type: string im_provider: type: string im_username: type: string is_foreign_network: $ref: '#/components/schemas/YesOrNo' description: Reporting only flag. All conversions will be automatically approved but will not be invoiceable. is_lead_user: $ref: '#/components/schemas/YesOrNo' operating_country: $ref: '#/components/schemas/Country' promotional_method: type: number promotional_method_name: type: string promotional_countries: type: array items: type: object properties: iso: type: string name: type: string uk_vat_registered: $ref: '#/components/schemas/YesOrNo' vat_number: type: number vertical: type: number vertical_name: type: string Publisher_Wrapper: properties: publisher: $ref: '#/components/schemas/Publisher' User_Publisher: type: object properties: user_name: type: string description: Username of the user email_address: type: string description: Email address of the user password: type: string description: Password of the user address1: type: string description: Address Line 1 of the user postcode: type: string description: Postcode of the user country: type: string description: ISO-2 country code of the user phone: type: string description: Phone number of the user signup_ip: type: string description: The signup IP address of the user firstname: type: string description: The first name of the user lastname: type: string description: The last name of the user address2: type: string description: Address Line 2 of the user address3: type: string description: Address Line 3 of the user address4: type: string description: Address Line 4 of the user locale: type: string description: Locale of the user user_id: type: string description: The ID of the user created: type: string description: Datetime stamp of when the user account was created network_id: type: string description: The network ID of which the user belongs to network_name: type: string description: The network name of which the user belongs to user_api_key: type: string description: The API key of the user account publisher: type: object properties: account_name: type: string description: Name of the partner vertical: type: string description: The vertical ID of the partner promotional_method: type: string description: The promotional method ID of the partner signup_ip: type: string description: The signup IP address of the partner entity_terms_id: type: string description: The agreed terms and conditions ID. The ID must be retrieved by retrieving the terms and conditions from the [network terms and conditions API.](#tag/Network-Terms-and-Conditions) network_terms_id: type: string description: The agreed network terms and conditions ID vat_number: type: string description: The VAT number of the partner description: type: string description: Description of the partner company_name: type: string description: Company name associated to the partner operating_country: type: string description: Country of operation for the partner reporting_timezone: type: string description: Reporting timezone of the partner. default_currency: type: string description: Default currency of the partner. phone: type: string description: Phone number of the partner. contact_name: type: string description: The contact name of the partner. contact_email: type: string description: The contact email of the partner. contact_locale: type: string description: The contact ISO locale for the partner. User_Publisher_Wrapper: properties: user: $ref: '#/components/schemas/User_Publisher' type: object Publisher_Website: properties: publisher_id: description: ID of the partner the website belongs to type: string website_id: description: ID of the partner website type: string active: $ref: '#/components/schemas/YesOrNo' primary: $ref: '#/components/schemas/YesOrNo' website_country: $ref: '#/components/schemas/Country' website_name: type: string website_type: type: number website_type_name: type: string website_url: type: string website_vertical: type: number website_vertical_name: type: string required: - website_url type: object Publisher_Website_Wrapper: properties: website: $ref: '#/components/schemas/Publisher_Website' type: object Publisher_Database: properties: database_id: description: ID of the partner database type: string publisher_id: description: ID of the partner the database belongs to type: string active: $ref: '#/components/schemas/YesOrNo' creation_method: type: string database_name: type: string female: type: number male: type: number max_age: type: number min_age: type: number size: type: number required: - database_name - creation_method - size type: object Publisher_Database_Wrapper: properties: database: $ref: '#/components/schemas/Publisher_Database' type: object Term_Wrapper: properties: database: $ref: '#/components/schemas/Term' type: object Term: properties: locale: $ref: '#/components/schemas/Locale' description: Locale of the terms ref_legal_entity_id: $ref: '#/components/schemas/Legal_Entities' description: Legal entity of the terms ref_terms_and_conditions_locale_id: description: Terms and conditions ID, used for partner signup type: string terms_and_conditions: description: Terms and condition content type: string tnc_type: enum: - entity - network type: string type: object Campaign_Wrapper: properties: campaign: $ref: '#/components/schemas/Campaign' type: object Campaign: oneOf: - properties: default_commission_rate: type: string type: object - properties: default_commission_value: type: string type: object properties: advertiser_icon: type: string nullable: true advertiser_id: description: ID of the brand the campaign should belong to type: string advertiser_name: description: Advertiser name type: string allow_deep_linking: $ref: '#/components/schemas/YesOrNo' allow_third_party_pixel: $ref: '#/components/schemas/YesOrNo' app_tracking_provider_tracking_link: type: string app_tracking_provider: type: string enum: - branch - partnerize append_url_parameters: type: string associated_campaigns: type: string automated_invoicing_date: type: number automated_invoicing_po_number: type: string auto_approve_publisher: $ref: '#/components/schemas/YesOrNo' auto_rejected_ips: nullable: true type: string basket_value_cap: nullable: true type: number budget_summary_interval: nullable: true type: number budget_summary_start_time: nullable: true type: string campaign_currency_conversions: {} campaign_id: description: ID of the campaign type: string campaign_icon: description: URL to image type: string campaign_icon_upload: description: base64 encoded image type: string campaign_languages: nullable: true properties: {} type: object campaign_logo: nullable: true type: string campaign_notes: type: string campaign_overloads: {} commission_by_meta: type: string commission_by_meta_label: type: string commissions: {} conversion_hiatus_period: type: number conversion_type: type: string cookie_period: type: number cookie_status: nullable: true type: string deeplink_method: type: string enum: - standard - direct default_currency: $ref: '#/components/schemas/Currency' default_override: type: number deferred_lead_submission: nullable: true type: string description: nullable: true properties: en: type: string type: object destination_url: type: string dont_consolidate: $ref: '#/components/schemas/YesOrNo' dont_invoice: $ref: '#/components/schemas/YesOrNo' extra_restricted_deep_linking: type: string force_approve_period: type: number hidden_campaign: $ref: '#/components/schemas/YesOrNo' invoice_address_1: nullable: true type: string invoice_address_2: nullable: true type: string invoice_address_3: nullable: true type: string invoice_address_4: nullable: true type: string invoice_address_country: nullable: true type: string invoice_address_postcode: nullable: true type: string invoice_company: nullable: true type: string invoice_contact: nullable: true type: string invoice_only: nullable: true type: string ip_tracking_time: type: number is_cpc: $ref: '#/components/schemas/YesOrNo' lead_confirmation_url_fail: type: string lead_confirmation_url_success: type: string meta_field_values_field_limit: type: number meta_field_values_total_limit: type: number multiple_conversions_per_click: anyOf: - enum: - y - n type: string - enum: - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 type: number network_fee: nullable: true type: string pay_publisher_directly: $ref: '#/components/schemas/YesOrNo' payment_date: nullable: true type: string prepend_url_string: description: Prepend all destination URLs nullable: true type: string promotional_countries: type: array items: type: object properties: iso: type: string example: US name: type: string example: United States recurring_payment_setup: $ref: '#/components/schemas/YesOrNo' report_meta_purge_period: description: The number of days that Meta Reports will be stored before being purged nullable: true type: number reporting_timezone: enum: - Australia/Sydney - UTC - Europe/London - CET - GMT type: string restricted_deep_linking: $ref: '#/components/schemas/YesOrNo' secure_tracking: $ref: '#/components/schemas/YesOrNo' short_link_subdomain: type: string status: $ref: '#/components/schemas/Status' terms: nullable: true properties: en: properties: terms: type: string type: object type: object test_mode: $ref: '#/components/schemas/YesOrNo' title: type: string tq_auto_approve: type: number tq_enabled: $ref: '#/components/schemas/YesOrNo' tq_enabled_publishers: type: string tracking_method: enum: - pixel - api - s2s type: string tracking_subdomain: nullable: true type: string unique_conversion_refs: enum: - y - n - ignore type: string vertical_id: type: number vertical_name: type: string week_start: type: string required: - advertiser_id - title - destination_url type: object Brand_Account_Wrapper: properties: advertiser: $ref: '#/components/schemas/Brand_Account' type: object Brand_Account: properties: account_name: description: Unique brand account name type: string address1: description: 1st line of the address type: string address2: description: 2nd line of the address nullable: true type: string address3: description: 3rd line of the address nullable: true type: string address4: description: 4th line of the address nullable: true type: string advertiser_icon: description: Url path to image type: string nullable: true advertiser_id: description: ID of the brand type: string budget_summary_interval: nullable: true type: string budget_summary_start_time: nullable: true type: string company_name: type: string contact_email: type: string country: description: Country of the address $ref: '#/components/schemas/Country' current_balance: nullable: true type: string default_currency: $ref: '#/components/schemas/Currency' display_name: description: Name shown to publishers under brand campaign management type: string payment_currency: $ref: '#/components/schemas/Currency' phone: description: Primary contact telephone number type: string phone_area: description: Phone prefix to declare country or region nullable: true type: string postcode: description: Postcode/Zipcode attached to the address type: string pre_payment: nullable: true type: string signup_ip: type: string status: $ref: '#/components/schemas/Status' vat_number: nullable: true type: string required: - account_name - company_name - address1 - country - postcode - phone - signup_ip type: object Voucher_Code_Wrapper: properties: voucher_code: $ref: '#/components/schemas/Voucher_Code' type: object Voucher_Code: properties: commission_groups: description: Commission groups associated with the voucher items: $ref: '#/components/schemas/Commission_Group_Wrapper' type: array description: type: string voucher_code: type: string active: $ref: '#/components/schemas/YesOrNo' campaign_id: description: ID of the Campaign type: string on_expiry: type: string on_invalid_user: type: string voucher_code_id: description: ID of the Voucher Code type: string start_date_time: type: string end_date_time: type: string type: object Commission_Group_Wrapper: properties: commission_group: $ref: '#/components/schemas/Commission_Group' type: object Commission_Group: properties: campaign_id: description: ID of the campaign type: string description: type: string name: type: string publishers: description: IDs of the partners to be associated with the group items: type: string type: array active: $ref: '#/components/schemas/YesOrNo' commission_group_id: description: ID of the commission group type: string last_modified: type: string required: - name - campaign_id type: object Creative_Wrapper: properties: creative: $ref: '#/components/schemas/Creative' type: object Creative: properties: creative_id: description: ID of the creative type: string advertiser_reference: type: string creative_items: items: $ref: '#/components/schemas/Creative_Item' type: array creative_tracking_link: type: string creative_tracking_link_rotate: type: string default_specific_creative_id: type: string description: type: string destination: type: string dynamic_tracking_link: type: string height: type: number html_tracking_link: type: string limits: type: string preview: type: string width: type: number tags: type: string active: $ref: '#/components/schemas/YesOrNo' campaign_id: description: ID of the campaign type: string creative_type_id: type: number custom_append_url_parameters: type: string custom_prepend_url_parameters: type: string start_date_time: type: string end_date_time: type: string created_by: type: string created_at: type: string required: - creative_type_id type: object Creative_Item: properties: content_type: type: string creative_item_id: description: ID of the creative item type: string description: type: string filename: type: string img_url: type: string preview: type: string specific_destination: type: string created_by: type: string created_at: type: string tags: type: string active: $ref: '#/components/schemas/YesOrNo' campaign_id: description: ID of the campaign type: string creative_type_id: type: number custom_append_url_parameters: type: string custom_prepend_url_parameters: type: string required: - creative_type_id type: object Creative_Tag: properties: campaign_id: description: ID of the Campaign type: string creative_tag_id: description: ID of the Creative Tag type: string creatives: items: properties: creative_id: description: ID of the Creative type: string creative_item_id: description: ID of the Creative Item type: string type: array name: type: string created_by: type: string created_at: type: string required: - name type: object Creative_Tag_Wrapper: properties: creative_tag: $ref: '#/components/schemas/Creative_Tag' type: object Feed_Wrapper: properties: feed: $ref: '#/components/schemas/Feed' type: object Feed: properties: active: $ref: '#/components/schemas/YesOrNo' dynamic: type: number feed_id: description: ID of the Product Feed type: string fetch_frequency: type: number filesize: type: number last_processed: description: UNIX timestamp type: number location: type: string name: type: string updated: description: UNIX timestamp type: number type: object Transaction_Query_Wrapper: properties: transaction_query: $ref: '#/components/schemas/Transaction_Query' type: object Transaction_Query: properties: campaign: properties: advertiser_id: type: string campaign_id: type: string created: type: string created_by: type: string default_override: type: string hidden_campaign: $ref: '#/components/schemas/YesOrNo' last_modified: type: string network_fee: type: string payment_date: type: string reporting_timezone: $ref: '#/components/schemas/Timezones' status: $ref: '#/components/schemas/Status' title: type: string type: type: string vertical_id: type: number week_start: type: string type: object campaign_id: type: string camref: type: string conversion_currency: $ref: '#/components/schemas/Currency' conversion_date_time: type: string conversion_id: type: string conversion_reference: type: string conversion_value: type: number created_at: type: string current_state: $ref: '#/components/schemas/Transaction_Query_State' expected_commission: type: number notes: type: string publisher: properties: agreed_to_latest_network_terms: $ref: '#/components/schemas/YesOrNo' created: type: string created_by: type: string name: type: string network_id: type: string network_status: type: string publisher_id: type: string ref_terms_and_conditions_locale_id: type: string reporting_timezone: $ref: '#/components/schemas/Timezones' signup_ip: type: string week_start: type: string type: object publisher_id: type: string publisher_reference: type: string state_history: $ref: '#/components/schemas/Transaction_Query_State_History' transaction_query_id: type: string transaction_query_type: $ref: '#/components/schemas/Transaction_Query_Type' updated_at: type: string type: object Transaction_Query_State: enum: - pending - approved - rejected type: string Transaction_Query_State_History: properties: conversion_expected_commission: type: number conversion_item_id: type: string created_at: type: string notes: type: string state: $ref: '#/components/schemas/Transaction_Query_State' transaction_query_id: type: string transaction_query_state_id: type: string user_id: type: string type: object Transaction_Query_Type: enum: - untracked - incorrect_commission - declined type: string Transaction_Query_Reason: properties: campaign_id: type: string created_at: type: string reason: type: string transaction_query_reason_id: type: string type: object Invoice_Wrapper: properties: invoice: $ref: '#/components/schemas/Invoice' type: object Invoice: properties: average_conversion_age: type: number campaign_id: description: ID of the Campaign type: string creation_date: type: string currency: $ref: '#/components/schemas/Currency' download: description: URL for PDF download type: string invoice_id: description: ID of the Invoice type: string invoice_net_value: type: number invoice_reference: type: string invoice_total_value: type: number invoice_vat_value: type: number invoiced: type: string item_download: description: URL for CSV item download type: string merchant_invoice_id: description: Optional merchant reference type: string paid_currency: $ref: '#/components/schemas/Currency' payment_date: type: string payment_due_by_date: type: string payment_reference: description: Optional payment reference type: string publisher_commission: type: number publisher_override: type: number set_end_date: type: string set_start_date: type: string set_timezone: $ref: '#/components/schemas/Timezones' status: enum: - created - sent - paid type: string vat_rate: type: number type: object Deal_Wrapper: properties: campaign_deal: $ref: '#/components/schemas/Deal' type: object Deal: properties: active: $ref: '#/components/schemas/YesOrNo' advertiser_reference: type: string category: type: string country_iso: description: Whether it applies to a specific country $ref: '#/components/schemas/Country' coupon_code: description: A specific coupon or voucher code associated with the deal type: string description: type: string destination: description: A deeplink to the specific deal location type: string end_date_time: description: Timezone specific timestamp to indicate the deal expiry time type: string offer_type: description: The type of offer enum: - coupon - offer - sale type: string offer_value: description: The unit to attribute to the `offer_type` type: string start_date_time: description: Timezone specific timestamp to indicate the start of the deal type: string terms: description: Specific terms for the deal type: string title: type: string required: - title - description - offer_type - offer_value type: object Vertical: properties: vertical: properties: description: type: string name: description: The vertical name type: string vertical_id: description: ID of the vertical type: number type: object type: object Reference_Locale: properties: locale: properties: code: description: The iso code of the locale type: string printable_name: description: The dictionary word for the locale type: string type: object type: object Reference_Currency_Country: properties: currency_country: properties: currency_iso: properties: AED: description: The ISO value for the currency properties: country_iso: description: An array of ISO values for the compatible currencies items: $ref: '#/components/schemas/Country' type: array type: object type: object type: object type: object Reference_Country: properties: country: properties: area_sq_km: type: number capital: type: string continent_iso: type: string continent_name: type: string currency_iso: description: The ISO of the currency type: string east: type: string fips_code: type: string geoname_id: type: number iso: description: The ISO code for the country type: string iso3: type: string iso_numeric: type: string languages: type: string north: type: string population: type: number printable_name: description: The dictionary word for the locale type: string ref_country_id: description: ID of the country type: number south: type: string west: type: string zone: type: string type: object type: object Reference_Currency: properties: currency: properties: currency_id: description: The id of the currency type: number iso: description: The ISO value for the currency type: string minor_unit: description: The number of decimal places type: number name: description: The name of the currency type: string type: object type: object Campaign_Extra_Field: properties: campaign_extra_field: properties: campaign_extra_field_id: description: The id of the extra field type: number field_comment: type: string field_default_value: description: The value assigned if no value is passed in type: string field_name: description: The name of the extra field type: string type: object type: object US_State: properties: us_state: properties: code: type: string printable_name: type: string type: object type: object Timezone: properties: timezone: properties: description: type: string local_time: type: string name: type: string ref_timezone_id: type: number utc_offset: type: string type: object type: object Device: properties: device: properties: ref_device_id: type: number title: type: string description: type: string skip_invoice: type: number skip_selfbill: type: number skip_override: type: number key: type: string type: object type: object User_Context: properties: user_context: properties: ref_user_context_id: type: number title: type: string description: type: string skip_invoice: type: string skip_selfbill: type: string skip_override: type: string key: type: string type: object type: object Traffic_Source: properties: traffic_source: properties: ref_traffic_source_id: type: number title: type: string description: type: string skip_invoice: type: string skip_selfbill: type: string skip_override: type: string type: object type: object Website_Type: properties: website_type: properties: description: type: string name: description: The name of the website type type: string website_id: description: The id of the website type type: number type: object type: object Promotional_Method: properties: promotional_method: properties: description: description: Description of the promo method type: string name: description: The name of the promo method type: string promotional_method_id: description: The id of the promo method type: number type: object type: object Conversion_Type: properties: conversion_type: properties: available_to_invoice: $ref: '#/components/schemas/YesOrNo' available_to_selfbill: $ref: '#/components/schemas/YesOrNo' conversion_type: description: The name of the extra field type: string conversion_type_id: description: The id of the conversion type type: number description: type: string exclude_from_override_rules: $ref: '#/components/schemas/YesOrNo' type: object type: object Conversion_Metric: properties: partnership_model: properties: ref_conversion_metric_id: type: number title: type: string description: type: string skip_invoice: type: string skip_selfbill: type: string skip_override: type: string type: object type: object Partnership_Model: properties: partnership_model: properties: ref_partnership_model_id: type: number title: type: string description: type: string skip_invoice: type: string skip_selfbill: type: string skip_override: type: string type: object type: object Brand_Overview_Base: properties: count: type: number execution_time: type: string start_date_time: type: string end_date_time: type: string total_impression_count: type: number total_click_count: type: number total_conversion_count: description: 'conversion count for each currency. E.g. "USD": 25, "EUR": 37' type: object properties: currency_iso: description: 'key value pairs where the currency iso is the key. E.g. EUR: 37' type: number total_commission_value: description: 'commission value for each currency. E.g. "USD": 324.65, "EUR": 583.59' type: object properties: currency_iso: description: 'key value pairs where the currency iso is the key. E.g. EUR: 37' type: number total_order_value: description: 'order value for each currency. E.g. "USD": 4000, "EUR": 5400.25' type: object properties: currency_iso: description: 'key value pairs where the currency iso is the key. E.g. EUR: 37' type: number total_publisher_commission_value: description: 'commission value for each currency. E.g. "USD": 400, "EUR": 311.215' type: object properties: currency_iso: description: 'key value pairs where the currency iso is the key. E.g. EUR: 37' type: number total_rejection_rate: properties: all_conversions_count: type: number percentage: type: number rejected_conversions_count: type: number type: object total_quantity: type: number total_clickthrough_rate: type: number total_ordersize_avg: type: number Brand_Overview_Currency_Stats: properties: impressions: type: number clicks: type: number currency: items: properties: currency_iso: description: key value pairs where the `currency iso` is the key and the value is an object containing a set of stats for the currency properties: commissions: type: number conversions: type: number ordervalue: type: number quantity: type: number publisher_commission: type: number ordervalue_avg: type: number conversion_rate: type: number earnings_per_click: type: number ordersize_avg: type: number type: object type: array quantity: type: number rejection_rate: properties: percentage: type: number all_conversions_count: type: number rejected_conversions_count: type: number type: object clickthrough_rate: type: number ordersize_avg: type: number Brand_Overview_Primary: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: publishers: items: properties: publisher: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: publisher_id: type: string account_name: type: string type: array Brand_Overview_Country: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: countrys: items: properties: country: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: country_iso: $ref: '#/components/schemas/Country' type: array Brand_Overview_Self: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: campaigns: items: properties: campaign: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: campaign_id: type: string title: type: string type: array Brand_Overview_Product: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: products: items: properties: product: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: product: type: string type: array Brand_Overview_Pubref: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: pubrefs: items: properties: pubref: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: reserved_tag_name: type: boolean pubref: type: string type: array Brand_Overview_Adref: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: adrefs: items: properties: adref: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: adref: type: string type: array Brand_Overview_Creative: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: creatives: items: properties: creative: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: reserved_tag_name: type: boolean creative_id: type: string creative_description: type: string creative_items: items: $ref: '#/components/schemas/Creative_Item' type: array type: array Brand_Overview_Agent: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: agents: items: properties: agent: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: agent_name: type: string agent_items: items: {} type: array type: array Brand_Overview_Custref: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: custrefs: items: properties: custref: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: custref: type: string type: array Brand_Overview_Type: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: types: items: properties: type: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: type: type: number type: array Brand_Overview_Device: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: devices: items: properties: device: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: device_id: type: number device_title: type: string type: array Brand_Overview_Source: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: sources: items: properties: source: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: source_id: type: number source_title: type: string type: array Brand_Overview_Partnership: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: partnerships: items: properties: partnership: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: partnership_id: type: number partnership_title: type: string type: array Brand_Overview_Metric: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: metrics: items: properties: metric: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: metric_id: type: number metric_title: type: string type: array Brand_Overview_Context: allOf: - $ref: '#/components/schemas/Brand_Overview_Base' - type: object properties: contexts: items: properties: context: allOf: - $ref: '#/components/schemas/Brand_Overview_Currency_Stats' - type: object properties: context_id: type: number context_title: type: string type: array Brand_Overview_Period_Stats: properties: impressions: type: number clicks: type: number currency: items: properties: currency_iso: description: key value pairs where the `currency iso` is the key and the value is an object containing a set of stats for the currency properties: commissions: type: number conversions: type: number ordervalue: type: number quantity: type: number publisher_commission: type: number ordervalue_avg: type: number conversion_rate: type: number earnings_per_click: type: number ordersize_avg: type: number type: object type: array quantity_all: type: number conversions_all: type: number conversions_rej: type: number rejection_rate: type: number clickthrough_rate: type: number ordersize_avg: type: number type: object Brand_Overview_Period: properties: totals: $ref: '#/components/schemas/Brand_Overview_Period_Stats' start_block: type: number end_block: type: number start_time: type: string end_time: type: string stats: $ref: '#/components/schemas/Brand_Overview_Period_Stats' Brand_Overview_Multidate_Current: properties: period: properties: current: $ref: '#/components/schemas/Brand_Overview_Period' type: object utc_offset: type: number Brand_Overview_Multidate_Ranges: properties: period: items: properties: range{index}: description: an indexed range. E.g. range0, range1, etc. $ref: '#/components/schemas/Brand_Overview_Period' type: object type: array utc_offset: type: number Brand_Conversions: properties: total_conversion_count: description: 'conversion count for each currency. E.g. "USD": 25, "EUR": 37' type: object properties: currency_iso: description: 'key value pairs where the currency iso is the key. E.g. EUR: 37' type: number total_commission_value: description: 'total commission value for each currency. E.g. "USD": 250.5, "EUR": 180.9' type: object properties: currency_iso: description: 'key value pairs where the currency iso is the key. E.g. EUR: 37' type: number total_publisher_commission: description: 'total publisher commission for each currency. E.g. "USD": 250.5, "EUR": 180.9' type: object properties: currency_iso: description: 'key value pairs where the currency iso is the key. E.g. EUR: 37' type: number total_value: description: 'total order value. E.g. "USD": 435.5, "EUR": 267.9' type: object properties: currency_iso: description: 'key value pairs where the currency iso is the key. E.g. EUR: 37' type: number start_date_time_utc: type: string end_date_time_utc: type: string start_date_time: type: string end_date_time: type: string limit: type: number meta_data: type: array description: Key value pairs of meta data items: properties: key: description: A key value pair. type: string count: type: number execution_time: type: string conversions: type: array items: $ref: '#/components/schemas/Conversion_Data' type: object Conversion_Data: properties: conversion_id: description: Id of the conversion example: 111111l314 type: string campaign_id: description: Id of the campaign example: 111111l29 type: string publisher_id: description: Id of the partner example: 111111l92 type: string conversion_time: type: string cookie_id: type: string creative_type: type: number creative_id: type: number specific_creative_id: type: number currency: $ref: '#/components/schemas/Currency' advertiser_reference: type: string conversion_reference: type: string customer_type: enum: - new - existing type: string referer_ip: type: string source_referer: type: string last_modified: type: string conversion_type: description: the conversion type id type: number country: $ref: '#/components/schemas/Country' customer_reference: type: string ref_device_id: type: number ref_partnership_model_id: type: number ref_traffic_source_id: type: number ref_conversion_metric_id: type: number ref_user_context_id: type: number campaign_title: type: string publisher_name: type: string click: $ref: '#/components/schemas/Click' ref_conversion_metric: type: string ref_device: type: string ref_partnership_model: type: string ref_traffic_source: type: string ref_user_context: type: string conversion_value: properties: conversion_status: $ref: '#/components/schemas/Conversion_Status' value: type: number commission: type: number publisher_commission: type: number meta_data: type: array description: Key value pairs of meta data items: properties: key: description: A key value pair. type: string conversion_items: type: array items: $ref: '#/components/schemas/Conversion_Item' was_disputed: type: boolean currency_original: $ref: '#/components/schemas/Currency' currency_conversion_rate: type: string conversion_lag: type: number clickref: type: string type: object Click: properties: click_id: type: string cookie_id: type: string campaign_id: description: Id of the campaign example: 111111l29 type: string publisher_id: description: Id of the partner example: 111111l92 type: string type: type: string status: type: string set_time: type: string set_ip: type: string last_used: type: number last_ip: type: string advertiser_reference: type: string referer: type: string creative_id: type: number creative_type: type: number specific_creative_id: type: number ref_device_id: type: number ref_traffic_source_id: type: number ref_partnership_model_id: type: number ref_user_context_id: type: number ref_device: type: string ref_traffic_source: type: string ref_partnership_model: type: string ref_user_context: type: string clickref: type: string type: object Brand_Click: properties: click_id: type: string cookie_id: type: string campaign_id: description: Id of the campaign example: 111111l29 type: string publisher_id: description: Id of the partner example: 111111l92 type: string type: type: string status: type: string set_time: type: string set_ip: type: string last_used: type: number last_ip: type: string advertiser_reference: type: string referer: type: string creative_id: type: number creative_type: type: number specific_creative_id: type: number ref_device_id: type: number ref_traffic_source_id: type: number ref_partnership_model_id: type: number ref_user_context_id: type: number clickref: type: string publisher_name: type: string type: object Conversion_Item: properties: conversion_item_id: type: string sku: type: number category: type: string item_value: type: number item_publisher_commission: type: number item_status: type: string invoice_id: type: string last_update: type: string display_to_publisher: enum: - 0 - 1 type: number approved_at: type: string item_status_id: type: number reject_reason: type: string voucher_codes: [] meta_data: type: array description: Key value pairs of meta data items: properties: key: description: A key value pair. type: string type: object Conversion_Status: enum: - pending - approved - rejected type: string Brand_Clicks: properties: unique_click_count: description: total count of unique clicks type: number start_date_time_utc: type: string end_date_time_utc: type: string start_date_time: type: string end_date_time: type: string limit: type: number offset: type: number count: type: number execution_time: type: string clicks: type: array items: $ref: '#/components/schemas/Brand_Click' type: object Brand_Filter_Set: properties: filter_set: properties: campaign_id: type: string created_at: type: string created_by: type: string data: type: string is_default: type: boolean name: type: string reporting_filter_set_id: type: string updated_at: type: string updated_by: type: string user_id: type: string type: object type: object Filter_Set_Body: content: application/json: schema: example: data: '{"report":{"pivot":"publisher","metric":"clicks"},"grouping":"","reportColumns":{},"currency":{"original":"GLOBAL","output":"GBP"},"statuses":{"approved":false,"pending":false,"rejected":false,"mixed":false},"period":["2017-02-13T00:00:00.000Z","2017-02-14T00:00:00.000Z"],"intervalCode":"PT1H","graphedCounterType":"clicks","compatibilityVersion":4}' is_default: false name: My lovely filters set properties: data: description: Must be a valid JSON string type: string is_default: type: boolean name: type: string required: - name - data type: object YesOrNo: enum: - y - n type: string Locale: enum: - bg - cs - da - de - de_at - en - en_au - en_ca - en_us - es - es_mx - el - et - fi - fl - fr - fr_ca - hu - id - it - jp - ko - ko_kr - lt - lv - ms_my - mt - my - nl - 'no' - pl - po - pt - pt_br - ro - ru - sg - sk - sl - sv - sv_se - th - tl - tr - vi - zh_cn - zh_hk type: string Status: type: string enum: - a - p - r - n Country: enum: - AD - AE - AF - AG - AI - AL - AM - AO - AQ - AR - AS - AT - AU - AW - AX - AZ - BA - BB - BD - BE - BF - BG - BH - BI - BJ - BL - BM - BN - BO - BQ - BR - BS - BT - BV - BW - BY - BZ - CA - CC - CD - CF - CG - CH - CI - CK - CL - CM - CN - CO - CR - CU - CV - CW - CX - CY - CZ - DE - DJ - DK - DM - DO - DZ - EC - EE - EG - EH - ER - ES - ET - FI - FJ - FK - FM - FO - FR - GA - GB - GD - GE - GF - GG - GH - GI - GL - GM - GN - GP - GQ - GR - GS - GT - GU - GW - GY - HK - HM - HN - HR - HT - HU - ID - IE - IL - IM - IN - IO - IQ - IR - IS - IT - JE - JM - JO - JP - KE - KG - KH - KI - KM - KN - KP - KR - KW - KY - KZ - LA - LB - LC - LI - LK - LR - LS - LT - LU - LV - LY - MA - MC - MD - ME - MF - MG - MH - MK - ML - MM - MN - MO - MP - MQ - MR - MS - MT - MU - MV - MW - MX - MY - MZ - NA - NC - NE - NF - NG - NI - NL - 'NO' - NP - NR - NU - NZ - OM - PA - PE - PF - PG - PH - PK - PL - PM - PN - PR - PS - PT - PW - PY - QA - RE - RO - RS - RU - RW - SA - SB - SC - SD - SE - SG - SH - SI - SJ - SK - SL - SM - SN - SO - SR - SS - ST - SV - SX - SY - SZ - TC - TD - TF - TG - TH - TJ - TK - TL - TM - TN - TO - TR - TT - TV - TW - TZ - UA - UG - UM - US - UY - UZ - VA - VC - VE - VG - VI - VN - VU - WF - WS - XK - YE - YT - ZA - ZM - ZW type: string Currency: enum: - GBP - USD - EUR - JPY type: string Legal_Entities: enum: - '1' - '2' - '3' - '4' - '5' - '6' - '7' type: string Timezones: enum: - Australia/Sydney - UTC - Europe/London - CET - GMT type: string Publishers_V2_Filters: account_created: name: account_created description: Date range for when partners signed up in: query schema: type: string example: 2020-01-01..2021-01-01 campaign_ids: name: campaign_ids description: The publishers' campaign ids in: query schema: $ref: '#/components/schemas/Publishers_V2_Filters/ids/schema' campaign_statuses: name: campaign_statuses description: The publishers' campaign statuses in: query schema: oneOf: - type: string enum: - approved - requested - invited - rejected - available - type: array items: $ref: '#/components/schemas/Publishers_V2_Filters/campaign_statuses/schema/oneOf/0' commission_group_ids: name: commission_group_ids description: The publishers' commission group ids in: query schema: $ref: '#/components/schemas/Publishers_V2_Filters/ids/schema' company_name: name: company_name description: The publishers' company name in: query schema: type: string fields: name: fields description: CSV list of fields to be returned as part of the response in: query schema: type: string, enum: - account_created - address - campaigns - commission_groups - company_name - company_logo - contact_email - contact_name - default_currency - description - id - locale - metadata - name - operating_country - partner_collection_ids - phone_number - promotional_countries - promotional_method - reporting_identifier - vertical - websites - website_info - network_notes - network_id - signup_ip ids: name: ids description: Filter by partner IDs in: query schema: oneOf: - type: string - type: array items: type: string include_discovery: name: include_discovery description: Whether to include partners with pending requests from brand discovery or invites from partner discovery in: query schema: $schema: http://json-schema.org/draft-04/schema title: Boolean type: string enum: - y - n website_verified: name: website_verified description: Whether to filter partners by their primary website domain verification status in: query schema: type: boolean enum: - y - n limit: name: limit description: The number of records to retrieve in: query schema: type: integer locales: name: locales description: The publishers' contact locale (locale codes), see https://api.partnerize.com/reference/locale in: query schema: $ref: '#/components/schemas/Publishers_V2_Filters/ids/schema' network_statuses: name: network_statuses description: The publishers' network status. Choosing requested or invited will automatically enable the include_discovery option for convenience. in: query schema: oneOf: - type: string enum: - approved - pending - rejected - invited - requested - type: array items: $ref: '#/components/schemas/Publishers_V2_Filters/network_statuses/schema/oneOf/0' offset: name: offset description: Starting position in: query schema: type: integer operating_countries: name: operating_countries description: The publishers' operating countries (country isos), see https://api.partnerize.com/reference/country in: query schema: $ref: '#/components/schemas/Publishers_V2_Filters/ids/schema' partner_collection_id: name: partner_collection_id description: Filter by partner collection ID in: query schema: type: string promotional_countries: name: promotional_countries description: The publishers' promotional countries (country isos), see https://api.partnerize.com/reference/country in: query schema: $ref: '#/components/schemas/Publishers_V2_Filters/ids/schema' promotional_method_ids: name: promotional_method_ids description: The publishers' promotional methods , see https://api.partnerize.com/reference/promotional_method in: query schema: $ref: '#/components/schemas/Publishers_V2_Filters/ids/schema' publisher_email: name: publisher_email in: query schema: type: string publisher_name: name: publisher_name description: Search by the publishers' company name, falling back the publisher name in: query schema: type: string publisher_tag_ids: name: publisher_tag_ids in: query schema: $ref: '#/components/schemas/Publishers_V2_Filters/ids/schema' publisher_website: name: publisher_website in: query schema: type: string reporting_identifier: name: reporting_identifier in: query schema: type: string search: name: search description: Search for matching publishers in: query schema: type: string sort: name: sort description: Order results in: query schema: type: string example: name vertical_ids: name: vertical_ids description: The publishers' verticals, see https://api.partnerize.com/reference/vertical in: query schema: $ref: '#/components/schemas/Publishers_V2_Filters/ids/schema' parameters: campaignId: name: campaignId description: The ID of the Campaign in: path required: true schema: type: string example: 111111l1