OGWUGO API DOCUMENTATION

  1. Home
  2. Docs
  3. OGWUGO API DOCUMENTATION
  4. Main Server Documentation
  5. Order/Invoice

Order/Invoice

Method GET

 

  1. List user orders

path:

/order/list/{user_id}

lists all user order items in pagination..

 

1.b LIST ALL ORDER BY INVOICE GROUP BY STORE

PATH:

 

2. GET single order details in one invoice.

[GET] /order/user/{user_id}?order={order_id}

3. change payment method of the order/invoice

[GET] /invoice/update/{order_id}?user={user_id}&payment_method_id={id}&ref=

 

3B. change address order/invoice

[GET] /invoice/update_address/0?user={user_id}

Param:
‘order_id INT,
‘user_idINT,
‘choose_address INT,
‘country str(ISA),
‘names STR,
‘zip,
‘phone,
address,
 

4. Delete, Pause, Enable Order

[POST] /manage_invoice/action
Auth data DataType [default] Detail
invoice_id int. req
action str. ENUM (delete,pause,enable) reg
comment str. reg
marketYrID int. optional

 

5. Accept Order (all belonging to one invoice)

path:

[POST] /manage_invoice/accept_order
Auth data DataType [default] Detail
invoice_id int. req
comment str. reg
marketYrID int. optional

you might want to read about market_year in the system.

6. Reject Order (all belonging to one invoice)

[POST] /manage_invoice/reject_order
Auth data DataType [default] Detail
invoice_id int. req
comment str. reg
marketYrID int. optional

if the item delivered is not ok for the buyer, he/she can click reject order.

 

 

Was this article helpful to you? Yes No

How can we help?