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

# Obter pedido

> Retorna o pedido pelo id, quando ele pertence à conta da chave. Um pedido de outra conta responde `404`. Exige o escopo `orders:read`.



## OpenAPI

````yaml /apps/seller/openapi.json get /public/orders/{id}
openapi: 3.1.0
info:
  title: SpeedSellX API
  version: 2.0.0
  description: >-
    API pública da SpeedSellX para consultar e atualizar, por integração, os
    dados da sua conta: produtos, pedidos, reembolsos, chargebacks, checkouts,
    upsells, webhooks, assinaturas, vendas e métricas.


    Autentique com `Authorization: Bearer sk_live_...` e gere chaves no painel,
    em Desenvolvedores. Requisições que alteram dados exigem o header
    `Idempotency-Key`. Listagens aceitam `page`/`per_page` (padrão 15) e
    retornam `{ data, links, meta }`.
servers:
  - url: https://api.speedsellx.io/v2
    description: Produção
security:
  - bearerAuth: []
tags:
  - name: Ping
    description: A chamada que prova que a chave funciona.
  - name: Pedidos
    description: Os pedidos da conta da chave.
  - name: Reembolsos
    description: Os pedidos de reembolso da conta da chave.
  - name: Produtos
    description: >-
      O catálogo da conta da chave: leitura, criação, substituição, preço e
      arquivamento.
  - name: Checkouts
    description: Os checkouts da conta da chave e a personalização deles.
  - name: Assinaturas
    description: As assinaturas recorrentes da conta da chave.
  - name: Upsells
    description: As ofertas de upsell da conta da chave.
  - name: Métricas
    description: Os agregados da conta da chave.
  - name: Vendas
    description: O resumo de vendas pagas por janela de datas.
  - name: Chargebacks
    description: Os chargebacks abertos contra a conta da chave.
  - name: Webhooks
    description: As assinaturas de webhook da conta da chave.
paths:
  /public/orders/{id}:
    get:
      tags:
        - Pedidos
      summary: Obter pedido
      description: >-
        Retorna o pedido pelo id, quando ele pertence à conta da chave. Um
        pedido de outra conta responde `404`. Exige o escopo `orders:read`.
      operationId: publicapi.orders.show
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: '`ApiOrderResource`'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ApiOrderResource'
                required:
                  - data
        '401':
          description: Chave ausente, inválida ou revogada.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: string
                    const: unauthenticated
                required:
                  - status
                  - error
        '403':
          description: A chave não tem o escopo que a rota exige.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: string
                    const: insufficient_scope
                required:
                  - status
                  - error
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: string
                    const: not_found
                required:
                  - status
                  - error
        '429':
          description: Limite de requisições por minuto excedido para esta chave.
components:
  schemas:
    ApiOrderResource:
      type: object
      properties:
        id:
          type: integer
        uuid:
          type: string
        type:
          type: string
        status:
          type: string
        status_details:
          type:
            - string
            - 'null'
        seller_id:
          type: integer
        product_id:
          type: integer
        customer_id:
          type:
            - integer
            - 'null'
        parent_id:
          type:
            - integer
            - 'null'
        captured_at:
          type:
            - string
            - 'null'
        created_at:
          type:
            - string
            - 'null'
        settlement_currency:
          type:
            - string
            - 'null'
        settlement_total:
          type:
            - string
            - 'null'
        settlement_seller:
          type:
            - string
            - 'null'
        tracking:
          type: object
          properties:
            sck:
              type:
                - string
                - 'null'
            src:
              type:
                - string
                - 'null'
            utm_source:
              type:
                - string
                - 'null'
            utm_campaign:
              type:
                - string
                - 'null'
            utm_medium:
              type:
                - string
                - 'null'
            utm_content:
              type:
                - string
                - 'null'
            utm_term:
              type:
                - string
                - 'null'
            fbclid:
              type:
                - string
                - 'null'
            gclid:
              type:
                - string
                - 'null'
            gbraid:
              type:
                - string
                - 'null'
            wbraid:
              type:
                - string
                - 'null'
            msclkid:
              type:
                - string
                - 'null'
            ttclid:
              type:
                - string
                - 'null'
            twclid:
              type:
                - string
                - 'null'
            li_fat_id:
              type:
                - string
                - 'null'
            epik:
              type:
                - string
                - 'null'
            cf_click_id:
              type:
                - string
                - 'null'
            rtkclickid:
              type:
                - string
                - 'null'
          required:
            - sck
            - src
            - utm_source
            - utm_campaign
            - utm_medium
            - utm_content
            - utm_term
            - fbclid
            - gclid
            - gbraid
            - wbraid
            - msclkid
            - ttclid
            - twclid
            - li_fat_id
            - epik
            - cf_click_id
            - rtkclickid
        country:
          type:
            - string
            - 'null'
        product_sku:
          type:
            - string
            - 'null'
      required:
        - id
        - uuid
        - type
        - status
        - status_details
        - seller_id
        - product_id
        - customer_id
        - parent_id
        - captured_at
        - created_at
        - settlement_currency
        - settlement_total
        - settlement_seller
        - tracking
        - country
        - product_sku
      title: ApiOrderResource
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A chave de API da conta, no formato `sk_{modo}_{prefixo}.{segredo}`.

````