> ## Documentation Index
> Fetch the complete documentation index at: https://help.aasaan.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get an order info.

> Get order details.



## OpenAPI

````yaml get /orders/{orderId}
openapi: 3.0.0
info:
  title: AASAAN REST API
  version: 1.0.0
  description: >-
    REST API endpoints are organized by resource type. You’ll need to use
    different endpoints depending on your app’s requirements.
servers:
  - url: https://api.aasaan.shop/api/v1/stores
    description: Development server
security: []
tags: []
paths:
  /orders/{orderId}:
    get:
      tags:
        - Orders
      summary: Get an order info.
      description: Get order details.
      parameters:
        - name: orderId
          in: path
          required: true
          schema:
            type: string
            description: Order Id
      responses:
        '200':
          description: Get an order by id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Order'
        '403':
          description: Invalid Api Key
        '422':
          description: Data error
        '500':
          description: Internal Server Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    Order:
      properties:
        id:
          type: string
          description: The Order Object ID.
          example: 623d3455ec3c4b3548eb4a349
        reference:
          type: string
          description: The Order reference number.
          example: null
        number:
          type: string
          description: The Order number.
          example: 1234
        discount:
          type: string
          description: The total discount for given order.
          example: 120
        tax:
          type: string
          description: The total tax for given order.
          example: 100
        total:
          type: string
          description: The order total amount.
          example: 1200
        subtotal:
          type: string
          description: The order subtotal amount.
          example: 100
        date:
          type: string
          description: The order created date.
          example: '2022-06-10T07:51:12.510Z'
        date_created:
          type: string
          description: Created date
          example: '2022-03-25T03:17:44.092Z'
        date_modified:
          type: string
          description: Modified date
          example: '2022-06-10T07:51:12.510Z'
        orderStatus:
          type: object
          properties:
            status:
              type: string
              description: Order Status.
              example: New Order
            date:
              type: string
              description: Order Status date
              example: '2022-06-10T07:51:12.510Z'
        products:
          type: object
          description: The ordered products
          properties:
            productId:
              type: string
              description: Ordered product Id.
              example: 1234
            variantId:
              type: string
              description: Ordered variant Id.
              example: 1234
            name:
              type: string
              description: Ordered product name.
              example: Test
            sku:
              type: string
              description: Ordered product sku.
              example: 1234
            price:
              type: integer
              description: Ordered product price.
              example: 120
            CGST:
              type: integer
              description: Ordered product cgst.
              example: 120
            SGST:
              type: integer
              description: Ordered product sgst
              example: 100
            total:
              type: string
              description: Ordered product total price.
              example: 124
            quantity:
              type: integer
              description: Ordered product quantity.
              example: 4
        shipping:
          type: object
          description: The shipping details for given order
          properties:
            firstName:
              type: string
              description: Customer first name
              example: John
            lastName:
              type: string
              description: Customer last name
              example: mathews
            trackingId:
              type: string
              description: Shipping tracking id
              example: 123456
            carrier:
              type: string
              description: Shipping carrier
              example: pickrr
            weight:
              type: string
              description: Shipping weight
              example: 10
            fee:
              type: string
              description: Shipping fees
              example: 100
            date:
              type: string
              description: Shipping created date
              example: '2022-06-10T07:51:12.510Z'
            mobileNumber:
              type: string
              description: Customer mobile number
              example: 9949891734
            countryCode:
              type: string
              description: Shipping country code
              example: IN
            email:
              type: string
              description: Customer email
              example: john@gmail.com
            address:
              type: object
              description: Shipping address
              properties:
                line1:
                  type: string
                  description: Address line 1.
                  example: 7-52/1
                line2:
                  type: string
                  description: Address line 2.
                  example: ram nagar
                city:
                  type: string
                  description: City name.
                  example: Hyderabad
                zipcode:
                  type: string
                  description: Zip code.
                  example: 500098
                state:
                  type: string
                  description: State name.
                  example: Telangana
                country:
                  type: string
                  description: Country name.
                  example: India
                email:
                  type: string
                  description: email address.
                  example: john@lightbooks
        payment:
          type: object
          description: The payment details for given order
          properties:
            transactionId:
              type: string
              description: Payment transactionId.
              example: 123456
            amount:
              type: string
              description: Payment amount.
              example: 123
            currency:
              type: string
              description: Payment currency.
              example: INR
            method:
              type: string
              description: Payment method.
              example: pre-paid
            date:
              type: string
              description: Payment created date.
              example: '2022-06-10T07:51:12.510Z'
            status:
              type: string
              description: Payment status.
              example: success
            statusReason:
              type: string
              description: Payment status reason.
              example: Transaction failed due to network error
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````