Pedidos

Post orders

post/api/order

Request body

pedido_id_externointeger required
created_atstring required

Must be a valid date in the format <code>Y-m-d H:i:s</code>.

dt_pagamentostring 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_idinteger required
cpfstring required
forma_pagamentointeger required
pdv_idinteger required
telefonestring

Example request

{
  "pedido_id_externo": 4,
  "created_at": "2024-09-12 12:18:43",
  "dt_pagamento": "2110-06-06",
  "status_pedido_id": 19,
  "cpf": "animi",
  "itens": [
    []
  ],
  "pdv_id": 16
}

Response

Example response

{
  "data": [
    {
      "id": "int",
      "user_name": "string",
      "user_cpf": "string",
      "user_cep": "string",
      "created_at": "datetime",
      "time_to_pay": "int",
      "status_pedido": "int",
      "pdv_id": "int",
      "pdv_description": "string",
      "delivery": "boolean",
      "paid_at": "datetime",
      "payment_method": "int",
      "itens": {
        "data": [
          {
            "code": "string",
            "description": "string",
            "value": "float",
            "total_value": "float",
            "delivery": "boolean",
            "unit": "string",
            "amount": "int"
          }
        ]
      }
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "nullable_string",
    "next": "string"
  },
  "meta": {
    "current_page": "int",
    "from": "int",
    "last_page": "int",
    "links": [
      {
        "url": "nullable_string",
        "label": "string",
        "active": "boolean"
      },
      {
        "url": "string",
        "label": "string",
        "active": "boolean"
      }
    ],
    "path": "string",
    "per_page": "int",
    "to": "int",
    "total": "int"
  }
}

Changes