Get an event
/developer/v1/event/{event_id}/get/documentReturns one event. An event is thin: it holds a type and ids, never the object itself, so
fetch the object with your API key. An event that does not exist, belongs to another company
or mode, or is of a type your key's scopes do not allow answers not_found.
Path parameters
event_idstringrequiredThe ID of the event, such as
evt_....
Response 200
createdstring (date-time)requiredWhen it happened, in UTC.
dataEventDatarequiredThe kind and ids of the object it happened to. It never holds the object itself.
Show child attributesHide child attributes
bookingstringnullableThe booking the object belongs to. Present on report events.
connectionstringnullableThe connection the object belongs to. Only present when it applies.
customerstringnullableThe customer the object belongs to. Present on order events, and on the connection events of a meals connection.
idstringrequiredThe ID of that object. Fetch the object with your API key.
objectenumrequiredThe kind of object the event is about:
connection,booking,report,orderorping.connectionbookingreportorderping
orderstringnullableThe order the object belongs to. Only present when it applies.
patientstringnullableThe patient the object belongs to. Present on booking and report events, and on the connection events of a care connection.
reportstringnullableThe report the object belongs to. Only present when it applies.
idstringrequiredThe ID of the event.
modeenumrequiredtestfor the sandbox,prodfor production.testprod
typeenumrequiredWhat happened, such as
report.signed.connection.approvedconnection.declinedconnection.revokedbooking.createdbooking.canceledreport.signedorder.createdorder.paidorder.fulfilledorder.shippedorder.deliveredorder.refundedorder.canceledping
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
404 | not_found | The requested resource was not found. |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |