Get invoice log by ID

GET {{baseUrl}}/{{version}}/invoice/log/:logId

Get a single Invoice Log by its id.

Request Params

KeyDatatypeRequiredDescription
fieldsnullList of strings to filter response JSON keys. Not available in the SDKs.

RESPONSES

status: OK

{"log":{"errors":[],"type":"credited","id":"5028948064862208","invoice":{"status":"paid","updated":"2020-11-23T23:50:06.980556+00:00","fee":50,"taxId":"20.018.183/0001-80","interest":1.3,"tags":[],"interestAmount":0,"created":"2020-11-23T23:42:32.761804+00:00","due":"2020-11-25T00:00:00+00:00","descriptions":[{"value":"R$10,00","key":"Product A"},{"value":"R$100,00","key":"Taxes"}],"nominalAmount":4100,"discounts":[{"percentage":10.5,"due":"2020-11-25T20:59:26+00:00"},{"percentage":5,"due":"2020-11-29T20:59:26+00:00"}],"amount":3669,"brcode":"00020101021226890014br.gov.bcb.pix2567invoice-h.sandbox.starkbank.com/v2/85c6732687a8476785c9e77faac8875c52040000530398654040.005802BR5915Stark Bank S.A.6009Sao Paulo62070503***630474A0","expiration":3600,"fineAmount":0,"pdf":"https://invoice-h.sandbox.starkbank.com/pdf/85c6732687a8476785c9e77faac8875c","discountAmount":431,"fine":2.5,"id":"6404287257116672","name":"Iron Bank S.A."},"created":"2020-11-23T23:50:06.532772+00:00"}}