Pricing - Length Pricings
Update a length pricing
Update a length pricing record.
Authorisation
Bearer token required. Include in the
Authorization header.
Path parameters
customiser required
The customiser ID.
Example: 1
length_pricing required
The length pricing ID.
Example: 1
Request body
add_weight_to_product
label
pricings
pricing_type
shipping_calculation
volumetric_divisor
Request body example
application/json
{
"add_weight_to_product": true,
"label": "Premium",
"pricings": [
{
"basePrice": 4326.41688,
"pricePerCm": 4326.41688,
"pricePerLetter": 4326.41688,
"maxPriceMultiplier": 4326.41688,
"cmLimit": 77,
"cmLimitWidth": 4326.41688,
"cmLimitHeight": 4326.41688,
"cmLimitLength": 4326.41688,
"pricePerSqCm": 4326.41688,
"length": 4326.41688,
"widthModifier": 4326.41688,
"heightModifier": 4326.41688,
"lengthModifier": 4326.41688
}
],
"pricing_type": "MATERIAL_LENGTH",
"shipping_calculation": "PHYSICAL",
"volumetric_divisor": 5000
} Update a length pricing
curl https://web.signcustomiser.com/api/v2/customisers/1/length-pricings/1 \
--request PUT \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"add_weight_to_product": true,
"label": "Premium",
"pricings": [
{
"basePrice": 4326.41688,
"pricePerCm": 4326.41688,
"pricePerLetter": 4326.41688,
"maxPriceMultiplier": 4326.41688,
"cmLimit": 77,
"cmLimitWidth": 4326.41688,
"cmLimitHeight": 4326.41688,
"cmLimitLength": 4326.41688,
"pricePerSqCm": 4326.41688,
"length": 4326.41688,
"widthModifier": 4326.41688,
"heightModifier": 4326.41688,
"lengthModifier": 4326.41688
}
],
"pricing_type": "MATERIAL_LENGTH",
"shipping_calculation": "PHYSICAL",
"volumetric_divisor": 5000
}' Response 200
{
"length_pricing": {
"length_pricing_id": 1,
"selection_id": 1,
"label": "Premium",
"pricing_type": "MATERIAL_LENGTH",
"shipping_calculation": "PHYSICAL",
"pricings": []
}
}