Overview:
The Developer API - Add Survey endpoint can be used to ingest survey and inventory information and add them to existing projects. This can include both furniture and packing materials. This doc outlines the necessary data structure that must be adhered to in order to properly ingest them.
Prerequisites:
- Your website or system must be able to send a webhook (an automatic message) to our endpoint in valid JSON format with the header Content-Type: application/json.
- Your payloads must fit the JSON schema outlined in this doc.
How to Enable in Supermove:
- Go to Company Settings in Supermove
- Click Lead Providers (see screenshot above)
- Click the + Add Lead Provider button.
- Select Developer API - Add Survey endpoint from the list.
- Add a Name and Description for this endpoint.
- Note: You can configure multiple Developer API - Add Survey endpoints. The names and descriptions allow you tell them apart.
- Click Copy URL. This URL is unique to your company and to your account, all payloads sent to the endpoint will be associated with your Supermove account. No further API keys or organization identifiers are needed.
- Send Payloads to the URL. Please see below for an example payload and detailed information on each key and value.
How to Debug Lead Processing:
Please see Debugging Inbound Leads - Link
Processing Notes:
- Project UUID - This endpoint defaults to utilizing the project UUID if the payload contains both UUID and email.
- Customer Email - The customer email is used to access the most recent project associated with this customer. If multiple projects have been recently created, this can cause the survey information to be affiliated with unintended projects. Please try to leverage the Project UUID where possible.
- Only 1 survey can be added to projects via the lead provider portal - This includes any surveys included in the initial lead. Any additional surveys will cause a validation error in the logs.
Overall Structure:
{
"project_uuid": "cf67aa77-fc75-4735-b691-3d0efe26b435",
"customer_email": "john.smith@email.com",
"survey": [...] //Must conform to survey information. Full payload schema linked in article below.
}| Property | Data Type | Description |
|---|---|---|
| "project_uuid" | string | Conditionally Required - The projects Supermove UUID. Please see processing notes above for more information on how this values is utilized by this endpoint. |
| "customer_email" | string | Conditionally Required - The customer email. Please see processing notes above for more information on how this values is utilized by this endpoint. |
| "survey" | array of collections | Required - Must conform Survey specifications found in the Developer API - Survey JSON guide. |
Comments
0 comments
Please sign in to leave a comment.