CONSULTANDO UM BOLETO
Endpoint utilizado:
Tipo de Operação: GET
/Orders/BoletoPayments/{paymentToken}
HEADER REQUEST:
Status do boleto (paymentStatus) ao finalizar a requisição:
Indefinido - 0
Pago - 1
Em aberto - 2
Visualizado - 3
Cancelado - 5
Vencido - 9
Baixa - 6
Aguardando registro - 11
BODY RESPONSE MODELO:
{
"payment":
{
"paymentStatus": 0,
"boleto":
{
"amount": 0,
"expirationDate": "2016-08-29T13:09:44.856Z",
"boletoNumber": "string",
"digitableLine": "string"
},
"received":
[{
"amount": 0,
"processedDate": "2016-08-29T13:09:44.856Z"
}],
"paymentToken": "string",
"recurrencePlan":
{
"merchantPlanId": "string",
"name": "string",
"description": "string",
"interval": 1,
"amount": 0
},
"customer":
{
"tag": "string",
"name": "string",
"identity": "string",
"identityType": "string",
"email": "string",
"birthdate": "string",
"address":
{
"country": "string",
"zipCode": "string",
"number": "string",
"street": "string",
"complement": "string",
"city": "string",
"state": "string"
}
},
"invoice": {}
},
"merchantOrderId": "string"
}