API referenceCustomer
Create Customer
Create a customer in the current company. App connections need the booking:write or inventory:write scope.
POST
/customercurl -X POST "https://dash.lockii.app/api/v1/customer" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "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.
Body
application/json
idstringrequiredCustomer ID, usually customer_<uuid>
namestringCustomer first name
Default:lastNamestringCustomer last name
Default:emailstringCustomer email address
Default:phonestringCustomer phone number
Default:phoneCodestringPhone country/area code
Default:addressstringStreet address
Default:citystringCity
Default:statestringState, region, or province
Default:zipstringPostal/zip code
Default:countrystringCountry
Default:companyIDstringCompany ID. Defaults to the authenticated user's company.
createdAtnumberUnix ms. Defaults to now.
updatedAtnumberUnix ms. Defaults to now.
stripeCustomerIDstringStripe customer ID
Default:verificationstring | nullidentityVerificationIDstring | nullidentityLinkstring | nullidentityExpiresAtnumber | nullblockedbooleanblockedAtnumber | nullblockedReasonstring | null
Response
application/json
JSON result for this operation.
object
{}