Update Customer
Update a customer by ID. Include only fields you want to change; omit the rest. Empty strings, null, and 0 are ignored so they cannot wipe existing values. App connections need the booking:write or inventory:write scope.
curl -X POST "https://dash.lockii.app/api/v1/customer/{id}" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"lastName": "string",
"email": "string",
"phone": "string",
"phoneCode": "string",
"address": "string",
"city": "string",
"state": "string",
"zip": "string",
"country": "string",
"companyID": "string",
"createdAt": 0,
"updatedAt": 0,
"stripeCustomerID": "string",
"verification": "string",
"identityVerificationID": "string",
"identityLink": "string",
"identityExpiresAt": 0,
"blocked": true,
"blockedAt": 0,
"blockedReason": "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
idstringpathrequiredCustomer ID
Body
namestringCustomer first name Omit to leave unchanged.
lastNamestringCustomer last name Omit to leave unchanged.
emailstringCustomer email address Omit to leave unchanged.
phonestringCustomer phone number Omit to leave unchanged.
phoneCodestringPhone country/area code Omit to leave unchanged.
addressstringStreet address Omit to leave unchanged.
citystringCity Omit to leave unchanged.
statestringState, region, or province Omit to leave unchanged.
zipstringPostal/zip code Omit to leave unchanged.
countrystringCountry Omit to leave unchanged.
companyIDstringCompany ID. Defaults to the authenticated user's company. Omit to leave unchanged.
createdAtnumberUnix ms. Defaults to now. Omit to leave unchanged.
updatedAtnumberUnix ms. Defaults to now. Omit to leave unchanged.
stripeCustomerIDstringStripe customer ID Omit to leave unchanged.
verificationstring | nullOmit to leave unchanged.
identityVerificationIDstring | nullOmit to leave unchanged.
identityLinkstring | nullOmit to leave unchanged.
identityExpiresAtnumber | nullOmit to leave unchanged.
blockedbooleanOmit to leave unchanged.
blockedAtnumber | nullOmit to leave unchanged.
blockedReasonstring | nullOmit to leave unchanged.
Response
JSON result for this operation.
{}