Shop

Get a order line

get/order-items/{id}

Request

  • Base URL
    https://gorest.co.in/public/v3
  • URL
    https://gorest.co.in/public/v3/order-items/{id}
  • Auth
    • none
    • or HTTP bearer

Query parameters

order-itemsstring

fields[order-items]=name,quantity returns only those fields; included items are added whole.

Headers

If-None-Matchstring

An ETag from an earlier answer; an unchanged item answers 304 with no body.

Response

The order line.

created_atstring date-time
currencystring
idstring uuid required
line_total_minorinteger
namestring
order_idstring uuid
product_idstring uuid nullable

Null once the product is deleted.

quantityinteger
read_onlyboolean

True for sample data (the seed); it cannot be changed.

skustring
unit_price_minorinteger

Changes

No recorded changes to this operation across all 1 revision of this API.