GraphQL objects reference
This section outlines the GraphQL objects related to store credit, detailing their attributes and how they interact with carts and customers.
To download Credit GraphQl collection press this download
Cart object
The Cart
object represents a customer's shopping cart and contains store credit details.
Attribute | Data Type | Description |
---|---|---|
credit | CartCredit | Store credit information associated with the cart |
CartCredit object
The CartCredit
object defines store credit details applied to a cart.
Attribute | Data Type | Description |
---|---|---|
amount | Money | The amount of store credit applied to the cart |
is_applied | Boolean | Indicates whether store credit has been applied |