You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `allCartRules` query returns information about all active cart rules in the store.
8
+
9
+
## Syntax
10
+
11
+
```graphql
12
+
{
13
+
allCartRules {
14
+
name
15
+
}
16
+
}
17
+
```
18
+
19
+
## Reference
20
+
21
+
The [`allCartRules`](https://developer.adobe.com/commerce/webapi/graphql-api/index.html#query-all-cart-rules) reference provides detailed information about the types and fields defined in this query.
22
+
23
+
## Example usage
24
+
25
+
### Retrieve all cart rules
26
+
27
+
The following call returns a list of all active cart rules in the store.
The `allCustomerSegments` query returns information about all the customer segments available.
8
+
9
+
## Syntax
10
+
11
+
```graphql
12
+
{
13
+
allCustomerSegments {
14
+
name
15
+
description
16
+
apply_to
17
+
}
18
+
}
19
+
```
20
+
21
+
## Reference
22
+
23
+
The [`allCustomerSegments`](https://developer.adobe.com/commerce/webapi/graphql-api/index.html#query-all-customer-segments) reference provides detailed information about the types and fields defined in this query.
24
+
25
+
## Example usage
26
+
27
+
### Retrieve all active customer segments
28
+
29
+
The following call returns a list of all active customer segments.
The `allCustomerGroupss` query returns information about all customer groups available.
8
+
9
+
## Syntax
10
+
11
+
```graphql
12
+
{
13
+
allCustomerGroups {
14
+
name
15
+
}
16
+
}
17
+
```
18
+
19
+
## Reference
20
+
21
+
The [`allCustomerGroups`](https://developer.adobe.com/commerce/webapi/graphql-api/index.html#query-all-customer-groups) reference provides detailed information about the types and fields defined in this query.
22
+
23
+
## Example usage
24
+
25
+
### Retrieve all customer groups
26
+
27
+
The following call returns a list of all customer groups.
The `customerSegments` query returns information about the customer segments associated with the current customer or guest/visitor.
8
+
9
+
## Syntax
10
+
11
+
```graphql
12
+
{
13
+
customerSegments(
14
+
cartId: String!
15
+
): [CustomerSegment!]
16
+
}
17
+
```
18
+
19
+
## Reference
20
+
21
+
The [`customerSegments`](https://developer.adobe.com/commerce/webapi/graphql-api/index.html#query-customer-segments) reference provides detailed information about the types and fields defined in this query.
22
+
23
+
## Example usage
24
+
25
+
### Retrieve segments information of a visitor
26
+
27
+
The following call returns segments currently applied to the visitor.
The `allCatalogRules` query returns information about all active catalog rules in the store.
8
+
9
+
## Syntax
10
+
11
+
```graphql
12
+
{
13
+
allCatalogRules {
14
+
name
15
+
}
16
+
}
17
+
```
18
+
19
+
## Reference
20
+
21
+
The [`allCatalogRules`](https://developer.adobe.com/commerce/webapi/graphql-api/index.html#query-all-catalog-rules) reference provides detailed information about the types and fields defined in this query.
22
+
23
+
## Example usage
24
+
25
+
### Retrieve all catalog rules
26
+
27
+
The following call returns a list of all active catalog rules in the store.
0 commit comments