For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Filter results to those with an ID greater than or equal to this value.
max_idintegerOptional
Filter results to those with an ID less than or equal to this value.
codestringOptional
Filter gift certificates by code.
order_idintegerOptional
Filter gift certificates by the associated order ID.
to_namestringOptional
Filter gift certificates by recipient name.
to_emailstringOptional
Filter gift certificates by recipient email address.
from_namestringOptional
Filter gift certificates by sender name.
from_emailstringOptional
Filter gift certificates by sender email address.
pagedoubleOptional
The page number of the results to return, starting at 1.
limitdoubleOptional
The number of results to return per page.
sortenumOptional
Field to sort results by.
Allowed values:
directionenumOptionalDefaults to asc
Sort direction. Defaults to asc.
Allowed values:
Response
OK
amountstring
Value of the gift certificate.
from_emailstring
Email of the customer who purchased the gift certificate.
from_namestring
Name of the customer who purchased the gift certificate.
to_emailstring
Email of the recipient.
to_namestring
Name of the recipient.
balancestringOptional
Remaining value of the gift certificate. If not set, will default to the amount.
codestringOptional<=255 characters
A unique string that a customer enters to redeem the gift certificate. Gift certificate codes are limited to 20 characters. The API accepts values up to 255 characters without returning an error, but it saves only the first 20 characters and discards the rest. The response returns the saved, truncated code.
If you don't set this field, BigCommerce generates a code automatically.
currency_codestringOptional
A currency code, following the ISO 4217 standard. The currency has to exist in the store first.
Gift Certificates can only be used if the transactional currency of the cart is the same as the one defined in the gift certificate. If this value is not provided, the gift certificate is created using the store's default transactional currency.
customer_idintegerOptional
The ID of the customer placing the order.
expiry_datestringOptional
Date on which the gift certificate is set to expire. Date displays in the Unix timestamp format.
idintegerOptional
The ID of the gift certificate. This is a READ-ONLY field; do not set or modify its value in a POST or PUT request.
messagestringOptional
Text that will be sent to the recipient, such as “Congratulations.”
order_idintegerOptional
The ID of the order.
purchase_datestringOptional
Date the gift certificate was purchased. If not assigned, this will be set to today’s date. Date displays in the Unix timestamp format.
statusenumOptional
Allowed values:
templateenumOptional
The email theme to use in the message sent to the recipient.