Lead
Create a new lead
Creates a new lead. Either contactableByEmail or contactableByMobile need to be provided.
post/api/business/{businessId}/branch/{branchId}/leads
Request
- Base URLhttp://api-gateway-eu.phorest.com/third-party-api-server
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
businessIdstring required
branchIdstring required
Request body
Example request
{
"businessId": "Xf7saoBpuqy2t0RRIkBpXg",
"branchId": "hPfzdyamWjxp9GzYVUETRg",
"firstName": "John",
"lastName": "Doe",
"mobile": "123456789",
"email": "john.doe@example.com",
"source": "website signup",
"contactableByEmail": true,
"contactableByMobile": true,
"marketingOptIn": true,
"metaAdId": "123",
"note": "Some note up to 255 characters"
}Response
Lead created successfully
Example response
{
"success": true,
"message": "Lead created successfully"
}Changes
No recorded changes to this operation across all 2 revisions of this API.