Canceling a lost order

The “Lost orders” tool is available only for the owners of cashback services and loyalty programs. To get access, contact your manager.

Parameters

HTTP method

Access rights

URL

Parameters

Note

DELETE manage_lost_orders https://api.admitad.com/lost_orders/{id}/decline/  

Rejects the lost order.*, where id is the lost order identifier.

Example of use

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

curl -L -H 'Authorization: Bearer access_token' -X DELETE https://api.admitad.com/lost_orders/3/decline/

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

{
    "status": "rejected",
    "website": {
        "id": 1,
        "name": "TestWebsite"
    },
    "attachments": [
        {
            "id": 6,
            "url": "https://www.admitad.com/en/display_file/6/918398fbaaea71dad80e106485fdec01/",
        }
    ],
    "currency": "USD",
    "order_id": "574T32EDD1H1",
    "advcampaign": {
        "id": 1,
        "name": "TestAdvCampaign"
    },
    "order_price": 230,
    "order_date": "2016-01-01T00:00:00",
    "date_created": "2016-06-02T19:31:36",
    "id": 3,
    "comment": "",
    "reject_reason": "canceled"
}

Description of API server response fields

Name

Description

id

Identifier

website

Ad space

campaign

Affiliate program

status

Lost order status

order_id

Order number

order_date

Order date

order_price

Order amount

comment

Comment

currency

Currency

attachments

List of attached files

date_created

Date of creation

reject_reason

Reject reason