Cancelar link de pagamento
Como cancelar o link de pagamento
Para cancelar um link de pagamento, temos que fechar um pedido, o que vai passar a impedir que qualquer inclusão de item ou novas transações sejam feitas para aquele pedido específico.
PATH PARAMS
order_id* string
Identificador do link de pagamento.
Header
{
"authorization": "Bearer Token"
}Body Request
{
"account_id": "account_id",
"status": "canceled"
}Response
{
"amount": 3000,
"checkouts": [
{
"accepted_multi_payment_methods": [],
"accepted_payment_methods": [
"credit_card"
],
"amount": 3000,
"billing_address": {},
"billing_address_editable": true,
"created_at": "2023-11-08T16:54:31Z",
"credit_card": {
"authentication": {
"threed_secure": {},
"type": "none"
},
"capture": true,
"installments": [
{
"number": 1,
"total": 1000
},
{
"number": 2,
"total": 1000
},
{
"number": 3,
"total": 1000
}
]
},
"currency": "BRL",
"customer": {
"created_at": "2023-11-08T16:54:31Z",
"delinquent": false,
"id": "cus_GvMY2zgS7c9xYOXD",
"name": "Cliente Teste",
"phones": {},
"updated_at": "2023-11-08T16:54:31Z"
},
"customer_editable": true,
"expires_at": "2021-06-15T16:54:31Z",
"id": "chk_wM3RX3qceulyY6W9",
"metadata": {},
"payment_url": "https://linkpersonalizavel.com/checkout/v1/orders/chk_wM3RX3qceulyY6W9",
"required_fields": [
"customer.email",
"customer.document",
"customer.mobile_phone",
"customer.name"
],
"shippable": false,
"skip_checkout_success_page": true,
"status": "open",
"success_url": "https://sandbox.codetech.one/v2/api/sucesso",
"updated_at": "2023-11-08T16:54:31Z"
}
],
"closed": true,
"closed_at": "2023-11-08T17:32:51Z",
"code": "8N5YAPFG2O",
"created_at": "2023-11-08T16:54:31Z",
"currency": "BRL",
"customer": {
"created_at": "2023-11-08T16:54:31Z",
"delinquent": false,
"id": "cus_GvMY2zgS7c9xYOXD",
"name": "Cliente Teste",
"phones": {},
"updated_at": "2023-11-08T16:54:31Z"
},
"id": "or_ALbmn7RhjAfyzdW7",
"items": [
{
"amount": 3000,
"created_at": "2023-11-08T16:54:31Z",
"description": "Teste de Link de pagamento.",
"id": "oi_x05Y7aPBipcLobae",
"quantity": 1,
"status": "active",
"type": "product",
"updated_at": "2023-11-08T16:54:31Z"
}
],
"session_id": "c14e3273-866e-419e-9d8e-ca1801dca662",
"status": "canceled",
"updated_at": "2023-11-08T17:32:51Z"
}Last updated