Order Data Reference
The Order event monitors the progress of a patient’s order, from creation and payment to fulfillment and shipping. Its payload contains all the relevant information about the order.
Order Event Payload
The payload below is a representation of an Order event trigger.
The payload is based on the order.created event, but it is relevant for all order-based trigger events. See the Workflow Events/Triggers article for a full list of available events.
{
"_id": "7893efc2581fe0505d48c681",
"organization": "clinic_x",
"id": 9876,
"customer": {
"_id": "7820cf7b9fdd8c7aae179818",
"email": "janedoe@email.com",
"phone": "+15551234567",
"firstName": "Jane",
"lastName": "Doe"
},
"status": "shipped",
"statusHistory": [],
"source": "checkout",
"lineItems": [
{
"name": "Health Supplement (4-week)",
"subLabel": "Billed every 4 weeks",
"productId": "778e289d7ea1698a8757aa44",
"price": 199,
"visitFee": 0,
"shippingFee": 0,
"listPrice": 199,
"discount": {
"amount": 199,
"reductionAmount": 50,
"reductionType": "percent",
"type": "coupon",
"referenceId": "SAVE50NOW"
},
"quantity": 1,
"isSubscription": true,
"type": "physical",
"requirements": [
{
"type": "qnr",
"key": "intake_form"
},
{
"type": "qnr",
"key": "health_history"
},
{
"type": "qnr",
"key": "photo_id"
},
{
"type": "qnr",
"key": "selfie_photo"
}
],
"extras": {
"pharmacies": {
"CityCentralPharmacy ID": "XYZ123456ABCDEF7890"
},
"excludeInjectionKit": false,
"GotoPharmacy": false,
"bigcommerceId": null,
"stripePriceId": null,
"drugName": "CityCentral Health Supplement 4 wk starter 10mg",
"includeInjectionKit": [],
"categories": ["supplements"],
"delayedCaptureAmount": 0,
"giftCardValue": 0,
"giftCardRestrictions": {
"products": []
}
}
],
"shippingAddress": {
"address1": "123 Main Street",
"address2": "Apt 5",
"city": "Anytown",
"provinceCode": "NY",
"postalCode": "10001",
"countryCode": "US"
},
"coupon": "SAVE50NOW",
"invoices": [],
"totalAmount": 99.50,
"discountAmount": 99.50,
"baseAmount": 199,
"requirements": [],
"version": 3,
"isDeleted": false,
"creditUsedAmount": 0,
"postPurchaseCredit": 0,
"payment": {
"status": "paid",
"paymentId": "ch_3TDrOWHDL5kIHsFFw2uV5P",
"gateway": "stripe",
"amount": 99.50,
"refundAmount": 99.50
},
"totalInsuranceAmount": 0,
"isFirstOrder": false,
"transferOut": false,
"giftCardUsedAmount": 0,
"createdBy": "customer",
"createdAt": "2024-07-25T10:00:00.000Z",
"updatedAt": "2024-07-25T10:05:00.000Z",
"__v": 1
"assignedTo": {
"_id": "6823w2d85r49ba01b19f12ff",
"username": "CityCentral-pharmacy@portals.care",
"firstName": "CityCentral",
"lastName": "Pharmacy"
}
}Order Object Properties
The table below describes the parameters of the payload.
Was this helpful?
More in Trigger Events Payloads
Message Data ReferencePrescription Data ReferenceCart Data ReferenceSubscription Data ReferenceStill need help? Ask the team