Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Added the error coverage for giftCardAccount query #8456

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/guides/v2.3/graphql/queries/giftcard-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,10 @@ Attribute | Data Type | Description
`balance` | Money | Returns the currency and remaining balance of the gift card
`code` | String | Returns the gift card code
`expiration_date` | String | Returns the date when the gift card expires, if any

## Errors

Error | Description
--- | ---
`Gift card not found` | The specified `gift_card_code` value does not exist in the `giftcardaccount` table, or the full amount has already been redeemed.
`Field GiftCardAccountInput.gift_card_code of required type String! was not provided` | The value specified in the `GiftCardAccountInput.gift_card_code` argument is empty.