API referenceMarketplace Import
Marketplace Import
Create a pending Lockii booking from marketplace booking details. Matches or creates the customer, matches products/location where possible, logs the marketplace reference, and notifies staff to review the pending booking. App connections need the booking:write scope.
POST
/marketplace-importcurl -X POST "https://dash.lockii.app/api/v1/marketplace-import" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"marketplace": "Unknown marketplace",
"reference_url": "https://example.com",
"customer_name": "string",
"customer_email": "[email protected]",
"customer_phone": "string",
"pickup_datetime": 0,
"return_datetime": 0,
"location": "string",
"product_names": [
"string"
],
"notes": "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
marketplacestringDefault:Unknown marketplacereference_urlstring<uri>customer_namestringcustomer_emailstring<email>customer_phonestringpickup_datetimeany of | nullYYYY-MM-DD when the email has no clock time. YYYY-MM-DDTHH:mm in local time when it states one. Do not convert a date-only value to UTC midnight.
return_datetimeany of | nullYYYY-MM-DD when the email has no clock time. YYYY-MM-DDTHH:mm in local time when it states one. Do not convert a date-only value to UTC midnight.
locationstringproduct_namesany of | nullnotesstring
Response
application/json
JSON result for this operation.
object
{}