Interface GraphQLDiscountCodeNonApplicableError

Returned when the Cart contains a Discount Code with a DiscountCodeState other than MatchesCart.

The error is returned as a failed response to:

- [Create Order from Cart](ctp:api:endpoint:/{projectKey}/orders:POST) and [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/orders:POST) requests on Orders.
- [Create Order from Cart](ctp:api:endpoint:/{projectKey}/me/orders:POST) and [Create Order in Store from Cart](ctp:api:endpoint:/{projectKey}/in-store/me/orders:POST) requests on My Orders.
interface GraphQLDiscountCodeNonApplicableError {
    code: "DiscountCodeNonApplicable";
    discountCode?: string;
    discountCodeId?: string;
    reason?: string;
    validFrom?: string;
    validUntil?: string;
    validityCheckTime?: string;
    [key: string]: any;
}

Indexable

[key: string]: any

Properties

code: "DiscountCodeNonApplicable"
discountCode?: string

Discount Code passed to the Cart.

discountCodeId?: string

Unique identifier of the Discount Code.

reason?: string

"DoesNotExist" or "TimeRangeNonApplicable"

validFrom?: string

Date and time (UTC) from which the Discount Code is valid.

validUntil?: string

Date and time (UTC) until which the Discount Code is valid.

validityCheckTime?: string

Date and time (UTC) the Discount Code validity check was last performed.

Generated using TypeDoc