关闭付款批次的插入
Request
ENDPOINT
/settlement/fund_class/FUND_CLASS_KEY/payment_batch/EXTERNAL_IDMÉTODO
PUTRequest Body
{
"batch_status": "pending_payment",
}
Body Params
必填字段 *
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
batch_status * | string | 指定要传入的状态 | 最多 50 |
状态
| 枚举值 | 描述 |
|---|---|
pending_payment | 待付款 |
discarded | 已丢弃 |
Response
STATUS
200Response Body
{
"external_id": "41d6ff41-1dac-4df7-9e50-d15210ec57f3",
"status": "pending_payment",
}
可能的错误
STATUS
404Response Body
{
"title": "Payment batch not found",
"description": "The Payment Batch with external_id {payment_batch_external_id} was not found",
"translation": "O Lote de Pagamento com identificador externo {payment_batch-external_id} não foi encontrado",
"code": "SET000010"
}
STATUS
400Response Body
{
"title": "Invalid status",
"description": "The status given: {status} is not suported.",
"translation": "O status: {status} não possui suporte.",
"code": "SET000026"
}
STATUS
400Response Body
{
"title": "Payment Batch with no settlement",
"description": "Payment batch of external_id: {payment_batch_external_id} have no settlements to be settled",
"translation": "O lote de pagamento com identificador: {payment_batch_external_id} não possui liquidações",
"code": "SET000017"
}