Skip to content

Every supplier

GET
/suppliers
curl --request GET \
--url https://app.currentpim.se/api/v1/suppliers \
--header 'Authorization: Bearer <token>'

Needs catalog:read and suppliers.view. A product names its supplier by code in the workspace’s attribute of type supplier.

Suppliers by code.

Media typeapplication/json
object
data
required
Array<object>
object
code
string
name
string
active
boolean
brands

The brands the supplier delivers: reference records by their entity’s code and their own.

Array<object>
object
entity
string
record
string

Example generated

{
"data": [
{
"code": "example",
"name": "example",
"active": true,
"brands": [
{
"entity": "example",
"record": "example"
}
]
}
]
}

No valid token (missing, revoked, expired, or the account is deactivated).

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

The token lacks the ability or the account the permission.

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

More than the allowed requests a minute for this token; Retry-After says when to try again.

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}