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.
Email of the customer who purchased the gift certificate.
from_namestringRequired
Name of the customer who purchased the gift certificate.
to_emailstringRequired
Email of the recipient.
to_namestringRequired
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. The date must be in RFC 2822 format.
messagestringOptional<=250 characters
Text that will be sent to the recipient, such as “Congratulations.”
purchase_datestringOptional
Date the gift certificate was purchased. If not assigned, this will be set to today’s date. Enter date in RFC-2822 format.
statusenumOptional
Allowed values:
templateenumOptional
The email theme to use in the message sent to the recipient.
Response
Created
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.