Every family
const url = 'https://app.currentpim.se/api/v1/families';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.currentpim.se/api/v1/families \ --header 'Authorization: Bearer <token>'Needs catalog:read and families.view.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Families with their attributes, requirements per channel and variant structures.
object
object
Labels per locale code.
object
Attribute codes in the family’s order.
Channel code → required attribute codes.
object
object
Labels per locale code.
object
Levels below the root model, each with its axis attributes and the attributes it owns.
object
Example generated
{ "data": [ { "code": "example", "labels": { "additionalProperty": "example" }, "attributes": [ "example" ], "requirements": { "additionalProperty": [ "example" ] }, "label_attribute": "example", "image_attribute": "example", "variant_structures": [ { "code": "example", "labels": { "additionalProperty": "example" }, "levels": [ { "level": 1, "axes": [ "example" ], "attributes": [ "example" ] } ] } ] } ]}No valid token (missing, revoked, expired, or the account is deactivated).
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}The token lacks the ability or the account the permission.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}More than the allowed requests a minute for this token; Retry-After says when to try again.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}