View Pending Orders.
The rider view orders that belong to his shipping company that has not been assigned to any rider.
Rider will see order iff the order is:
- paid online and confirmed payment or is pay on delivery
- not assigned to other riders
- belong to his shipping company
- not pick_up (buyer will not pick from store).
- not food subscription
NB: Some Riders are not allowed collect cash. if the order is to be paid offline, such rider will see the order but will not be allowed to pick it. Rider will not see order detail(buyer name, contact) unless the order is assigned to that rider.
PATH
[GET] /orders/list/pickups/pending
PARAMETERS:
Param | type | required | comment |
---|---|---|---|
rider_id | int | 1 | the rider is is also known as buyer_id |
limit | int | 0 | the list is paginated, limit shows number of item to display/page (default=50) |
page_id | int | 0 | default=1 use the page_id to switch to the next page. the pagination is standard restful pagination style. |
RESPONSE:
NB: the response will not include store_id or food_subscription for local market, these are only available for ogwugo food.
{ "data": [ { "id": 352, "bidder": 16, "store_id": 15, "buyer_pickup": "0", "food_subscription": 0, "amount": 700, "invoice_number": "iogw161001352", "paid_date": "", "creation_date": 1528119559, "is_mobile": 0, "cart_time": 1528119518, "cart_id": 47, "cart_ip": "::1", "coupon": 2, "coupon_amount": 100, "address": 46, "shipping_fee": 300, "billing": 46, "delivery": 0, "delivery_time": 1, "payment": 3, "comment": "", "payment_method": "", "bitcoin_wallet": "", "paid": 1, "confirm_payment": 0, "payment_verify_by": 1, "notify": 0, "paid_by": "pos_cash_on_del", "status": 2, "admin_edit": 16, "shipper": 3, "instant_delivery_guy": 0, "rider_assigned_by_admin_id": 16, "dcode": "hidden_from_rider", "platform": null, "buyer_pick_up_code": "hidden_from_rider", "shipping_tracking": "", "comment_rejection": "", "comment_accepted": "", "comment_admin": "", "bank_name": "", "teller": "dfgf dghjhgtredfg ertghgf dfgf dghjhgtredfg ertghgf dfgf dghjhgtredfg ertghgf", "bank_date": "", "bank_comment": "", "bank_amount": "", "created_at": "2018-06-04 14:39:19", "updated_at": "2018-11-06 12:44:35", "picked_at": "2018-09-28 18:36:22", "dispatched_at": "2018-09-28 18:36:22", "dispatched_by": 16, "delivered_at": "2018-09-28 18:36:22", "shipping_returned_by": 0, "base_shipping_fee": 0, "packaging_fee": 0, "distance_accrued_fee": 0, "encoded_id": "15v46M7mCb6c5rS435254ig9Vh815v46M7m", "currency_sign": "🌍" } ], "pagination": { "page": { "current-page": 1, "per-page": 50, "from": 0, "to": 1, "total": 1, "loaded": 1, "last-page": 1, "first-page": 1 }, "links_id": { "first": 1, "prev": 0, "next": 2, "last": 1 } } }