POST /v1/codBarras/:codBarras
gn.barcode.pay.writeRequest
This endpoint uses query parameters in its operation, therefore they must be sent via the URL, as exemplified in the code snippet below./v1/codBarras/:codBarras- Example
{
"valor": 500,
"dataPagamento": "2022-03-10",
"descricao": "Pagamento de boleto, teste API Pagamento de Contas"
}
Responses
The responses below represent Success(201) and consumption failures/errors(400).
- 🟢 201
- 🔴 400
{
"idPagamento": "31234652",
"valorPago": 500,
"status": "LIQUIDADO",
"data": {
"solicitacao": "2021-06-22 14:23:42",
"pagamento": "2021-06-25 13:03:20"
}
}
{
"erro": 0,
"descricao": "Código de barras inválido"
}