---
title: "getOrderById"
url: "https://kong-portal.millennia-solusi.xyz/apis/pizza-shackapi-1/versions/1ff7da65-7182-4ce7-a35c-b8a62959bbe2/operations/getOrderById"
---

> Full API specification: https://kong-portal.millennia-solusi.xyz/apis/pizza-shackapi-1/versions/1ff7da65-7182-4ce7-a35c-b8a62959bbe2.md

# getOrderById

`GET` `/order/{orderId}`

Operation ID: `getOrderById`

Get details of an Order

## Path parameters

- `orderId` (string, string, required) - Order Id

## Responses

- `200` - OK Requested Order will be returned
- `404` - Not Found. Requested API does not exist.
- `406` - Not Acceptable. The requested media type is not supported

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: PizzaShackAPI
  version: 1.0.0
servers:
  - url: https://localhost:9443/am/sample/pizzashack/v1/api
    description: Production API server
    x-internal: false
paths:
  /order/{orderId}:
    parameters:
      - name: orderId
        in: path
        description: Order Id
        required: true
        style: simple
        explode: false
        schema:
          type: string
          format: string
    get:
      tags:
        - order
      description: Get details of an Order
      operationId: getOrderById
      responses:
        "200":
          description: OK Requested Order will be returned
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Order"
        "404":
          description: Not Found. Requested API does not exist.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "406":
          description: Not Acceptable. The requested media type is not supported
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      security:
        - default: []
      x-auth-type: Application & Application User
      x-throttling-tier: Unlimited
      x-wso2-application-security:
        security-types:
          - oauth2
        optional: false
security:
  - default: []
components:
  schemas:
    Order:
      title: Pizza Order
      required:
        - orderId
      properties:
        customerName:
          type: string
        delivered:
          type: boolean
        address:
          type: string
        pizzaType:
          type: string
        creditCardNumber:
          type: string
        quantity:
          type: number
        orderId:
          type: string
    Error:
      title: Error object returned with 4XX HTTP status
      required:
        - code
        - message
      properties:
        message:
          type: string
          description: Error message.
        error:
          type: array
          description: If there are more than one error list them out. Ex. list out
            validation errors by each field.
          items:
            $ref: "#/components/schemas/ErrorListItem"
        description:
          type: string
          description: A detail description about the error message.
        code:
          type: integer
          format: int64
        moreInfo:
          type: string
          description: Preferably an url with more details about the error.
    ErrorListItem:
      title: Description of individual errors that may have occurred during a request.
      required:
        - code
        - message
      properties:
        message:
          type: string
          description: Description about individual errors occurred
        code:
          type: integer
          format: int64
  securitySchemes:
    default:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://test.com
          scopes: {}
```
