Skip to main content

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โ€‹

ParameterTypeLocationDescription
idintegerpathThe product ID
pricingIdintegerpathThe pricing rule ID

Request Bodyโ€‹

All fields are optional. Only include fields you want to update.

FieldTypeDescription
season_idintegerSeason ID (set to null to remove season)
price_structurestringflat or schedule
pricenumberPrice amount
intervalintegerNumber of intervals
interval_unitsstring15min, halfHour, hour, day, week
labelstringOptional 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_widgetbooleanWhether 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โ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
403insufficient_scopeAPI key lacks products:write scope
404resource_not_foundProduct or pricing rule not found
422validation_errorInvalid request data