Remover todos os itens

Changed on

Quando um pedido está aberto, você pode remover todos os itens dele.

delete/orders/{order_id}/items

Request

  • Base URL
    https://api.pagar.me/core/v5
  • URL
    https://api.pagar.me/core/v5/orders/{order_id}/items
  • Auth
    HTTP basic

Path parameters

order_idstring required

Código do pedido.

Response

200

idstring
codestring
currencystring
closedboolean
statusstring
created_atstring
updated_atstring

Example response

{
  "id": "or_5OKyl9fNwIKDzjWJ",
  "code": "7P03S0FOQN",
  "currency": "BRL",
  "customer": {
    "id": "cus_oWQOPg5tJF8ml0ny",
    "name": "Tony Stark",
    "email": "9fb571fc-79c3-4293-aafd-61fd8afa6c38@avengers.com",
    "created_at": "2017-04-05T03:54:42",
    "updated_at": "2017-04-05T03:54:42"
  },
  "status": "pending",
  "created_at": "2017-04-05T03:54:42",
  "updated_at": "2017-04-05T03:54:42"
}

Changes