Cart Attribute is null in Discounts API #265
Closed
Nikolow
started this conversation in
Feedback: Discounts APIs
Replies: 1 comment 2 replies
-
The query Input {
cart {
attribute(key: "some-key") { value }
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
a few days ago I started to play with the discounts API (product-discounts function). I have tried to read the cart attributes, but the query always returns null. I have also tested to see if any cart attributes are set in the shop (via liquid code) and at least 3 cart attributes are set. It seems that the query is returning always null.
The query:
The result:
Cart Attributes (check) Liquid Code:
Cart Attributes (check) console output:

Am I missing something or this is an issue with the API?
Beta Was this translation helpful? Give feedback.
All reactions