The order.placed
webhook is triggered when a patient places an order via Fullscript.com.
Scopes needed: | patients:order_history |
Event payload: | a subset of the order object |
"event_payload": {
"event": {
"id": "x5xxxxx8-92x7-4xxx-9x0x-345x404x94x1",
"type": "order.placed",
"created_at": "2018-10-16T04:00:00.000Z",
"clinic_id": "xx7x357x-9x36-xxxx-x553-7x3xx398xxx",
"data": {
"id": "391xx4xx-67x5-44x2-8x2x-8886x20x083x",
"order_number": "R000000000",
"completed_at": "2018-03-02T13:26:02.000-05:00",
"treatment_plan_ids": [
"xx45x0xx-x840-41xx-9922-98xx6001507x"
],
"patient_id": "x1x0196x-5615-4874-xxe4-48x459180x09",
"line_items": [
{
"variant_id": "xx2688x2-4303-4278-xx73-x7083x6146x1",
"quantity": 3
}
]
}
}
}