---
title: "Post orders"
method: POST
path: "/api/order"
tags: ["Pedidos"]
---

# Post orders

`POST /api/order`

## Request body

- object
  - `pedido_id_externo` integer, required
  - `created_at` string, required — Must be a valid date in the format <code>Y-m-d H:i:s</code>.
  - `dt_pagamento` string, required — Must be a valid date in the format <code>Y-m-d H:i:s</code>. O campo value deve conter uma data superior ou igual a <code>created_at</code>.
  - `status_pedido_id` integer, required
  - `cpf` string, required
  - `forma_pagamento` integer, required
  - `itens` object[], required
    - `id_externo` integer, required
    - `quantidade` integer, required — O campo value deve conter um número superior ou igual a 1.
  - `pdv_id` integer, required
  - `telefone` string

## Response `200`

- object
  - `data` object[]
    - `id` string
    - `user_name` string
    - `user_cpf` string
    - `user_cep` string
    - `created_at` string
    - `time_to_pay` string
    - `status_pedido` string
    - `pdv_id` string
    - `pdv_description` string
    - `delivery` string
    - `paid_at` string
    - `payment_method` string
    - `itens` object
      - `data` object[]
        - `code` string
        - `description` string
        - `value` string
        - `total_value` string
        - `delivery` string
        - `unit` string
        - `amount` string
  - `links` object
    - `first` string
    - `last` string
    - `prev` string
    - `next` string
  - `meta` object
    - `current_page` string
    - `from` string
    - `last_page` string
    - `links` object[]
      - `url` string
      - `label` string
      - `active` string
    - `path` string
    - `per_page` string
    - `to` string
    - `total` string

## Other responses

- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.dev/beepayapp/apis/beepay.md) · [All operations](https://skmtc.dev/beepayapp/apis/beepay/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beepayapp/beepay/revisions/787a925e98a0/schema)
