Create a new orderlist
POST/v1/orderlists
Create a new orderlist
Request
- application/json
Body
required
Create orderlist input
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
List of product ids
productSources
object[]
List of product sources
Source ID
Name of the source
List of cluster ids
clusterSources
object[]
List of cluster sources
Source ID
Name of the source
Possible values: [POSITIVE
, NEGATIVE
]
Orderlist type. One of: [POSITIVE, NEGATIVE]
descriptions
object[]
Orderlist descriptions per language
Possible values: >= 2 characters
and <= 2 characters
Localized field language code
Localized field value
List of user ids
userSources
object[]
List of user sources
Source ID
Name of the source
List of company ids
companySources
object[]
List of company sources
Source ID
Name of the source
Responses
- 201
- 400
- 403
- 500
Orderlist created
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Orderlist primary identifier
Orderlist creation date
Orderlist last modified date
descriptions
object[]
Orderlist description per language
Possible values: >= 2 characters
and <= 2 characters
Language is set as 2 character country code.
Localized field value
Possible values: [POSITIVE
, NEGATIVE
]
Orderlist type
List of product ids
List of cluster ids
List of user ids
List of company ids
{
"id": 1234,
"createdAt": "2022-01-01T00:00:00.000Z",
"lastModifiedAt": "2022-01-02T00:00:00.000Z",
"descriptions": [
{
"language": "NL",
"value": "Dutch desc."
},
{
"language": "DE",
"value": "German desc."
}
],
"type": "POSITIVE",
"productIds": [
1111,
2222,
3333
],
"clusterIds": [
1111,
2222,
3333
],
"userIds": [
1111,
2222,
3333
],
"companyIds": [
1111,
2222,
3333
]
}
Bad request
Forbidden
Unknown create orderlist error