API version: unstable
API version: 2021-07 Release candidate
API version: 2021-04 Latest
API version: 2021-01
API version: 2020-10
API version: 2020-07
API version: 2020-04
API version: 2020-01 Unsupported
API version: 2019-10 Unsupported

giftCardDisable mutation

Version unstable

Disable a gift card.

Required access

write_gift_cards access scope. Also: The API client must be a private or custom app installed on a Shopify Plus store.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
id ( ID! ) required

The ID of the gift card to disable.

Return fields

  • giftCard (GiftCard)

    The disabled gift card.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2021-07 (Release candidate)

Disable a gift card.

Required access

write_gift_cards access scope. Also: The API client must be a private or custom app installed on a Shopify Plus store.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
id ( ID! ) required

The ID of the gift card to disable.

Return fields

  • giftCard (GiftCard)

    The disabled gift card.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.

Version 2021-04 (Latest)

Disable a gift card.

Required access

write_gift_cards access scope. Also: The API client must be a private or custom app installed on a Shopify Plus store.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
id ( ID! ) required

The ID of the gift card to disable.

Return fields

  • giftCard (GiftCard)

    The disabled gift card.

  • userErrors ([UserError!]!)

    List of errors that occurred executing the mutation.