GET
/
orders
/
{orderId}
curl --request GET \
  --url https://api.aasaan.shop/api/v1/stores/orders/{orderId} \
  --header 'x-api-key: <api-key>'
{
  "id": "623d3455ec3c4b3548eb4a349",
  "reference": null,
  "number": 1234,
  "discount": 120,
  "tax": 100,
  "total": 1200,
  "subtotal": 100,
  "date": "2022-06-10T07:51:12.510Z",
  "date_created": "2022-03-25T03:17:44.092Z",
  "date_modified": "2022-06-10T07:51:12.510Z",
  "orderStatus": {
    "status": "New Order",
    "date": "2022-06-10T07:51:12.510Z"
  },
  "products": {
    "productId": 1234,
    "variantId": 1234,
    "name": "Test",
    "sku": 1234,
    "price": 120,
    "CGST": 120,
    "SGST": 100,
    "total": 124,
    "quantity": 4
  },
  "shipping": {
    "firstName": "John",
    "lastName": "mathews",
    "trackingId": 123456,
    "carrier": "pickrr",
    "weight": 10,
    "fee": 100,
    "date": "2022-06-10T07:51:12.510Z",
    "mobileNumber": 9949891734,
    "countryCode": "IN",
    "email": "john@gmail.com",
    "address": {
      "line1": "7-52/1",
      "line2": "ram nagar",
      "city": "Hyderabad",
      "zipcode": 500098,
      "state": "Telangana",
      "country": "India",
      "email": "john@lightbooks"
    }
  },
  "payment": {
    "transactionId": 123456,
    "amount": 123,
    "currency": "INR",
    "method": "pre-paid",
    "date": "2022-06-10T07:51:12.510Z",
    "status": "success",
    "statusReason": "Transaction failed due to network error"
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

orderId
string
required

Order Id

Response

200
application/json
Get an order by id.
id
string

The Order Object ID.

Example:

"623d3455ec3c4b3548eb4a349"

reference
string

The Order reference number.

Example:

null

number
string

The Order number.

Example:

1234

discount
string

The total discount for given order.

Example:

120

tax
string

The total tax for given order.

Example:

100

total
string

The order total amount.

Example:

1200

subtotal
string

The order subtotal amount.

Example:

100

date
string

The order created date.

Example:

"2022-06-10T07:51:12.510Z"

date_created
string

Created date

Example:

"2022-03-25T03:17:44.092Z"

date_modified
string

Modified date

Example:

"2022-06-10T07:51:12.510Z"

orderStatus
object
products
object

The ordered products

shipping
object

The shipping details for given order

payment
object

The payment details for given order