Reports by offline orders

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET advertiser_statistics https://api.admitad.com/advertiser/{c_id}/statistics/offline/
  • offset**
  • limit**
  • start_date***
  • end_date***
  • webmasters***
  • websites***
  • actions***
  • groups***
  • channels***
  • status***
  • banners***
  • order_id***
  • system_id***
  • order_by****

Statistical data on offline orders where с_id is the affiliate program ID.*

  • * Returns the result in the JSON format.

  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.

  • *** Filter by date, publisher, ad space, rate, group, channel, status, banner, payment ID, and system ID, respectively. For example websites=3&websites=4&groups=8&start_date=01.01.2011&end_date=11.01.2011, where values are the identifiers of filtered categories or filtered data. The values for dates must be in the format %d.%m.%Y - 01.05.2012.

  • **** Sorting order. Possible values:
    • datetime
    • id

    Sign ‘-‘ before the value means inverse sort order. For example, order_by=-datetime

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET "https://api.admitad.com/advertiser/1/statistics/offline/?limit=1"

Example of the response from the API server in the JSON format:

{
    "_meta": {
        "count": 18,
        "limit": 1,
        "offset": 0
    },
    "results": [
        {
            "action_time": "2018-10-13T19:18:00",
            "activation_time": "",
            "ad_space": "example.com",
            "admitad_id": 242711970,
            "check_amount": 392.2,
            "comment": "2310031475",
            "conversion_time": "",
            "cost_for_publishers": "16.66",
            "cost_for_the_system": "5.00",
            "date_processed": "2018-10-13T19:10:13",
            "duplication": 1,
            "fiscal_drive": 8710000101718961,
            "fiscal_document": 40080,
            "general_exprenses": "21.66",
            "offline_deal_id": 76,
            "offline_deal_name": "Пакет Магнит",
            "order_amount": "333.20",
            "order_id": "8710000101718968_118362_76",
            "positions": [
                {
                    "amount": "3.00",
                    "match": true,
                    "name": "Пакет Магнит Косметик мал(Пластиктре",
                    "price": "3.00",
                    "quantity": "1.00"
                },
                {
                    "amount": "85.00",
                    "match": false,
                    "name": "Корзинка унив прямоуг 27,5*18*14,3см",
                    "price": "85.00",
                    "quantity": "1.00"
                },
                {
                    "amount": "99.00",
                    "match": false,
                    "name": "BREF Сила Актив Туал Блок Лимонная С",
                    "price": "99.00",
                    "quantity": "1.00"
                },
                {
                    "amount": "87.20",
                    "match": false,
                    "name": "SPLAT Juicy Дет з/п укр МОРОЖЕНОЕ(Ор",
                    "price": "87.20",
                    "quantity": "1.00"
                },
                {
                    "amount": "118.00",
                    "match": false,
                    "name": "Вешалка дер с антиск перекл натур(СИ",
                    "price": "59.00",
                    "quantity": "2.00"
                }
            ],
            "publisher": "publisher",
            "status": "pending",
            "store_address": "603144, Нижегородская обл, Нижний Новгород г, Пушкина ул, дом 1",
            "store_name": "ООО Admitad",
            "store_tax_number": "2311131475"
        }
    ]
}

Description of API server response fields

Name

Description

admitad_id

Order ID in Admitad

activation_time

Time when deal was activated by user

action_time

Receipt print time

conversion_time

Conversion time

ad_space

Publisher’s ad space

publisher

Publisher login

offline_deal_id

Offline deal ID

offline_deal_name

Offline deal of a recorded action

order_id

Order ID

order_amount

Order amount

status

Order status

date_processed

Date of order processing

cost_for_publishers

Publisher commission expenses

cost_for_the_system

Admitad commission expenses

general_expenses

General expenses

comment

Order comment

duplication

Attribute to QR code being already requested by another service: 1 - requested, 0 - not requested.

store_name

Legal entity of a store where the purchase was made

store_address

Operational store address

store_tax_number

Store TIN

check_amount

Total amount of the receipt

fiscal_drive

Fiscal memory device No.

fiscal_document

Fiscal document No.

Description of order items fields

Name

Description

name

Name of goods

price

Unit price

quantity

Number of units

amount

Cost of the item (price * quantity)

match

Attribute to the activated deal