Get all custom relationships
GEThttps://euwest.api.elasticpath.com/pcm/custom-relationships
Gets all Custom Relationships.
To see a list of custom relationships a product is attached to, see Get all Custom Relationships attached to a Product.
To see a list of products that a product is related to, see Get all Related Products of a Products' attached Custom Relationship.
Filtering
Many Commerce API endpoints support filtering. The general syntax is described in Filtering.
The following attributes and operators are supported.
Operator | Attribute | Description | Example |
---|---|---|---|
eq | owner , slug | Equals. Checks if the values of two operands are equal. If they are, the condition is true. | filter=eq(owner,store) |
in | slug | In. Checks if a value exists in a given list of values. If the value matches any item in the list, the condition is true. | filter=in(slug,slug-1,slug-2,slug-3) |
Request
Responses
- 200
- 400
- 500
Returns a list of all custom relationships.
Bad request. The request failed validation.
Internal server error. There was a system failure in the platform.
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
ResponseClear