Overview:
The Developer API Integration can be used to ingest customer defined item lists collected by longer forms. This doc outlines the necessary data structure that must be adhered to in order to properly ingest this customer survey as part of the lead. This is an addendum to the main Developer API Integration payload.
Prerequisites:
- The Developer API must be configured. Please see main Developer API Integrations for more details.
- Payloads must have lead information and survey information, you can not submit survey information alone.
How to Debug Survey Processing:
Please see Debugging Inbound Leads - Link. Survey logs will be surfaced within the associated lead logs.
Overall Survey Structure:
"survey":[
{
"name": "Living Room",
"description": "Large room with fireplace.",
"items": [
{
"name": "Couch",
"description": "Gray upholstered three-piece couch.",
"take_count": 1,
"leave_count": 0,
"weight": 400,
"volume": 57,
"price": 10000
},
{
"name": "Yellow Chair",
"description": "Very scratched up.",
"take_count": 2,
"volume": 2000
},
{
"name": "Media Console",
"description": "Mid Mod",
"take_count": 1
}
]
},
{
"name": "Master Bedroom",
"description": "Straight back on the right",
"items": [
{
"name": "King bed frame",
"description": "from IKEA",
"take_count": 1
},
{
"name": "dressers",
"description": "from IKEA",
"take_count": 2
}
]
}
]
Property |
Data Type | Description |
"survey" | array of collection objects | Required - A collection is synonymous with a room and contains details about each location. Please see blow section for more details. |
Collection Object:
{
"name": "Living Room",
"description": "Large room with fireplace.",
"items": [
{
"name": "Couch",
"description": "Gray upholstered three-piece couch.",
"take_count": 1,
"leave_count": 0,
"weight": 400,
"volume": 57,
"price": 10000
},
{
"name": "Yellow Chair",
"description": "Very scratched up.",
"take_count": 2,
"volume": 2000
},
{
"name": "Media Console",
"description": "Mid Mod",
"take_count": 1
}
]
},
Property |
Data Type | Description |
"name" | string | Required - Each collection must have a name. |
"description" | string | Required - Please provide a description of the room or type of collection. |
"items" | array of item objects | Important - Must have at least 1 item in each collection object. |
Item Object:
{
"name": "Couch",
"description": "Gray upholstered three-piece couch.",
"take_count": 1,
"leave_count": 0,
"weight": 400,
"volume": 57,
"price": 10000
}
Property |
Data Type | Description |
"name" | string | Required - Each item must have a name. |
"description" | string | details on the item itself. |
"take_count" | integer | The number of these items being moved. |
"leave_count" | integer |
The number of these items NOT being moved. |
"weight" | integer |
The associated weight of the item. |
"volume" | integer |
The estimated volume of the item. |
"price" | integer |
The estimated cost of the item. |
Comments
0 comments
Please sign in to leave a comment.