Update Pricing Rule
Update an existing pricing rule.
Endpointโ
PATCH /v1/products/{id}/pricing/{pricingId}
Authenticationโ
Requires an API key with the products:write scope.
Parametersโ
| Parameter | Type | Location | Description |
|---|---|---|---|
id | integer | path | The product ID |
pricingId | integer | path | The pricing rule ID |
Request Bodyโ
All fields are optional. Only include fields you want to update.
| Field | Type | Description |
|---|---|---|
season_id | integer | Season ID (set to null to remove season) |
price_structure | string | flat or schedule |
price | number | Price amount |
interval | integer | Number of intervals |
interval_units | string | 15min, halfHour, hour, day, week |
label | string | Optional friendly label for a schedule tier (max 150 chars), e.g. "Per hour", "Full day". Replaces the raw interval on the customer price schedule. Set to null to clear. Display-only โ does not affect pricing. |
display_on_widget | boolean | Whether this tier shows in the booking-widget price schedule. Display-only โ does not affect pricing. |
Responseโ
Success (200 OK)โ
Returns the updated pricing rule.
{
"data": {
"id": 3,
"season": null,
"price_structure": "flat",
"price": 60.00,
"interval": 1,
"label": null,
"interval_units": "day",
"interval_description": "Day",
"created_at": "2026-02-01T10:00:00+00:00",
"updated_at": "2026-02-01T11:00:00+00:00"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-02-01T11:00:00+00:00"
}
}
Example Requestโ
curl -X PATCH "https://app.equipdash.com/api/v1/products/1/pricing/3" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"price": 60.00
}'
Errorsโ
| Status | Code | Description |
|---|---|---|
| 401 | authentication_required | No API key provided |
| 403 | insufficient_scope | API key lacks products:write scope |
| 404 | resource_not_found | Product or pricing rule not found |
| 422 | validation_error | Invalid request data |