HomeDocumentationCode SamplesAPI ReferenceAnnouncementsModelsRelease NotesFAQGitHubVideos
Developer HubAPI StatusSupport
API Reference
Developer HubAPI StatusSupport

getInvoices

Returns invoice details for the invoices that match the filters that you specify.

Usage Plan:

Rate (requests per second)Burst
0.120

The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.

Query Params
string

The name of the transaction identifier filter. If you provide a value for this field, you must also provide a value for the transactionIdentifierId field.Use the getInvoicesAttributes operation to check transactionIdentifierName options.

integer

The maximum number of invoices you want to return in a single call.

Minimum: 1

Maximum: 200

date-time

The latest invoice creation date for invoices that you want to include in the response. Dates are in ISO 8601 date-time format. The default is the current date-time.

string
required

The response includes only the invoices that match the specified marketplace.

string

The marketplace-specific classification of the transaction type for which the invoice was created. Use the getInvoicesAttributes operation to check transactionType options.

string

The ID of the transaction identifier filter. If you provide a value for this field, you must also provide a value for the transactionIdentifierName field.

date-time

The earliest invoice creation date for invoices that you want to include in the response. Dates are in ISO 8601 date-time format. The default is 24 hours prior to the time of the request.

string

Return invoices with the specified series number.

string

The response includes nextToken when the number of results exceeds the specified pageSize value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until nextToken is null. Note that this operation can return empty pages.

string

Sort the invoices in the response in ascending or descending order.

string

The marketplace-specific classification of the invoice type. Use the getInvoicesAttributes operation to check invoiceType options.

statuses
array of strings
length ≥ 1

A list of statuses that you can use to filter invoices. Use the getInvoicesAttributes operation to check invoice status options.

Min count: 1

statuses
string

Return invoices that match this external ID. This is typically the Government Invoice ID.

string

The attribute by which you want to sort the invoices in the response.

Responses

Response body
object
invoices
array of objects
length ≤ 100

A list of invoices.

invoices
object
date-time

The date and time the invoice is issued. Values are in ISO 8601 date-time format.

string

If the invoice is in an error state, this attribute displays the error code.

string

The invoice identifier that is used by an external party. This is typically the government agency that authorized the invoice.

string

The response message from the government authority when there is an error during invoice issuance.

string

The invoice identifier.

string

The classification of the invoice type. This varies across marketplaces. Use the getInvoicesAttributes operation to check invoiceType options.

string

Use this identifier in conjunction with externalInvoiceId to identify invoices from the same seller.

string

The invoice status classification. Use the getInvoicesAttributes operation to check invoice status options.

transactionIds
array of objects

List with identifiers for the transactions associated to the invoice.

transactionIds
object
string

The transaction identifier name. Use the getInvoicesAttributes operation to check transactionIdentifierName options.

string

The transaction identifier.

string

Classification of the transaction that originated this invoice. Use the getInvoicesAttributes operation to check transactionType options.

string

This token is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getInvoices operation and include this token with the previous call parameters.

Headers
object
string

Your rate limit (requests per second) for this operation.

string

Unique request reference identifier.

Language