跳到主要内容

修改 PIX QR 码

只能修改动态类型的 PIX QR 码。修改操作通过创建时生成的 qr_code_key 识别,执行后该 QR 码将对后续支付无效。请求修改 PIX QR 码的原因多种多样,但在内部系统中,QR 码的停用可通过 Alias 申请的撤销(write_off)来完成。

请求

ENDPOINT
/account/ACCOUNT_KEY/alias/ALIAS_KEY/qrcode/QR_CODE_KEY
MÉTODO
PATCH
请求体:撤销 QR 码
{
"request_control_key": "76d4506d-31a4-48db-bc71-61068b138ffd",
"qr_code_status": "written_off",
}
字段类型描述字符数
request_control_key *string请求的唯一 UUID4 标识符。-
qr_code_status *stringQR 码状态。-

qr_code_status 对象

字段类型描述字符数
activestringQR 码处于活跃状态,可用于支付。-
finishedstringQR 码已支付。-
written_offstringQR 码已被客户撤销。-
bank_written_offstringQR 码因期限过期被自动撤销。-

响应

STATUS
204 No content
响应体
{}
STATUS
404
响应体
{
"title": "Not found",
"description": "Could not find the queried QR Code.",
"translation": "Não possível encontrar o QR Code buscado.",
"code": "QRI000002"
}