Update Pricing Template
Update a pricing template by ID. Include only fields you want to change; omit the rest. Empty strings, null, and 0 are ignored so they cannot wipe existing values. App connections need the booking:write or inventory:write scope.
curl -X POST "https://dash.lockii.app/api/v1/pricing-template/{id}" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"companyID": "string",
"type": "tiered",
"createdAt": 0,
"updatedAt": 0,
"template": {
"tiers": [
{
"name": "string",
"price_multiplier": 0,
"duration": 0,
"duration_unit": "hours"
}
],
"day_after": {
"price_multiplier": 0
}
}
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Parameters
idstringpathrequiredPricing template ID
Body
namestringPricing template name Omit to leave unchanged.
companyIDstringCompany ID. Defaults to the authenticated user's company. Omit to leave unchanged.
typeenum<string>Pricing template type. Use "tiered" (default). "product" is a legacy alias for tiered. Omit to leave unchanged.
One of:tieredproductcreatedAtnumberUnix ms. Defaults to now. Omit to leave unchanged.
updatedAtnumberUnix ms. Defaults to now. Omit to leave unchanged.
templateobjectOmit to leave unchanged.
Response
JSON result for this operation.
{}