执行票据付款
Request
ENDPOINT
/bank_slip/paymentMÉTODO
POSTRequest Body
{
"digitable_line": "42297034020000453753620034706323183380000005000",
"resource_account_key": "21af482f-b8ac-48dd-8f9a-ea23429d28be",
"payment_date": "2020-08-05"
}
Body params
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
digitable_line * | string | 票据可输入行 | 10 |
resource_account_key * | string | 将要使用的账户键 | 10 |
payment_date | date | 付款执行日期。若未发送,日期默认为今天 | 10 |
信息
若要查看已接受的付款协议,请点击此处。
Response
STATUS
200Response Body:通过自由账户付款
{
"data": {
"digitable_line": "09990001029100010009895007444201283400000001000",
"resource_account_key": "21af482f-b8ac-48dd-8f9a-ea23429d28be"
},
"event_datetime": "2020-08-06 19:22:06",
"key": "e7719f95-a31d-4171-ae83-2d8b3d419dc2",
"status": "success",
"webhook_type": "bank_slip_payment"
}
STATUS
200Response Body:通过托管账户付款
{
"data": {
"digitable_line": "09990001029100010009895007444201283400000001000",
"resource_account_key": "21af482f-b8ac-48dd-8f9a-ea23429d28be"
},
"event_datetime": "2020-08-06 19:22:06",
"key": "e7719f95-a31d-4171-ae83-2d8b3d419dc2",
"status": "waiting_approval",
"webhook_type": "bank_slip_payment"
}
STATUS
400Response Body
{
"code": "LEG000069"
"title": "Bad Request",
"description": "Invalid request body.",
"translation": "Corpo da requisição inválido.",
"extra_fields": {}
}
STATUS
423 - 付款超出受理时间Response Body
{
"code": "BLP000024",
"title": "Locked",
"http_status": 423,
"description": "Operation window closed. System available from {OPENING_TIME} to {CLOSING_TIME}",
"translation": "Operação encerrada. Sistema disponível de {OPENING_TIME} a {CLOSING_TIME}",
"extra_fields": {
"next_available_datetime": "2023-08-13T18:00:00.000Z"
}
}
STATUS
400Response Body
{
"code": "IPP000015",
"title": "Bad Request",
"http_status": 400,
"description": "Invalid amount",
"translation": "O valor inserido é inválido",
"extra_fields": {}
}
STATUS
422Response Body
{
"code": "IPP000013",
"title": "Incompatible Payment Value",
"http_status": 422,
"description": "The input amount does not match tax collection value",
"translation": "O valor do pagamento é diferente da arrecadação",
"extra_fields": {}
}
STATUS
422Response Body
{
"code": "IPP000012",
"title": "Tax Collection Already Paid",
"http_status": 422,
"description": "This tax collection is already paid",
"translation": "A arrecadação já foi paga",
"extra_fields": {}
}
STATUS
422Response Body
{
"code": "IPP000017",
"title": "Unprocessable Entity",
"http_status": 422,
"description": "The tax collection is overdue",
"translation": "A arrecadação está vencida",
"extra_fields": {}
}
STATUS
422Response Body
{
"code": "IPP000023",
"title": "Unprocessable Entity",
"http_status": 422,
"description": "Max retries exceeded, while trying to complete payment.",
"translation": "Número máximo de tentativas excedido, ao tentar concluir o pagamento.",
"extra_fields": {}
}
STATUS
422Response Body
{
"code": "IPP000024",
"title": "Unprocessable Entity",
"http_status": 422,
"description": "Error while processing payment output. Try again.",
"translation": "Erro ao processar a saída do pagamento. Tente novamente.",
"extra_fields": {}
}
STATUS
422Response Body
{
"code": "IPP000025",
"title": "Unprocessable Entity",
"http_status": 422,
"description": "Outside of covenant payment hours.",
"translation": "Fora do horário de pagamento do convênio.",
"extra_fields": {}
}