> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# previewGiftCertificate

GraphQL MUTATION

Mutation to preview a gift certificate.

Reference: https://docs.bigcommerce.com/developer/api-reference/graphql/storefront/mutations/preview-gift-certificate

## GraphQL Schema

```graphql
mutation ExampleMutation($input: GiftCertificatePreviewInput!) {
  previewGiftCertificate(input: $input) {
    html
    errors
  }
}
```

## Variables

```json
{
  "input": {
    "amount": 0,
    "currencyCode": "ADP",
    "message": "example",
    "theme": "BIRTHDAY",
    "sender": {
      "name": "example"
    },
    "recipient": {
      "name": "example"
    }
  }
}
```