API referencePricing
Calculate Price
Calculate the hire price for a cart of products at a location over a start/end window. Uses the same pricing path as checkout (templates, modifiers, tax, coupons, add-ons). This does not change account data.
POST
/pricing/calculatecurl -X POST "https://dash.lockii.app/api/v1/pricing/calculate" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"location_id": "string",
"start_time": 0,
"end_time": 0,
"cart": [
{
"product_id": "string",
"quantity": 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
location_idstringrequiredLocation ID for tax and hire context
start_timenumberrequiredHire start time in Unix milliseconds (UTC)
end_timenumberrequiredHire end time in Unix milliseconds (UTC)
cartobject[]requiredCart lines to price
coupon_idstringOptional coupon ID to apply to the total
service_idsstring[]Optional add-on/service IDs to include in the total
Response
application/json
JSON result for this operation.
object
{}