API referenceMaintenance
Add Work Order Cost
Add a parts or labour cost to a work order. App connections need the booking:write or inventory:write scope.
POST
/maintenance/{maintenanceID}/costcurl -X POST "https://dash.lockii.app/api/v1/maintenance/{maintenanceID}/cost" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amountCents": -9007199254740991,
"name": "string"
}'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
maintenanceIDstringpathrequiredWork order ID
Body
application/json
amountCentsintegerrequiredCost in cents
idstringCost ID. Generated if omitted.
maintainedElementIDsstring[]Part IDs this cost applies to
namestringrequiredCost label
orderIDstring | nullRelated booking ID
Response
application/json
JSON result for this operation.
object
{}