Skip to main content

Cancel a Payment Order

This endpoint allows canceling a specific payment order associated with an automatic Pix recurrence.

warning

It is only possible to cancel a payment order that has pending_conciliation or pending status, until 10 PM on the day before the reference_date.

Request

ENDPOINT
/automatic_pix/account/ACCOUNT_KEY/outgoing_recurrence/OUTGOING_RECURRENCE_KEY/payment_order/PAYMENT_ORDER_KEY/cancel
METHOD
PATCH

Path Params

FieldTypeDescriptionCharacters
ACCOUNT_KEYuuidv4Unique account identification key.36
OUTGOING_RECURRENCE_KEYuuidv4Unique recurrence key.36
PAYMENT_ORDER_KEYuuidv4Unique key of the payment order to be canceled.36

Request Body

Cancel Payment Order
{}

Response

STATUS
200
Response Body
{
"payment_order_key": "10fc62fd-b0a0-4604-9bea-475e91a9dc82",
"payment_order_conciliation_batch_key": "11fc62fd-b0a0-4604-9bea-475e91a9dc82",
"payment_order_status": "cancelled"
}

Response Body Params

FieldTypeDescriptionCharacters
payment_order_keystringUnique key of the payment order.36
payment_order_conciliation_batch_keystringKey of the payment order conciliation batch.36
payment_order_statusstringCurrent status of the payment order.-

payment_order_status Enumerators

EnumeratorDescription
pending_conciliationAwaiting conciliation.
pendingPending and not yet processed.
acceptedAccepted and awaiting payment.
paidSuccessfully paid.
rejectedRejected and will not be processed.
cancelledCanceled before payment.
STATUS
4XX
Response Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em português",
"code": "codigo"
}
HTTP CodeQI Code
code
Title
title
Description (eng)
description
Description (ptbr)
translation
400QIT000002Bad RequestInvalid request schema.Erro no esquema da requisição.
404APX000404Payment Order Not FoundPayment Order {payment_order_key} not found.Lote de conciliação {payment_order_key} não encontrado.