API v1 preview

# The Price calculation object

Manufacturing prices for selected models, sizes and quantities.

## Fields

`currency` string · required

Literal usd. All monetary amounts are integer USD cents.

Always: `"usd"`

`pricing_version` string · required

Opaque identifier for the pricing schedule used. Store it for reference; do not parse it or calculate prices from it. A calculation does not lock prices; review a quote before ordering. Business pricing versions change at calendar-month boundaries; unaccepted quotes then require refreshing.

`service_fees` object · optional

Current Model repair starting rate in USD cents. Final price uses declared counts. mesh_repair is a deprecated compatibility field, always zero for new calculations.

**service_fees fields**

`mesh_repair` integer · required

Deprecated. Always zero; geometry repair is part of Model repair.

Minimum: 0

`model_repair` integer · optional

Lowest count-priced service amount; currently 350 cents for one large item.

Minimum: 0

`items` array · required

One line per model/size in first-appearance order. Matching entries merge. Each model’s repair fee is allocated to its first returned line only, regardless of sizes or quantities.

[Price line object](https://ottomfg.com/docs/price-line-object.md)

`subtotal` integer · required

Sum of model line subtotals, excluding shipping and tax. Integer minor currency units.

Minimum: 0

`estimated_production_business_days` object | null · required

Reserved for a production estimate; currently null.

**estimated_production_business_days fields**

At least one of these conditions applies:

**object**

`min` integer · required

Minimum: 0

`max` integer · required

Minimum: 0

**null**

null

## Returned by

- [Calculate prices](https://ottomfg.com/docs/calculate-prices.md)

Example

JSON

```
{
  "currency": "usd",
  "pricing_version": "pv_support_v1_ebcc9b8b64eb5043",
  "items": [
    {
      "model_id": "MD-739YQ549",
      "longest_dimension_mm": 100,
      "quantity": 2,
      "volume": {
        "value_mm3": 10000,
        "status": "estimated"
      },
      "estimated_weight_g": 12,
      "mesh_check_passed": true,
      "unit_price": 2460,
      "subtotal": 4920,
      "repair": {
        "required": false,
        "applied": false,
        "reason": null,
        "status": "not_applied",
        "fee": 0,
        "covered_by_order_id": null
      },
      "file_revision": 1,
      "support_volume": {
        "value_mm3": 0,
        "status": "estimated"
      },
      "minimum_total_volume": {
        "value_mm3": 10000,
        "status": "estimated"
      },
      "support_build_direction": "+y"
    }
  ],
  "subtotal": 4920,
  "estimated_production_business_days": null,
  "service_fees": {
    "mesh_repair": 0,
    "model_repair": 350
  }
}
```

API v1 preview

Source: https://ottomfg.com/docs/price-calculation-object
