# POST Create a length pricing

Create a length pricing record with JSON pricing tiers.

- Source URL: https://www.signcustomiser.com/help/api/post-create-a-length-pricing/
- Markdown URL: https://www.signcustomiser.com/help/api/post-create-a-length-pricing.md
- Group: Pricing - Length Pricings
- Method: POST
- Path: /api/v2/customisers/{customiser}/length-pricings
- Auth: Bearer token

## Path parameters

- customiser (string, required): The customiser ID. Example: 1

## Body parameters

- add_weight_to_product (boolean, optional): No description provided.
- label (string, optional): No description provided.
- pricings (array, optional): No description provided.
- pricing_type (string, optional): No description provided.
- shipping_calculation (string, optional): No description provided.
- volumetric_divisor (integer, optional): No description provided.

## Request body example

```json
{
  "add_weight_to_product": true,
  "label": "Standard",
  "pricings": [
    {
      "basePrice": 100,
      "pricePerCm": 2,
      "pricePerLetter": 4,
      "maxPriceMultiplier": 3,
      "cmLimit": 100,
      "cmLimitWidth": 100,
      "cmLimitHeight": 50,
      "cmLimitLength": 200,
      "pricePerSqCm": 0.05,
      "length": 120,
      "widthModifier": 1,
      "heightModifier": 1,
      "lengthModifier": 1
    }
  ],
  "pricing_type": "MATERIAL_LENGTH",
  "shipping_calculation": "PHYSICAL",
  "volumetric_divisor": 5000
}
```

## cURL example

```bash
curl https://web.signcustomiser.com/api/v2/customisers/1/length-pricings \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "add_weight_to_product": true,
  "label": "Standard",
  "pricings": [
    {
      "basePrice": 100,
      "pricePerCm": 2,
      "pricePerLetter": 4,
      "maxPriceMultiplier": 3,
      "cmLimit": 100,
      "cmLimitWidth": 100,
      "cmLimitHeight": 50,
      "cmLimitLength": 200,
      "pricePerSqCm": 0.05,
      "length": 120,
      "widthModifier": 1,
      "heightModifier": 1,
      "lengthModifier": 1
    }
  ],
  "pricing_type": "MATERIAL_LENGTH",
  "shipping_calculation": "PHYSICAL",
  "volumetric_divisor": 5000
}'
```

## Response examples

### 200 POST 200 example 1

```json
{
  "length_pricing": {
    "length_pricing_id": 1,
    "selection_id": 1,
    "label": "Standard",
    "pricing_type": "MATERIAL_LENGTH",
    "shipping_calculation": "PHYSICAL",
    "pricings": [
      {
        "base_price": 100,
        "price_per_cm": 2,
        "cm_limit_width": 100,
        "cm_limit_height": 50
      }
    ]
  }
}
```
