Pricing API
Calculate rental pricing breakdowns with discounts, seasonal rules, add-ons, and coupons.
The Pricing API calculates a complete pricing breakdown for a rental without creating a booking. Use it to preview costs at checkout.
Calculate Pricing
POST /v1/pricing/calculateBody Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
fleet_item_id | string | ✅ | Fleet item to price |
pickup_date | string | ✅ | Pickup date (ISO 8601) |
return_date | string | ✅ | Return date (ISO 8601) |
half_day | boolean | — | Half-day rental (default auto-detected) |
pickup_location_id | string (uuid) | — | Pickup location. Tax uses that location's own rate when it has one (0 means no tax); otherwise the business rate. Omit for the business rate. |
addons | array | — | Array of {addon_id, quantity} |
coupon_code | string | — | Coupon code to apply |
checkout_addon_ids | string[] | — | Optional checkout add-on steps the customer picked, priced exactly as POST /v1/bookings charges them (required steps are added anyway). An id the shop's checkout doesn't have is refused with 400 addon_not_found, as the booking refuses it |
delivery_selections | array | — | Delivery the customer wants, in exactly the shape POST /v1/bookings takes (see Bookings → Delivery). Priced by the booking's own rule and refused the same way (400 invalid_request, with the booking's message); the fee is returned as delivery_fee and included in estimated_total. A coupon is sized on the delivery too, as the booking sizes it: estimated_total includes that part, coupon_discount does not. Omit it for a price without delivery |
const pricing = await renta.pricing.calculate({
fleet_item_id: 'fi_abc123',
pickup_date: '2026-07-01T09:00:00Z',
return_date: '2026-07-03T17:00:00Z',
addons: [
{ addon_id: 'addon_helmet', quantity: 1 },
{ addon_id: 'addon_helmet', quantity: 1 },
],
coupon_code: 'SUMMER20',
});
console.log(`Base price: $${(pricing.base_price / 100).toFixed(2)}`);
console.log(`Seasonal adjustment: $${(pricing.seasonal_adjustment / 100).toFixed(2)}`);
console.log(`Add-ons: $${(pricing.addon_total / 100).toFixed(2)}`);
console.log(`Coupon discount: -$${(pricing.coupon_discount / 100).toFixed(2)}`);
console.log(`Subtotal: $${(pricing.subtotal / 100).toFixed(2)}`);
console.log(`Tax: $${(pricing.tax / 100).toFixed(2)}`);
console.log(`Total: $${(pricing.total / 100).toFixed(2)}`);
console.log(`Deposit hold: $${(pricing.deposit_hold_amount / 100).toFixed(2)}`);curl -X POST https://api.getrenta.io/v1/pricing/calculate \
-H "Authorization: Bearer renta_sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"fleet_item_id": "fi_abc123",
"pickup_date": "2026-07-01T09:00:00Z",
"return_date": "2026-07-03T17:00:00Z",
"addons": [
{"addon_id": "addon_helmet", "quantity": 1},
{"addon_id": "addon_helmet", "quantity": 1}
],
"coupon_code": "SUMMER20"
}'Response:
{
"base_price": 10000,
"discount_amount": 0,
"seasonal_adjustment": -500,
"addon_total": 3500,
"package_savings": 0,
"coupon_discount": 2600,
"subtotal": 10400,
"tax": 832,
"total": 11232,
"delivery_fee": 0,
"estimated_total": 12082,
"deposit_hold_amount": 15000,
"renta_fee_amount": 281,
"breakdown": {
"days": 2,
"half_day": false,
"rate_per_day": 5000,
"multi_day_discount": 0,
"seasonal_rules_applied": [
{
"rule_id": "pr_summer",
"type": "seasonal",
"adjustment_type": "percent",
"adjustment_value": -5
}
],
"coupon": {
"code": "SUMMER20",
"discount_type": "percent",
"discount_value": 20
},
"addons": [
{"addon_id": "addon_helmet", "name": "Helmet", "quantity": 1, "unit_price": 500, "total": 500},
{"addon_id": "addon_helmet", "name": "Helmet", "quantity": 1, "unit_price": 1500, "total": 3000}
]
}
}total and estimated_total
totalis the price of this one item with the add-ons and coupon you sent, plus tax. It is unchanged: it never includes delivery.estimated_totalis what a booking made from the same request would charge in total. It covers the whole cart when you sendcart_items(plus this item if it is not in the cart), otherwise one of this item, with the same add-ons and coupon. It adds what the booking adds on its own: sales tax, the shop's extra fees (Additional taxes & fees), the night-before pickup fee, required add-ons, the checkout add-on steps you picked, and the delivery you sent indelivery_selections(also shown alone asdelivery_fee,0without delivery). Liketotal, it is what the shop receives and does not include Renta's booking fee, which is added on top when the renter pays it.estimated_totalisnullwhen it cannot be worked out (for example the shop's fees could not be read just now), and when you sendhalf_day: truefor a window longer than a half day (the booking's own half-day rule then decides the price). Treat it as an estimate: the booking itself is the final price.
Pricing Pipeline
The pricing engine applies calculations in this order:
- Base rate —
price_half_day,price_full_day, orprice_multi_day× days - Multi-day discount — Automatic discount for longer rentals (if configured)
- Seasonal adjustment — Pricing rules with date ranges (dollar or percentage)
- Add-on pricing — Per-item or per-day add-on costs, plus any required checkout add-on the shop's checkout charges (for example a mandatory cleaning fee). It appears in
addon_line_itemsand is included because the booking will charge it. If the shop's checkout settings cannot be loaded, the endpoint answers503 checkout_flow_unavailableinstead of showing a lower price. - Package discount — Package bundle savings (if applicable)
- Coupon validation — Percentage or fixed discount from coupon code
- Tax calculation — Based on tenant's tax configuration
- Renta fee — Platform transaction fee: the full 2.5%, returned as
renta_fee_amount. This is an upper bound. The fee actually charged can be lower, or0, once the tenant reaches its $300 monthly cap (see Payments API).
The pricing endpoint is read-only — it doesn't create or modify any records. Use it for checkout previews and price comparison UIs.
Rate Selection
| Duration | Rate Used |
|---|---|
| < 1 day | price_half_day |
| 1 day | price_full_day |
| 2–6 days | price_multi_day × days (falls back to price_full_day if not set) |
| 7+ days | price_weekly ÷ 7 × days (falls back to price_multi_day or price_full_day) |
Half-day detection is automatic if the pickup-to-return window is ≤ 5 hours, or can be forced with half_day: true.
Pricing Rules
Manage seasonal and multi-day pricing rules that the pricing engine applies during calculation.
List Pricing Rules
GET /v1/pricing/rulesQuery Parameters:
| Parameter | Type | Description |
|---|---|---|
fleet_item_id | string | Filter rules for a specific item |
active | string | Filter by active state (true or false) |
cursor | string | Pagination cursor |
limit | integer | Results per page (1–100, default 20) |
const rules = await renta.pricing.rules.list({
fleet_item_id: 'fi_abc123',
active: 'true',
});curl "https://api.getrenta.io/v1/pricing/rules?fleet_item_id=fi_abc123&active=true" \\
-H "Authorization: Bearer renta_sk_live_..."Response:
{
"data": [
{
"id": "pr_abc123",
"fleet_item_id": "fi_abc123",
"type": "seasonal",
"start_date": "2026-06-01",
"end_date": "2026-08-31",
"days_threshold": null,
"adjustment_type": "percent",
"adjustment_value": 15,
"priority": 10,
"active": true,
"created_at": "2026-03-01T10:00:00Z",
"updated_at": "2026-03-01T10:00:00Z"
}
],
"has_more": false,
"next_cursor": null
}Get Pricing Rule
GET /v1/pricing/rules/:idconst rule = await renta.pricing.rules.get('pr_abc123');curl https://api.getrenta.io/v1/pricing/rules/pr_abc123 \\
-H "Authorization: Bearer renta_sk_live_..."Create Pricing Rule
POST /v1/pricing/rulesBody Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
fleet_item_id | string | — | Fleet item ID (null for global rules) |
type | string | ✅ | Rule type: seasonal or multi_day |
start_date | string | — | Start date for seasonal rules (ISO date) |
end_date | string | — | End date for seasonal rules (ISO date) |
days_threshold | integer | — | Minimum days for multi-day rules |
adjustment_type | string | — | dollar or percent (default percent) |
adjustment_value | integer | — | Adjustment amount (cents for dollar, whole number for percent) |
apply_per | string | — | Seasonal rules with adjustment_type: dollar: booking (default, charged once per unit) or day (charged once per rental day). Ignored for percent rules |
priority | integer | — | Higher priority rules apply first (default 0) |
active | boolean | — | Whether the rule is active (default true) |
const rule = await renta.pricing.rules.create({
fleet_item_id: 'fi_abc123',
type: 'seasonal',
start_date: '2026-06-01',
end_date: '2026-08-31',
adjustment_type: 'percent',
adjustment_value: 15,
priority: 10,
});curl -X POST https://api.getrenta.io/v1/pricing/rules \\
-H "Authorization: Bearer renta_sk_live_..." \\
-H "Content-Type: application/json" \\
-d '{
"fleet_item_id": "fi_abc123",
"type": "seasonal",
"start_date": "2026-06-01",
"end_date": "2026-08-31",
"adjustment_type": "percent",
"adjustment_value": 15,
"priority": 10
}'Update Pricing Rule
PATCH /v1/pricing/rules/:idAccepts any subset of the create parameters.
await renta.pricing.rules.update('pr_abc123', {
active: false,
});curl -X PATCH https://api.getrenta.io/v1/pricing/rules/pr_abc123 \\
-H "Authorization: Bearer renta_sk_live_..." \\
-H "Content-Type: application/json" \\
-d '{"active": false}'Delete Pricing Rule
DELETE /v1/pricing/rules/:idawait renta.pricing.rules.del('pr_abc123');curl -X DELETE https://api.getrenta.io/v1/pricing/rules/pr_abc123 \\
-H "Authorization: Bearer renta_sk_live_..."Response:
{
"deleted": true,
"id": "pr_abc123"
}