List gift cards

Returns your gift cards, oldest first, with their initial_amount, current_amount and expiration.

Results are paged (50 per page by default, up to 250 with limit). If there's another page, you'll get an X-Next-Page header. Request that path to continue.

See Filtering, sorting and search for how the filters, ranges and sort work.

Required permission (any one of these):

GroupPermission
CustomersList and view gift cards; manage = issue and extend
CustomersCreate, edit and delete gift cards; manage = issue and extend (includes view)
Query Params
integer
1 to 250
Defaults to 50

How many results per page. Defaults to 50, maximum 250.

string

Paging cursor. Don't build it yourself; take the whole path from the X-Next-Page header.

string

Partial match on serial.

string

Exact match on reason.

string

Comma-separated list matched against reason.

date-time

Minimum current amount, inclusive. (You can also use min_current_amount.)

date-time

Minimum initial amount, inclusive. (You can also use min_initial_amount.)

date-time

Greater than (not including) the expiration.

date-time

Less than (not including) the expiration.

date-time

Greater than (not including) the updated.

date-time

Less than (not including) the updated.

date-time

Greater than (not including) the created.

date-time

Less than (not including) the created.

string
^\d+(,\d+)*$

Matches one ids or a comma-separated list (up to 200).

string
^\d+(,\d+)*$

Matches one customer id or a comma-separated list (up to 200).

string
^\d+(,\d+)*$

Matches one sale id or a comma-separated list (up to 200).

string
^\d+(,\d+)*$

Matches one account id or a comma-separated list (up to 200).

number

Minimum current amount, inclusive.

number

Maximum current amount, inclusive.

number

Minimum initial amount, inclusive.

number

Maximum initial amount, inclusive.

string

From this expiration. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this expiration. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this created. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

From this updated. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Up to this updated. Accepts YYYY-MM-DD (a _to date covers the whole day) or a full timestamp (RFC 3339, converted to UTC). Inclusive.

string

Text search: matches records where any of serial, reason contains this text (up to 200 characters).

string

Sort order. Use sort=key for ascending or sort=-key for descending, for example sort=-created. Keys: id, serial, currentamount, initialamount, created, updated, expiration. The older sort_field=key&sort=asc|desc style still works.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json