Price lists
Retrieves all price lists assigned to the tenant. You can filter the results with query parameters.
- : Needed to manage prices.
- : Needed to retrieve prices.
- : Needed to calculate product prices (legacy).
- : Needed to calculate prices and synchronize sale prices (legacy).
- : Needed to delete all prices at once (legacy).
- : Needed to use the price matching functionality based on information from the session context.
- : Needed to manage price models.
- : Needed to retrieve price models.
- : Needed to manage prices belonging to the vendor.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$A standard query parameter is used to search for specific values.
Page number to be retrieved. The number of the first page is 1.
Note: If the pageNumber parameter is passed, size of the pages must be specified in the pageSize parameter.
1Number of items to be retrieved per page.
60List of properties used to sort the results, separated by colons. The order of properties indicates their priority in sorting.
Possible values:
{fieldName}{fieldName}:asc{fieldName}:desc
Note: If you want to sort the results by localized properties, the possible values are:
{fieldName}.{language}{fieldName}.{language}:asc{fieldName}.{language}:desc
If the sorting direction is not specified, the fields are sorted in ascending order.
name,code:descPrice list's name.
Date on which retrieved prices should be valid, compliant with the ISO 8601 standard. Format:date-fullyear "-" date-month "-" date-mday "T" partial-time time-offset
2022-01-01T00:00:00ZCode of the currency in which the prices are expressed, as defined in the Currency Service.
Code of the country to which the price list applies, as defined in the Country Service.
Code of the site to which the price list applies.
Comma separated list of IDs of the customer groups to which the price list applies.
Code of the region to which the price list applies.
List of language codes acceptable for the response. You can specify factors that indicate which language should be retrieved if the one with a higher factor was not found in the localized fields.
- If the header is set to a particular language or a list of languages, all localized fields are retrieved as a map of single translation, where the key is a language code and the value is in a respective language.
- If the header is set to
*, all localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages. - If the header is empty, localized fields are retrieved as maps of single translation, where the key is a language code and the value is in a respective language. The endpoint will asume that the localized fields are provided in the default language defined in the Configuration Service.
Flag indicating whether the total count of retrieved items should be returned.
falseThe request was successful. A list of price lists is returned.
Given request is unauthorized - the authorization token is invalid or has expired. Details are provided in the response payload.
Given authorization scopes are not sufficient and do not match the scopes required by the endpoint.
Some server-side error occurred. Details are provided in the response payload.
GET /price/{tenant}/price-lists HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"id": "example-id-1",
"name": {
"en": "Example Price List 1"
},
"currency": "EUR",
"countries": [
"PL"
],
"customerGroups": [
"customer-group-1",
"customer-group-2"
],
"siteCode": "example-site-1",
"validity": {
"from": "2022-05-01T00:00:00.000Z",
"to": "2025-05-01T00:00:00.000Z"
},
"metadata": {
"version": 1,
"createdAt": "2022-03-31T13:18:02.379Z",
"modifiedAt": "2022-03-31T13:18:02.379Z"
}
},
{
"id": "example-id-2",
"name": {
"en": "Example Price List 2"
},
"currency": "EUR",
"regions": [
"DACH"
],
"customerGroups": [
"customer-group-1"
],
"siteCode": "example-site-2",
"metadata": {
"version": 1,
"createdAt": "2022-03-31T13:18:02.379Z",
"modifiedAt": "2022-03-31T13:18:02.379Z"
}
}
]Creates a new price list.
- : Needed to manage prices.
- : Needed to retrieve prices.
- : Needed to calculate product prices (legacy).
- : Needed to calculate prices and synchronize sale prices (legacy).
- : Needed to delete all prices at once (legacy).
- : Needed to use the price matching functionality based on information from the session context.
- : Needed to manage price models.
- : Needed to retrieve price models.
- : Needed to manage prices belonging to the vendor.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$List of languages in which localized fields in the request body are provided.
- If the
Content-Languageheader is set to*, the localized fields should be provided as maps of translations, where the keys are language codes and values are the fields in their respective languages. - If the
Content-Languageheader is set to a specific language, then the localized fields should be provided as a map of single translation, where the key is a language code and the value is in a respective language. - If the
Content-Languageheader is empty, then the localized fields should be provided as maps of single translation, where the key is a language code and the value is in a respective language. The endpoint will asume that the localized fields are provided in the default language defined in the Configuration Service.
Note: You can provide the localized fields only in languages defined in the Configuration Service. In case the fields are provided in languages that are not defined in the Configuration Service, the request will be rejected.
The request was successful. The price list has been created.
Given request is unauthorized - the authorization token is invalid or has expired. Details are provided in the response payload.
Given authorization scopes are not sufficient and do not match the scopes required by the endpoint.
Some server-side error occurred. Details are provided in the response payload.
POST /price/{tenant}/price-lists HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 238
{
"name": {
"en": "Example Price List 1"
},
"currency": "EUR",
"countries": [
"PL"
],
"customerGroups": [
"customer-group-1",
"customer-group-2"
],
"siteCode": "example-site-1",
"validity": {
"from": "2022-05-01T00:00:00.000Z",
"to": "2025-05-01T00:00:00.000Z"
}
}{
"id": "6245a8f578a8576e338fa9c2"
}Searching for price lists assigned to the tenant.
- : Needed to manage prices.
- : Needed to retrieve prices.
- : Needed to calculate product prices (legacy).
- : Needed to calculate prices and synchronize sale prices (legacy).
- : Needed to delete all prices at once (legacy).
- : Needed to use the price matching functionality based on information from the session context.
- : Needed to manage price models.
- : Needed to retrieve price models.
- : Needed to manage prices belonging to the vendor.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Page number to be retrieved. The number of the first page is 1.
Note: If the pageNumber parameter is passed, size of the pages must be specified in the pageSize parameter.
1Number of items to be retrieved per page.
60List of properties used to sort the results, separated by colons. The order of properties indicates their priority in sorting.
Possible values:
{fieldName}{fieldName}:asc{fieldName}:desc
Note: If you want to sort the results by localized properties, the possible values are:
{fieldName}.{language}{fieldName}.{language}:asc{fieldName}.{language}:desc
If the sorting direction is not specified, the fields are sorted in ascending order.
name,code:descList of language codes acceptable for the response. You can specify factors that indicate which language should be retrieved if the one with a higher factor was not found in the localized fields.
- If the header is set to a particular language or a list of languages, all localized fields are retrieved as a map of single translation, where the key is a language code and the value is in a respective language.
- If the header is set to
*, all localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages. - If the header is empty, localized fields are retrieved as maps of single translation, where the key is a language code and the value is in a respective language. The endpoint will asume that the localized fields are provided in the default language defined in the Configuration Service.
Flag indicating whether the total count of retrieved items should be returned.
falseA standard query parameter is used to search for specific values.
The request was successful. A list of price lists is returned.
Given request is unauthorized - the authorization token is invalid or has expired. Details are provided in the response payload.
Given authorization scopes are not sufficient and do not match the scopes required by the endpoint.
Some server-side error occurred. Details are provided in the response payload.
POST /price/{tenant}/price-lists/search HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"q": "id:example-id-1"
}[
{
"id": "example-id-1",
"name": {
"en": "Example Price List 1"
},
"currency": "EUR",
"countries": [
"PL"
],
"customerGroups": [
"customer-group-1",
"customer-group-2"
],
"siteCode": "example-site-1",
"validity": {
"from": "2022-05-01T00:00:00.000Z",
"to": "2025-05-01T00:00:00.000Z"
},
"metadata": {
"version": 1,
"createdAt": "2022-03-31T13:18:02.379Z",
"modifiedAt": "2022-03-31T13:18:02.379Z"
}
},
{
"id": "example-id-2",
"name": {
"en": "Example Price List 2"
},
"currency": "EUR",
"regions": [
"DACH"
],
"customerGroups": [
"customer-group-1"
],
"siteCode": "example-site-2",
"metadata": {
"version": 1,
"createdAt": "2022-03-31T13:18:02.379Z",
"modifiedAt": "2022-03-31T13:18:02.379Z"
}
}
]Retrieves a specified price list's details by priceListId.
- : Needed to manage prices.
- : Needed to retrieve prices.
- : Needed to calculate product prices (legacy).
- : Needed to calculate prices and synchronize sale prices (legacy).
- : Needed to delete all prices at once (legacy).
- : Needed to use the price matching functionality based on information from the session context.
- : Needed to manage price models.
- : Needed to retrieve price models.
- : Needed to manage prices belonging to the vendor.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Price list's unique identifier, generated when the price list is created.
List of language codes acceptable for the response. You can specify factors that indicate which language should be retrieved if the one with a higher factor was not found in the localized fields.
- If the header is set to a particular language or a list of languages, all localized fields are retrieved as a map of single translation, where the key is a language code and the value is in a respective language.
- If the header is set to
*, all localized fields are retrieved as maps of translations, where the keys are language codes and values are the fields in their respective languages. - If the header is empty, localized fields are retrieved as maps of single translation, where the key is a language code and the value is in a respective language. The endpoint will asume that the localized fields are provided in the default language defined in the Configuration Service.
The request was successful. The price list is returned.
Given request is unauthorized - the authorization token is invalid or has expired. Details are provided in the response payload.
Given authorization scopes are not sufficient and do not match the scopes required by the endpoint.
The requested price list could not be found.
Some server-side error occurred. Details are provided in the response payload.
GET /price/{tenant}/price-lists/{priceListId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"id": "example-id-1",
"name": {
"en": "Example Price List 1"
},
"currency": "EUR",
"countries": [
"PL"
],
"customerGroups": [
"customer-group-1",
"customer-group-2"
],
"siteCode": "example-site-1",
"validity": {
"from": "2022-05-01T00:00:00.000Z",
"to": "2025-05-01T00:00:00.000Z"
},
"metadata": {
"version": 1,
"createdAt": "2022-03-31T13:18:02.379Z",
"modifiedAt": "2022-03-31T13:18:02.379Z"
}
}Updates a specified price list by priceListId, or creates a new one if a price list with the specified ID doesn't exist yet.
- : Needed to manage prices.
- : Needed to retrieve prices.
- : Needed to calculate product prices (legacy).
- : Needed to calculate prices and synchronize sale prices (legacy).
- : Needed to delete all prices at once (legacy).
- : Needed to use the price matching functionality based on information from the session context.
- : Needed to manage price models.
- : Needed to retrieve price models.
- : Needed to manage prices belonging to the vendor.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Price list's unique identifier, generated when the price list is created.
List of languages in which localized fields in the request body are provided.
- If the
Content-Languageheader is set to*, the localized fields should be provided as maps of translations, where the keys are language codes and values are the fields in their respective languages. - If the
Content-Languageheader is set to a specific language, then the localized fields should be provided as a map of single translation, where the key is a language code and the value is in a respective language. - If the
Content-Languageheader is empty, then the localized fields should be provided as maps of single translation, where the key is a language code and the value is in a respective language. The endpoint will asume that the localized fields are provided in the default language defined in the Configuration Service.
Note: You can provide the localized fields only in languages defined in the Configuration Service. In case the fields are provided in languages that are not defined in the Configuration Service, the request will be rejected.
The resource has been created.
The request was successful. The price has been updated.
Given request is unauthorized - the authorization token is invalid or has expired. Details are provided in the response payload.
Given authorization scopes are not sufficient and do not match the scopes required by the endpoint.
The requested price list could not be found.
Some server-side error occurred. Details are provided in the response payload.
PUT /price/{tenant}/price-lists/{priceListId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 244
{
"name": {
"en": "Example Price List 1"
},
"currency": "EUR",
"countries": [
"DE"
],
"customerGroups": [
"customer-group-3"
],
"siteCode": "example-site-1",
"validity": {
"from": "2022-05-01T00:00:00.000Z",
"to": "2025-05-01T00:00:00.000Z"
},
"metadata": {
"version": 1
}
}{
"id": "12345678-1234-1234-1234-123456789012"
}Deletes a specified price list by priceListId.
Important: All prices assigned to the price list are deleted as well, in an asynchronous manner.
- : Needed to manage prices.
- : Needed to retrieve prices.
- : Needed to calculate product prices (legacy).
- : Needed to calculate prices and synchronize sale prices (legacy).
- : Needed to delete all prices at once (legacy).
- : Needed to use the price matching functionality based on information from the session context.
- : Needed to manage price models.
- : Needed to retrieve price models.
- : Needed to manage prices belonging to the vendor.
Your Emporix tenant's name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Price list's unique identifier, generated when the price list is created.
The request was successful. The price list has been deleted.
Given request is unauthorized - the authorization token is invalid or has expired. Details are provided in the response payload.
Given authorization scopes are not sufficient and do not match the scopes required by the endpoint.
Some server-side error occurred. Details are provided in the response payload.
DELETE /price/{tenant}/price-lists/{priceListId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Last updated
Was this helpful?

