List Client Invoices
This method allows you to obtain the invoices for a specific client. You can filter the results by document status, type and if it’s archived or not.
Path parameters
Filter invoices for this client.
Query parameters
Your API Key.
You can ask for a specific page of results. Defaults to 1.
You can specify how many results you want to fetch. Defaults to 10 or value defined in account settings (10, 20 or 30).
Request body
Example request
{
"filter": {
"status": [
"final"
],
"by_type": [
"Invoice"
],
"archived": [
"non_archived"
]
}
}Response
SUCCESS. Returns the client's invoices.
Example response
{
"invoices": [
{
"id": 541793,
"status": "final",
"cancel_reason": "document was duplicated",
"archived": true,
"type": "Invoice",
"sequence_number": "28/A",
"inverted_sequence_number": "A/28",
"date": "27/06/2017",
"due_date": "27/06/2017",
"reference": "foo",
"observations": "foo",
"atcud": "N/D",
"permalink": "https://web.invoicexpress.com/documents/...",
"saft_hash": "Tdik",
"sum": 1,
"before_taxes": 1,
"taxes": 0.07,
"total": 1.07,
"currency": "Euro",
"client": {
"id": 1310176,
"name": "John",
"email": "john@example.com",
"address": "Avenida da República, Lisboa",
"postal_code": "1050-555",
"city": "Lisboa",
"fiscal_id": "508025338",
"country": "Portugal"
},
"items": [
{
"name": " iPhone ",
"description": "foo",
"unit_price": "1.0",
"unit": "foo",
"quantity": "1.0",
"tax": {
"id": 31597,
"name": "IVA7",
"value": 7
},
"subtotal": 1,
"tax_amount": 0.07,
"total": 1.07
}
],
"sequence_id": 12345,
"tax_exemption": "M01"
}
],
"pagination": {
"total_entries": 6,
"current_page": 1,
"total_pages": 1,
"per_page": 10
}
}Changes
Changed in 1 of the 3 revisions of this API.917
- ▲
the response property
invoices/items/discountbecame nullable for the status200response-property-became-nullable
- ▲
the response property
invoices/items/items/items/descriptionbecame nullable for the status200response-property-became-nullable
- ▲
the response property
invoices/items/items/items/unitbecame nullable for the status200response-property-became-nullable
- ▲
the response property
invoices/items/observationsbecame nullable for the status200response-property-became-nullable
- ▲
the response property
invoices/items/referencebecame nullable for the status200response-property-became-nullable
- ▲
the response property
invoices/items/retentionbecame nullable for the status200response-property-became-nullable
- ▲
the response property
invoices/items/sequence_idbecame nullable for the status200response-property-became-nullable
- ▲
the
errorsresponse's property type/format changed fromobject/toarray/for status401response-property-type-changed
- ▲
the
invoices/items/sequence_idresponse's property type/format changed fromstring/tointegernull/for status200response-property-type-changed
- ●
removed the optional property
errors/errorfrom the response with the401statusresponse-optional-property-removed
- ○
added the optional property
invoices/items/atcudto the response with the200statusresponse-optional-property-added
- ○
added the optional property
invoices/items/cancel_reasonto the response with the200statusresponse-optional-property-added
- ○
added the optional property
invoices/items/client/addressto the response with the200statusresponse-optional-property-added
- ○
added the optional property
invoices/items/client/cityto the response with the200statusresponse-optional-property-added
- ○
added the optional property
invoices/items/client/emailto the response with the200statusresponse-optional-property-added
- ○
added the optional property
invoices/items/client/fiscal_idto the response with the200statusresponse-optional-property-added
- ○
added the optional property
invoices/items/client/postal_codeto the response with the200statusresponse-optional-property-added
This revision also has 10 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲