| Parameter | Default | Description | Required |
|---|---|---|---|
| name | price list name | REQUIRED | |
| currency_setting_id | if this field given price will change as currency price | ||
| target_type | Enterprise or Property | ||
| target_id | price list target id | ||
| items[] | contains price list items | REQUIRED | |
| items[].sku | price list item sku | REQUIRED | |
| items[].price | price list item price | REQUIRED |
curl --location 'https://api.simpra.app/apps/api/v1/price_lists_with_sku' \
--header 'Simpra-Access-Token: <api-key>' \
--header 'Content-Type: application\json' \
--data '{
"name": "Price List 1",
"currency_setting_id": "6f6fc0e2-0839-4e2c-bcd9-dcc58be299af",
"items": [
{
"sku": "123456789",
"price": 10
},
{
"sku": "987654321",
"price": 20
}
]
}'{
"price_list": {
"id": "c2cb6f75-88c1-4ab6-99af-a9d6b7822993",
"name": "Price List 1"
}
}