Skip to main content
GET
Available in🇮🇳 India🇲🇾 Malaysia
Use this endpoint to retrieve the details of all invoices.
Receipts of payments made through Payment Pages are not included in this list.

Query Parameters

string
Here, it is invoice.
string
The unique receipt number that you entered for internal purposes.
string
The unique identifier of the payment made by the customer against the invoice.
string
The unique identifier of the subscription. When used, fetches all invoices generated for that subscription.
string
The unique identifier of the customer. When used, fetches all invoices generated for a customer.

Response Parameters

integer
The number of invoices in the response.
string
Indicates the type of collection.
array
The list of invoices.

Errors

Code: 4xxThe API key or secret are not entered or an invalid API key is used.Solution: Use and enter the correct API details while executing the API.
Code: 400The customer_id query parameter is malformed. Shorter than 14 or longer than 19 characters names the field (The customer id may not be greater than 19 characters.); a value without cust_ (a bare id, or a wrong-prefix id like pay_...) is The id provided does not exist, and cust_ followed by anything but 14 alphanumeric characters is <value> is not a valid id, both without a field. Note: a well-formed but non-existent customer_id returns an empty collection (HTTP 200, count: 0), not an error.Solution: Pass customer_id in the form cust_<14 alphanumeric chars>.
Code: 400from or to is an integer outside the epoch-seconds range (for example 0, or a timestamp in milliseconds). No field is named. Empty query parameters are ignored, as if not sent.Solution: Pass from/to as Unix timestamps in seconds.
Code: 400expand was sent as a scalar. As an array (expand[]=payments), each value is refused for API-key callers with Value of each expand must be one of following types: empty (field expand.0), on this list and on fetch by id.Solution: Do not send expand.
Code: 400The payment_id query parameter is shorter than the expected 14-character payload (or otherwise malformed). A well-formed but non-existent payment_id returns an empty collection instead of an error.Solution: Pass payment_id in the form pay_<14 alphanumeric chars>.
Code: 400The value passed for the type query parameter is not one of the supported invoice types. The API echoes the rejected value, for example Not a valid type: invoiceee.Solution: Use a supported type value (for example invoice).
Code: BAD_REQUEST_ERROR
Code: SERVER_ERROR
Last modified on December 4, 2026