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

Commit 70d8ae6

Browse files
dineshvbkeharper
andauthored
Added the error coverage for giftCardAccount query (#8456)
* Added the error coverage for giftCardAccount query * Update giftcard-account.md Co-authored-by: Kevin Harper <[email protected]>
1 parent c86f590 commit 70d8ae6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/guides/v2.3/graphql/queries/giftcard-account.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ Attribute | Data Type | Description
6969
`balance` | Money | Returns the currency and remaining balance of the gift card
7070
`code` | String | Returns the gift card code
7171
`expiration_date` | String | Returns the date when the gift card expires, if any
72+
73+
## Errors
74+
75+
Error | Description
76+
--- | ---
77+
`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.
78+
`Field GiftCardAccountInput.gift_card_code of required type String! was not provided` | The value specified in the `GiftCardAccountInput.gift_card_code` argument is empty.

0 commit comments

Comments
 (0)