Adding information about optional line items to API and Webhooks
April 17th, 2018 by Aleksej Ruckoj
PandaDoc API (Document Details endpoint) and Webhooks now returns information about optional line items.
Both optional and exclusive items (Multiple Choice Selection) are supported. You can find additional info about them here: https://support.pandadoc.com/hc/en-us/articles/360049576814-Pricing-table-2-0-Optional-items-and-editable-quantity.
"items": [
{
"id": "QpjVZugmvZGtDtJuCchLsc",
"sku": "001",
"qty": 1,
"name": "Painting",
"cost": "450",
"price": "500",
"description": "A painting",
"custom_fields": {
"custom": "custom text"
},
"custom_columns": {},
"subtotal": "500",
"options": {
"optional": true,
"optional_selected": true,
"multichoice_enabled": false
}
},
{
"id": "Bgf9UuwPZ9gSojgaGUh6rE",
"sku": "002",
"qty": 3,
"name": "Basket",
"cost": "85",
"price": "100",
"description": "A basket",
"custom_fields": {},
"custom_columns": {},
"subtotal": "300",
"options": {
"optional": true,
"optional_selected": false,
"multichoice_enabled": false
}
}
]
"items": [
{
"id": "QpjVZugmvZGtDtJuCchLsc",
"sku": "001",
"qty": 1,
"name": "Painting",
"cost": "450",
"price": "500",
"description": "A painting",
"custom_fields": {
"custom": "custom text"
},
"custom_columns": {},
"subtotal": "500",
"options": {
"optional": false,
"multichoice_enabled": true,
"multichoice_selected": true
}
},
{
"id": "Bgf9UuwPZ9gSojgaGUh6rE",
"sku": "002",
"qty": 3,
"name": "Basket",
"cost": "85",
"price": "100",
"description": "A basket",
"custom_fields": {},
"custom_columns": {},
"subtotal": "300",
"options": {
"optional": false,
"multichoice_enabled": true,
"multichoice_selected": false
}
}
]