Creating of Postback URLs by the program status change

Parameters

HTTP method

Access rights

URL

Parameters

Note

POST manage_opt_codes https://api.admitad.com/opt_codes/offer/create/ Request parameters list.
  • * Returns the result in the JSON format.

The list of link parameters

Name

Parameter

Affiliate program ID

[[[offer_id]]]

Name of affiliate program

[[[offer_name]]]

Program status

[[[offer_status]]]

Example of use

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

curl -L -H 'Authorization: Bearer access_token' -X POST https://api.admitad.com/opt_codes/offer/create/ -d 'website=33&campaign=6&desc_mode=0&method=1&action_type=1&url=http%3A//test.com/%3Foffer_id%3D%5B%5B%5Boffer_id%5D%5D%5D%26offer_status%3D%5B%5B%5Boffer_status%5D%5D%5D'

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

{
    "campaign": {
        "id": 6,
        "name": "AdvCamp"
    },
    "desc_mode": 0,
    "event": 1,
    "generated_url": "http://test.com/?offer_id=[[[offer_id]]]&offer_status=[[[offer_status]]]",
    "id": 20,
    "method": 1,
    "status": [],
    "user_url": "http://test.com/",
    "website": {
        "id": 33,
        "name": "AdRiver"
    },
}

Description of API server response fields