API referencePricing Template
Create Pricing Template
Create a pricing template in the current company. App connections need the booking:write or inventory:write scope.
POST
/pricing-templatecurl -X POST "https://dash.lockii.app/api/v1/pricing-template" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"name": "string",
"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.
Body
application/json
idstringrequiredPricing template ID, usually pricing_template_<uuid>
namestringrequiredPricing template name
companyIDstringCompany ID. Defaults to the authenticated user's company.
typeenum<string>Pricing template type. Use "tiered" (default). "product" is a legacy alias for tiered.
One of:tieredproductDefault:tieredcreatedAtnumberUnix ms. Defaults to now.
updatedAtnumberUnix ms. Defaults to now.
templateobjectrequired
Response
application/json
JSON result for this operation.
object
{}