Search all invoices
Returns a list of invoices related to payment orders created through customer credit accounts.
ℹ️ Query parameters can be used individually or combined to filter invoice results.
Queries to filter results
- By the location of the invoices in the list (quantity of invoices): ?from={int}&to={int}
- By creation date: ?createdDateFrom={dateISO8601}&createDateTo={dateISO8601}. The dates should be in ISO8601 format.
- By due date: ?dueDateFrom={dateISO8601}&dueDateTo={dateISO8601}. The dates should be in ISO8601 format.
- By value: ?value={decimal}
- By status: ?status={string}
- By Id: ?friendlyId={string}
- By observation: ?observation={string}
- By creditAccountId: ?creditAccountId={creditAcountId}
Combining filters
You can use the op query parameter to specify if filters will be evaluated as AND or OR for the query. The default behavior when there is more than one query parameter is AND.
Example:
For the query ?value=100&status=Paid, the criteria will build value = 100 AND status = Paid.
For the same query, adding the op parameter (?value=100&status=Paid&op=or), the criteria will build value = 100 OR status = Paid.
Permissions
Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:
| Product | Category | Resource |
|---|---|---|
| Credit Control | Main | Main Access |
| Credit Control | Invoices | Read Invoices |
There are no applicable predefined roles for this resource list. You must create a custom role and add at least one of the resources above in order to use this endpoint.To learn more about machine authentication at VTEX, see Authentication overview.
❗ To prevent integrations from having excessive permissions, consider the best practices for managing API keys when assigning License Manager roles to integrations.
Query parameters
Indicates the starting position of the invoice to be searched in the invoice list. For example, the value 1 indicates that the first invoice in the list will be returned.
Indicates the final position of the invoice to be searched in the invoice list. For example, if the value of from is equal to 1 and to is 300, information from 300 invoices will be displayed in the response body of the request.
Indicates the initial creation date of invoices that should be searched in the invoice list based on their creation date. The dates should be in ISO8601 format.
Indicates the final creation date of invoices that should be searched in the invoice list based on their creation date. The dates should be in ISO8601 format.
Indicates the initial due date of invoices that should be searched in the invoice list based on their creation date. The dates should be in ISO8601 format.
Indicates the final due date of invoices that should be searched in the invoice list based on their creation date. The dates should be in ISO8601 format.
Indicates the value of the invoices to be searched for. It must be completed with a decimal value.
Indicates the status of the invoices to be searched for.
Simplified identification of an invoice. This code is created automatically, always associated with an existing invoice. It consists of an 8-digit random ID (of numbers and letters) and the installment.
Observation notes about the invoice.
Credit account identification.
Headers
Type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Response
OK
Changes
Changed in 11 of the 51 revisions of this API.221323
- ▲
removed the enum value
Openfrom thequeryrequest parameterstatusrequest-parameter-enum-value-removed
- ○
added the new enum value
Openedto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ▲
- ●
the optional response header
Connectionremoved for the status200optional-response-header-removed
- ●
the optional response header
Content-Encodingremoved for the status200optional-response-header-removed
- ●
the optional response header
Dateremoved for the status200optional-response-header-removed
- ●
the optional response header
Serverremoved for the status200optional-response-header-removed
- ●
the optional response header
Varyremoved for the status200optional-response-header-removed
- ●
the optional response header
X-CDNIgnoreremoved for the status200optional-response-header-removed
- ●
the optional response header
X-Powered-by-VTEX-Janus-Edgeremoved for the status200optional-response-header-removed
- ●
the optional response header
X-Trackremoved for the status200optional-response-header-removed
- ●
the optional response header
X-VTEX-Janus-Router-Backend-Appremoved for the status200optional-response-header-removed
- ●
- ▲
the
summary/totalCancelledresponse's property type/format changed frominteger/tonumber/for status200response-property-type-changed
- ▲
the
summary/totalPaidresponse's property type/format changed frominteger/tonumber/for status200response-property-type-changed
- ▲
- ●
added the new
Openedenum value to thedata/items/statusresponse property for the response status200response-property-enum-value-added
- ○
removed the
Openenum value from thedata/items/statusresponse property for the response status200response-property-enum-value-removed
- ●
- ▲
the
data/items/orderIdresponse's property type/format changed fromnumber/tostring/for status200response-property-type-changed
- ▲
- ●
added the new
Cancelledenum value to thedata/items/statusresponse property for the response status200response-property-enum-value-added
- ●
added the new
Openenum value to thedata/items/statusresponse property for the response status200response-property-enum-value-added
- ●
added the new
Paidenum value to thedata/items/statusresponse property for the response status200response-property-enum-value-added
- ●
- ▲
the
queryrequest parametercreditAccountIdbecame requiredrequest-parameter-became-required
- ▲
the response property
data/items/observationbecame optional for the status200response-property-became-optional
- ▲
the response property
data/items/paymentLinkbecame optional for the status200response-property-became-optional
- ▲
the
summary/countresponse's property type/format changed frominteger/int32tointeger/for status200response-property-type-changed
- ▲
removed the required property
data/items/checkingAccountIdfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
data/items/descriptionfrom the response with the200statusresponse-required-property-removed
- ○
media type
application/json; charset=utf-8was changed toapplication/jsonfor the response status200response-media-type-name-changed
- ○
added the optional property
data/items/resolvedAtto the response with the200statusresponse-optional-property-added
- ○
added the optional property
summary/totalCancelledto the response with the200statusresponse-optional-property-added
- ○
added the optional property
summary/totalPaidto the response with the200statusresponse-optional-property-added
- ○
added the required property
data/items/accountIdto the response with the200statusresponse-required-property-added
- ○
added the required property
data/items/creditAccountIdto the response with the200statusresponse-required-property-added
- ○
added the required property
data/items/creditValueto the response with the200statusresponse-required-property-added
- ○
added the required property
data/items/friendlyIdto the response with the200statusresponse-required-property-added
- ○
added the required property
data/items/installmentto the response with the200statusresponse-required-property-added
- ○
added the required property
data/items/numberOfInstallmentsto the response with the200statusresponse-required-property-added
- ○
added the required property
data/items/orderIdto the response with the200statusresponse-required-property-added
- ○
added the required property
data/items/transactionIdto the response with the200statusresponse-required-property-added
- ▲
- ▲
the
queryrequest parameterstatuswas restricted to a list of enum valuesrequest-parameter-became-enum
- ○
added the new enum value
Cancelledto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
Opento thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
Paidto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ▲
- ▲
for the
queryrequest parameterfrom, default value1was removedrequest-parameter-default-value-removed
- ▲
removed the enum value
Cancelledfrom thequeryrequest parameterstatusrequest-parameter-enum-value-removed
- ▲
removed the enum value
Openfrom thequeryrequest parameterstatusrequest-parameter-enum-value-removed
- ▲
removed the enum value
Paidfrom thequeryrequest parameterstatusrequest-parameter-enum-value-removed
- ▲
- ▲
the
queryrequest parameterstatuswas restricted to a list of enum valuesrequest-parameter-became-enum
- ○
added the new enum value
Cancelledto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
Opento thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
Paidto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ▲