List of order statuses

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET lost_orders https://api.admitad.com/lost_orders/payments_info/ List of request parameters

Returns the information about statuses of the orders

  • * Returns the result in the JSON format.

List of request parameters

Name

Type

Allowed values

advcampaign integer List of affiliate programs
order_id integer

One or several order IDs. Maximum 20 IDs

Example of use

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

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/lost_orders/payments_info/?advcampaign=8&order_id=test&order_id=q1234&order_id=1002247

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

{
    "order_info": [
        {
            "order_id": "test",
            "status": "does_not_exist"
        },
        {
            "order_id": "q1234",
            "payment_id": 268,
            "payment_status": "approved",
            "status": "owner"
        },
        {
            "order_id": "1002247",
            "status": "already_counted"
        }
    ]
}

Description of API server response fields

Name

Description

status

Information about order search status. Can take values (owner - if the program has this order, already_counted - if the order exists, but it belongs to another user, does_not_exist - if the program does not have this order)

payment_status

Order status

payment_id

Order ID