Offline deal activation for a user

Parameters

HTTP method

Access rights

URL

Parameters

Note

POST offline_sales https://api.admitad.com/offline_sale_activations/ List of request parameters

Activates a deal for a user

  • * Returns the result in the JSON format.

List of request parameters

Name

Type

Allowed values

purchaser_id string

User ID in the publisher’s system

website_id integer

Website/ad space ID

sale_id integer

Deal ID

activated_at datetime %d.%m.%Y %H:%M:%S

Example of use

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

curl -L -H 'Authorization: Bearer access_token' -X POST https://api.admitad.com/offline_sale_activations/ \
-F 'purchaser_id=123abc' \
-F 'website_id=13' \
-F 'sale_id=14' \
-F 'activated_at=02.23.2019 00:00:00'

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

{
    "purchaser_id": "123abc",
    "website_id": 13,
    "sale_id": 14,
    "activated_at": "2019-02-23 00:00:00"
}

Description of API server response fields

Name

Description

purchaser_id

User ID in the publisher’s system

website_id

Website/ad space ID

sale_id

Deal ID

activated_at

Activation date and time