Get an invoice payment information
GET {{baseUrl}}/{{version}}/invoice/:id/payment
Once an invoice has been paid, you can get the payment information using the Invoice.Payment sub-resource.
RESPONSES
status: OK
{"payment":{"name":"Eugene Eireli","accountNumber":"8732541653680372","taxId":"20.018.183/0001-80","endToEndId":"E20018183202107310020mnxcsxg7nlF","branchCode":"5776","amount":534,"accountType":"salary","bankCode":"20018183","method":"pix"}}