Possible error codes that can be returned by GiftCardUserError.


value-customernotfound
CUSTOMER_NOT_FOUND

The customer could not be found.

value-giftcardlimitexceeded
GIFT_CARD_LIMIT_EXCEEDED

The gift card's value exceeds the allowed limits.

value-greaterthan
GREATER_THAN

The input value should be greater than the minimum allowed value.

value-internalerror
INTERNAL_ERROR

Unexpected internal error happened.

The input value is invalid.

value-maxinitialvalueexceeded
MAX_INITIAL_VALUE_EXCEEDED

The maximum initial value in the shop's local currency of a gift card was exceeded.

value-maxinitialvalueexceededinusd
MAX_INITIAL_VALUE_EXCEEDED_IN_USD

The maximum initial value in USD of a gift card was exceeded.

value-missingargument
MISSING_ARGUMENT

Missing a required argument.

value-recipientnotfound
RECIPIENT_NOT_FOUND

The recipient could not be found.

The input value is already taken.

The input value is too long.

The input value is too short.


Was this section helpful?

The error code.


Was this section helpful?
Map
GiftCardErrorCode

Fields from