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

# One order (production)

> **Switched off.** Production trading is implemented but not available: orders are refused with `403 production_trading_disabled`. Once it opens, Bullionwale enables production access per account (see Production access requirements).

One of the account's own orders (a deleted one reads `deleted`). A `pending` or
`rejected` order not placed through the API is 404, as it is hidden on the web.



## OpenAPI

````yaml /openapi.json get /api/trading/v1/orders/{order_id}
openapi: 3.1.0
info:
  description: >-
    Place and read bullion orders with an API key. The test environment
    (`/api/trading/test/v1`) simulates orders; the production environment
    (`/api/trading/v1`) books real orders. **Test: available on request.
    Production: switched off.** See the availability notice in the
    documentation.
  title: Bullionwale API
  version: 1.0.0
servers:
  - description: Once the API is available
    url: https://api.bullionwale.com
security: []
tags:
  - description: >-
      Simulated orders for building and testing your integration. Nothing is
      booked. Available on request through the Bullionwale desk.
    name: Test environment
  - description: >-
      Real orders. Switched off: production trading is not available yet and,
      once it opens, is enabled per account by Bullionwale.
    name: Production environment
paths:
  /api/trading/v1/orders/{order_id}:
    get:
      tags:
        - Production environment
      summary: One order (production)
      description: >-
        **Switched off.** Production trading is implemented but not available:
        orders are refused with `403 production_trading_disabled`. Once it
        opens, Bullionwale enables production access per account (see Production
        access requirements).


        One of the account's own orders (a deleted one reads `deleted`). A
        `pending` or

        `rejected` order not placed through the API is 404, as it is hidden on
        the web.
      operationId: get_live_order_api_trading_v1_orders__order_id__get
      parameters:
        - in: path
          name: order_id
          required: true
          schema:
            title: Order Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductionOrder'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: >-
            `missing_credential`: No X-API-Key header.

            `malformed_credential`: The key is not shaped like an API key.

            `wrong_tenant`: The key belongs to a different broker.

            `wrong_environment`: A test key on the production API, or the
            reverse.

            `invalid_credential`: Unknown key or wrong secret.

            `credential_revoked`: The key was revoked.

            `credential_rotated`: The key was replaced and its overlap period
            ended.

            `credential_expired`: The key expired.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: |-
            `api_access_disabled`: API access is switched off for this account.
            `account_inactive`: The account is not active.
            `insufficient_scope`: The key lacks the scope this route needs.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: '`order_not_found`: No such order on this account.'
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: >-
            `invalid_request`: The request body or parameters are invalid; see
            `detail.errors`.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: >-
            `auth_throttled`: Too many failed authentications from this address;
            see Retry-After.

            `rate_limited`: This key (or, for orders, this account) exhausted
            its budget; see Retry-After.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ProductionOrder:
      properties:
        client_order_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Order Id
        close_price:
          anyOf:
            - type: string
            - type: 'null'
          title: Close Price
        closed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Closed At
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        deal_no:
          anyOf:
            - type: integer
            - type: 'null'
          description: The desk's deal number.
          title: Deal No
        environment:
          default: production
          title: Environment
          type: string
        id:
          title: Id
          type: string
        price:
          anyOf:
            - type: string
            - type: 'null'
          description: Rupees, 2 decimals, as a string.
          title: Price
        quantity:
          title: Quantity
          type: string
        realized_pnl:
          anyOf:
            - type: string
            - type: 'null'
          title: Realized Pnl
        source:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Channel: web, mobile, api, ...'
          title: Source
        status:
          description: pending, open, closing, closed, rejected or deleted.
          title: Status
          type: string
        status_detail:
          description: The desk's raw status.
          title: Status Detail
          type: string
        symbol_code:
          title: Symbol Code
          type: string
        total:
          anyOf:
            - type: string
            - type: 'null'
          title: Total
        trade_type:
          title: Trade Type
          type: string
        unit:
          description: '`g` or `kg`.'
          title: Unit
          type: string
      required:
        - id
        - symbol_code
        - trade_type
        - quantity
        - unit
        - status
        - status_detail
      title: ProductionOrder
      type: object
    ApiError:
      description: Every refusal on the trading API.
      properties:
        detail:
          $ref: '#/components/schemas/ApiErrorDetail'
      required:
        - detail
      title: ApiError
      type: object
    ApiErrorDetail:
      additionalProperties: true
      properties:
        code:
          description: Stable machine code; branch on this, not on `message`.
          title: Code
          type: string
        message:
          description: Human-readable text; may change.
          title: Message
          type: string
      required:
        - code
        - message
      title: ApiErrorDetail
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-API-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.