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
One Step Checkout | GraphQL methods
Queries getAdditionalFields (cartId: String!) description: get information about additional fields getDefaultIpData description: get information about default IP address getAvailableShippingMethods (cartId: String!) description: get the information ...
Gift Wrap API
1. Amasty\GiftWrap\Api\WrapRepositoryInterface - class for managing gift wraps: POST /V1/amasty_giftWrap/wrap, method="save" - create a wrap; PUT /V1/amasty_giftWrap/wrap/:entityId, method="save" - edit a wrap; DELETE ...