API referenceProduct
Create Product
Create a new product. App connections need the inventory:write scope.
POST
/productcurl -X POST "https://dash.lockii.app/api/v1/product" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"name": "string",
"description": "string",
"imageID": "string",
"pricePerHourCents": -9007199254740991,
"basePriceCents": -9007199254740991,
"companyID": "string",
"updatedAt": 0,
"archived": true
}'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
idstringrequirednamestringrequiredProduct name
descriptionstringrequiredRenter-facing description
imageIDstringrequiredPrimary image ID
additionalImageIDsstring[] | nullExtra gallery image IDs
pricePerHourCentsintegerrequiredHourly price in cents
basePriceCentsintegerrequiredBase/daily price in cents
pricingTemplateIDstring | nullPricing template ID for tiers. Omit on updates unless changing pricing.
categoryIDstring | nullCategory ID. Omit on updates unless changing category.
companyIDstringrequiredupdatedAtnumberrequiredarchivedbooleanrequiredhiddenFromBrowsebooleanDefault:falseslugstring | nullsortOrdernumber | nullsiteTemplatePageIDstring | nullWebsite product template page. Null uses the default.
Response
application/json
JSON result for this operation.
object
{}