---
title: "Obter item do pedido"
url: "https://devcenter.stone.com.br/apis/v5-docs-legacy/versions/b9aaff36-6dcc-4353-8398-836d6c13dfa5/operations/obter-item-do-pedido"
---

> Full API specification: https://devcenter.stone.com.br/apis/v5-docs-legacy/versions/b9aaff36-6dcc-4353-8398-836d6c13dfa5.md

# Obter item do pedido

`GET` `/orders/{order_id}/items/{item_id}`

Operation ID: `obter-item-do-pedido`

Obter um item especifico dentro de um pedido especifico.

## Path parameters

- `order_id` (string, required) - Código do pedido.
- `item_id` (string, required) - Código do item do pedido.

## Responses

- `200` - 200
- `404` - 404

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Pagar.me v5 API (Legado)
  version: 5.0.0
servers:
  - url: https://api.stone.com.br/core/v5
paths:
  /orders/{order_id}/items/{item_id}:
    get:
      summary: Obter item do pedido
      description: Obter um item especifico dentro de um pedido especifico.
      operationId: obter-item-do-pedido
      parameters:
        - name: order_id
          in: path
          description: Código do pedido.
          schema:
            type: string
          required: true
        - name: item_id
          in: path
          description: Código do item do pedido.
          schema:
            type: string
          required: true
      responses:
        "200":
          description: "200"
          content:
            application/json:
              examples:
                Result:
                  value: |-
                    {
                        "id": "oi_gJ4RZVujNFDVRwpn",
                        "description": "Chaveiro do Tesseract",
                        "amount": 2990,
                        "quantity": 1,
                        "status": "active",
                        "created_at": "2017-12-18T16:49:43Z",
                        "updated_at": "2017-12-18T16:49:43Z",
                        "order": {
                            "id": "or_WpJzPeCwQtlYrEGO",
                            "code": "ELVRSL8S7Z",
                            "amount": 2990,
                            "currency": "BRL",
                            "closed": true,
                            "status": "paid",
                            "created_at": "2017-12-18T16:49:43Z",
                            "updated_at": "2017-12-18T16:49:44Z",
                            "closed_at": "2017-12-18T16:49:44Z"
                        }
                    }
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: oi_gJ4RZVujNFDVRwpn
                  description:
                    type: string
                    example: Chaveiro do Tesseract
                  amount:
                    type: integer
                    example: 2990
                    default: 0
                  quantity:
                    type: integer
                    example: 1
                    default: 0
                  status:
                    type: string
                    example: active
                  created_at:
                    type: string
                    example: 2017-12-18T16:49:43Z
                  updated_at:
                    type: string
                    example: 2017-12-18T16:49:43Z
                  order:
                    type: object
                    properties:
                      id:
                        type: string
                        example: or_WpJzPeCwQtlYrEGO
                      code:
                        type: string
                        example: ELVRSL8S7Z
                      amount:
                        type: integer
                        example: 2990
                        default: 0
                      currency:
                        type: string
                        example: BRL
                      closed:
                        type: boolean
                        example: true
                        default: true
                      status:
                        type: string
                        example: paid
                      created_at:
                        type: string
                        example: 2017-12-18T16:49:43Z
                      updated_at:
                        type: string
                        example: 2017-12-18T16:49:44Z
                      closed_at:
                        type: string
                        example: 2017-12-18T16:49:44Z
        "404":
          description: "404"
          content:
            application/json:
              examples:
                Result:
                  value: |-
                    {
                        "message": "Order not found."
                    }
              schema:
                oneOf:
                  - type: object
                    properties:
                      message:
                        type: string
                        example: Item not found.
                  - type: object
                    properties:
                      message:
                        type: string
                        example: Order not found.
      deprecated: false
security:
  - sec0: []
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic
```
