Gift Card | GraphQL methods
Queries
amGiftCardAccount(input: AmGiftCardAccountInput!)
description: get gift card account information by code
amGiftCardSetting
description: get gift card module settings
amGiftCardPreview(input: AmGiftCardPreviewInput)
description: get rendered email template for preview
amUserGiftCardAccount
description: get current user's gift card accounts
Mutations
applyAmGiftCardToCart(input: ApplyAmGiftCardToCartInput)
description: apply a gift card code to the specified cart
removeAmGiftCardFromCart(input: RemoveAmGiftCardFromCartInput)
description: remove a gift card code from the specified cart
addAmGiftCardProductsToCart(input: AddAmGiftCardProductsToCartInput)
description: add gift card product to specified cart
addAmGiftCardCodeToAccount(input: AmGiftCardCodeInAccountInput)
description: add gift card account to customer's account
removeAmGiftCardCodeToAccount(input: AmGiftCardCodeInAccountInput)
description: remove gift card account from customer's account
Related Articles
What Amasty extensions support GraphQL?
Amasty has introduced additional GraphQL packages for extensions that are GraphQL compatible. These packages are listed in the 'suggest' section of the composer.json file. As a result, they are not automatically installed with the main module. To ...
Gift Card API
1. Amasty\GiftCard\Api\ImageRepositoryInterface - class for managing gift card images: POST /V1/amgcard/image, method="save" - save a gift card image; PUT /V1/amgcard/image/:id, method="save" - save a gift card image by ID; DELETE ...
Free Gift | GraphQL methods
Queries amPromoGetAvailableFreeGifts (cartId: String!) description: get the list of available promo items Mutations amPromoAddFreeGiftsToCart (cartId: String!, promoItems: [amPromoItemInput!]) description: add promo items to the cart
Multiple Coupons | GraphQL methods
Kindly note that the GraphQL functionality for Multiple Coupons is available as a part of an active product subscription or support subscription. Query amGetCouponsByCartId description: get coupons by cart id Mutations amApplyCouponsToCart ...
How to activate the gift card account?
The gift card account is created automatically when the order is invoiced and paid. If the order has the Complete status, but the code of the gift card is not activated and can't be applied, please contact our team.