---
title: "Criar pedido para maquininha"
method: POST
path: "/core/v5/orders/"
---

# Criar pedido para maquininha

`POST /core/v5/orders/`

Para criar um pedido a ser pago no POS integrado você deve utilizar o endpoint de [Criar um pedido](https://docs.pagar.me/reference#criar-pedido-2).

Todos os pedidos criados em aberto (*closed*=*false*) e com a propriedade *poi_payment_settings* preenchida, serão enviados aos POSs integrados.

## Headers

- `ServiceRefererName` string
- `Authorization` string
- `Content-Type` string

## Request body

- object
  - `customer` object, required — Dados do cliente. Para mais informações [Criar um customer](https://docs.pagar.me/reference#criar-cliente-1)
    - `Name` string — Nome do cliente. Max: 64 caracteres.
    - `email` string — E-mail do cliente. Max: 64 caracteres
  - `items` object[], required — Itens do pedido.
    - `amount` integer, required — Valor unitário.
    - `description` string — Descrição do item.
    - `quantity` string
    - `code` string
  - `closed` boolean, required — Informa se o pedido será criado **aberto** ou **fechado**. Pare o pedido aparecer no POS, é preciso que o pedido seja criado aberto.
  - `poi_payment_settings` object, required — Objeto que contém as informações de transações necessárias para pedidos pagos na maquininha (POS).
    - `type` string — Tipo da transação a ser realizada pelo POS. Se o campo for enviado vazio/nulo, o operador do POS irá poder selecionar o tipo de pagamento. Valores possíveis: ("debit" e "credit" (Disponível versão 6.4 do app de pagamentos)).
    - `installments` integer — Define a quantidade de parcelas para compras com crédito. Campo obrigatório para *type*,*credit*,*pix*
    - `installment_type` string

## Response `200`

200

- union
  - object
    - `id` string
    - `code` string
    - `amount` integer
    - `currency` string
    - `closed` boolean
    - `items` object[]
      - `id` string
      - `type` string
      - `description` string
      - `amount` integer
      - `quantity` integer
      - `status` string
      - `created_at` string
      - `updated_at` string
    - `customer` object
      - `id` string
      - `name` string
      - `email` string
      - `delinquent` boolean
      - `created_at` string
      - `updated_at` string
      - `phones` object
    - `status` string
    - `created_at` string
    - `updated_at` string
    - `poi_payment_settings` object
      - `visible` boolean
      - `display_name` string
      - `print_order_receipt` boolean
      - `devices_serial_number` string[]
      - `updated_at` string
      - `created_at` string
  - object
    - `id` string
    - `code` string
    - `amount` integer
    - `currency` string
    - `closed` boolean
    - `items` object[]
      - `id` string
      - `type` string
      - `description` string
      - `amount` integer
      - `quantity` integer
      - `status` string
      - `created_at` string
      - `updated_at` string
    - `customer` object
      - `id` string
      - `name` string
      - `email` string
      - `delinquent` boolean
      - `created_at` string
      - `updated_at` string
      - `phones` object
    - `status` string
    - `created_at` string
    - `updated_at` string
    - `poi_payment_settings` object
      - `visible` boolean
      - `display_name` string
      - `print_order_receipt` boolean
      - `payment_setup` object
        - `type` string
        - `installments` integer
        - `installment_type` string
      - `devices_serial_number` string[]
      - `updated_at` string
      - `created_at` string

---

[API](https://skmtc.dev/stone/apis/connect-2-0.md) · [All operations](https://skmtc.dev/stone/apis/connect-2-0/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stone/connect-2-0/revisions/744bfabf3c5c/schema)
