Create a price list
Scope: inventory:rates.write https://api.alladdin.com/api/v2/price-lists
Creates a new price list (rate). Price lists let you offer different prices to different customer segments — for example, Retail, Wholesale, or VIP.
The response returns the new price list id.
Request body
object name string required
Display name for the price list
description string | null optional
Optional description
Request
import requests
url = "https://api.alladdin.com/api/v2/price-lists"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"name": "string",
"description": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Responses
Response
{
"id": "507f1f77bcf86cd799439011"
}Success responses
201 Price list created application/json object id string
Error responses
400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 422 Validation error application/json
