Reviews special request

Reviews have two special params that bring specific information, the attributes that are used for special requests are listed below:

  • User
  • Order

User

This param is used to obtain the Reviews user information.

An example to use this param is:

  • http://apiv4.ordering.co/v400/en/demo/business/41/reviews?params=user,user_id

🚧

user_id is required to make this special request.

[
    {
        "id": 1,
        "user_id": 1,
        "user": {
            "id": 1,
            "name": "Demo",
            "lastname": "Admin",
            "email": "[email protected]",
            "login_type": 0,
            "social_id": null,
            "photo": null,
            "birthdate": null,
            "phone": "2332223",
            "cellphone": "33183467364",
            "city_id": null,
            "dropdown_option_id": null,
            "address": "1780 Utica Square, Tulsa, OK 74114, EE. UU.",
            "address_notes": "15",
            "zipcode": "10001",
            "location": {
                "lat": 36.1315455,
                "lng": -95.9664416
            },
            "level": 0,
            "language_id": 1,
            "push_notifications": true,
            "busy": false,
            "available": false,
            "enabled": true,
            "created_at": "2018-07-19 16:20:16",
            "updated_at": "2018-07-19 20:22:25",
            "deleted_at": null
        },
    }
]

Order

This param is used to obtain the Reviews order details.

An example to use this param is:

  • http://apiv4.ordering.co/v400/en/demo/business/41/reviews?params=order,order_id

📘

order_id is required to make this special request.

[
    {
        "id": 1,
        "order_id": 58,
        "user": null,
        "order": {
            "id": 58,
            "paymethod_id": 1,
            "business_id": 41,
            "customer_id": 1,
            "delivery_type": 1,
            "delivery_datetime": "2018-07-26 09:29:00",
            "service_fee": 9,
            "tax_type": 1,
            "tax": 10,
            "delivery_zone_price": 1,
            "offer_type": null,
            "offer_rate": "0.00",
            "offer": "0.0000",
            "discount": 0,
            "coupon": null,
            "status": 1,
            "comment": null,
            "driver_id": 6,
            "driver_tip": 0,
            "pay_data": null,
            "refund_data": null,
            "to_print": true,
            "language_id": 1,
            "created_at": "2018-07-26 15:29:26",
            "updated_at": "2018-07-27 19:41:24",
            "deleted_at": null,
            "paymethod": {
                "id": 1,
                "name": "Cash",
                "gateway": "cash",
                "enabled": true,
                "deleted_at": null,
                "created_at": "2018-07-19 16:20:54",
                "updated_at": "2018-07-19 16:20:54"
            },
            "business": {},
            "customer": {},
            "products": [],
            "driver": {}
        }
    }
]