gift_cards
Read-only, action=get: read the gift card settings, the cards (last four digits only) and the totals. Mutation for action=update: set whether gift cards are on, the preset amounts and whether the buyer may enter a custom amount. All three fields are required for update. Updating needs the Owner or Admin role. Storefront Pro is required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"proAccessToken": "<proAccessToken>"
},
"name": "gift_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Gift cards on the storefront. | |
| action | Yes | ||
| amounts | No | Preset gift card amounts in cents, up to $2,000.00 each, up to 6. | |
| customOn | No | Whether the buyer may enter their own amount. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |