Creates a gift card
POST https://{store_name}.myshopify.com/apps/gcf/api/gift_card
There are additional optional parameters that can be specified in the body of the request when creating a gift card:
initial_value
- value of the gift cardexpires_on
- gift card expiry dateemail
- email of the customer. This customer will be assigned to gift card customer field. If email does not exist in Shopify backend - app will create onerecipient_email
- email of the recipient. This recipient will be assigned to gift card recipitn field. If email does not exist in Shopify backend - app will create onenote
- internal note, not visible to customersmessage
- message sent in gift card email
Response:
HTTP/1.1 201 Created
{
"gift_card": {
"id": 634370326821,
"balance": "4.0",
"created_at": "2025-08-15T12:37:38Z",
"currency": "AUD",
"initial_value": "15.00",
"disabled_at": null,
"line_item_id": null,
"api_client_id": null,
"user_id": null,
"customer_id": 9042221203749,
"customer_email": "[email protected]",
"recipient_id": null,
"recipient_email": null,
"note": null,
"expires_on": "2025-10-10",
"message": null,
"last_characters": "262f",
"order_id": null,
"code": "awap262f"
}
}
Last updated