---
updatedAt: 2026-06-17T21:00:10.000Z
agentTools:
  projectIndex: https://docs.clover.com/dev/llms.txt
---

# Create a gift card token

[block:html]
{
  "html": "<!--DS-5812; Reference: https://confluence.corp.clover.com/display/EE/Tech+Design+for+Ecomm+gift+card+services \nDS-7252-Remove all references to non-native gift card and FAC -->"
}
[/block]

[block:html]
{
  "html": "<div class=\"container-top\"> \n  <!--North America-US and Canada-->\n  <div class=\"container-reg\">\n    <div class=\"pill-reg\">\n      <div class=\"label-reg\">North America—United States and Canada</div>\n    </div>\n  </div>\n</div>\n<!--syles in global css-->"
}
[/block]

[block:html]
{
  "html": "<div>\n <div class=\"top-container\">\n    <div class=\"topnav\">\n      <a href=\"https://docs.clover.com/dev/docs/generate-ecommerce-api-key-or-pakms-key\">Generate an Ecommerce API key (PAKMS key)</a>\n      <a href=\"https://docs.clover.com/dev/reference/create-gift-card-token\">Create a gift card token</a>\n      <a href=\"https://docs.clover.com/dev/docs/gift-card-api\">Use the Ecommerce Gift Card API</a>\n    </div>\n  </div>\n</div>\n\n<!--css-->\n<style>\n/* Add a background color to the top navigation */\n.topnav {\n  font-family: 'Graphik-Regular', sans-serif;\n  background-color: #5D5D5D;\n  overflow: hidden;\n}\n\n/* Style the links inside the navigation bar */\n.topnav a {\n  font-family: 'Graphik-Regular', sans-serif;\n  float: left;\n  color: #f2f2f2;\n  text-align: center;\n  padding: 10px 12px;\n  text-decoration: none;\n  font-size: 12px;\n}\n\n/* Change the color of links on hover */\n.topnav a:hover {\n  background-color: #D8D8D8;\n  color: black;\n}\n\n/* Add a color to the active/current link */\n.topnav a.active {\n  background-color: #5D5D5D;\n  color: white;\n}\n</style>"
}
[/block]

A gift card is a prepaid payment card used for purchases at participating restaurants, stores, or online retailers, available in various denominations. Depending on the issuer’s terms, you can redeem these cards for services, merchandise, or cash.

Clover native gift cards managed through the Fiserv payment gateway, are integrated into the Clover point of sale (POS) system for seamless transactions. Physical gift cards have a 4-8 digit security card value (SCV), while virtual gift cards use a promo code.

To process secure gift card payment, you require a single-pay Clover gift card token, which is a unique code that indicates gift card details and metadata.

# Prerequisites

1. Gift card number.
2. [Generate a merchant-specific API token](https://docs.clover.com/dev/docs/create-ecommerce-api-tokens).

# Steps

1. [Generate an Ecommerce API key](https://docs.clover.com/dev/docs/generate-ecommerce-api-key-or-pakms-key) or `apiAccessKey`.
2. Send a POST request to the `/v1/tokens` endpoint. See [Create a gift card token](https://docs.clover.com/dev/reference/create-gift-card-token) endpoint.
3. Enter information in the following fields:

[block:parameters]
{
  "data": {
    "h-0": "Field",
    "h-1": "Description",
    "h-2": "Required/Optional",
    "0-0": "`number`",
    "0-1": "Gift card number.  \nLength: One of the following: 6-digit, 13-digit, 16-digit, or 19-digit  \nFormat: Numeric only",
    "0-2": "Required.",
    "1-0": "`apikey`",
    "1-1": "Ecommerce API key or `apiAccessKey` generated in step 1.",
    "1-2": "Required.",
    "2-0": "`security_code`",
    "2-1": "Security card value (SCV) associated with a Clover gift card.  \nLength: 4-8 characters",
    "2-2": "Optional."
  },
  "cols": 3,
  "rows": 3,
  "align": [
    "left",
    "left",
    "left"
  ]
}
[/block]

A single-pay Clover gift card token (cToken) is returned in the response. The token is alphanumeric and begins with `clv_`. Example: clv\_1TSTSECWntExtCdPXnbFjkgN

## Request and Response example—Single-pay gift card token

Request a single-pay gift gift card token using a Clover gift card number and secure code value (SCV).

```curl Request
curl --request POST \
     --url 'https://token-sandbox.dev.clover.com/v1/tokens' \
     --header 'apikey: 12cda345c6c78e90a120a345df67890e' 
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{
  "gift_card": {
    "card_number": "98765432100",
    "security_code": "785577",
  }
}
```
```json Response
{  
    "id": "clv_1TSTSExxxxxxxxxPXnbFjkgN",  
    "object": "token",  
    "giftCard": {  
        "last4": "2100"  
    }  
}
```

Use the single-pay gift card token with the following endpoints:

* [Create a charge](https://docs.clover.com/reference/createcharge)
* [Pay for an order](https://docs.clover.com/reference/postordersidpay)
* [Create and activate physical and virtual gift card](https://docs.clover.com/dev/reference/activation)
* [Request gift card balance](https://docs.clover.com/dev/reference/balanceinquiry)
* [Reload gift card](https://docs.clover.com/dev/reference/reload)
* [Request cashout of gift card balance](https://docs.clover.com/dev/reference/cashout)