Gets all authorized catalog rules
GEThttps://euwest.api.elasticpath.com/catalogs/rules
Retrieves all authorized catalog rules.
Filtering
This endpoint supports filtering. For general filtering syntax, see Filtering. The following operators and attributes are supported.
Operator | Description | Supported Attributes | Example |
---|---|---|---|
eq | Equals. Checks if the values of two operands are equal. If they are, the condition is true. | id ,catalog_id ,account_ids ,customer_ids ,channels ,tags | filter=eq(id,some-id) |
in | Checks if the values are included in the specified string. If they are, the condition is true. | id ,account_ids ,customer_ids ,channels ,tags | filter=in(account_ids,some-id,another-id) |
Request
Responses
- 200
- default
The list of catalog rules.
An unexpected error.
Authorization: Authorization
name: Authorizationtype: httpin: headerscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://euwest.api.elasticpath.com/catalogs/rules");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <Authorization>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear