getOrdersByUserId

Fetches a list of orders that belongs to the user with the id specified

Arguments

  • userId
    This is the userId of the user
  • limit
    This is the limit as to how many orders to fetch
  • offset
    This indicates the number of orders to skip before fetching the next set, it works along with limit

Returns

[Order]
[Order]
Collapse
  • id
    This is the id of this order
  • userId
    This is the userId of the user that has the order
  • productCategory
    This is the product category of this order
  • productName
    This is the product name of this order
  • quantity
    This is the quantity of this order
  • totalPrice
    This is the total price of this order
  • orderDate
    This is the date the order was placed
  • status
    This is the status of this order, it can be Pending, Shipped or Delivered
  • shippingAddress
    This is the address where the order is to be delivered
  • paymentMethod
    This is the method that this order is to be paid for after or before delivery