Improvements in the GiftCard GraphQL endpoints and introducing GiftCardTransaction types
API
Effective September 17, 2024
Action required
As of the GraphQL Admin API version 2024-10, we're improving the GiftCard
endpoints and introducing GiftCardTransaction
types. The gift card endpoints are now open to all apps and shops, with no additional approval scopes or flags required.
We have added the following mutations:
giftCardDeactivate
renamed fromgiftCardDisable
(deprecated).giftCardCredit
to apply credit to a gift card returning aGiftCardCreditTransaction
.giftCardDebit
to apply debit to a gift card returning aGiftCardDebitTransaction
.giftCardSendNotificationToCustomer
to send the notification to the customer.giftCardSendNotificationToRecipient
to send the notification to the recipient.
We have updated the following mutations:
giftCardCreate
to addrecipientAttributes
.giftCardUpdate
to addrecipientAttributes
.
We have added and modified fields in the GiftCard
object:
- Added
updatedAt
. - Added
recipientAttributes
. - Added
transactions
returning all transactions created by credits and debits. - Renamed
disabledAt
todeactivatedAt
(deprecated).
Developer action required
Developers using the existing giftCardDisable
mutation will need to replace it with giftCardDeactivate
Developers using the disableAt
property on the GiftCard
object will need to replace it with deactivatedAt
To learn more about gift cards, refer to the gift cards documentation. To learn more about gift card recipient functionality, refer to the help center documentation for recipient fields