Details of Order

Method:   GET
JSON:     https://effectivetours.com/api/orders/show/<ORDER_ID>.json?key=<API_KEY>

Product statuses

NEW— Active
AVAILABLE— Available
FOR_PAY— Ready to pay
PAYED— Payed
ACCEPT— Accepted
CANCEL— Rejected

JSON Response

{
  "balance": "735.00",
  "client": {
    "email": "smith@effectivetours.com",
    "id": 179904,
    "name": "John Smith"
  },
  "id": 64,
  "invoice": "EFFT-64",
  "prepayment": "0.00",
  "price": "735.00",
  "pay_amount": "79.00",
  "pay_url": "https://effectivetours.com/plugins/bank/pfRfzBYCSx/pay",
  "products": [
    {
      "checkin": "2017-09-01T13:00:00+03:00",
      "checkout": "2017-09-11T12:00:00+03:00",
      "comment": "From API",
      "distributor": {
        "id": 6,
        "name": "Lanka Houses"
      },
      "finished_in": null,
      "house": {
        "id": 7380,
        "name": "Nature Villa"
      },
      "id": 125,
      "package": null,
      "prepayment": "0.00",
      "price": "609.00",
      "product_type": "HOTEL",
      "rooms": [
        {
          "accommodation": "DBL",
          "cnt": 1,
          "room_id": 27798,
          "room_name": "Deluxe Room with Kitchen [BB]"
        }
      ],
      "started_in": null,
      "status": "NEW"
    },
    {
      "checkin": "2017-09-09T00:00:00+03:00",
      "checkout": null,
      "comment": "",
      "distributor": {
        "id": 6,
        "name": "Lanka Houses"
      },
      "finished_in": null,
      "house": null,
      "id": 115,
      "package": {
        "id": 1,
        "title": "Relax 1"
      },
      "prepayment": "0.00",
      "price": "126.00",
      "product_type": "PACK",
      "rooms": [],
      "started_in": null,
      "status": "FOR_PAY"
    }
  ],
  "status": "A"
}