Generate an Endpoint with Query Parameters
You can filter your search results by appending an optional string of query parameters to
the endpoint. A query parameter is also known as a
query-string
. Begin each string with a question mark (
?
) to designate the start of the
query parameters, and include an ampersand (&
) at the beginning of
each consecutive query parameter. Use this format for appending a string of query parameters as name-value pairs:
?name1=value&name2=value&nameN=value
These are the query parameters to filter the retrieved list results:
Query Parameter | Description |
---|---|
offset | The page offset number. This determines the order in which the
invoices are retrieved, beginning with the consecutive number
from the string value. For example, an offset of
3 results in a filtered list that begins
with the fourth listed invoice.Set to a whole number. |
limit | The maximum number of items being retrieved. Set to a whole number. |
status | The status of the invoice. Set to one of these possible values:
|
In this example, up to 100 draft invoices are retrieved beginning with the fourth listed
invoice:
GET https://apitest.cybersource.com/invoicing/v2/invoices?offset=3&limit=100&status=DRAFT