openapi: 3.2.0 info: title: Documentation Admin Stats API version: '3.2' x-logo: altText: Affise API documentation. url: affise_logo.svg backgroundColor: '#fafafa' description: 'API 3.1 documentation. Authorization ```shell curl --header "API-Key:23df424b0a53b0899f78685966243ee61" http://YOUR_API_DOMAIN/ or curl http://YOUR_API_DOMAIN/some_path?API-Key=23df424b0a53b0899f78685966243ee61 ``` For data exchange using authentication public key passed as parameter in the header API-Key. As the key, a hash generated for your site. API key, you can see in your profile. Find out more about where you can get your API URL, API-key and personal API-key for Affiliate here - [Getting Started with API](https://help-center.affise.com/en/articles/6463675-start-with-api-networks) Postman collection A ready-to-use Postman collection covering all endpoints of this documentation is available in the [affise-postman-api-collection](https://github.com/affise/affise-postman-api-collection) repository. Import the collection together with the Demo environment, set your `baseUrl` and API keys in the environment variables, and you are ready to send requests. ' servers: - url: https://api-demo.affise.com description: Demo Server variables: api-key: default: 685168e94e6a96fa7c31895e description: Demo Test API Key tags: - name: admin-stats x-displayName: Statistics description: Statistics endpoints available to admin (includes admin-only and multi-role) paths: /3.0/stats/custom: get: tags: - admin-stats summary: Custom statistics description: '`GET /3.0/stats/custom` Get custom statistics ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: slice[] in: query description: Custom stats slice required: true schema: type: array items: type: string enum: - hour - month - quarter - year - day - offer - country - city - os - os_version - device - device_model - browser - goal - sub1 - sub2 - sub3 - sub4 - sub5 - advertiser - affiliate - manager - smart_id - trafficback_reason - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers IDs schema: type: array items: type: integer - name: filter[manager] in: query description: Managers IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: ONLY FOR ADMIN - Partners IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub number 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub number 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub number 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub number 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub number 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub number 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub number 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub number 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[smart_id] in: query description: Allowed only when the smart slice selected - SmartLink categories IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[nonzero] in: query description: Non-zero conversions schema: type: integer enum: - 0 - 1 - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string - name: filter[payment_status] in: query description: Conversion payment status schema: type: string enum: - opened - closed - pending - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: conversionTypes[] in: query description: Only this conversion types will be output schema: type: array items: type: string enum: - total - confirmed - pending - declined - hold - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: order[] in: query description: Sort by field schema: type: array items: type: string enum: - hour - month - quarter - year - day - currency - offer - country - city - os - os_version - device - device_model - browser - goal - sub1 - sub2 - sub3 - sub4 - sub5 - confirmed_earning - raw - uniq - total_count - total_revenue - total_null - pending_count - pending_revenue - declined_count - declined_revenue - hold_count - hold_revenue - confirmed_count - confirmed_revenue - advertiser - affiliate - manager - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: fields[] in: query description: Custom stats fields schema: type: array items: type: string enum: - clicks - hosts - earnings - income - noincome - payouts - conversions - cr - affiliate_epc - ratio - epc - trafficback - ctr - views - ecpm responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object additionalProperties: true traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: year: 2017 month: 3 day: 1 traffic: raw: '1607530' uniq: '1468939' actions: total: revenue: 1252 charge: 1352.52 earning: 100.52 'null': 825 count: 1092 confirmed: revenue: 1252 charge: 1352.52 earning: 100.52 'null': 728 count: 995 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 0 charge: 0 earning: 0 'null': 97 count: 97 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/custom?slice[0]=hour&filter[date_from]=&filter[date_to]=&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1&filter[nonzero]=0¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2&filter[payment_status]=opened&locale=en&conversionTypes[0]=total&page=1&limit=100&orderType=asc&order[0]=hour&fields[0]=clicks' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/conversionsbyid: get: tags: - admin-stats summary: Conversion description: '`GET /3.0/stats/conversionsbyid` Get conversions Available only for admin API-Key ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: id in: query description: Conversion ID required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer conversion: type: object properties: id: type: string action_id: type: string status: type: integer conversion_id: type: string cbid: type: string currency: type: string offer: type: object properties: id: type: integer title: type: string offer_id: type: string url: type: string offer_id: type: integer goal: type: string hold_date_expire: type: string nullable: true ip: type: string country: type: string country_name: type: string district: type: string nullable: true city: type: string city_id: type: integer isp_code: type: string ua: type: string browser: type: string os: type: string device: type: string device_type: type: string sub1: type: string nullable: true sub2: type: string nullable: true sub3: type: string nullable: true sub4: type: string nullable: true sub5: type: string nullable: true sub6: type: string nullable: true sub7: type: string nullable: true sub8: type: string nullable: true custom_field_1: type: string nullable: true custom_field_2: type: string nullable: true custom_field_3: type: string nullable: true custom_field_4: type: string nullable: true custom_field_5: type: string nullable: true custom_field_6: type: string nullable: true custom_field_7: type: string nullable: true comment: type: string nullable: true created_at: type: string format: date-time click_time: type: string format: date-time updated_at: type: string format: date-time referrer: type: string nullable: true landing_id: type: string nullable: true prelanding_id: type: string nullable: true currency_id: type: string nullable: true price: type: number nullable: true clickid: type: string partner: type: object properties: id: type: integer email: type: string login: type: string name: type: string manager: type: string nullable: true supplier_id: type: string partner_id: type: integer goal_value: type: string sum: type: number revenue: type: number payouts: type: number earnings: type: number advertiser: type: object properties: id: type: string title: type: string payment_type: type: string payment_status: type: string is_paid: type: string charge: type: number earning: type: number click_id: type: string fraud_risk_level: type: string decline_reason: type: string fraud_type: type: array items: type: string createdAt: type: string format: date-time updatedAt: type: string format: date-time example: conversion: id: 5bd00d73901fcf20008b4574 action_id: 5bd00c641d580e000162cf94 status: 1 conversion_id: 5bd00d73901fcf20008b4574 cbid: 5bd00c641d580e000162cf94 currency: USD offer: id: 7 title: Test Offer offer_id: 5b59b752f44d940011105103 url: http://site.com offer_id: 7 goal: '' hold_date_expire: null ip: 172.18.0.1 country: '' country_name: '' district: null city: Undefined city_id: 0 isp_code: '' ua: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 browser: Unknown Unknown os: Linux Unknown device: desktop device_type: desktop sub1: null sub2: null sub3: null sub4: null sub5: null sub6: null sub7: null sub8: null custom_field_1: null custom_field_2: null custom_field_3: null custom_field_4: null custom_field_5: null custom_field_6: null custom_field_7: null comment: null created_at: '2018-10-22 09:13:07' click_time: '2018-10-22 09:08:36' updated_at: '2018-10-22 09:13:07' referrer: null landing_id: null prelanding_id: null currency_id: null price: null clickid: 5bd00c641d580e000162cf94 partner: id: 2 email: emailtest@yahoo.com login: Yvette Michael name: Yvette Michael manager: null supplier_id: 5b5f415035752723008b456a partner_id: 2 goal_value: '1' sum: 0 revenue: 3 payouts: 3 earnings: 3 advertiser: id: 5b5f415035752723008b456a title: Text supplier 2 payment_type: fixed payment_status: opened is_paid: '1' charge: 6 earning: 3 click_id: 5bd00c641d580e000162cf94 fraud_risk_level: not_analyzed decline_reason: by_manager fraud_type: [] createdAt: '2021-12-31 11:42:09' updatedAt: '2021-12-31 11:42:39' status: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/conversionsbyid?id=' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/conversions: get: tags: - admin-stats summary: Conversions description: '`GET /3.0/stats/conversions` Get conversions ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: date_from in: query description: Date from schema: type: string format: date - name: date_to in: query description: Date to schema: type: string format: date - name: update_from_date in: query description: ONLY FOR ADMIN - Last update date point schema: type: string format: date - name: update_from_hour in: query description: ONLY FOR ADMIN - Last update hour point. Available only when update_from_date and update_to_date filters are used schema: type: integer minimum: 0 maximum: 23 - name: update_to_date in: query description: ONLY FOR ADMIN - End date of last update schema: type: string format: date - name: update_to_hour in: query description: ONLY FOR ADMIN - End hour of last update. Available only when update_from_date and update_to_date filters are used schema: type: integer minimum: 0 maximum: 23 - name: status[] in: query description: Status conversions. 1 = confirmed, 2 = pending, 3 = declined, 5 = hold schema: type: array items: type: integer enum: - 1 - 2 - 3 - 5 - name: offer[] in: query description: Offer ID collection schema: type: array items: type: integer - name: advertiser[] in: query description: Advertiser ID collection schema: type: array items: type: string - name: country[] in: query description: Countries codes. Example US schema: type: array items: type: string - name: browser in: query description: Browser schema: type: string - name: action_id in: query description: Cbid schema: type: string - name: clickid in: query description: Click ID schema: type: string - name: os in: query description: Os schema: type: string - name: goal in: query description: Goal schema: type: string - name: goal_id in: query description: Goal ID collection schema: type: array items: type: integer - name: device in: query description: Device schema: type: string enum: - tablet - desktop - mobile - name: payouts in: query description: Payout for affiliate schema: type: number - name: payouts_from in: query description: Payout for affiliate must be greater than this value schema: type: number - name: payouts_to in: query description: Payout for affiliate must be less than this value schema: type: number - name: currency in: query description: ID currency schema: type: integer - name: hour in: query description: Hour point - Allows only for one day period schema: type: integer minimum: 0 maximum: 23 - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: custom_field_1 in: query description: Custom field 1 schema: type: string - name: custom_field_2 in: query description: Custom field 2 schema: type: string - name: custom_field_3 in: query description: Custom field 3 schema: type: string - name: custom_field_4 in: query description: Custom field 4 schema: type: string - name: custom_field_5 in: query description: Custom field 5 schema: type: string - name: custom_field_6 in: query description: Custom field 6 schema: type: string - name: custom_field_7 in: query description: Custom field 7 schema: type: string - name: subid1 in: query description: Sub 1 schema: type: string - name: subid2 in: query description: Sub 2 schema: type: string - name: subid3 in: query description: Sub 3 schema: type: string - name: subid4 in: query description: Sub 4 schema: type: string - name: subid5 in: query description: Sub 5 schema: type: string - name: smart_id in: query description: Smartlink Id schema: type: string - name: promocode in: query description: Promocode schema: type: string - name: imp_id in: query description: Impression Id schema: type: string - name: payment_status in: query description: Payment status schema: type: string enum: - opened - pending - closed - name: partner[] in: query description: ONLY FOR ADMIN - Affiliates schema: type: array items: type: integer - name: revenue in: query description: ONLY FOR ADMIN - Revenue schema: type: number - name: revenue_from in: query description: ONLY FOR ADMIN - Revenue must be greater than this value schema: type: number - name: revenue_to in: query description: ONLY FOR ADMIN - Revenue must be less than this value schema: type: number - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: raw_export in: query description: Without mapping related entities (For huge exports) schema: type: integer default: 0 - name: decline_reason[] in: query description: Filter by decline reason schema: type: array items: type: string enum: - anti_fraud - cap_reached - by_manager - payment_not_found - ip_duplicate - by_server_postback - partner_banned - partner_disabled - min_click_time_not_reached - click_time_expire - by_import - promocode_expired - promocode_not_available - name: fraud_risk_level[] in: query description: Filter by fraud risk level schema: type: array items: type: string enum: - not_analyzed - low - medium - high - no_risk - name: fraud_type[] in: query description: Filter by fraud type schema: type: array items: type: string - name: comment in: query description: Comment schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer conversions: type: array items: type: object properties: id: type: string action_id: type: string status: type: string currency: type: string goal: type: string nullable: true country: type: string district: type: string city: type: string ip: type: string browser: type: string os: type: string device: type: string offer: type: object nullable: true properties: id: type: integer offer_id: type: string title: type: string url: type: string offer_id: type: string ios_idfa: type: string android_id: type: string sub1: type: string sub2: type: string sub3: type: string sub4: type: string sub5: type: string custom_field_1: type: string custom_field_2: type: string custom_field_3: type: string custom_field_4: type: string custom_field_5: type: string custom_field_6: type: string custom_field_7: type: string ua: type: string comment: type: string created_at: type: string format: date-time updated_at: type: string format: date-time click_time: type: string format: date-time referrer: type: string payouts: type: number clickid: type: string partner: type: object properties: id: type: integer email: type: string login: type: string name: type: string goal_value: type: string sum: type: number revenue: type: number earnings: type: number advertiser: type: object properties: id: type: string title: type: string payment_status: type: string is_paid: type: string forensiq: type: string nullable: true payment_type: type: string nullable: true hold_date_expire: type: string nullable: true fraud_risk_level: type: string decline_reason: type: string fraud_type: type: array items: type: string pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer next_page: type: integer example: status: 1 conversions: - id: 59359e1d7e28feb7568b456a action_id: 59359dcb7e28fee0558b4567 status: confirmed currency: USD goal: null country: US district: '' city: New York ip: 127.0.0.1 browser: Chrome 58.0.3029 os: Mac OS X 10.12.5 device: Other offer: id: 934 offer_id: 59313e097960ad2774b4f274 title: HD-smart [Web] url: http://YOUR_API_DOMAIN/1/ offer_id: '934' ios_idfa: '' android_id: '' sub1: '' sub2: '' sub3: '' sub4: '' sub5: '' custom_field_1: '' custom_field_2: '' custom_field_3: '' custom_field_4: '' custom_field_5: '' custom_field_6: '' custom_field_7: '' ua: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 comment: '' created_at: '2017-06-06 03:08:29' updated_at: '2017-06-06 03:08:30' click_time: '2017-06-06 03:07:07' referrer: http://YOUR_API_DOMAIN payouts: 1234 clickid: 59359dcb7e28fee0558b4567 partner: id: 610 email: example@gmail.com login: example name: '' goal_value: '1' sum: 0 revenue: 12345 earnings: 11111 advertiser: id: 56cc49dc3b7d9b89058b45f0 title: Example payment_status: opened is_paid: '1' forensiq: null payment_type: null hold_date_expire: null fraud_risk_level: not_analyzed decline_reason: by_manager fraud_type: [] pagination: per_page: 1 total_count: 17 page: 1 next_page: 2 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/conversions?status[0]=1&offer[0]=0&offer[1]=1&advertiser[0]=string&advertiser[1]=string2&country[0]=string&country[1]=string2&goal_id[0]=0&goal_id[1]=1&device=tablet&payment_status=opened&partner[0]=0&partner[1]=1&page=1&limit=100&raw_export=0&decline_reason[0]=anti_fraud&fraud_risk_level[0]=not_analyzed&fraud_type[0]=string&fraud_type[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbydate: get: tags: - admin-stats summary: By date description: '`GET /3.0/stats/getbydate` Get statistics by date ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: orderType in: query description: Order type schema: type: string enum: - asc - desc default: asc - name: locale in: query description: Locale schema: type: string enum: - ru - en - es default: en - name: limit in: query description: Limit of stat entities schema: type: integer default: 100 - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: year: type: integer month: type: integer day: type: integer traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: year: 2017 month: 5 day: 31 traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbydate?filter[date_from]=&filter[date_to]=&orderType=asc&locale=en&limit=100&filter[currency][0]=string&filter[currency][1]=string2&page=1&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbyhour: get: tags: - admin-stats summary: Hourly description: '`GET /3.0/stats/getbyhour` Get hourly statistics ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers IDs schema: type: array items: type: integer - name: filter[manager] in: query description: Managers IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: ONLY FOR ADMIN - Partners IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: year: type: integer month: type: integer day: type: integer hour: type: integer traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: year: 2017 month: 5 day: 31 hour: 0 traffic: raw: '0' uniq: '0' actions: total: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 confirmed: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyhour?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbyprogram: get: tags: - admin-stats summary: By offer description: '`GET /3.0/stats/getbyprogram` Get statistics by offer ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers IDs schema: type: array items: type: integer - name: filter[manager] in: query description: Managers IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: ONLY FOR ADMIN - Partners IDs schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: offer: type: object properties: id: type: integer offer_id: type: string title: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: offer: id: 906 offer_id: 59313e127960ad2774b4f2b9 title: HD-smart [Web] traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyprogram?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbyadvertiser: get: tags: - admin-stats summary: By advertiser description: '`GET /3.0/stats/getbyadvertiser` Get statistics by advertiser (Available only for admin API-Key) ' parameters: - name: api-key in: header description: API key required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: advertiser: type: object properties: id: type: string title: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: advertiser: id: 56cc49dc3b7d9b89058b45f0 title: advertiser traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyadvertiser?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: '" /3.0/stats/getbyaccountmanager: get: tags: - admin-stats summary: By accounts managers description: '`GET /3.0/stats/getbyaccountmanager` Get statistics by accounts managers (Available only for admin API-Key) ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: advertiser_manager_id: type: object properties: id: type: integer first_name: type: string last_name: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: advertiser_manager_id: id: 0 first_name: Undefined last_name: Undefined traffic: raw: '9' uniq: '1' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: charge: 0 earning: 0 'null': 0 revenue: 0 count: 0 declined: charge: 0 earning: 0 'null': 0 revenue: 0 count: 0 hold: charge: 0 earning: 0 'null': 0 revenue: 0 count: 0 pending: charge: 0 earning: 0 'null': 0 revenue: 0 count: 0 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyaccountmanager?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbyaffiliatemanager: get: tags: - admin-stats summary: By affiliates managers description: '`GET /3.0/stats/getbyaffiliatemanager` Get statistics by affiliates managers (Available only for admin API-Key) ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: affiliate_manager_id: type: object properties: id: type: string first_name: type: string last_name: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: affiliate_manager_id: id: '0' first_name: Undefined last_name: Undefined traffic: raw: '9' uniq: '1' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: charge: 0 earning: 0 'null': 0 revenue: 0 count: 0 declined: charge: 0 earning: 0 'null': 0 revenue: 0 count: 0 hold: charge: 0 earning: 0 'null': 0 revenue: 0 count: 0 pending: charge: 0 earning: 0 'null': 0 revenue: 0 count: 0 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyaffiliatemanager?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbypartner: get: tags: - admin-stats summary: By affiliate description: '`GET /3.0/stats/getbypartner` Get statistics by affiliate (Available only for admin API-Key) ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: affiliate: type: object properties: id: type: integer email: type: string login: type: string name: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: affiliate: id: 610 email: aff@iliate.com login: affiliate name: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbypartner?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbypartnerbydate: get: tags: - admin-stats summary: By affiliate and date description: '`GET /3.0/stats/getbypartnerbydate` Get statistics by affiliate and date (Available only for admin API-Key) ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: year: type: integer month: type: integer day: type: integer affiliate: type: object properties: id: type: integer email: type: string login: type: string name: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: year: 2017 month: 5 day: 31 affiliate: id: 610 email: affiliate@affiliate.com login: affiliate name: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbypartnerbydate?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbycountries: get: tags: - admin-stats summary: By country description: '`GET /3.0/stats/getbycountries` Get statistics by country ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: country: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: country: USA traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbycountries?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbybrowsers: get: tags: - admin-stats summary: By browser description: '`GET /3.0/stats/getbybrowsers` Get statistics by browser ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: browser: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: browser: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbybrowsers?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbybrowsersversion: get: tags: - admin-stats summary: By browser version description: '`GET /3.0/stats/getbybrowsersversion` Get statistics by browser version ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: browser_version: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: browser_version: '70' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbybrowsersversion?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbylanding: get: tags: - admin-stats summary: By landing description: '`GET /3.0/stats/getbylanding` Get statistics by landing ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: filter[offer] in: query description: Offer ID required: true schema: type: integer - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: landing: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer ratio: type: string epc: type: number landings_info: type: object additionalProperties: type: object properties: url: type: string preview_url: type: string title: type: string pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: landing: '1543238303' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 ratio: '' epc: 0 landings_info: '1543238303': url: http://test-url.com preview_url: http://test-preview-url.com title: '333' pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbylanding?filter[date_from]=&filter[date_to]=&filter[offer]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbyprelanding: get: tags: - admin-stats summary: By prelanding description: '`GET /3.0/stats/getbyprelanding` Get statistics by prelanding ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: filter[offer] in: query description: Offer ID required: true schema: type: integer - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: prelanding: type: integer traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer ratio: type: string epc: type: number landings_info: type: object additionalProperties: type: object properties: url: type: string preview_url: type: string title: type: string pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: prelanding: 1543243821 traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 ratio: '' epc: 0 landings_info: '1543243821': url: http://test-url.com preview_url: http://test-preview-url.com title: '333' pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyprelanding?filter[date_from]=&filter[date_to]=&filter[offer]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbymobilecarrier: get: tags: - admin-stats summary: By mobile carrier description: '`GET /3.0/stats/getbymobilecarrier` Get statistics by mobile carrier ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: isp: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer ratio: type: string epc: type: number pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: isp: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 ratio: '' epc: 0 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbymobilecarrier?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbyconnectiontype: get: tags: - admin-stats summary: By connection type description: '`GET /3.0/stats/getbyconnectiontype` Get statistics by connection type ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: conn_type: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer ratio: type: string epc: type: number pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: conn_type: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 ratio: '' epc: 0 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyconnectiontype?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbyos: get: tags: - admin-stats summary: By OS description: '`GET /3.0/stats/getbyos` Get statistics by OS ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: os: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: os: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyos?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbyversions: get: tags: - admin-stats summary: By OS version description: '`GET /3.0/stats/getbyversions` Get statistics by OS version ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: os: type: string os_version: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: os: '' os_version: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbyversions?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbygoal: get: tags: - admin-stats summary: By goal description: '`GET /3.0/stats/getbygoal` Get statistics by goal ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: goal: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: goal: '1' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbygoal?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbycities: get: tags: - admin-stats summary: By city description: '`GET /3.0/stats/getbycities` Get statistics by city ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: city: type: integer traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: city: 0 traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbycities?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbydevices: get: tags: - admin-stats summary: By device description: '`GET /3.0/stats/getbydevices` Get statistics by device ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: not_offer_id in: query description: ONLY FOR ADMIN — Offer IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_id in: query description: ONLY FOR ADMIN — Advertiser IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_id in: query description: ONLY FOR ADMIN — Partner (affiliate) IDs to exclude from results schema: type: array items: type: integer - name: not_advertiser_manager_id in: query description: ONLY FOR ADMIN — Advertiser manager IDs to exclude from results schema: type: array items: type: string - name: not_affiliate_manager_id in: query description: ONLY FOR ADMIN — Affiliate manager IDs to exclude from results schema: type: array items: type: string - name: not_smartlink_id in: query description: ONLY FOR ADMIN — SmartLink category IDs to exclude from results schema: type: array items: type: string - name: not_country in: query description: 'ONLY FOR ADMIN — Country codes to exclude from results. Example: US' schema: type: array items: type: string - name: not_advertiser_tag in: query description: 'ONLY FOR ADMIN — Comma-separated advertiser tags to exclude. Example: tag1,tag2' schema: type: string - name: not_affiliate_tag in: query description: 'ONLY FOR ADMIN — Comma-separated affiliate tags to exclude. Example: tag1,tag2' schema: type: string - name: not_offer_tag in: query description: 'ONLY FOR ADMIN — Comma-separated offer tags to exclude. Example: tag1,tag2' schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: device: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: device: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbydevices?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1¬_offer_id[0]=0¬_offer_id[1]=1¬_advertiser_id[0]=string¬_advertiser_id[1]=string2¬_affiliate_id[0]=0¬_affiliate_id[1]=1¬_advertiser_manager_id[0]=string¬_advertiser_manager_id[1]=string2¬_affiliate_manager_id[0]=string¬_affiliate_manager_id[1]=string2¬_smartlink_id[0]=string¬_smartlink_id[1]=string2¬_country[0]=string¬_country[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbydevicemodels: get: tags: - admin-stats summary: By device model description: '`GET /3.0/stats/getbydevicemodels` Get statistics by device model ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[currency] in: query description: The list of a currencies code schema: type: array items: type: string - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[manager] in: query description: Managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_manager_id] in: query description: Advertiser managers ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[partner] in: query description: Partners ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[os] in: query description: Os schema: oneOf: - type: string - type: array items: type: string - name: filter[goal] in: query description: Goal schema: oneOf: - type: string - type: array items: type: string - name: filter[sub1] in: query description: Sub 1 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub2] in: query description: Sub 2 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub3] in: query description: Sub 3 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub4] in: query description: Sub 4 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub5] in: query description: Sub 5 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub6] in: query description: Sub 6 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub7] in: query description: Sub 7 schema: oneOf: - type: string - type: array items: type: string - name: filter[sub8] in: query description: Sub 8 schema: oneOf: - type: string - type: array items: type: string - name: filter[device] in: query description: Device schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: device_model: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: object additionalProperties: type: object properties: revenue: type: number charge: type: number earning: type: number 'null': type: integer count: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: device_model: '' traffic: raw: '0' uniq: '0' actions: total: revenue: 191190.40796039 charge: 339894.05859619 earning: 148703.65063587 'null': 0 count: 12600 confirmed: revenue: 15.173841901617 charge: 26.975718936208 earning: 11.801877034591 'null': 0 count: 1 pending: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 declined: revenue: 0 charge: 0 earning: 0 'null': 0 count: 0 hold: revenue: 191175.23411849 charge: 339867.08287725 earning: 148691.84875883 'null': 0 count: 12599 pagination: per_page: 1 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbydevicemodels?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[currency][0]=string&filter[currency][1]=string2&filter[offer][0]=0&filter[offer][1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getreferralpayments: get: tags: - admin-stats summary: By referral payments description: '`GET /3.0/stats/getreferralpayments` Get statistics by referral payments ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: date_from in: query description: Date from required: true schema: type: string pattern: ^\d{2}-\d{2}-\d{4}$ example: 31-05-2017 - name: date_to in: query description: Date to required: true schema: type: string pattern: ^\d{2}-\d{2}-\d{4}$ example: 31-05-2017 - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: pid in: query description: Partner ID schema: type: integer - name: pids in: query description: List of partner IDs schema: type: array items: type: integer - name: ref in: query description: Referral partner ID schema: type: integer - name: refs in: query description: List of referral partner IDs schema: type: array items: type: integer - name: is_paid in: query description: Status (0 => payouts, 1 => paid, 2 => pending) schema: type: integer enum: - 0 - 1 - 2 - name: payment_statuses in: query description: List of is_paid values schema: type: array items: type: integer enum: - 0 - 1 - 2 - name: status in: query description: Active (0 => no, 1 => yes) schema: type: integer enum: - 0 - 1 - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: currency in: query description: ID currency schema: type: integer - name: currencies in: query description: List of currency IDs schema: type: array items: type: integer responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer ref_payments: type: array items: type: object properties: pid: type: string ref: type: string status: type: string is_paid: type: string currency: type: string count: type: string max_created_at: type: string format: date-time date_registration_partner: type: string format: date-time sum_revenue: type: string pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 ref_payments: - pid: '2' ref: '3' status: '0' is_paid: '0' currency: USD count: '4' max_created_at: '2016-03-19 16:25:22' date_registration_partner: '2016-10-30 10:22:12' sum_revenue: '0.20000' pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getreferralpayments?date_from=31-05-2017&date_to=31-05-2017&pids[0]=0&pids[1]=1&refs[0]=0&refs[1]=1&is_paid=0&payment_statuses[0]=0&status=0&page=1&limit=100¤cies[0]=0¤cies[1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/serverpostbacks: get: tags: - admin-stats summary: By server postback description: '`GET /3.0/stats/serverpostbacks` Get server postbacks ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: date_from in: query description: Date from required: true schema: type: string pattern: ^\d{2}-\d{2}-\d{4}$ example: 01-04-2017 - name: date_to in: query description: Date to required: true schema: type: string pattern: ^\d{2}-\d{2}-\d{4}$ example: 01-07-2017 - name: offer in: query description: Offer IDs schema: type: array items: type: string - name: partner in: query description: Partner IDs schema: type: array items: type: integer - name: search in: query description: Search parameter schema: type: string - name: click_id in: query description: Click ID schema: type: string - name: goal in: query description: Goal schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer postbacks: type: array items: type: object properties: _id: type: object properties: $id: type: string _get: type: object additionalProperties: true _post: type: array items: {} date: type: object properties: sec: type: integer usec: type: integer get: type: string post: type: string server: type: string response: type: string track: type: object properties: id: type: string ip: type: string ua: type: string country: type: string city: type: string device: type: string os: type: string browser: type: string offer: type: object properties: id: type: integer offer_id: type: string title: type: string preview_url: type: string referrer: type: string click_id: type: string sub1: type: string sub2: type: string sub3: type: string sub4: type: string sub5: type: string offer_id: type: string conversion_id: nullable: true ios_idfa: nullable: true android_id: nullable: true created_at: type: string format: date-time uniq: type: integer cbid: nullable: true partner: type: object properties: id: type: string login: type: string email: type: string pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 postbacks: - _id: $id: 59359e1d7e28feb7568b4569 _get: clickid: 59359dcb7e28fee0558b4567 _post: [] date: sec: 1496686109 usec: 35000 get: '{"clickid":"59359dcb7e28fee0558b4567"}' post: '[]' server: 127.0.0.1 response: "{\n \"status\": 1\n}" track: id: 59359dcb7e28fee0558b4567 ip: 127.0.0.1 ua: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 country: US city: New York device: Other os: Mac OS X 10.12.5 browser: Chrome 58.0.3029 offer: id: 934 offer_id: 59313e097960ad2774b4f274 title: HD-smart [Web] preview_url: http://YOUR_API_DOMAIN/desktop/1/ referrer: '' click_id: 59359dcb7e28fee0558b4567 sub1: '' sub2: '' sub3: '' sub4: '' sub5: '' offer_id: '934' conversion_id: null ios_idfa: null android_id: null created_at: '2017-06-06 03:07:07' uniq: 1 cbid: null partner: id: '610' login: affiliate email: affi@lia.te pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/serverpostbacks?date_from=01-04-2017&date_to=01-07-2017&offer[0]=string&offer[1]=string2&partner[0]=0&partner[1]=1&page=1&limit=100' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/affiliatepostbacks: get: tags: - admin-stats summary: By partner postback description: '`GET /3.0/stats/affiliatepostbacks` Get partner postbacks (Available only for admin API-Key) ' parameters: - name: api-key in: header description: API key required: true example: 23df424b0a53b0899f78685966243ee61 schema: type: string - name: date_from in: query description: Date from required: true schema: type: string format: date example: '2017-11-25' - name: date_to in: query description: Date to required: true schema: type: string format: date example: '2017-11-28' - name: offer in: query description: Offers ID's schema: type: array items: type: integer - name: partner in: query description: Partners ID's schema: type: array items: type: integer - name: goal in: query description: Goal schema: type: string - name: status in: query description: Status schema: type: integer - name: http_code in: query description: Http code schema: type: integer - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer postbacks: type: array items: type: object properties: _id: type: object properties: $id: type: string _get: nullable: true _post: nullable: true date: type: object properties: sec: type: integer usec: type: integer pid: type: integer lead_id: type: string http_code: type: integer postback_url: type: string offer_id: type: integer job_id: type: string goal: type: string status: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 postbacks: - _id: $id: 5a1d248f1bfa2441008b4567 _get: null _post: null date: sec: 1511859343 usec: 662000 pid: 2 lead_id: 5a1d247cbbf68e0001972d26 http_code: 200 postback_url: http://dsda.com offer_id: 1 job_id: 5a1d248a1bfa2418008b456b goal: '1' status: 1 pagination: per_page: 100 total_count: 1 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/affiliatepostbacks?date_from=2017-11-25&date_to=2017-11-28&offer[0]=0&offer[1]=1&partner[0]=0&partner[1]=1&page=1&limit=100' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/caps: get: tags: - admin-stats summary: By cap description: '`GET /3.0/stats/caps` Get stats by cap ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: offer_id in: query description: Offers ID's required: true schema: type: array items: type: integer responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: offer_id: type: integer stats: type: array items: type: object properties: affiliate_type: type: string affiliates: type: array items: {} countries: type: array items: type: string country_type: type: string current_value: type: integer goal_stats: type: object goal_type: type: string goals: type: array items: {} id: type: string is_remaining: type: boolean reset_to_value: type: integer timeframe: type: string type: type: string value: type: integer example: status: 1 stats: - offer_id: 10 stats: - affiliate_type: string affiliates: [] countries: - string country_type: string current_value: 0 goal_stats: {} goal_type: string goals: [] id: string is_remaining: true reset_to_value: 0 timeframe: string type: string value: 0 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/caps?offer_id[0]=0&offer_id[1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/getbytrafficback: get: tags: - admin-stats summary: By trafficback description: '`GET /3.0/stats/getbytrafficback` Get statistics by trafficback ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: filter[date_from] in: query description: Date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Date to required: true schema: type: string format: date - name: locale in: query description: Locale for output a cities data when you use the city slice schema: type: string enum: - ru - en - es default: en - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 - name: orderType in: query description: Sorting order schema: type: string enum: - asc - desc default: asc - name: filter[advertiser] in: query description: Advertiser ID's schema: oneOf: - type: string - type: array items: type: string - name: filter[offer] in: query description: Offers ID's schema: type: array items: type: integer - name: filter[partner] in: query description: Partners ID's (ONLY FOR ADMIN - If the request from not an admin then default a ID partner) schema: oneOf: - type: string - type: array items: type: string - name: filter[country] in: query description: Countries codes. Example US schema: oneOf: - type: string - type: array items: type: string - name: filter[advertiser_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[affiliate_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string - name: filter[offer_tag] in: query description: Comma separated array of strings. Example tag1,tag2,tag3 schema: type: string responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object properties: trafficback_reason: type: string traffic: type: object properties: raw: type: string uniq: type: string actions: type: array items: {} views: type: integer ctr: type: integer trafficback: type: integer pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: trafficback_reason: unknown-affiliate traffic: raw: '0' uniq: '0' actions: [] views: 0 ctr: 0 trafficback: 1 - slice: trafficback_reason: invalid-affiliate traffic: raw: '0' uniq: '0' actions: [] views: 0 ctr: 0 trafficback: 47 pagination: per_page: 100 total_count: 2 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/getbytrafficback?filter[date_from]=&filter[date_to]=&locale=en&page=1&limit=100&orderType=asc&filter[offer][0]=0&filter[offer][1]=1' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/retentionrate: get: tags: - admin-stats summary: Retention rate description: '`GET /3.0/stats/retentionrate` Get stats retentionrate ' parameters: - name: api-key in: header description: API key example: 23df424b0a53b0899f78685966243ee61 required: true schema: type: string - name: date_from in: query description: Date from required: true schema: type: string format: date example: '2018-10-16' - name: date_to in: query description: Date to required: true schema: type: string format: date example: '2018-10-19' - name: offer_id in: query description: Offer ID required: true schema: type: integer - name: base_event in: query description: Name based goal required: true schema: type: string pattern: ^[a-zA-Z] - name: events in: query description: Events (comma separated) required: true schema: type: array items: type: string pattern: ^[a-zA-Z] - name: affiliate_id in: query description: Affiliates filter schema: type: integer - name: timezone in: query description: Timezone name. Example Europe/Berlin schema: type: string responses: '200': description: Successful response content: application/json: schema: type: array items: type: object properties: affiliate_id: type: integer date: type: string format: date rr_install: type: number rr_other1: type: number rr_other2: type: number install_count: type: integer example: - affiliate_id: 1 date: '2018-10-18' rr_install: 66.66 rr_other1: 100 rr_other2: 33.33 install_count: 3 - affiliate_id: 1 date: '2018-10-19' rr_install: 0 rr_other1: 100 rr_other2: 0 install_count: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/retentionrate?date_from=2018-10-16&date_to=2018-10-19&offer_id=&base_event=&events[0]=string&events[1]=string2' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/stats/time-to-action: get: tags: - admin-stats summary: Time to action description: '`GET /3.0/stats/time-to-action` Get Time to action report ' parameters: - name: api-key in: header description: API key required: true example: 23df424b0a53b0899f78685966243ee61 schema: type: string - name: date_from in: query description: Date from required: true schema: type: string format: date example: '2019-11-16' - name: date_to in: query description: Date to required: true schema: type: string format: date example: '2019-11-18' - name: offer_id in: query description: An offer id required: true schema: type: integer - name: timezone in: query description: Timezone name. Example Europe/Berlin required: true schema: type: string - name: goal in: query description: Name based goal schema: type: string - name: affiliate_ids in: query description: Affiliates filter. Comma separated int values schema: type: string example: 70,71 - name: page in: query description: Page of stat entities schema: type: integer default: 1 - name: limit in: query description: Limit of stat entities schema: type: integer maximum: 500 default: 100 responses: '200': description: Successful response content: application/json: schema: type: object properties: data: type: array items: type: object properties: affiliate_id: type: integer affiliate_name: type: string affiliate_email: type: string clicks: type: integer total_conversions: type: integer tta_30: type: integer tta_600: type: integer tta_inf: type: integer status: type: integer pagination: type: object properties: total_count: type: integer per_page: type: integer page: type: integer statusCode: type: integer example: data: - affiliate_id: 70 affiliate_name: Yve affiliate_email: affi@lia.te clicks: 90 total_conversions: 4 tta_30: 3 tta_600: 1 tta_inf: 0 status: 1 pagination: total_count: 1 per_page: 100 page: 1 statusCode: 200 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/stats/time-to-action?date_from=2019-11-16&date_to=2019-11-18&offer_id=&timezone=&affiliate_ids=70%2C71&page=1&limit=100' \\\n --header 'api-key: 23df424b0a53b0899f78685966243ee61'" /3.0/appsflyer_stats/getbyslice: get: tags: - admin-stats summary: Stats description: '`GET /3.0/appsflyer_stats/getbyslice` Get Appsflyer stats by slice ' parameters: - name: API-Key in: header description: API key required: true schema: type: string - name: slice in: query description: Search by slices required: true schema: type: array items: type: string enum: - date - app_id - event_name - city - country - sub1 - sub2 - sub3 - sub4 - sub5 - isp - os - device - name: filter[date_from] in: query description: Filter by date from required: true schema: type: string format: date - name: filter[date_to] in: query description: Filter by date to required: true schema: type: string format: date - name: filter[app_id] in: query description: Filter by app_id schema: type: array items: type: string - name: filter[event_name] in: query description: Filter by event_name schema: type: array items: type: string - name: filter[country_code] in: query description: Filter by country_code schema: type: array items: type: string - name: filter[city_id] in: query description: Filter by city_id schema: type: array items: type: integer - name: filter[os] in: query description: Filter by os schema: type: array items: type: string - name: filter[device_type] in: query description: Filter by device_type schema: type: array items: type: string - name: filter[isp] in: query description: Filter by isp schema: type: array items: type: string - name: filter[campaign_id] in: query description: Filter by campaign_id from Appsflyer schema: type: array items: type: string - name: filter[language] in: query description: Filter by language schema: type: array items: type: string - name: filter[sub1] in: query description: Filter by sub1 schema: type: array items: type: string - name: filter[sub2] in: query description: Filter by sub2 schema: type: array items: type: string - name: filter[sub3] in: query description: Filter by sub3 schema: type: array items: type: string - name: filter[sub4] in: query description: Filter by sub4 schema: type: array items: type: string - name: filter[sub5] in: query description: Filter by sub5 schema: type: array items: type: string - name: sort in: query description: Sort field schema: type: string - name: order in: query description: Sort order schema: type: string enum: - asc - desc - name: page in: query description: Page of results schema: type: integer - name: limit in: query description: Count results per page schema: type: integer responses: '200': description: Successful response content: application/json: schema: type: object properties: status: type: integer stats: type: array items: type: object properties: slice: type: object additionalProperties: type: string clicks: type: integer impressions: type: integer preinstalls: type: integer revenue: type: number format: float pagination: type: object properties: per_page: type: integer total_count: type: integer page: type: integer example: status: 1 stats: - slice: country: US clicks: 10 impressions: 100 preinstalls: 20 revenue: 12.5 pagination: per_page: 100 total_count: 0 page: 1 '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '500': $ref: '#/components/responses/InternalServerError' x-codeSamples: - lang: cURL label: cURL source: "curl --request GET \\\n --url 'https://api-demo.affise.com/3.0/appsflyer_stats/getbyslice?slice[0]=date&filter[date_from]=&filter[date_to]=&filter[app_id][0]=string&filter[app_id][1]=string2&filter[event_name][0]=string&filter[event_name][1]=string2&filter[country_code][0]=string&filter[country_code][1]=string2&filter[city_id][0]=0&filter[city_id][1]=1&filter[os][0]=string&filter[os][1]=string2&filter[device_type][0]=string&filter[device_type][1]=string2&filter[isp][0]=string&filter[isp][1]=string2&filter[campaign_id][0]=string&filter[campaign_id][1]=string2&filter[language][0]=string&filter[language][1]=string2&filter[sub1][0]=string&filter[sub1][1]=string2&filter[sub2][0]=string&filter[sub2][1]=string2&filter[sub3][0]=string&filter[sub3][1]=string2&filter[sub4][0]=string&filter[sub4][1]=string2&filter[sub5][0]=string&filter[sub5][1]=string2&order=asc' \\\n --header 'API-Key: '" components: responses: BadRequest: description: Bad Request - The request was malformed or contained invalid parameters content: application/json: schema: type: object properties: status: type: integer example: 2 message: type: string example: Bad Request InternalServerError: description: Internal Server Error - Server error, please contact administrator content: application/json: schema: type: object properties: status: type: integer example: 2 message: type: string example: Server error, Please contact your administrator NotFound: description: Not Found - Resource not found content: application/json: schema: type: object properties: status: type: integer example: 2 message: type: string example: Resource Not Found Forbidden: description: Forbidden - Access denied, insufficient permissions content: application/json: schema: type: object properties: status: type: integer example: 2 message: type: string example: Auth Denied Unauthorized: description: Unauthorized - API key is missing or invalid content: application/json: schema: type: object properties: status: type: integer example: 2 message: type: string example: Token is necessary x-tagGroups: - name: Admin API tags: - admin-advertisers - admin-affiliates - admin-offers - admin-stats - admin-conversions - admin-users - admin-presets - admin-payments - admin-billing - admin-smartlinks - admin-tickets - admin-automation - admin-adcosts - admin-other - name: Advertiser API tags: - advertiser-auth - advertiser-offers - advertiser-stats - name: Affiliate API tags: - affiliate-profile - affiliate-offers - affiliate-stats - affiliate-postbacks - affiliate-conversions - affiliate-pixels - affiliate-smartlinks - affiliate-news - affiliate-other - name: Resources tags: - resources