post https://evaluation-api.azpay.services/v1/receiver#boleto
Through this endpoint is possible to generate a Boleto
Important!
Keep the body params following the same sequence as you see above!
For the acquirer codes please check: acquirer codes for boletos
Example of API Response:
{
"transactionId": "F0B626A3-9565-5AEA-3B6B-1E694ED13D7A",
"operationId": 8,
"status": 11,
"message": "Boleto has been generated successfully.",
"log": "",
"errorCode": "",
"order": {
"reference": "123456789",
"totalAmount": 10000,
"currency": "986",
"dateTime": "1550251959"
},
"processor": {
"Boleto": {
"acquirer": "Bradesco - Boleto registrado",
"acquirerId": 18,
"details": {
"id": "4716",
"expire": "2020-09-12",
"amount": "10000",
"urlBoleto": "https:\/\/homolog.meiosdepagamentobradesco.com.br\/apiboleto\/Bradesco?token=MkFRTTBieEtMTXgrM0JhM2c0ZjZUdjhoRWlHREJjUG5wN1JBNXl1Z3VVZ3lXaFE1TWNIdHBnPT0.",
"nrDocument": "12345123",
"nossoNumero": "12345123",
"linhaDigitavel": "23790001246000123451123123456701783760000010000"
}
}
}
}
{
"transactionId": null,
"status": {
"code": 409,
"message": "ERROR - XML"
},
"result": {
"error": {
"code": 101,
"action": "XML",
"message": "XML ERROR",
"details": "<![CDATA[Element 'merchantKey': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '10'.\n]]>",
"moreInfo": "<![CDATA[Please check fields format and special character.]]>"
}
}
}