,
, ,
, ,
, , , - ,
`'
foreign_identifier:
type: string
gst_registered:
type: string
im_provider:
type: string
im_username:
type: string
is_affiliate_user:
$ref: '#/components/schemas/YesOrNo'
is_foreign_network:
description: Reporting only flag. All conversions will be automatically
approved but will not be invoiceable.
$ref: '#/components/schemas/YesOrNo'
is_lead_user:
$ref: '#/components/schemas/YesOrNo'
network_notes:
type: string
network_status:
$ref: '#/components/schemas/Status'
operating_country:
$ref: '#/components/schemas/Country'
phone:
type: string
description: Primary contact telephone number
phone_area:
type: string
description: Phone prefix to declare country or region
promotional_method:
type: integer
publisher_id:
type: string
description: ID of the publisher
readOnly: true
reporting_identifier:
type: string
reporting_timezone:
type: string
uk_vat_registered:
$ref: '#/components/schemas/YesOrNo'
us_tax_state:
type: string
vat_number:
type: integer
vertical:
type: integer
week_start:
type: string
oneOf:
- type: object
title: Company Logo from URL
properties:
company_logo:
description: Url of image to download. Supports PNG and JPEG only.
type: string
nullable: true
example:
publisher_id: 1l10101
description: Example Partner
company_logo: https://example.com/logo.jpg
promotional_method: 9
- type: object
title: Company Logo via Upload
properties:
company_logo_upload:
description: Base64 encoded data url of image to upoad. Supports
PNG and JPEG only.
type: string
nullable: true
example:
publisher_id: 1l10101
description: Example Partner
company_logo_upload: data:image/jpg;base64,...
promotional_method: 9
responses:
'200':
description: Partner Updated
content:
application/json:
schema:
properties:
status:
title: status
type: object
properties:
status:
type: string
message:
type: string
example:
status: Updated
message: Publisher successfully updated
publisher:
title: Partner
type: object
allOf:
- $ref: '#/components/schemas/Partner'
- properties:
websites:
type: array
items:
$ref: '#/components/schemas/Partner_Website'
databases:
type: array
items:
$ref: '#/components/schemas/Partner_Database'
example:
account_name: publisher123
company_name: Eve Online
company_logo: https://console.partnerize.com/assets/logos/111111l2-1.jpg
contact_email: info@partnerize.com
contact_locale: en
contact_name: Eve
created: '2019-10-30 11:08:41'
created_by: 111111l1
default_currency: USD
im_provider: Skype
im_username: evangeline
is_affiliate_user: y
is_us_registered: null
legal_entity: AE
network_id: 111111l1
network_status: a
operating_country: AE
phone: 555213456
phone_area: 44
promotional_method: 1
promotional_method_name: PPC
publisher_id: 111111l2
reporting_timezone: Asia/Dubai
signup_ip: 80.80.80.80
terms_and_conditions_id: 56
vertical: 2
vertical_name: Retail
week_start: monday
/user/publisher/{publisher_id}/website:
get:
parameters:
- 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:
websites:
- website:
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
schema:
properties:
websites:
items:
$ref: '#/components/schemas/Partner_Website_Wrapper'
type: array
type: object
description: OK
tags:
- Websites
description: Return the details of all Websites attached to the Partner account.
operationId: List all Partner Websites
summary: List all Partner Websites
post:
parameters:
- 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:
websites:
- website:
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
schema:
properties:
websites:
items:
$ref: '#/components/schemas/Partner_Website_Wrapper'
type: array
type: object
description: OK
tags:
- Websites
description: Create one or more Websites against the Partner entity. Each Website
is sent as an array within a top level `websites` array.
operationId: Create Partner Website
requestBody:
content:
application/json:
schema:
anyOf:
- example:
active: y
primary: n
description: Demo Partner website
website_country: GB
website_name: null
website_type: 9
website_type_name: PPC
website_url: http://www.partnerize.com
website_vertical: 10
website_vertical_name: Technical
$ref: '#/components/schemas/Partner_Website'
- example:
websites:
- active: y
primary: n
description: Demo Partner website
website_country: GB
website_name: null
website_type: 9
website_type_name: PPC
website_url: http://www.partnerize.com
website_vertical: 10
website_vertical_name: Technical
title: Array of Partner_Websites
properties:
websites:
items:
$ref: '#/components/schemas/Partner_Website'
type: array
type: object
summary: Create Partner Website
put:
parameters:
- 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:
websites:
- website:
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
schema:
properties:
websites:
items:
$ref: '#/components/schemas/Partner_Website'
type: array
type: object
description: OK
tags:
- Websites
description: Update one or more Websites against the Partner entity. Each Website
is sent as an array within a top level `websites` array and must contain its
associated `website_id`.
operationId: Update Partner Websites
requestBody:
content:
application/json:
schema:
example:
websites:
- active: y
primary: n
description: Demo Partner website
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
properties:
websites:
items:
$ref: '#/components/schemas/Partner_Website'
type: array
type: object
summary: Update Partner Websites
/user/publisher/{publisher_id}/website/{website_id}:
get:
parameters:
- description: ID of the partner
example: 1l1007802
in: path
name: publisher_id
required: true
schema:
type: string
- description: ID of the partner website
example: 11l18694
in: path
name: website_id
required: true
schema:
type: string
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
website:
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
schema:
$ref: '#/components/schemas/Partner_Website_Wrapper'
type: object
description: OK
tags:
- Websites
description: Retrieves the specified partner website.
operationId: Retrieve a Partner Website
summary: Retrieve a Partner Website
/user/publisher/{publisher_id}/database:
get:
parameters:
- 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:
databases:
- database:
active: y
creation_method: Email
database_id: 111111l300347
database_name: Partnerize Test Database
female: 50
male: 50
max_age: 77
min_age: 25
publisher_id: 1l1007802
size: 53000
schema:
properties:
databases:
items:
$ref: '#/components/schemas/Partner_Database_Wrapper'
type: array
type: object
description: OK
tags:
- Databases
description: Return the details of all Databases attached to the Partner account.
operationId: List Partner Databases
summary: List Partner Databases
post:
parameters:
- 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:
databases:
- database:
active: y
creation_method: Email
database_id: 111111l300347
database_name: PHG Test Database
female: 50
male: 50
max_age: 77
min_age: 25
publisher_id: 1l1007802
size: 53000
schema:
properties:
databases:
items:
$ref: '#/components/schemas/Partner_Database'
type: array
type: object
description: OK
tags:
- Databases
description: Create one or more Databases against the partner entity. Each Database
is sent as an array within a top level `databases` array.
operationId: Create Partner Database
requestBody:
content:
application/json:
schema:
anyOf:
- example:
active: y
creation_method: Email
database_name: Partnerize Test Database
female: 50
male: 50
max_age: 77
min_age: 25
size: 53000
$ref: '#/components/schemas/Partner_Database'
- example:
databases:
- active: y
creation_method: Email
database_name: PHG Test Database
female: 50
male: 50
max_age: 77
min_age: 25
size: 53000
title: Array of Partner_Databases
properties:
databases:
items:
$ref: '#/components/schemas/Partner_Database'
type: array
type: object
summary: Create Partner Database
put:
parameters:
- 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:
databases:
- database:
active: y
creation_method: Email
database_id: 111111l300347
database_name: Partnerize Test Database
female: 50
male: 50
max_age: 77
min_age: 25
publisher_id: 1l1007802
size: 53000
schema:
properties:
databases:
items:
$ref: '#/components/schemas/Partner_Database_Wrapper'
type: array
type: object
description: OK
tags:
- Databases
description: Update one or more Databases against the Partner entity. Each Database
is sent as an array within a top level `databases` array and must contain
its associated `database_id`.
operationId: Update Partner Databases
requestBody:
content:
application/json:
schema:
example:
databases:
- active: y
creation_method: Email
database_id: 111111l300347
database_name: Partnerize Test Database
female: 50
male: 50
max_age: 77
min_age: 25
size: 53000
properties:
databases:
items:
$ref: '#/components/schemas/Partner_Database_Wrapper'
type: array
type: object
summary: Update Partner Databases
/user/publisher/{publisher_id}/database/{database_id}:
get:
parameters:
- description: ID of the partner
example: 1l1007802
in: path
name: publisher_id
required: true
schema:
type: string
- description: ID of the partner database
example: 111111l300347
in: path
name: database_id
required: true
schema:
type: string
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
database:
active: y
creation_method: Email
database_id: 111111l300347
database_name: Partnerize Test Database
female: 50
male: 50
max_age: 77
min_age: 25
publisher_id: 1l1007802
size: 53000
schema:
$ref: '#/components/schemas/Partner_Database_Wrapper'
description: OK
tags:
- Databases
description: Retrieves the specified Partner Database.
operationId: Retrieve a Partner Database
summary: Retrieve a Partner Database
/user/publisher/{publisher_id}/tq:
get:
parameters:
- 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: query
name: campaign_id
required: false
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:
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 Publisher
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
'401':
content:
application/json; charset=utf-8:
examples:
response:
value:
error:
message: 'Permission Denied: User cannot perform tq_read action
on publisher-1l1007802'
type: Access Permission Denied
schema:
properties:
error:
properties:
message:
type: string
type:
type: string
type: object
type: object
description: Unauthorized
tags:
- Transaction Queries
description: Return the details of all Transaction Queries created by the Partner
account.
operationId: List Transaction Queries
summary: List all Transaction Queries
/user/publisher/{publisher_id}/tq/create:
post:
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
execution_time: 1.16076 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:
fields: {}
message: transaction_queries not found
type: Validation Fail
schema:
properties:
error:
properties:
fields:
properties: {}
type: object
message:
type: string
type:
type: string
type: object
type: object
description: Bad Request
'401':
content:
application/json; charset=utf-8:
examples:
response:
value:
error:
message: 'Permission Denied: User cannot perform tq_read action
on publisher-1l1007802'
type: Access Permission Denied
schema:
properties:
error:
properties:
message:
type: string
type:
type: string
type: object
type: object
description: Unauthorized
tags:
- Transaction Queries
description: 'Create one or more Transaction Queries. The fields required depends
on the type of TQ being created: - Untracked: conversion_reference, camref,
conversion_value, expected_commission, conversion_date_time - Incorrect commission:
conversion_reference, camref, expected_commission - Declined: conversion_reference,
camref'
operationId: Create Transaction Queries
requestBody:
content:
application/json:
schema:
example:
transaction_queries:
- camref: hrDu67
conversion_currency: GBP
conversion_date_time: 2017-01-01 00:00
conversion_reference: AF222PO
conversion_value: 67.12
expected_commission: 6.71
notes: Sample note
publisher_reference: A200FG1
transaction_query_type: untracked
properties:
transaction_queries:
type: array
type: object
summary: Create Transaction Queries
/user/publisher/{publisher_id}/tq/{transaction_query_id}/delete:
post:
parameters:
- 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: 1.16076 seconds
transaction_query:
deleted: true
schema:
properties:
execution_time:
type: string
transaction_query:
properties:
deleted:
type: boolean
type: object
type: object
description: OK
'401':
content:
application/json; charset=utf-8:
examples:
response:
value:
error:
message: 'Permission Denied: User cannot perform tq_read action
on publisher-1l1007802'
type: Access Permission Denied
schema:
properties:
error:
properties:
message:
type: string
type:
type: string
type: object
type: object
description: Unauthorized
'404':
content:
application/json; charset=utf-8:
examples:
response:
value:
error:
message: Transaction Query could not be found; possibly because
it does not exist. Please check your selection and try again.
type: '404'
schema:
properties:
error:
properties:
message:
type: string
type:
type: string
type: object
type: object
description: Not Found
'405':
content:
application/json; charset=utf-8:
examples:
response:
value:
error:
message: You cannot remove a Transaction Query that has been
changed to Approved or Rejected.
type: '405'
schema:
properties:
error:
properties:
message:
type: string
type:
type: string
type: object
type: object
description: Method Not Allowed
tags:
- Transaction Queries
description: Delete a single Transaction Query. Once a Transaction Query has
been approved or rejected it cannot be deleted.
operationId: Delete a Transaction Query
summary: Delete a Transaction Query
/user/publisher/{publisher_id}/selfbill:
get:
parameters:
- description: ID of the partner
example: 1l1007802
in: path
name: publisher_id
required: true
schema:
type: string
- description: Selfbill created from start date
example: '2020-02-19 14:29:33'
in: query
name: start_date
required: false
schema:
type: string
- description: Selfbill created till end date
example: '2020-02-19 17:29:33'
in: query
name: end_date
required: false
schema:
type: string
- description: Tracked currency
example: GBP
in: query
name: currency
required: false
schema:
type: string
- description: Payment status
example: created
in: query
name: status
required: false
schema:
type: string
- description: Payment paid from start date
example: '2020-02-19 14:29:33'
in: query
name: payment_start_date
required: false
schema:
type: string
- description: Payment paid till end date
example: '2020-02-19 17:29:33'
in: query
name: payment_end_date
required: false
schema:
type: string
- description: Paid currency
example: GBP
in: query
name: paid_currency
required: false
schema:
type: string
- description: Selfbill currency
example: GBP
in: query
name: selfbill_currency
required: false
schema:
type: string
- description: Field to sort the results by
example: paid_currency
in: query
name: order
required: false
schema:
type: string
- description: Direction to sort the results by
example: ASC
in: query
name: order_dir
required: false
schema:
type: string
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
selfbills:
- selfbill:
creation_date: '2012-07-25 14:22:35'
download: null
item_download: null
items_in_bill: 5
legal_entity: GB
majority_received_currency: GBP
net_value: 430.17
paid_currency: GBP
payment_batch_id: null
payment_date: null
payment_detail_set_id: 24
publisher_id: 1l1007802
publisher_payment_detail_set_id: 111111l80
publisher_self_bill_id: 1011l5403
publisher_self_bill_reference: null
self_bill_reference: S-1l1007802-1011l5403
selfbill_currency: GBP
status: created
timestamp: '2012-07-25 14:22:35'
total_value: 430.17
tracked_currency: GBP
tracked_net_value: 430.17
vat_rate: 0
vat_value: 0
withheld_tax: 0
schema:
properties:
selfbills:
items:
$ref: '#/components/schemas/Selfbill'
type: array
type: object
description: OK
tags:
- Self-billing
description: View all Self-billing invoices that have been created for the partner.
operationId: List all Selfbills
summary: List all Selfbills
/user/publisher/{publisher_id}/selfbill/{publisher_self_bill_id}:
get:
parameters:
- description: ID of the partner
example: 1l1007802
in: path
name: publisher_id
required: true
schema:
type: string
- description: ''
example: 1011l5403
in: path
name: publisher_self_bill_id
required: true
schema:
type: string
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
selfbill:
creation_date: '2012-07-25 14:22:35'
download: null
item_download: null
items_in_bill: 5
legal_entity: GB
majority_received_currency: GBP
net_value: 430.17
paid_currency: GBP
payment_batch_id: null
payment_date: null
payment_detail_set_id: 24
publisher_id: 1l1007802
publisher_payment_detail_set_id: 111111l80
publisher_self_bill_id: 1011l5403
publisher_self_bill_reference: null
self_bill_reference: S-1l1007802-1011l5403
selfbill_currency: GBP
status: created
timestamp: '2012-07-25 14:22:35'
total_value: 430.17
tracked_currency: GBP
tracked_net_value: 430.17
vat_rate: 0
vat_value: 0
withheld_tax: 0
schema:
$ref: '#/components/schemas/Selfbill'
description: OK
tags:
- Self-billing
description: Retrieve an individual Self-billing invoice.
operationId: Retrieve a Selfbill
summary: Retrieve a Self-billing invoice.
/user/publisher/{publisher_id}/payment_detail:
get:
parameters:
- 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:
payment_details:
1011l22:
publisher_payment_detail_set_id: 1011l22
country: US
paid_currency: USD
tracked_currency:
- USD
payment_type_code: eft
payment_type_name: Electronic funds transfer
automatic_self_bill_creation_date: '-1'
automatic_self_bill_creation_threshold: '-1'
suspended: n
suspended_at: null
suspended_by: null
suspension_notes: null
payment_detail_values:
bank_address: 8th Floor, West One, Forth Banks
account_number: 12345678
account_name: joe bloggs
bank_name: bob bank
routing_number: 122105155
schema:
properties:
payment_details:
items:
$ref: '#/components/schemas/Payment_Details'
type: array
type: object
description: OK
tags:
- Payment Details
description: View all Payment Details for a partner.
operationId: List Payment Details
summary: List Payment Details
post:
parameters:
- 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:
payment_details:
1011l23:
publisher_payment_detail_set_id: 1011l23
country: US
paid_currency: USD
tracked_currency:
- USD
payment_type_code: eft
payment_type_name: Electronic funds transfer
automatic_self_bill_creation_date: '-1'
automatic_self_bill_creation_threshold: '-1'
suspended: n
suspended_at: null
suspended_by: null
suspension_notes: null
payment_detail_values:
bank_address: 8th Floor, West One, Forth Banks
account_number: 12345678
account_name: joe bloggs
bank_name: bob bank
routing_number: 122105155
schema:
properties:
payment_details:
items:
$ref: '#/components/schemas/Payment_Details'
type: array
type: object
description: OK
tags:
- Payment Details
description: Create Payment Details for a partner.
operationId: Create Payment Details
requestBody:
content:
application/json:
schema:
example:
payment_details:
1011l22:
publisher_payment_detail_set_id: 1011l22
country: US
paid_currency: USD
tracked_currency:
- USD
payment_type_code: eft
payment_type_name: Electronic funds transfer
automatic_self_bill_creation_date: '-1'
automatic_self_bill_creation_threshold: '-1'
suspended: n
suspended_at: null
suspended_by: null
suspension_notes: null
payment_detail_values:
bank_address: 8th Floor, West One, Forth Banks
account_number: 12345678
account_name: joe bloggs
bank_name: bob bank
routing_number: 122105155
properties:
payment_details:
items:
properties:
1011l22:
description: Dynamic property name equal to the payment details
set id. Must be active. Example - 1011l22
properties:
publisher_payment_detail_set_id:
type: string
payment_detail_values:
properties:
bank_address:
type: string
account_number:
type: number
account_name:
type: string
bank_name:
type: string
routing_number:
type: number
type: object
type: object
type: array
type: object
summary: Create Payment Details
/user/publisher/{publisher_id}/available_commission:
get:
parameters:
- 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:
available_commissions:
available_commission:
no_items: 1
value: 568
publisher_commission: 312.4
currency: SGD
publisher_id: 1l1007802
publisher_commission_converted:
currency: USD
value: 228.88
schema:
properties:
available_commissions:
items:
properties:
no_items:
description: Number of items
type: number
value:
type: number
publisher_commission:
type: number
currency:
$ref: '#/components/schemas/Currency'
publisher_id:
type: string
publisher_commission_converted:
properties:
currency:
$ref: '#/components/schemas/Currency'
value:
type: number
type: object
type: array
type: object
description: OK
tags:
- Available Commission
description: Retrieve the available commission for a given partner.
operationId: Retrieve Available Commission
summary: Retrieve Available Commission
/user/publisher/{publisher_id}/payment/summary:
get:
parameters:
- 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:
execution_time: 2.25885 seconds
summary:
available:
CAD: 12.45
AUD: 0.4
confirmed:
EUR: 11
GBP: 54.2
pending:
EUR: 125.11
GBP: 57.65
JPY: 97
approved:
GBP: 90.8
USD: 100.23
paid:
PLN: 68.96
schema:
$ref: '#/components/schemas/Partner_Payment_Summary'
description: OK
tags:
- Summary
description: Return the details of partner's pending (shows value of pending
conversions), approved (shows value of approved conversions), confirmed (amount
that will be available once brand's invoice is paid), available (amount of
money available to withdraw in this moment), and paid (already withdrawn)
funds.
operationId: Partner payments summary
summary: Summarise value of partner's conversions
/v2/publishers//links:
get:
parameters:
- 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:
execution_time: 0.29440 seconds
count: 2
limit: 200
offset: 0
links:
- id: 1011l10
campaign_id: 4d36c720be593
description: null
destination_url: http://test.com
tracking_short_url: https://staging.prf.hn/l/bKVPQEz
tracking_url: https://staging.prf.hn/click/camref:cCdTebt4e/pubref:fdghjdkf/destination:http://test.com
params:
- key: pubref
value: fdghjdkf
active: true
- id: 1011l18
campaign_id: '300045'
description: null
destination_url: http://dfdff
tracking_short_url: https://staging.prf.hn/l/GE082EL
tracking_url: https://staging.prf.hn/click/camref:i995/pubref:fdfdf/adref:dfdff/destination:http://dfdff
params:
- key: pubref
value: fdfdf
- key: adref
value: dfdff
active: true
hypermedia:
pagination:
total_page_count: 1
total_item_count: 1
first_page: /v2/publishers/2/links?limit=200&offset=0
last_page: /v2/publishers/2/links?limit=200&offset=0
next_page: null
previous_page: null
schema:
properties:
links:
items:
$ref: '#/components/schemas/Link'
type: array
type: object
description: OK
tags:
- Tracking Links
description: Retrieve tracking links for a given partner. Note, these will only
be short links.
operationId: Retrieve Tracking Links
summary: Retrieve Tracking Links
post:
parameters:
- 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:
execution_time: 0.29440 seconds
link:
id: 1011l10
campaign_id: 4d36c720be593
description: null
destination_url: http://test.com
tracking_short_url: https://staging.prf.hn/l/bKVPQEz
tracking_url: https://staging.prf.hn/click/camref:cCdTebt4e/pubref:fdghjdkf/destination:http://test.com
params:
- key: pubref
value: fdghjdkf
active: true
schema:
properties:
link:
$ref: '#/components/schemas/Link'
description: OK
tags:
- Tracking Links
description: Create tracking links for a given partner and campaign.
operationId: Create Tracking Links
requestBody:
content:
application/json:
example:
campaign_id: 4d36c720be593
description: null
destination_url: http://test.com
params:
- key: pubref
value: fdghjdkf
active: true
schema:
properties:
campaign_id:
type: string
description:
type: string
destination_url:
type: string
params:
items:
$ref: '#/components/schemas/Key_Value_Pair'
active:
type: boolean
required:
- campaign_id
type: object
summary: Create a Tracking Link
/v2/publishers//links/:
get:
parameters:
- description: ID of the partner
example: 1l1007802
in: path
name: publisher_id
required: true
schema:
type: string
- description: ID of the tracking link
example: 1011l10
in: path
name: link_id
required: true
schema:
type: string
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
execution_time: 0.29440 seconds
link:
id: 1011l10
campaign_id: 4d36c720be593
description: null
destination_url: http://test.com
tracking_short_url: https://staging.prf.hn/l/bKVPQEz
tracking_url: https://staging.prf.hn/click/camref:cCdTebt4e/pubref:fdghjdkf/destination:http://test.com
params:
- key: pubref
value: fdghjdkf
active: true
schema:
properties:
link:
$ref: '#/components/schemas/Link'
type: object
description: OK
tags:
- Tracking Links
description: Retrieve a tracking link.
operationId: Retrieve a Tracking Link
summary: Retrieve a Tracking Link
patch:
parameters:
- description: ID of the partner
example: 1l1007802
in: path
name: publisher_id
required: true
schema:
type: string
- description: ID of the tracking link
example: 1011l10
in: path
name: link_id
required: true
schema:
type: string
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
execution_time: 0.29440 seconds
link:
id: 1011l10
campaign_id: 4d36c720be593
description: test
destination_url: http://test.com
tracking_short_url: https://staging.prf.hn/l/bKVPQEz
tracking_url: https://staging.prf.hn/click/camref:cCdTebt4e/pubref:fdghjdkf/destination:http://test.com
params:
- key: pubref
value: fdghjdkf
active: true
schema:
properties:
link:
$ref: '#/components/schemas/Link'
type: object
description: OK
tags:
- Tracking Links
description: Update a tracking link.
operationId: Update a Tracking Link
requestBody:
content:
application/json:
example:
campaign_id: 4d36c720be593
description: test
destination_url: http://test.com
params:
- key: pubref
value: fdghjdkf
active: true
schema:
properties:
campaign_id:
type: string
description:
type: string
destination_url:
type: string
params:
items:
$ref: '#/components/schemas/Key_Value_Pair'
active:
type: boolean
type: object
summary: Update a Tracking Link
/v2/campaigns/{campaignId}/publishers/{publisherId}/commissions/default:
get:
operationId: get-publisher-commissions-default
tags:
- Commissions
summary: Get 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:
- 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:
title: Commission Status
description: These values are internally managed and represent
the statue of the Commission
type: string
enum:
- ACTIVE
- RETIRED
- DELETED
- SCHEDULED
meta_fields:
type: array
items:
title: Meta Field Rules
allOf:
- $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1active/get/responses/200/content/application~1json/schema/properties/active_commissions/items/anyOf/1/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/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1campaign/get/responses/200/content/application~1json/schema/properties/commissions/items/properties/meta_fields/items/allOf/1/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
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:
- Voucher 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~1publishers~1%7BpublisherId%7D~1commissions~1campaign/get/responses/200/content/application~1json/schema/properties/commissions/items/properties/status'
meta_fields:
type: array
minItems: 0
items:
type: object
title: Meta Field Value
description: Meta Field with an assigned value
allOf:
- type: object
title: Meta Field
properties:
name:
type: string
description: The name of the meta field
example: category
required:
- name
- properties:
value:
description: The value of meta field to look for
required:
- value
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~1publishers~1%7BpublisherId%7D~1commissions~1tier/get/responses/200/content/application~1json/schema/properties/tiers/items/properties/groups/items'
commission_based_on_field:
type: string
/v2/campaigns/{campaignId}/publishers/{publisherId}/commissions/promotion:
get:
operationId: get-publisher-commissions-promotion
tags:
- Promotional 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~1publishers~1%7BpublisherId%7D~1commissions~1campaign/get/responses/200/content/application~1json/schema/properties/commissions/items/properties/status'
meta_fields:
type: array
items:
$ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1campaign/get/responses/200/content/application~1json/schema/properties/commissions/items/properties/meta_fields/items'
publishers:
type: array
minItems: 0
items:
$ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1tier/get/responses/200/content/application~1json/schema/properties/tiers/items/properties/publishers/items'
groups:
type: array
minItems: 0
items:
$ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1tier/get/responses/200/content/application~1json/schema/properties/tiers/items/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:
- Tiered 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:
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: Which approval statuses to reward
reward_model:
allOf:
- title: Reward Model
description: Model used to calculate Partner rewards
type: string
enum:
- fixed_reward
- fixed_cpa
- percentage_cpa
performance_measurement:
allOf:
- title: Performance Measurement
description: The measurement used to calculate Partners
performance
type: string
enum:
- total_items
- total_revenue
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~1publishers~1%7BpublisherId%7D~1commissions~1voucher/get/responses/200/content/application~1json/schema/properties/voucher_commissions/items/properties/meta_fields/items/allOf/0'
- type: object
properties:
weight:
type: number
description: The weight of the meta field
required:
- weight
- $ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1campaign/get/responses/200/content/application~1json/schema/properties/commissions/items/properties/meta_fields/items'
levels:
type: array
minItems: 1
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: 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}/publishers/{publisherId}/commissions/active:
get:
operationId: get-active-publisher-commissions
tags:
- 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:
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
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~1publishers~1%7BpublisherId%7D~1commissions~1campaign/get/responses/200/content/application~1json/schema/properties/commissions/items/properties/status'
meta_fields:
type: array
items:
$ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1campaign/get/responses/200/content/application~1json/schema/properties/commissions/items/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: 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:
title: Performance Model
description: Model used to calculate Partner commission
type: string
enum:
- fixed_cpa
- percentage_cpa
- cpc
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
- 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~1publishers~1%7BpublisherId%7D~1commissions~1tier/get/responses/200/content/application~1json/schema/properties/tiers/items/properties/reward_model/allOf/0'
performance_measurement:
$ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1tier/get/responses/200/content/application~1json/schema/properties/tiers/items/properties/performance_measurement/allOf/0'
status:
$ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1tier/get/responses/200/content/application~1json/schema/properties/tiers/items/properties/status'
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~1publishers~1%7BpublisherId%7D~1commissions~1voucher/get/responses/200/content/application~1json/schema/properties/voucher_commissions/items/properties/meta_fields/items/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
levels:
type: array
minItems: 1
description: An array of Commission Tier Levels.
items:
$ref: '#/paths/~1v2~1campaigns~1%7BcampaignId%7D~1publishers~1%7BpublisherId%7D~1commissions~1tier/get/responses/200/content/application~1json/schema/properties/tiers/items/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}/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
/user/publisher/{publisherId}/commission_group:
get:
operationId: get-partner-commission-groups
tags:
- Commission Groups (v1)
summary: List Partner Commission Groups
description: 'This endpoint lists all commission groups for a partner.
'
parameters:
- in: path
name: publisherId
description: The ID of a Partner
required: true
schema:
type: string
responses:
'200':
description: Commission Groups List
content:
application/json:
examples:
response:
value:
count: 2
execution_time: 0.02571 seconds
commission_groups:
- commission_group:
commission_group_id: 1011l1
campaign_id: 1
name: The_group
description: ''
start_date_time: '2018-11-01 12:00:00'
end_date_time: null
active: y
last_modified: '2018-11-29 14:57:05'
- commission_group:
commission_group_id: 1011l16
campaign_id: 300659
name: Blog
description: ''
start_date_time: '2019-06-03 11:00:00'
end_date_time: null
active: n
last_modified: '2019-07-29 11:03:32'
schema:
properties:
count:
type: number
execution_time:
type: string
commission_groups:
items:
properties:
commission_group:
properties:
commission_group_id:
description: the Id of the commission group
type: string
campaign_id:
description: the Id of the campaign
type: string
name:
description: the name of the campaign group
type: string
description:
type: string
start_date_time:
type: string
end_date_time:
type: string
active:
$ref: '#/components/schemas/YesOrNo'
last_modified:
type: string
type: object
type: object
type: array
type: object
/v2/publishers/{publisherId}/discovery/advertisers:
get:
parameters:
- name: publisherId
in: path
description: ID of the partner
examples:
- 1l1007802
required: true
schema:
type: string
operationId: getBrands
tags:
- Brand Discovery (v2)
summary: List Brands & Campaigns
description: 'Returns all campaigns available for a partner to join, grouped
by brand.
Each campaign will include a `status:` for the partner:-
* AVAILABLE
* REQUESTED
* INVITED
* REJECTED
'
responses:
'200':
description: Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-04/schema
type: object
title: Advertisers
properties:
advertisers:
type: array
items:
allOf:
- $ref: '#/paths/~1v2~1publishers~1%7BpublisherId%7D~1discovery~1advertisers~1%7BadvertiserId%7D/get/responses/200/content/application~1json/schema/properties/advertiser/allOf/0'
- properties:
campaigns:
type: array
title: Campaign
items:
$schema: http://json-schema.org/draft-04/schema
type: object
properties:
id:
type: string
default_destination:
type: string
nullable: true
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: £
vertical:
$schema: http://json-schema.org/draft-04/schema
title: Vertical
type: object
properties:
id:
type: string
example: '1'
name:
type: string
example: Retail
status:
enum:
- AVAILABLE
- REQUESTED
- INVITED
- REJECTED
additionalProperties: false
/v2/publishers/{publisherId}/discovery/advertisers/{advertiserId}:
get:
parameters:
- name: publisherId
in: path
description: ID of the partner
examples:
- 1l1007802
required: true
schema:
type: string
- name: advertiserId
in: path
description: ID of the brand
examples:
- 1l1007802
required: true
schema:
type: string
operationId: getBrand
tags:
- Brand Discovery (v2)
summary: Retrieve a Brand
description: 'Returns one advertiser with a list of campaigns availabe for a
partner to join.
Each campaign will include a `status:` for the partner:-
* AVAILABLE
* REQUESTED
* INVITED
* REJECTED
'
responses:
'200':
description: Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-04/schema
type: object
title: Advertiser
properties:
advertiser:
allOf:
- $schema: http://json-schema.org/draft-04/schema#
type: object
properties:
id:
type: string
name:
type: string
display_name:
type: string
contact_email:
type: string
nullable: true
description:
type: string
nullable: true
advertiser_icon:
type: string
nullable: true
network:
type: object
properties:
id:
type: string
name:
type: string
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
- properties:
campaigns:
type: array
title: Campaign
items:
allOf:
- $ref: '#/paths/~1v2~1publishers~1%7BpublisherId%7D~1discovery~1advertisers/get/responses/200/content/application~1json/schema/properties/advertisers/items/allOf/1/properties/campaigns/items'
- properties:
campaign_icon:
type: string
nullable: true
additionalProperties: false
/v2/publishers/{publisher_id}/invitations/advertisers/:
get:
parameters:
- 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:
advertisers:
- address:
country: Chile
line1: 123 Super street
line2: ''
line3: Super city
line4: ''
postcode: SU5 PER
id: '301284'
invitations:
- campaign:
currency:
iso: CLP
name: Chilean peso
symbol: $
default_destination: https://mysuperdefaultdestination.com
id: '300866'
campaign_logo: https://path/to/campaign/logo.png
title: My that is a super campaign
vertical:
id: '131'
name: boats
id: 11111|1
name: Super brand
network:
id: 111111l300118
name: Super nework
count: 1
execution_time: 0.98709 seconds
schema:
additionalProperties: false
properties:
advertisers:
items:
properties:
address:
properties:
country:
$ref: '#/components/schemas/Country'
line1:
type: string
line2:
type: string
line3:
type: string
line4:
type: string
postcode:
type: string
type: object
id:
type: string
invitations:
items:
properties:
campaign:
properties:
currency:
properties:
iso:
type: string
name:
type: string
symbol:
type: string
type: object
campaign_logo:
type: string
default_destination:
type: string
id:
type: string
title:
type: string
vertical:
properties:
id:
type: string
name:
type: string
type: object
type: object
id:
type: string
type: object
type: array
name:
type: string
network:
properties:
id:
type: string
name:
type: string
type: object
type: object
type: array
count:
type: number
execution_time:
type: string
required:
- execution_time
- count
- advertisers
type: object
description: OK
tags:
- Campaign Invitations (v2)
description: See all invites available to a partner grouped by brand
operationId: List Invitations
summary: List Invitations
/v2/publishers/{publisherId}/invitations/accept:
post:
parameters:
- name: publisherId
in: path
description: ID of the partner
examples:
- 1l1007802
required: true
schema:
type: string
operationId: acceptInvitations
tags:
- Campaign Invitations (v2)
summary: Accept Campaign Invitiations
description: 'Allows a partner to accept one of many of their invitations.
'
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-04/schema#
type: object
properties:
campaign_ids:
type: array
description: Campaign IDs to which the Partner has been invited
items:
type: string
required:
- campaign_ids
example:
campaign_ids:
- 111111l300140
- 111111l400044
responses:
'204':
description: Success
/v2/publishers/{publisherId}/invitations/decline:
post:
parameters:
- name: publisherId
in: path
description: ID of the partner
examples:
- 1l1007802
required: true
schema:
type: string
operationId: declineInvitations
tags:
- Campaign Invitations (v2)
summary: Decline Campaign Invitiations
description: 'Allows a partner to decline one of many of their invitations.
'
requestBody:
content:
application/json:
schema:
$ref: '#/paths/~1v2~1publishers~1%7BpublisherId%7D~1invitations~1accept/post/requestBody/content/application~1json/schema'
example:
campaign_ids:
- 111111l300140
- 111111l400044
responses:
'204':
description: Success
/v2/publishers/{publisherId}/campaign-requests:
post:
parameters:
- name: publisherId
in: path
description: ID of the partner
examples:
- 1l1007802
required: true
schema:
type: string
operationId: createCampaignRequests
tags:
- Campaign Requests (v2)
summary: Create Campaign Requests
description: 'Allows a partner to make requests to join campaigns.
'
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-04/schema#
type: object
properties:
campaign_requests:
type: array
items:
type: object
properties:
advertiser_id:
type: string
example: 111111l1
campaign_id:
type: string
example: 111111l1
required:
- advertiser_id
- campaign_id
required:
- campaign_requests
responses:
'201':
description: Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-04/schema#
type: object
properties:
success_count:
type: integer
example: 1
failure_count:
type: integer
example: 0
execution_type:
type: string
example: 0.34642 seconds
/v2/publishers/{publisherId}/campaigns/terms?campaigns={campaigns}:
get:
parameters:
- name: publisherId
in: path
description: ID of the partner
examples:
- 1l1007802
required: true
schema:
type: string
- name: campaigns
in: query
description: comma seperated list of Campaign IDs
examples:
- 1lCAMA001,1lCAMB002
required: true
schema:
type: array
operationId: combined-campaign-terms
summary: List Terms and Conditions (v2)
tags:
- Terms and Conditions
description: 'View combined terms & conditions for the given Campaigns(s) and
Network(s). If a partner has custom campaign terms, these will be shown in
place of the standard campaign terms. Terms content for
standard campaign and network terms is return as HTML. For campaign custom
partner terms, the content is returned as JSON which can be parsed and rendered
to HTML using the [Slate](https://docs.slatejs.org) framework.
'
responses:
'200':
description: Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-04/schema#
type: object
title: Publisher Combined Campaign Terms Response
required:
- count
- terms
properties:
count:
$id: '#/properties/count'
type: integer
examples:
- 2
terms:
$id: '#/properties/terms'
type: array
title: Combined terms
items:
$id: '#/properties/terms/items'
type: object
required:
- title
- content
properties:
title:
$id: '#/properties/terms/items/properties/title'
type: string
content:
$id: '#/properties/terms/items/properties/content'
type: string
example:
count: 3
terms:
- title: Network terms
content: Hostels.com operates a closed and strict keyword policy.
Affiliates are unable to participate in specific PPC activity
to drive traffic directly to Hostels.com on Google, Yahoo or Bing
search engines.
- title: Campaign A standard terms
content:
There is a maximum cap of 2 units per order on new phone
and 5 units per order for all other products. Commissions will
not be paid on units exceeding this cap.
- title: Partner custom terms for Campaign B
content:
object: value
document:
object: document
data: {}
nodes:
- object: block
type: paragraph
data: {}
nodes:
- object: text
leaves:
- object: leaf
text: Custom campaign terms for Publisher Y
marks: []
/job/{jobID}:
get:
operationId: get_job_v1
summary: Get a single job (v1)
description: 'Returns information about a single v1 job by the given ID.
Once the `job` `status` is `complete` the job output can be retrieved from
the path given in the `hypermedia` `response` (`/job/111111l11/response.csv`
in the response samples).
'
tags:
- Jobs (v1)
parameters:
- name: jobID
in: path
description: Id of the job
required: true
schema:
type: string
responses:
'200':
description: Request success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: v1 Job Response
properties:
job:
type: object
properties:
job_id:
type: string
example: 111111l11
created_at:
type: string
example: '2018-11-13 20:20:39'
completed_at:
type:
- string
- 'null'
example: '2018-11-13 20:20:55'
created_by:
type: string
example: 111111l11
created_by_uri:
type: string
example: reporting/export/export/conversion_item.csv
status:
type: string
example: complete
percentage_complete:
type: integer
description: Integer 0-100
example: 100
reference:
type:
- string
- 'null'
example: myref
response_within_retention:
type: boolean
example: true
hypermedia:
type: object
properties:
response:
type: string
example: /job/111111l11/response.csv
update:
type: string
example: /job/111111l11
/reporting/report_publisher/publisher/{publisher_id}/conversion.{format}:
get:
parameters:
- description: ID of the partner
example: 1l1007802
in: path
name: publisher_id
required: true
schema:
type: string
- description: Format for the response
example: json
in: path
name: format
required: true
schema:
enum:
- json
- xml
type: string
- description: Start date for data to be included in the report
example: '2016-02-30T05:15:32Z'
in: query
name: start_date
required: true
schema:
type: string
- description: End date for data to be included in the report
example: '2016-03-10T19:02:35Z'
in: query
name: end_date
required: false
schema:
type: string
- description: Restricts the results to one of the following - this hour, last
hour, today, yesterday, this week, last week, last X days, this month, last
month, this year, last year.
example: yesterday
in: query
name: text_date
required: false
schema:
type: string
- description: Enforce a specified Timezone.
example: Europe/London
in: query
name: timezone
required: false
schema:
type: string
- description: Filter the results by the specified currency
example: USD
in: query
name: currency[]
required: false
schema:
$ref: '#/components/schemas/Currency'
- description: This parameter to run the report for conversions that have been
updated. When you specify `last_updated` or `approved_at` the response will
only include conversions that were last modified or approved at in approved_at
a date within the report date range.
example: last_modified
in: query
name: date_type
required: false
schema:
type: string
- description: 'Add a secondary pivot filter. You need to specify the pivot
parameter name and the value to filter by. E.g. multipivot[campaign][]=111111l29.
Supported values are: `campaign`, `product`, `publisher_reference`.'
example: value
in: query
name: multipivot[{pivot}][]
required: false
schema:
type: string
- description: Filter by statuses. Available values - approved, pending, rejected
example: approved
in: query
name: statuses[]
required: false
schema:
type: string
- description: Offset the results by a given amount. Defaults to 0.
example: '0'
in: query
name: offset
required: false
schema:
type: string
- description: Invoices that were created after the supplied date.
example: '2016-03-10T19:02:35Z'
in: query
name: invoice_created_date
required: false
schema:
type: string
- description: 'Include payment information. Omit parameter or false to exclude,
which is the default. Fields included are:
+ payment_status
+ self_bill_request_date
+ self_bill_release_date'
example: true
in: query
name: include_payment_info
required: false
schema:
type: boolean
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
total_conversion_count:
EUR: 1
total_publisher_commission:
EUR: 95.5
total_value:
EUR: 955
start_date_time_utc: '2019-08-10 00:00:00'
end_date_time_utc: '2020-03-10 00:00:00'
start_date_time: '2020-03-08 17:18:33'
end_date_time: '2020-03-08 17:18:33'
limit: 300
meta_data: []
count: 1
execution_time: 1.04266 seconds
conversions:
- conversion_data:
conversion_id: 111111l314
campaign_id: 111111l29
publisher_id: 111111l92
conversion_time: '2020-03-08 17:18:33'
creative_type: 0
creative_id: 0
specific_creative_id: 0
currency: EUR
publisher_reference: ''
advertiser_reference: adrefd
conversion_reference: AUTO-5ebc127cb2ddf3.85382959
customer_type: null
referer_ip: 265c:5b77:7721:e466:9e91:cf97:9b7a:b1f1
source_referer: ''
last_modified: '2020-05-13 15:31:42'
conversion_type: 1
country: ES
customer_reference: custrefa
ref_device_id: 2
ref_partnership_model_id: 2
ref_traffic_source_id: 3
ref_conversion_metric_id: 2
ref_user_context_id: 2
campaign_title: rubycampaignsuvwlynm
publisher_name: syjmmcll
click:
campaign_id: 111111l29
publisher_id: 111111l92
type: standard
status: nibbled
set_time: '2020-03-08 17:18:33'
set_ip: 265c:5b77:7721:e466:9e91:cf97:9b7a:b1f1
last_used: 1589383804
last_ip: 265c:5b77:7721:e466:9e91:cf97:9b7a:b1f1
publisher_reference: ''
referer: ''
creative_id: 0
creative_type: 0
specific_creative_id: 0
ref_device_id: 2
ref_traffic_source_id: 3
ref_partnership_model_id: 2
ref_user_context_id: 2
ref_device: Desktop
ref_traffic_source: Affiliate
ref_partnership_model: CPA
ref_user_context: Web
clickref: 111111lfo
ref_conversion_metric: Standard
ref_device: Desktop
ref_partnership_model: CPA
ref_traffic_source: Affiliate
ref_user_context: Web
conversion_value:
conversion_status: pending
value: 955
publisher_commission: 95.5
meta_data:
gclid: adword_google_meta_data
conversion_items:
- conversion_item_id: 111111l314
sku: 123
category: Producte
item_value: 955
item_publisher_commission: 95.5
item_status: pending
last_update: '2020-05-13 15:30:04'
publisher_self_bill_id: null
approved_at: null
item_status_id: 1
reject_reason: null
voucher_codes: []
meta_data:
gclid: adword_google_meta_data
payable: false
was_disputed: false
conversion_lag: 0
clickref: 111111lfo
schema:
$ref: '#/components/schemas/Partner_Conversions'
description: OK
tags:
- Partner Conversions
description: Return a mix of aggregated and basket/item level conversion data
for a partner.
operationId: partner-conversions
summary: Retrieve a Partner Conversions Report
/reporting/report_publisher/publisher/{publisher_id}/click.{format}:
get:
parameters:
- description: ID of the partner
example: 1l1007802
in: path
name: publisher_id
required: true
schema:
type: string
- description: Format for the response
example: json
in: path
name: format
required: true
schema:
enum:
- json
- xml
type: string
- description: Start date for data to be included in the report
example: '2016-02-30T05:15:32Z'
in: query
name: start_date
required: true
schema:
type: string
- description: End date for data to be included in the report
example: '2016-03-10T19:02:35Z'
in: query
name: end_date
required: false
schema:
type: string
- description: Restricts the results to one of the following - this hour, last
hour, today, yesterday, this week, last week, last X days, this month, last
month, this year, last year.
example: yesterday
in: query
name: text_date
required: false
schema:
type: string
- description: Enforce a specified Timezone.
example: Europe/London
in: query
name: timezone
required: false
schema:
type: string
- description: Filter the results by the specified currency
example: USD
in: query
name: currency[]
required: false
schema:
$ref: '#/components/schemas/Currency'
- description: This parameter to run the report for conversions that have been
updated. When you specify `last_updated` or `approved_at` the response will
only include conversions that were last modified or approved at in approved_at
a date within the report date range.
example: last_modified
in: query
name: date_type
required: false
schema:
type: string
- description: 'Add a secondary pivot filter. You need to specify the pivot
parameter name and the value to filter by. E.g. multipivot[campaign][]=111111l29.
Supported values are: `campaign`, `publisher_reference`.'
example: value
in: query
name: multipivot[{pivot}][]
required: false
schema:
type: string
- description: Filter by statuses. Available values - approved, pending, rejected
example: approved
in: query
name: statuses[]
required: false
schema:
type: string
- description: Offset the results by a given amount. Defaults to 0.
example: '0'
in: query
name: offset
required: false
schema:
type: string
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
unique_click_count: 2
start_date_time_utc: '2019-08-10 00:00:00'
end_date_time_utc: '2020-03-10 00:00:00'
start_date_time: '2020-03-08 17:18:33'
end_date_time: '2020-03-09 14:27:15'
limit: 300
offset: 0
count: 2
execution_time: 0.27682 seconds
clicks:
- click:
campaign_id: 111111l29
publisher_id: 111111l92
type: standard
status: nibbled
set_time: '2020-03-08 17:18:33'
set_ip: 265c:5b77:7721:e466:9e91:cf97:9b7a:b1f1
last_used: '2020-05-13 15:30:04'
last_ip: 265c:5b77:7721:e466:9e91:cf97:9b7a:b1f1
publisher_reference: ''
referer: ''
creative_id: 0
creative_type: 0
specific_creative_id: 0
ref_device_id: 2
ref_traffic_source_id: 3
ref_partnership_model_id: 2
ref_user_context_id: 2
clickref: 111111lfo
meta_data: []
- click:
campaign_id: 111111l29
publisher_id: 111111l92
type: standard
status: nibbled
set_time: '2020-03-09 14:27:15'
set_ip: 265c:5b77:7721:e466:9e91:cf97:9b7a:b1f1
last_used: '2020-05-13 15:30:18'
last_ip: 265c:5b77:7721:e466:9e91:cf97:9b7a:b1f1
publisher_reference: ''
referer: ''
creative_id: 0
creative_type: 0
specific_creative_id: 0
ref_device_id: 2
ref_traffic_source_id: 3
ref_partnership_model_id: 2
ref_user_context_id: 2
clickref: 111111lfq
meta_data: []
schema:
$ref: '#/components/schemas/Partner_Clicks'
description: OK
tags:
- Partner Clicks
description: Return a mix of aggregated and basket/item level click data for
a partner.
operationId: partner-clicks
summary: Retrieve a Partner Clicks Report
/reporting/report_publisher/publisher/{publisher_id}/payable:
get:
parameters:
- 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:
offset: 0
limit: 300
count: 0
total_conversion_count:
EUR: 1
GBP: 6
USD: 1
total_commission_value:
EUR: 44
GBP: 342.3365
USD: 44
total_value:
EUR: 400
GBP: 3112.15
USD: 400
total_publisher_commission_value:
EUR: 40
GBP: 311.215
USD: 40
execution_time: 0.55225 seconds
conversion_items: []
schema:
additionalProperties: false
properties:
count:
type: number
execution_time:
type: string
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_value:
description: 'total 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
conversion_items:
items: {}
type: array
description: OK
tags:
- Partner Payable
description: Return the aggregation stats of payable commission for a particular
partner.
operationId: partner-payable
summary: Retrieve a Partner Payable Report
/reporting/export/export/click.csv:
get:
parameters:
- description: ID of the partner.
example: 1l1007802
in: query
name: publisher_id
required: true
schema:
type: string
- description: Start date for data to be included in the report
example: '2016-02-30T05:15:32Z'
in: query
name: start_date
required: true
schema:
type: string
- description: End date for data to be included in the report
example: '2016-03-10T19:02:35Z'
in: query
name: end_date
required: true
schema:
type: string
- description: Force a specified Timezone
example: Europe/London
in: query
name: timezone
required: false
schema:
type: string
- description: When used in conjunction with limit=0 send a link to the CSV
when generation is complete
example: me@example.com
in: query
name: complete_email
required: false
schema:
type: string
- description: When set to zero, attempt to download everything
example: '0'
in: query
name: limit
required: false
schema:
type: string
- description: Add a prefix to the report filename
example: JanSales
in: query
name: export_reference
required: false
schema:
type: string
- description: '+ `UTF-8` - Default encoding
+ `UTF-16`'
example: UTF-8
in: query
name: encoding
required: false
schema:
type: string
- description: 'Choose the delimiter for separating values
+ comma
+ tab
+ pipe'
example: comma
in: query
name: delimiter
required: false
schema:
type: string
responses:
'200':
content:
application/octet-stream; charset=UTF-8:
examples:
response:
value: 'click_id,cookie_id,campaign_id,publisher_id,status,set_time,set_ip,last_used,last_ip,advertiser_reference,referer,creative_id,creative_type,specific_creative_id,country,publisher_name
111111l2210,111111l2136,10l176,1l1007802,nibbled,"2016-03-02 10:11:36",127.0.0.1,"2016-06-17
19:13:09",127.0.0.1,,,0,0,0,GB,apipublisher123
'
description: OK
tags:
- Exports
description: Request a CSV for a granular Click report for the Partner and within
the requested time period.
operationId: Export Clicks
summary: Export a Clicks Report
/reporting/export/export/conversion.csv:
get:
parameters:
- description: ID of the partner.
example: 1l1007802
in: query
name: publisher_id
required: true
schema:
type: string
- description: Start date for data to be included in the report
example: '2016-02-30T05:15:32Z'
in: query
name: start_date
required: true
schema:
type: string
- description: End date for data to be included in the report
example: '2016-03-10T19:02:35Z'
in: query
name: end_date
required: true
schema:
type: string
- description: 'Alter the context of what the dates ranges apply to
+ standard - The default selection, range is beased on conversion_time
+ approved_at - Alternative date range, which is based on the approved time
of conversion items'
example: standard
in: query
name: date_type
required: false
schema:
type: string
- description: Filter on a specific currency
example: GBP
in: query
name: currency[]
required: false
schema:
type: string
- description: Filter on a specific conversion_id
example: 1l28718278
in: query
name: conversion_id
required: false
schema:
type: string
- description: Filter on a specific conversion_reference value
example: ORDER872137
in: query
name: conversion_reference
required: false
schema:
type: string
- description: Filter on a specific conversion metric, use an array for multiple
example: '2'
in: query
name: ref_conversion_metric_id
required: false
schema:
type: string
- description: Force a specified Timezone
example: Europe/London
in: query
name: timezone
required: false
schema:
type: string
- description: When used in conjunction with limit=0 send a link to the CSV
when generation is complete
example: me@example.com
in: query
name: complete_email
required: false
schema:
type: string
- description: When set to zero, attempt to download everything
example: '0'
in: query
name: limit
required: false
schema:
type: string
- description: Add a prefix to the report filename
example: JanSales
in: query
name: export_reference
required: false
schema:
type: string
- description: '+ `UTF-8` - Default encoding
+ `UTF-16`'
example: UTF-8
in: query
name: encoding
required: false
schema:
type: string
- description: 'Choose the delimiter for separating values
+ comma
+ tab
+ pipe'
example: comma
in: query
name: delimiter
required: false
schema:
type: string
responses:
'200':
content:
application/octet-stream; charset=UTF-8:
examples:
response:
value: 'conversion_id,campaign_id,publisher_id,conversion_date,conversion_date_time,click_time,click_date,click_date_time,currency,advertiser_reference,conversion_reference,referer_ip,source_referer,campaign_title,publisher_name,conversion_status,conversion_lag,value,commission,publisher_commission,creative_type,creative_id,specific_creative_id,customer_type,was_disputed,cookie_id,country,currency_original,currency_conversion_rate,customer_reference,camref
111111l3919676,10l176,1l1007802,2016-03-02,"2016-03-02 10:22:02",10:11:36,2016-03-02,"2016-03-02
10:11:36",EUR,,AUTO-57643db548165,127.0.0.1,,"API Campaign Demo",apipublisher123,pending,626,90.92,1.0001,0.9092,0,0,0,,,111111l2136,GB,,,,1l3v9UA
'
description: OK
tags:
- Exports
description: Request a CSV for a granular Conversion report for the Partner
and within the requested time period. This report will give you details of
orders at the basket level
operationId: Export Conversions
summary: Export Conversions Report
/reporting/export/export/conversion_item.csv:
get:
parameters:
- description: ID of the partner.
example: 1l1007802
in: query
name: publisher_id
required: true
schema:
type: string
- description: Start date for data to be included in the report
example: '2016-02-30T05:15:32Z'
in: query
name: start_date
required: true
schema:
type: string
- description: End date for data to be included in the report
example: '2016-03-10T19:02:35Z'
in: query
name: end_date
required: true
schema:
type: string
- description: 'Alter the context of what the dates ranges apply to
+ standard - The default selection, range is beased on conversion_time
+ approved_at - Alternative date range, which is based on the approved time
of conversion items'
example: standard
in: query
name: date_type
required: false
schema:
type: string
- description: Filter on a specific currency
example: GBP
in: query
name: currency[]
required: false
schema:
type: string
- description: Filter on a specific conversion_id
example: 1l28718278
in: query
name: conversion_id
required: false
schema:
type: string
- description: Filter on a specific conversion_reference value
example: ORDER872137
in: query
name: conversion_reference
required: false
schema:
type: string
- description: Filter on a specific conversion metric, use an array for multiple
example: '2'
in: query
name: ref_conversion_metric_id
required: false
schema:
type: string
- description: Force a specified Timezone
example: Europe/London
in: query
name: timezone
required: false
schema:
type: string
- description: 'Include payment information. Omit parameter or false to exclude,
which is the default. Fields included are:
+ payment_status
+ self_bill_request_date
+ self_bill_release_date'
example: true
in: query
name: include_payment_info
required: false
schema:
type: boolean
- description: When used in conjunction with limit=0 send a link to the CSV
when generation is complete
example: me@example.com
in: query
name: complete_email
required: false
schema:
type: string
- description: When set to zero, attempt to download everything
example: '0'
in: query
name: limit
required: false
schema:
type: string
- description: Add a prefix to the report filename
example: JanSales
in: query
name: export_reference
required: false
schema:
type: string
- description: '+ `UTF-8` - Default encoding
+ `UTF-16`'
example: UTF-8
in: query
name: encoding
required: false
schema:
type: string
- description: 'Choose the delimiter for separating values
+ comma
+ tab
+ pipe'
example: comma
in: query
name: delimiter
required: false
schema:
type: string
responses:
'200':
content:
application/octet-stream; charset=UTF-8:
examples:
response:
value: 'conversion_id,campaign_id,publisher_id,conversion_date,conversion_date_time,click_time,click_date,click_date_time,currency,advertiser_reference,conversion_reference,referer_ip,source_referer,campaign_title,publisher_name,conversion_status,conversion_lag,value,commission,publisher_commission,creative_type,creative_id,specific_creative_id,customer_type,was_disputed,cookie_id,country,currency_original,currency_conversion_rate,conversion_item_id,sku,category,item_value,item_commission,item_publisher_commission,item_status,item_status_id,reject_reason,last_update,voucher_codes,customer_reference,camref,invoice_id,meta_item_cabin_code,meta_item_departure_date,meta_item_dest,meta_item_device,meta_item_origin,meta_item_passenger,meta_item_payment_method,meta_item_product_ids,meta_item_return_date
111111l3919676,10l176,1l1007802,2016-03-02,"2016-03-02 10:22:02",10:11:36,2016-03-02,"2016-03-02
10:11:36",EUR,,AUTO-57643db548165,127.0.0.1,,"API Campaign Demo",apipublisher123,pending,626,90.92,1.0001,0.9092,0,0,0,,,111111l2136,GB,,,111111l4118583,,,90.92,1.0001,0.9092,pending,1,,"2016-06-17
19:13:09",,,1l3v9UA,,,,,,,,,,
'
description: OK
tags:
- Exports
description: Request a CSV for a granular Conversion report which includes all
individual items for the Partner and within the requested time period. In
Conversion Item reports you will be able to see details of each item including
individual item’s commission and value as each item will be listed on its
own row within the report.
operationId: Export Conversion Items
summary: Export Conversion Items Report
/v3/partner/analytics/clicks/count:
post:
summary: Count
description: 'Returns aggregated metrics derived from clicks.
This endpoint is ideal for creating dashboard widgets, or for creating a summary
of tabulated data from the explode endpoint.
'
operationId: postClicksCount
tags:
- Clicks
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
properties:
date_time_ranges:
allOf:
- type: array
items:
type: object
required:
- start
- end
properties:
start:
type: string
format: date-time
end:
type: string
format: date-time
field:
type: string
description: The date-time field that this date-time range
should use
additionalProperties: false
minItems: 1
description: Filter the results to given date-time ranges. You
can specify multiple date ranges and results for each date range
will be combined.
- items:
properties:
field:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1explode/post/requestBody/content/application~1json/schema/properties/interval/properties/field'
comparison_date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
description: Filter data by a specified partner identifier. You
must have the correct authorisation to view reporting data on
this partner.
type: object
required:
- partner
properties:
partner:
type: string
additionalProperties: false
metrics:
allOf:
- type: array
minItems: 1
uniqueItems: true
description: Array of metrics which should be included in the
result.
- items:
type: string
enum:
- total_clicks
- total_clicks_converted
- click_conversion_rate
- total_unique_clicks
filter_by:
allOf:
- type: array
description: A list of objects you can use to filter the results
by. Results will only be returned if they match every condition.
items:
type: object
required:
- field
- value
properties:
field:
type: string
value:
type:
- string
- integer
- array
operator:
type: string
default: EQUALS
not:
type: boolean
additionalProperties: false
minItems: 1
- items:
properties:
field:
type: string
enum:
- advertiser_reference
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign_id
- campaign_name
- country
- creative_id
- creative_description
- creative_advertiser_reference
- device_id
- os_family
- os_major
- os_minor
- os_patch
- partner_id
- partner_name
- publisher_reference
- partnership_model_id
- traffic_source_id
- type
- user_context_id
operator:
type: string
enum:
- EQUALS
- STARTS_WITH
- ENDS_WITH
- CONTAINS
- SEARCH
timezone:
description: See reference endpoint [/reference/timezones/](/#tag/Timezones)
for available timezones.
type: string
include_comparison_percentage_change:
type: boolean
default: false
description: A boolean flag to indicate whether percentage changes
should be output when using comparison.
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_clicks
filter_by:
- field: country
value: US
operator: EQUALS
- field: device_id
value: 5
operator: EQUALS
not: true
timezone: GMT
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: object
example:
total_clicks: 57126
/v3/partner/analytics/clicks/explode:
post:
summary: Explode
description: 'Returns aggregated metrics derived from clicks, grouped by ID
and name of one or many dimensions. This endpoint is ideal for
fetching data to be shown in a table. You can combine it with the count endpoint
to fetch data for a totals row.
If `order_by` is requested on a metric, the metric values will be added to
the results, even if not requested.
When grouping by `date`, the `interval` will define the length of each date
group.
'
operationId: postClicksExplode
tags:
- Clicks
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
- group_by
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
comparison_date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/metrics'
group_by:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/group_by'
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
order_by:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/order_by'
interval:
allOf:
- description: To group the data into buckets of time. In the context
of Explode this is used when grouping by `date_time`
type: object
required:
- period
properties:
period:
type: string
pattern: ^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d+[HMS])(\d+H)?(\d+M)?(\d+S)?)?$
description: ISO8601 time interval value.
default: P1D
field:
type: string
description: The date-time field that should be used to group
each date interval
additionalProperties: false
properties:
field:
type: string
enum:
- date_time
output_date_time_format:
type: string
description: Dates will be formatted with the Joda date format string
given. If no format is supplied here, ISO8601 format will be used.
For details of how to construct a format string, see https://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html
top:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/top'
include_total_row_count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/include_total_row_count'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
include_comparison_percentage_change:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/include_comparison_percentage_change'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_clicks
group_by:
- device
filter_by:
- field: country
value: US
operator: EQUALS
- field: device_id
value: 5
operator: EQUALS
not: true
order_by:
- field: total_clicks
direction: DESCENDING
interval:
field: date_time
period: P1D
include_total_row_count: false
timezone: GMT
top: 2
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- device_id: '1'
device_name: desktop
total_clicks: 2000
- device_id: '2'
device_name: mobile
total_clicks: 3000
headers:
X-Total-Row-Count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/responses/200/headers/X-Total-Row-Count'
/v3/partner/analytics/clicks/filter:
post:
summary: Filter
description: 'This endpoint is ideal for fetching a list of available dimensions
for a dropdown list.
If `order_by` is requested on a metric, the metric values will be added to
the results.
'
operationId: postClicksFilter
tags:
- Clicks
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- group_by
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
group_by:
allOf:
- type: array
minItems: 1
uniqueItems: true
description: Dimensions which the data should be grouped by.
- items:
type: string
enum:
- advertiser_reference
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign
- country
- creative
- date_time
- device
- os_family
- os_major
- os_minor
- os_patch
- partner
- publisher_reference
- partnership_model
- traffic_source
- type
- user_context
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
order_by:
allOf:
- type: array
description: Priority list of ordering objects
items:
type: object
required:
- field
- direction
properties:
field:
type: string
direction:
type: string
enum:
- ASCENDING
- DESCENDING
additionalProperties: false
minItems: 1
- items:
properties:
field:
type: string
enum:
- total_clicks
- total_clicks_converted
- click_conversion_rate
- total_unique_clicks
- advertiser_reference
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign_id
- campaign_name
- country
- country_name
- creative_id
- creative_description
- creative_advertiser_reference
- date_time
- device_id
- device_name
- os_family
- os_major
- os_minor
- os_patch
- partner_id
- partner_name
- publisher_reference
- partnership_model_id
- partnership_model_name
- traffic_source_id
- traffic_source_name
- type
- user_context_id
- user_context_name
top:
type: integer
maximum: 50000
default: 50000
minimum: 1
include_total_row_count:
type: boolean
default: false
description: A boolean flag to indicate whether an extra header
(X-Total-Row-Count) should be returned containing the total number
of rows. This can have a performance overhead so you should not
use it unless it is required.
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
group_by:
- device
filter_by:
- field: country
value: US
operator: EQUALS
- field: device_id
value: 5
operator: EQUALS
not: true
order_by:
- field: total_clicks
direction: DESCENDING
top: 2
include_total_row_count: false
timezone: GMT
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- device_id: '1'
device_name: desktop
total_clicks: 44442
- device_id: '2'
device_name: mobile
total_clicks: 23392
headers:
X-Total-Row-Count:
schema:
type: integer
description: Total amount of rows, ignoring `top`. Present if requested
via `include_total_row_count`.
/v3/partner/analytics/clicks/timeseries:
post:
summary: Timeseries
description: 'Returns aggregated metrics derived from clicks, grouped by time
intervals.
This endpoint is ideal for creating charts where the x-axis is time.
'
operationId: postClicksTimeseries
tags:
- Clicks
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/metrics'
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
interval:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1explode/post/requestBody/content/application~1json/schema/properties/interval'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
zerofill:
type: boolean
default: true
description: A boolean flag to indicate whether records with a count
of zero should be included in the response.
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_clicks
filter_by:
- field: country
value: US
operator: EQUALS
- field: device_id
value: 5
operator: EQUALS
not: true
interval:
field: date_time
period: P1D
timezone: GMT
zerofill: false
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- date_time_range:
start: '2019-10-01T00:00:00+00:00'
end: '2019-10-02T00:00:00+00:00'
total_clicks: 990
- date_time_range:
start: '2019-10-02T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
total_clicks: 2894
/v3/partner/analytics/conversions/count:
post:
summary: Count
description: 'Returns aggregated metrics derived from conversions.
This endpoint is ideal for creating dashboard widgets, or for creating a summary
of tabulated data from the explode endpoint.
'
operationId: postConversionsCount
tags:
- Conversions
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
properties:
date_time_ranges:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges/allOf/0'
- items:
properties:
field:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1explode/post/requestBody/content/application~1json/schema/properties/interval/properties/field'
comparison_date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
metrics:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/metrics/allOf/0'
- items:
type: string
enum:
- total_conversion_items
- total_conversions
- total_partner_commission
- percentage_average_partner_commission
- average_order_value
- total_order_value
- conversion_rejection_rate
- average_order_size
- percentage_order_value
- percentage_partner_commission
- average_partner_commission
filter_by:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/filter_by/allOf/0'
- items:
properties:
field:
type: string
enum:
- partner_commission
- order_value
- advertiser_reference
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign_id
- campaign_name
- category
- conversion_metric_id
- conversion_status
- conversion_type_id
- country
- creative_id
- creative_description
- creative_advertiser_reference
- currency
- customer_type
- device_id
- os_family
- os_major
- os_minor
- os_patch
- partner_id
- partner_name
- publisher_reference
- partnership_model_id
- sku
- traffic_source_id
- type
- user_context_id
- voucher_code
- voucher_status
operator:
description: 'String fields can be filtered with: `EQUALS`,
`STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `SEARCH`. Numeric
fields can be filtered with `EQUALS`, `GREATER_THAN`,
`GREATER_THAN_OR_EQUALS`, `LESS_THAN`, `LESS_THAN_OR_EQUALS`.'
if:
properties:
field:
type: string
enum:
- partner_commission
- order_value
then:
properties:
operator:
type: string
enum:
- EQUALS
- GREATER_THAN
- GREATER_THAN_OR_EQUALS
- LESS_THAN
- LESS_THAN_OR_EQUALS
else:
properties:
operator:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/filter_by/allOf/1/items/properties/operator'
output_currency:
description: Currency based metrics will be converted into this
currency. This also applies to filter values. See reference endpoint
[/reference/currencies/](/#tag/Currencies) for available currencies.
type: string
default: USD
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
include_comparison_percentage_change:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/include_comparison_percentage_change'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_partner_commission
filter_by:
- field: country
value: US
operator: EQUALS
- field: device_id
value: 5
operator: EQUALS
not: true
output_currency: GBP
timezone: GMT
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: object
example:
total_conversions: 12
headers:
X-Approximate-Metrics:
schema:
type: string
example: total_unique_clicks
description: 'Comma-separated list of metrics that are approximates.
The metric does not have to be part of the current request.
Present if conditions for approximation are met, and at least one
metric on the context is an approximate.
'
/v3/partner/analytics/conversions/explode:
post:
summary: Explode
description: 'Returns aggregated metrics derived from conversions, grouped by
ID and name of one or many dimensions. This endpoint is ideal for
fetching data to be shown in a table. You can combine it with the count endpoint
to fetch data for a totals row.
If `order_by` is requested on a metric, the metric values will be added to
the results, even if not requested.
When grouping by `date`, the `interval` will define the length of each date
group.
'
operationId: postConversionsExplode
tags:
- Conversions
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
- group_by
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
comparison_date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/metrics'
group_by:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1filter/post/requestBody/content/application~1json/schema/properties/group_by'
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
order_by:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1filter/post/requestBody/content/application~1json/schema/properties/order_by'
interval:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1explode/post/requestBody/content/application~1json/schema/properties/interval/allOf/0'
properties:
field:
type: string
enum:
- date_time
- approved_at
- check_in_date
- check_out_date
output_currency:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/output_currency'
output_date_time_format:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1explode/post/requestBody/content/application~1json/schema/properties/output_date_time_format'
top:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/top'
include_total_row_count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/include_total_row_count'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
include_comparison_percentage_change:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/include_comparison_percentage_change'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_partner_commission
group_by:
- country
filter_by:
- field: country
value: US
operator: EQUALS
- field: device_id
value: 5
operator: EQUALS
not: true
order_by:
- field: total_commission
direction: DESCENDING
interval:
field: date_time
period: P1D
output_currency: USD
top: 2
include_total_row_count: false
timezone: GMT
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- device_id: '1'
device_name: desktop
total_conversions: 2000
- device_id: '2'
device_name: mobile
total_conversions: 3000
headers:
X-Total-Row-Count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/responses/200/headers/X-Total-Row-Count'
X-Approximate-Metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/responses/200/headers/X-Approximate-Metrics'
/v3/partner/analytics/conversions/filter:
post:
summary: Filter
description: 'This endpoint is ideal for fetching a list of available dimensions
for a dropdown list.
If `order_by` is requested on a metric, the metric values will be added to
the results.
'
operationId: postConversionsFilter
tags:
- Conversions
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- group_by
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
group_by:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/group_by/allOf/0'
- items:
type: string
enum:
- advertiser_reference
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign
- category
- conversion_metric
- conversion_status
- conversion_type
- country
- creative
- currency
- customer_type
- date_time
- device
- os_family
- os_major
- os_minor
- os_patch
- partner
- publisher_reference
- partnership_model
- sku
- traffic_source
- type
- user_context
- voucher_code
- voucher_status
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
order_by:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/order_by/allOf/0'
- items:
properties:
field:
type: string
enum:
- total_conversion_items
- total_conversions
- total_partner_commission
- percentage_average_partner_commission
- total_order_value
- advertiser_reference
- average_order_value
- conversion_rejection_rate
- average_order_size
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign_id
- campaign_name
- category
- conversion_metric_id
- conversion_metric_name
- conversion_status
- conversion_type_id
- conversion_type_name
- country
- country_name
- creative_id
- creative_description
- creative_advertiser_reference
- currency
- customer_type
- date_time
- device_id
- device_name
- os_family
- os_major
- os_minor
- os_patch
- partner_id
- partner_name
- publisher_reference
- partnership_model_id
- partnership_model_name
- sku
- traffic_source_id
- traffic_source_name
- type
- user_context_id
- user_context_name
- voucher_code
- voucher_status
output_currency:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/output_currency'
top:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/top'
include_total_row_count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/include_total_row_count'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
group_by:
- country
filter_by:
- field: country
value: US
operator: EQUALS
- field: device_id
value: 5
operator: EQUALS
not: true
order_by:
- field: total_partner_commission
direction: DESCENDING
interval:
field: date_time
period: P1D
output_currency: USD
top: 10
include_total_row_count: false
timezone: GMT
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- device_id: '1'
device_name: desktop
total_conversions: 44442
- device_id: '2'
device_name: mobile
total_conversions: 23392
headers:
X-Total-Row-Count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/responses/200/headers/X-Total-Row-Count'
X-Approximate-Metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/responses/200/headers/X-Approximate-Metrics'
/v3/partner/analytics/conversions/timeseries:
post:
summary: Timeseries
description: 'Returns aggregated metrics derived from conversions, grouped by
time intervals.
This endpoint is ideal for creating charts where the x-axis is time.
'
operationId: postConversionsTimeseries
tags:
- Conversions
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/metrics'
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
interval:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1explode/post/requestBody/content/application~1json/schema/properties/interval'
output_currency:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/requestBody/content/application~1json/schema/properties/output_currency'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
zerofill:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1timeseries/post/requestBody/content/application~1json/schema/properties/zerofill'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_partner_commission
filter_by:
- field: country
value: US
operator: EQUALS
- field: device_id
value: 5
operator: EQUALS
not: true
interval:
field: date_time
period: P1D
output_currency: GBP
timezone: GMT
zerofill: false
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- date_time_range:
start: '2019-10-01T00:00:00+00:00'
end: '2019-10-02T00:00:00+00:00'
total_conversions: 990
- date_time_range:
start: '2019-10-02T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
total_conversions: 2894
headers:
X-Approximate-Metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1conversions~1count/post/responses/200/headers/X-Approximate-Metrics'
/v3/partner/analytics/impressions/count:
post:
summary: Count
description: 'Returns aggregated metrics derived from impressions.
This endpoint is ideal for creating dashboard widgets, or for creating a summary
of tabulated data from the explode endpoint.
'
operationId: postImpressionsCount
tags:
- Impressions
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
properties:
date_time_ranges:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges/allOf/0'
- items:
properties:
field:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1explode/post/requestBody/content/application~1json/schema/properties/interval/properties/field'
comparison_date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
metrics:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/metrics/allOf/0'
- items:
type: string
enum:
- total_impressions
filter_by:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/filter_by/allOf/0'
- items:
properties:
field:
type: string
enum:
- advertiser_reference
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign_id
- campaign_name
- country
- creative_id
- creative_description
- creative_advertiser_reference
- device_id
- os_family
- os_major
- os_minor
- os_patch
- partner_id
- partner_name
- publisher_reference
- partnership_model_id
- traffic_source_id
- user_context_id
operator:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/filter_by/allOf/1/items/properties/operator'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
include_comparison_percentage_change:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/include_comparison_percentage_change'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_impressions
filter_by:
- field: device_id
value: 5
operator: EQUALS
not: true
timezone: GMT
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: object
example:
total_impressions: 57126
/v3/partner/analytics/impressions/explode:
post:
summary: Explode
description: 'Returns aggregated metrics derived from impressions, grouped by
ID and name of one or many dimensions. This endpoint is ideal for
fetching data to be shown in a table. You can combine it with the count endpoint
to fetch data for a totals row.
If `order_by` is requested on a metric, the metric values will be added to
the results, even if not requested.
When grouping by `date`, the `interval` will define the length of each date
group.
'
operationId: postImpressionsExplode
tags:
- Impressions
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
- group_by
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
comparison_date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/metrics'
group_by:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1filter/post/requestBody/content/application~1json/schema/properties/group_by'
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
order_by:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1filter/post/requestBody/content/application~1json/schema/properties/order_by'
interval:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1explode/post/requestBody/content/application~1json/schema/properties/interval/allOf/0'
properties:
field:
type: string
enum:
- date_time
output_date_time_format:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1explode/post/requestBody/content/application~1json/schema/properties/output_date_time_format'
top:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/top'
include_total_row_count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/include_total_row_count'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
include_comparison_percentage_change:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/include_comparison_percentage_change'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_impressions
group_by:
- campaign
filter_by:
- field: device_id
value: 5
operator: EQUALS
order_by:
- field: total_impressions
direction: DESCENDING
interval:
field: date_time
period: P1D
top: 10
include_total_row_count: false
timezone: GMT
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- device_id: '1'
device_name: desktop
total_impressions: 2000
- device_id: '2'
device_name: mobile
headers:
X-Total-Row-Count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/responses/200/headers/X-Total-Row-Count'
/v3/partner/analytics/impressions/filter:
post:
summary: Filter
description: 'This endpoint is ideal for fetching a list of available dimensions
for a dropdown list.
If `order_by` is requested on a metric, the metric values will be added to
the results.
'
operationId: postImpressionsFilter
tags:
- Impressions
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- group_by
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
group_by:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/group_by/allOf/0'
- items:
type: string
enum:
- advertiser_reference
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign
- country
- creative
- date_time
- device
- os_family
- os_major
- os_minor
- os_patch
- partner
- publisher_reference
- partnership_model
- traffic_source
- user_context
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
order_by:
allOf:
- $ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/order_by/allOf/0'
- items:
properties:
field:
type: string
enum:
- total_impressions
- advertiser_reference
- browser_family
- browser_major
- browser_minor
- browser_patch
- campaign_id
- campaign_name
- country
- creative_id
- creative_description
- creative_advertiser_reference
- date_time
- device_id
- device_name
- os_family
- os_major
- os_minor
- os_patch
- partner_id
- partner_name
- publisher_reference
- partnership_model_id
- partnership_model_name
- traffic_source_id
- traffic_source_name
- user_context_id
- user_context_name
top:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/top'
include_total_row_count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/requestBody/content/application~1json/schema/properties/include_total_row_count'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
group_by:
- campaign
filter_by:
- field: device_id
value: 5
operator: EQUALS
order_by:
- field: total_impressions
direction: DESCENDING
top: 10
include_total_row_count: false
timezone: GMT
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- device_id: '1'
device_name: desktop
total_impressions: 44442
- device_id: '2'
device_name: mobile
total_impressions: 23392
headers:
X-Total-Row-Count:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1filter/post/responses/200/headers/X-Total-Row-Count'
/v3/partner/analytics/impressions/timeseries:
post:
summary: Timeseries
description: 'Returns aggregated metrics derived from impressions, grouped by
time intervals.
This endpoint is ideal for creating charts where the x-axis is time.
'
operationId: postImpressionsTimeseries
tags:
- Impressions
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
required:
- date_time_ranges
- scope
- metrics
properties:
date_time_ranges:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/date_time_ranges'
scope:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/scope'
metrics:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/metrics'
filter_by:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1count/post/requestBody/content/application~1json/schema/properties/filter_by'
interval:
$ref: '#/paths/~1v3~1partner~1analytics~1impressions~1explode/post/requestBody/content/application~1json/schema/properties/interval'
timezone:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1count/post/requestBody/content/application~1json/schema/properties/timezone'
zerofill:
$ref: '#/paths/~1v3~1partner~1analytics~1clicks~1timeseries/post/requestBody/content/application~1json/schema/properties/zerofill'
additionalProperties: false
example:
date_time_ranges:
- start: '2019-10-01T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
scope:
partner: 111111l10
metrics:
- total_impressions
filter_by:
- field: device_id
value: 5
operator: EQUALS
interval:
field: date_time
period: P1D
timezone: GMT
zerofill: false
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
example:
- date_time_range:
start: '2019-10-01T00:00:00+00:00'
end: '2019-10-02T00:00:00+00:00'
total_impressions: 990
- date_time_range:
start: '2019-10-02T00:00:00+00:00'
end: '2019-10-03T00:00:00+00:00'
total_impressions: 2894
/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/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/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/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 aquisition
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
/v3/partner/partnerize-tags:
get:
summary: List Partnerize Tags
operationId: listPartnerizeTags
description: Return a list of available Partnerize Tags.
tags:
- Partnerize Tags
parameters:
- description: ID of the partner to restrict scope of Partnerize Tags to
example: 111111l8
in: query
name: partner_id
required: false
schema:
type: string
- description: Optional flag to include features as part of the response
example: true
in: query
name: with_features
required: false
schema:
type: boolean
responses:
'200':
description: Request Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: v3 Partnerize Tags list
properties:
data:
type: array
description: List of Partnerize Tags for Partner
items:
$schema: http://json-schema.org/draft-07/schema#
type: object
description: Partnerize Tag data
properties:
id:
type: string
description: Unique identifier of a Partnerize Tag
scope:
type: object
properties:
partner:
type: string
description: Partner ID for the Partnerize Tag
name:
type: string
description: Human readable identifier of a Partnerize Tag
active:
type: boolean
description: If the tag is not active, the feature content
will not be generated for the tag
created_at:
definitions:
date-time:
type: string
format: date-time
description: 'ISO8601 format, for example: `"2018-11-13T20:20:39+00:00"`'
interval:
type: string
pattern: ^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d+[HMS])(\d+H)?(\d+M)?(\d+S)?)?$
description: 'ISO8601 durations format, for example:
`"P2DT7H"` (2 days and 7 hours)'
between-start-end:
type: object
required:
- start
- end
properties:
start:
$ref: '#/paths/~1v3~1partner~1partnerize-tags/post/responses/201/content/application~1json%3B%20charset%3Dutf-8/schema/properties/data/properties/created_at/definitions/date-time'
end:
$ref: '#/paths/~1v3~1partner~1partnerize-tags/post/responses/201/content/application~1json%3B%20charset%3Dutf-8/schema/properties/data/properties/created_at/definitions/date-time'
additionalProperties: false
created_by:
type: string
last_modified_at:
$ref: '#/paths/~1v3~1partner~1partnerize-tags/post/responses/201/content/application~1json%3B%20charset%3Dutf-8/schema/properties/data/properties/created_at'
last_modified_by:
type: string
url:
type: string
description: The publicly accessible URL for the Partnerize
Tag for embedding into website content
example:
data:
- id: 111111l35
scope:
partner: 111111l2
name: my-tag-website
active: true
created_at: '2020-07-22T12:23:58.000Z'
created_by: 111111l1
last_modified_at: '2020-07-22T12:23:58.000Z'
last_modified_by: 111111l1
url: https://pzapi-kg.com/tags/file.js
- id: 111111l36
scope:
partner: 111111l2
name: my-tag-mobile
active: true
created_at: '2020-08-08T12:23:58.000Z'
created_by: 111111l1
last_modified_at: '2020-08-08T12:23:58.000Z'
last_modified_by: 111111l1
url: https://pzapi-kg.com/tags/file.js
post:
summary: Create Partnerize Tag
operationId: createPartnerizeTag
description: Generates a new Partnerize Tag for the requested partner. Freshly
generated tag will be empty, without any features enabled by default.
To allow for global propagation, tags will typically be available for use
15 minutes after their generation.
tags:
- Partnerize Tags
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: Partnerize Tag Request
description: Partnerize Tag Creation Request
required:
- name
- scope
properties:
name:
type: string
description: A name for the new Partnerize Tag
minLength: 1
maxLength: 255
scope:
type: object
properties:
partner:
type: string
description: Partner ID for the new Partnerize Tag
responses:
'201':
content:
application/json; charset=utf-8:
examples:
response:
value:
data:
id: 111111l35
scope:
partner: 111111l2
name: my-tag-website
active: true
created_at: '2020-07-22T12:23:58.000Z'
created_by: 111111l1
last_modified_at: '2020-07-22T12:23:58.000Z'
last_modified_by: 111111l1
url: https://pzapi-kg.com/tags/file.js
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
description: Partnerize Tag data
properties:
data:
type: object
$ref: '#/paths/~1v3~1partner~1partnerize-tags/get/responses/200/content/application~1json/schema/properties/data/items'
description: OK
/v3/partner/{partnerId}/participations:
get:
summary: List Partner Participations
operationId: listPartnerParticipations
description: 'Returns a list of Partner participations with basic campaign details.
> ### Migrating From Previous Versions
> #### Migrating From V1 endpoint
> This endpoint supersedes the v1 endpoint
> #### Migrating From V2 endpoint
> The V2 endpoint returns campaigns of all statuses by default. This V3 endpoint
only returns active campaigns by default, but this can be configured using
the `campaign_status` URL query parameter to behave the same as the V2 endpoint
by appending `?campaign_status[]=a&campaign_status[]=r` to the URL.
'
tags:
- Participations
parameters:
- description: ID of the Partner
example: 111111l3
in: path
name: partnerId
required: true
schema:
type: string
- description: 'This filter is based on the status of a partner''s relationship
to campaigns. For example this can be used to find all campaigns that the
partner is approved on to (`a`), or invited to (`t`). Default value `a`.
* `r` = rejected
* `a` = approved
* `p` = pending (requested)
* `t` = invited (pending terms and conditions)
'
example: a
in: query
name: status[]
required: false
schema:
type: array
items:
type: string
enum:
- r
- a
- p
- t
- description: 'This filter can be used to find campaigns that the partner is
associated with, based on the campaign''s status. Default value `a`
* `a` = active (campaigns that are currently live in the Partnerize platform)
* `r` = retired (campaigns that are no longer live in the Partnerize platform)
'
example: a
in: query
name: campaign_status[]
required: false
schema:
type: array
items:
type: string
enum:
- a
- r
- description: 'This filter can be used to find campaigns that the partner is
associated with, based on the partner''s status with the campaign''s brand
network. By default this filter will not be applied.
* `a` = approved (will filter participations to those where the partner
is approved onto the campaign''s brand network)
* `p` = pending (will filter participations to those where the partner is
pending approval / rejection onto the campaign''s brand network)
* `r` = rejected (will filter participations to those where the partner
is rejected from the campaign''s brand network)
'
example: a
in: query
name: network_status[]
required: false
schema:
type: array
items:
type: string
enum:
- a
- p
- r
- description: Specify what additional data properties should be returned in
the response payload
example: promotional_countries
in: query
name: fields[]
required: false
schema:
type: array
items:
type: string
enum:
- camref
- vertical
- promotional_countries
- default_currency
- brand_id
- status
- icon
- week_start
- hidden_campaign
- reporting_timezone
- network_status
responses:
'200':
description: Request Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
description: List Partner Participations
properties:
data:
type: array
items:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: Partner Participation object
properties:
campaign_id:
type: string
status:
type: string
description: This represents the status of the partner's
relationship to the campaign
approved:
type: string
format: date-time
agreed_latest_terms:
type: string
custom_terms:
type: string
campaign_info:
type: object
properties:
title:
type: string
secure_tracking:
type: string
cpc_tracking_link:
type: string
format: uri
nullable: true
destination_url:
type: string
format: uri
tracking_link:
type: string
format: uri
nullable: true
tracking_link_mobile:
type: string
nullable: true
allow_deep_linking:
type: string
campaign_languages:
type: object
properties:
de|fr|es|it|...:
type: object
properties:
destination_url:
type: string
format: uri
nullable: true
additionalProperties: false
example:
'campaign_id:': 111111l13
status: a
approved: '2022-09-24T14:15:22+00:00'
agreed_latest_terms: y
custom_terms: y
'campaign_info:':
title: Cards & Loans
secure_tracking: y
cpc_tracking_link: null
destination_url: http://partnerize.com
tracking_link: https://prf.partnerize.tech/click/camref:111111lb
tracking_link_mobile: null
allow_deep_linking: y
campaign_languages:
de:
destination_url: https://partnerize.com/de
es:
destination_url: https://partnerize.com/es
/v3/partner/partnerize-tags/{partnerizeTagId}:
get:
summary: Get Partnerize Tag
operationId: getPartnerizeTag
description: Return information about a single Partnerize Tag from the provided
ID.
tags:
- Partnerize Tags
parameters:
- description: ID of the Partnerize Tag to fetch
example: 111111l3
in: path
name: partnerizeTagId
required: true
schema:
type: string
responses:
'200':
description: Request Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: v3 Partnerize Tag single data
properties:
data:
type: object
$ref: '#/paths/~1v3~1partner~1partnerize-tags/get/responses/200/content/application~1json/schema/properties/data/items'
example:
data:
id: 111111l35
scope:
partner: 111111l2
name: my-tag-website
active: true
created_at: '2020-07-22T12:23:58.000Z'
created_by: 111111l1
last_modified_at: '2020-07-22T12:23:58.000Z'
last_modified_by: 111111l1
url: https://pzapi-kg.com/tags/file.js
patch:
summary: Update Partnerize Tag
operationId: updatePartnerizeTag
description: Updates a specific Partnerize Tag.
tags:
- Partnerize Tags
parameters:
- name: partnerizeTagId
in: path
description: The ID of the Partnerize Tag to be updated
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: Partnerize Tag Request
description: Partnerize Tag Patch Request
properties:
name:
type: string
description: A new name for the Partnerize Tag
minLength: 1
maxLength: 255
active:
type: boolean
description: Enables/Disables the tag
responses:
'200':
content:
application/json; charset=utf-8:
examples:
response:
value:
data:
id: 111111l35
scope:
partner: 111111l2
name: my-tag-website
active: true
created_at: '2020-07-22T12:23:58.000Z'
created_by: 111111l1
last_modified_at: '2020-07-22T12:23:58.000Z'
last_modified_by: 111111l1
url: https://pzapi-kg.com/tags/file.js
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
description: Partnerize Tag data
properties:
data:
type: object
$ref: '#/paths/~1v3~1partner~1partnerize-tags/get/responses/200/content/application~1json/schema/properties/data/items'
description: OK
delete:
summary: Delete Partnerize Tag
operationId: deletePartnerizeTag
description: Deletes a specific Partnerize Tag.
tags:
- Partnerize Tags
parameters:
- name: partnerizeTagId
in: path
description: The ID of the Partnerize Tag to be deleted
required: true
schema:
type: string
responses:
'204':
description: The Partnerize Tag was deleted successfully.
/v3/partner/partnerize-tags/features:
get:
summary: List Available Partnerize Tag Features
operationId: listPartnerizeTagFeatures
description: Returns a list of available features ready for enablement in a
Partnerize Tag.
tags:
- Partnerize Tag Features
responses:
'200':
description: Request Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
description: List Feature Response
properties:
data:
type: array
items:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: Partnerize Tag Feature object
properties:
name:
type: string
description:
type: string
config_schema:
type: array
example:
'name:': tracking-link-generation
'description:': Tracking link generation from standard brand
URLs
config_schema: []
/v3/partner/partnerize-tags/{tagId}/features:
get:
summary: List Partnerize Tag Enabled Features
operationId: listPartnerizeTagEnabledFeatures
description: Return a list of features enabled for a specific Partnerize Tag.
tags:
- Partnerize Tag Features
parameters:
- name: tagId
in: path
description: The ID of the Partnerize Tag
required: true
schema:
type: string
responses:
'200':
description: Request Success
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
description: List Feature Response
properties:
data:
type: array
items:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: Partnerize Tag Feature object
properties:
name:
type: string
description:
type: string
config:
type: object
example:
'name:': tracking-link-generation
'description:': Tracking link generation from standard brand
URLs
config: null
post:
summary: Enable Feature on Partnerize Tag
operationId: enablePartnerizeTagFeature
description: Enables a feature for a specific Partnerize Tag.
tags:
- Partnerize Tag Features
parameters:
- name: tagId
in: path
description: The ID of the Partnerize Tag
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
title: Partnerize Tag Request
description: Partnerize Tag Feature Addition
required:
- name
properties:
name:
type: string
description: Feature name which will be added to the Partnerize
Tag
config:
type: object
description: Additional feature config, if needed
example:
name: tracking-link-generation
responses:
'201':
content:
application/json; charset=utf-8:
examples:
response:
value:
data:
name: tracking-link-generation
config: null
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
description: Add Feature Response
properties:
data:
type: object
properties:
name:
type: string
description: Feature name
config:
type: object
description: Feature configuration
description: OK
/v3/partner/partnerize-tags/{tagId}/features/{featureName}:
delete:
summary: Disable Feature on Partnerize Tag
operationId: disablePartnerizeTagFeature
description: Disables a feature for a specific Partnerize Tag.
tags:
- Partnerize Tag Features
parameters:
- name: tagId
in: path
description: The ID of the Partnerize Tag
required: true
schema:
type: string
- name: featureName
in: path
description: The name of the feature to remove
required: true
schema:
type: string
responses:
'204':
description: The Partnerize Tag Feature was removed successfully.
/v3/partner/my-brands:
get:
summary: List My Brands
operationId: listMyBrands
description: Information about the brands the authenticated partner is associated
with. This will include brands from networks they've been blocked from.
tags:
- My Brands
parameters:
- name: brand_ids[]
in: query
description: If you only want to retrieve information about a specific set
of brands, apply this filter
required: false
example: 111111l1
schema:
type: array
items:
type: string
- name: partner
in: query
description: If you only want to retrieve brand information for brands that
are associated with a specific partner, apply this filter
required: false
example: 111111l1
schema:
type: string
responses:
'200':
description: The list was retrieved successfully.
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$schema: http://json-schema.org/draft-07/schema#
type: object
properties:
brand_id:
type: string
examples:
- 111111l1
name:
type: string
examples:
- brand name
display_name:
type: string
examples:
- display name
nullable: true
address1:
type: string
examples:
- address line 1
nullable: true
address2:
type: string
examples:
- 'address line '
nullable: true
address3:
type: string
examples:
- address line 3
nullable: true
address4:
type: string
examples:
- address line 4
nullable: true
postcode:
type: string
examples:
- postcode
nullable: true
country:
type: string
examples:
- country
nullable: true
contact_email:
type: string
examples:
- email@user.com
nullable: true
icon:
type: string
examples:
- http://image.com/path/to/imag
nullable: true
description:
type: string
examples:
- brand description
nullable: true
blocked:
description: The will return true if the brand is on a network
that the partner was guested to but the partner has since
been blocked from the brand's network
type: boolean
examples:
- false
execution_time:
type: string
example: 0.515 seconds
/v3/partner/campaign-terms-and-conditions:
get:
summary: List campaign terms and conditions
operationId: listCampaignTerms
description: Lists all campaign terms and conditions of the campaigns managed
by the user. Terms and conditions will be bound to your user's locale. If
no terms for your locale exist, terms for `en` or `en_us` will be returned
in it's place.
tags:
- Campaign Terms and Conditions
parameters:
- name: campaign_id
in: query
description: Filter by campaign.
schema:
type: string
example: 111111l5
- name: created_at
in: query
description: Filter by created datetime.
schema:
type: string
example: 2020-01-01T00:00:00Z..2020-12-31T23:59:59Z
- name: locale
in: query
description: Filter by locale.
schema:
$ref: '#/components/schemas/Locale'
- name: content
in: query
description: Filter by content.
schema:
type: string
example: cookies
responses:
'200':
description: Request Success
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Campaign_Terms_And_Condition'
/v3/partner/campaign-terms-and-conditions/{id}:
get:
summary: Retrieve campaign terms and conditions
operationId: retrieveCampaignTerms
description: Retrieves a single campaign terms and conditions
tags:
- Campaign Terms and Conditions
parameters:
- name: id
in: path
description: The ID of the campaign terms and conditions
required: true
schema:
type: string
responses:
'200':
description: Request Success
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Campaign_Terms_And_Condition'
/v3/partner/campaign-terms-and-conditions-acknowledgments:
get:
summary: List campaign terms and conditions acknowledgments
operationId: listCampaignTermAcknowledgments
description: Lists all acknowledgements for campaign terms and conditions of
the partners managed by the user.
tags:
- Campaign Terms and Conditions Acknowledgments
parameters:
- name: partner_id
in: query
description: Filter by partner.
schema:
type: string
example: 111111l34
- name: campaign_terms_and_conditions_id
in: query
description: Filter by campaign terms and conditions.
schema:
type: string
example: 111111l50
- name: created_at
in: query
description: Filter by created datetime.
schema:
type: string
example: 2020-01-01T00:00:00Z..2020-12-31T23:59:59Z
- name: created_by
in: query
description: Filter by created by user.
schema:
type: string
example: 111111l2
responses:
'200':
description: Request Success
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Campaign_Terms_And_Condition_Acknowledgement'
post:
summary: Create campaign terms and conditions acknowledgment
operationId: createCampaignTermAcknowledgment
description: Create an acknowledgement for campaign terms and conditions
tags:
- Campaign Terms and Conditions Acknowledgments
requestBody:
content:
application/json:
schema:
$schema: http://json-schema.org/draft-07/schema#
type: object
properties:
partner_id:
type: string
campaign_terms_and_conditions_id:
type: string
required:
- partner_id
- campaign_terms_and_conditions_id
additionalProperties: false
example:
partner_id: 111111l34
campaign_terms_and_conditions_id: 111111l50
responses:
'201':
description: Request Success
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/Campaign_Terms_And_Condition_Acknowledgement'
/v3/partner/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 email has been verified
email:
type: string
format: email
description: Email address of a Current User
description: OK
/v3/partner/campaign-terms-and-conditions-acknowledgments/{id}:
get:
summary: Retrieve campaign terms and conditions acknowledgment
operationId: retrieveCampaignTermAcknowledgment
description: Retrieves a single acknowledgment of campaign terms and condition
tags:
- Campaign Terms and Conditions Acknowledgments
parameters:
- name: id
in: path
description: The ID of the acknowledgment
required: true
schema:
type: string
responses:
'200':
description: Request Success
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
example:
id: 111111l551
partner_id: 111111l34
campaign_terms_and_conditions_id: 111111l50
created_at: 2020-01-01T00:00:00+0000
created_by: 111111l2
components:
schemas:
Partner:
properties:
abn:
type: string
account_name:
type: string
campaign_select:
type: string
company_name:
type: string
company_division:
type: string
company_logo:
type: string
nullable: true
contact_email:
type: string
format: email
contact_locale:
$ref: '#/components/schemas/Locale'
contact_name:
type: string
default_currency:
$ref: '#/components/schemas/Currency'
description:
type: string
description: Description of the publisher
foreign_identifier:
type: string
gst_registered:
type: string
im_provider:
type: string
im_username:
type: string
is_affiliate_user:
$ref: '#/components/schemas/YesOrNo'
is_foreign_network:
description: Reporting only flag. All conversions will be automatically
approved but will not be invoiceable.
$ref: '#/components/schemas/YesOrNo'
is_lead_user:
$ref: '#/components/schemas/YesOrNo'
legal_entity:
$ref: '#/components/schemas/Country'
network_id:
type: string
description: ID of the network this publisher belongs to
network_notes:
type: string
network_status:
$ref: '#/components/schemas/Status'
operating_country:
$ref: '#/components/schemas/Country'
phone:
type: string
description: Primary contact telephone number
phone_area:
type: string
description: Phone prefix to declare country or region
promotional_method_name:
type: string
promotional_method:
type: integer
publisher_id:
type: string
description: ID of the publisher
reporting_identifier:
type: string
reporting_timezone:
type: string
signup_ip:
type: string
format: ipv4
uk_vat_registered:
$ref: '#/components/schemas/YesOrNo'
us_tax_state:
type: string
vat_number:
type: integer
vertical:
type: integer
vertical_name:
type: string
week_start:
type: string
Partner_Campaign_Wrapper:
properties:
campaign:
allOf:
- $ref: '#/components/schemas/Campaign'
- properties:
campaign_custom_terms_and_conditions_id:
type: string
campaign_custom_terms_and_conditions_title:
type: string
publisher_status:
$ref: '#/components/schemas/Status'
type: object
type: object
Partner_Campaign_Creative:
properties:
campaign_creative:
properties:
campaign_id:
description: Id of the campaign
type: string
creatives:
properties:
Banner:
description: number of Banner creatives
type: number
Email:
description: number of Emails
type: number
Feed:
description: number of Feeds
type: number
HTML:
description: number of HTML creatives
type: number
HTML Form:
description: number of HTML Forms
type: number
Text Link:
description: number of Text links
type: number
type: object
type: object
Feed:
properties:
feed:
properties:
campaign_feeds_id:
description: ID of the Feed
type: string
campaign_id:
description: ID of the Campaign
type: string
creative_id:
description: ID of the Creative
type: string
filename:
type: string
filesize:
type: number
filesize_compressed:
type: number
last_processed:
description: UNIX timestamp
type: number
location:
type: string
name:
type: string
title:
description: name of the Campaign
type: string
updated:
description: UNIX timestamp
type: number
type: object
type: object
Selfbill:
properties:
selfbill:
properties:
creation_date:
type: string
download:
description: URL for PDF download
nullable: true
type: string
item_download:
description: URL for CSV item download
nullable: true
type: string
items_in_bill:
type: number
legal_entity:
$ref: '#/components/schemas/Country'
majority_received_currency:
$ref: '#/components/schemas/Currency'
net_value:
type: number
paid_currency:
$ref: '#/components/schemas/Currency'
payment_batch_id:
nullable: true
type: string
payment_date:
nullable: true
type: string
payment_detail_set_id:
type: number
publisher_id:
description: ID of the partner
type: string
publisher_payment_detail_set_id:
nullable: true
type: string
publisher_self_bill_id:
type: string
publisher_self_bill_reference:
nullable: true
type: string
self_bill_reference:
type: string
selfbill_currency:
$ref: '#/components/schemas/Currency'
status:
enum:
- created
type: string
timestamp:
type: string
total_value:
type: number
tracked_currency:
$ref: '#/components/schemas/Currency'
tracked_net_value:
type: number
vat_rate:
type: number
vat_value:
type: number
withheld_tax:
type: number
type: object
type: object
Payment_Details:
properties:
1011l22:
description: Dynamic property name equal to the Payment details set Id.
Example - 1011l22
properties:
publisher_payment_detail_set_id:
type: string
country:
$ref: '#/components/schemas/Country'
paid_currency:
$ref: '#/components/schemas/Currency'
tracked_currency:
items:
$ref: '#/components/schemas/Currency'
type: array
payment_type_code:
type: string
payment_type_name:
type: string
automatic_self_bill_creation_date:
type: string
automatic_self_bill_creation_threshold:
type: string
suspended:
$ref: '#/components/schemas/YesOrNo'
suspended_at:
type: string
suspended_by:
type: string
suspended_notes:
type: string
payment_detail_values:
properties:
bank_address:
type: string
account_number:
type: number
account_name:
type: string
bank_name:
type: string
routing_number:
type: number
type: object
type: object
Link:
properties:
id:
type: string
campaign_id:
type: string
description:
type: string
destination_url:
type: string
tracking_short_url:
type: string
tracking_url:
type: string
params:
items:
$ref: '#/components/schemas/Key_Value_Pair'
active:
type: boolean
type: object
Key_Value_Pair:
properties:
key:
type: string
value:
type: string
type: object
Partner_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
Partner_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
Partner_Overview_Primary:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
campaigns:
items:
properties:
campaign:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
campaign_id:
type: string
title:
type: string
type: array
Partner_Overview_Country:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
countrys:
items:
properties:
country:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
country_iso:
$ref: '#/components/schemas/Country'
type: array
Partner_Overview_Self:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
publishers:
items:
properties:
publisher:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
publisher_id:
type: string
title:
type: string
type: array
Partner_Overview_Product:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
products:
items:
properties:
product:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
product:
type: string
type: array
Partner_Overview_Pubref:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
pubrefs:
items:
properties:
pubref:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
reserved_tag_name:
type: boolean
pubref:
type: string
type: array
Partner_Overview_Adref:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
adrefs:
items:
properties:
adref:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
adref:
type: string
type: array
Partner_Overview_Creative:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
creatives:
items:
properties:
creative:
allOf:
- $ref: '#/components/schemas/Partner_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
Partner_Overview_Agent:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
agents:
items:
properties:
agent:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
agent_name:
type: string
agent_items:
items: {}
type: array
type: array
Partner_Overview_Custref:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
custrefs:
items:
properties:
custref:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
custref:
type: string
type: array
Partner_Overview_Type:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
types:
items:
properties:
type:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
type:
type: number
type: array
Partner_Overview_Device:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
devices:
items:
properties:
device:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
device_id:
type: number
device_title:
type: string
type: array
Partner_Overview_Source:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
sources:
items:
properties:
source:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
source_id:
type: number
source_title:
type: string
type: array
Partner_Overview_Partnership:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
parnterships:
items:
properties:
parntership:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
parntership_id:
type: number
partnership_title:
type: string
type: array
Partner_Overview_Metric:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
metrics:
items:
properties:
metric:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
metric_id:
type: number
metric_title:
type: string
type: array
Partner_Overview_Context:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Base'
- type: object
properties:
contexts:
items:
properties:
context:
allOf:
- $ref: '#/components/schemas/Partner_Overview_Currency_Stats'
- type: object
properties:
context_id:
type: number
context_title:
type: string
type: array
Partner_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
Partner_Overview_Period:
properties:
totals:
$ref: '#/components/schemas/Partner_Overview_Period_Stats'
start_block:
type: number
end_block:
type: number
start_time:
type: string
end_time:
type: string
stats:
$ref: '#/components/schemas/Partner_Overview_Period_Stats'
Partner_Overview_Multidate_Current:
properties:
period:
properties:
current:
$ref: '#/components/schemas/Partner_Overview_Period'
type: object
utc_offset:
type: number
Partner_Overview_Multidate_Ranges:
properties:
period:
items:
properties:
range{index}:
description: an indexed range. E.g. range0, range1, etc.
$ref: '#/components/schemas/Partner_Overview_Period'
type: object
type: array
utc_offset:
type: number
Partner_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_publisher_commission:
description: 'total 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
Partner_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:
allOf:
- $ref: '#/components/schemas/Click'
- type: object
properties:
meta_data:
type: array
description: Key value pairs of meta data
items:
properties:
key:
description: A key value pair.
type: string
type: object
Conversion_Data:
type: object
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
creative_type:
type: number
creative_id:
type: number
specific_creative_id:
type: number
currency:
$ref: '#/components/schemas/Currency'
publisher_reference:
type: string
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
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
conversion_lag:
type: number
clickref:
type: string
Click:
properties:
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
publisher_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
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
last_update:
type: string
publisher_self_bill_id:
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
payable:
type: boolean
type: object
Conversion_Status:
enum:
- pending
- approved
- rejected
type: string
Campaign_Terms_And_Condition:
type: object
properties:
id:
type: string
example: 111111l10
created_at:
type: string
example: 2020-01-01T00:00:00+0000
locale:
type: string
example: en_us
content:
type: string
example: Lorem Ipsum
campaign_id:
type: string
example: 111111l5
Campaign_Terms_And_Condition_Acknowledgement:
type: object
properties:
id:
type: string
example: 111111l551
partner_id:
type: string
example: 111111l34
campaign_terms_and_conditions_id:
type: string
example: 111111l50
created_at:
type: string
example: 2020-01-01T00:00:00+0000
created_by:
type: string
example: 111111l2
Campaign:
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
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
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_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
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
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'
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
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 publishers 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
Partner_Website:
properties:
publisher_id:
description: ID of the partner the website belongs to
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
Partner_Website_Wrapper:
properties:
website:
allOf:
- type: object
properties:
website_id:
description: ID of the partner website
type: string
- $ref: '#/components/schemas/Partner_Website'
type: object
Partner_Database:
properties:
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
Partner_Database_Wrapper:
properties:
database:
allOf:
- type: object
properties:
database_id:
description: ID of the partner database
type: string
- $ref: '#/components/schemas/Partner_Database'
type: object
Partner_Payment_Summary:
properties:
execution_time:
type: string
summary:
properties:
available:
description: Amount of money available to the partner to withdraw
title: The propery name* is the currency code and the value is amount
of money, e.g. 'GBP':'12.45'
additionalProperties:
type: number
description: Amount of money
type: object
confirmed:
description: Amount that will be available once issued brand's invoices
are paid
title: The propery name* is the currency code and the value is amount
of money, e.g. 'GBP':'12.45'
additionalProperties:
type: number
description: Amount of money
type: object
pending:
description: Total value of pending conversions
title: The propery name* is the currency code and the value is amount
of money, e.g. 'GBP':'12.45'
additionalProperties:
type: number
description: Amount of money
type: object
approved:
description: Total value of approved conversions
title: The propery name* is the currency code and the value is amount
of money, e.g. 'GBP':'12.45'
additionalProperties:
type: number
description: Amount of money
type: object
paid:
description: Amount already paid
title: The propery name* is the currency code and the value is amount
of money, e.g. 'GBP':'12.45'
additionalProperties:
type: number
description: Amount of money
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
YesOrNo:
enum:
- y
- n
type: string
Currency:
enum:
- GBP
- USD
- EUR
- JPY
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
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
Timezones:
enum:
- Australia/Sydney
- UTC
- Europe/London
- CET
- GMT
type: string
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
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
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