Docs
Dashboard

CartDiscountCode

Object

Fields returned for cart discount code.

#

Fields


codes
[CartDiscountCodeValue!]!

A list of discount codes associated with the cart discount.

id
ID!

the ID of the cart discount code.

maxApplications
Int

The maximum amount of applications that can be discount.

maxApplicationsPerCustomer
Int

The maximum number of applications allowed per customer for the cart discount code.

name
String!

The name of the cart discount code.

validFrom
DateTime

The date and time when the cart discount code becomes valid.

validUntil
DateTime

The date and time when the cart discount code expires.

#

Queries


Gets a cart discount codes aggregate by its ID.

Returns a paginated list of cart discount codes.

#

Mutations


Creates a new cart discount code container with one or more codes.

Deletes a cart discount code container (this could mean one or more codes).

Updates fields for an existing cart discount code container.