Developers

Search the docs

Search guides and headings.

Get an event

GET/developer/v1/event/{event_id}/get/document
No scope needed

Returns 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_idstringrequired

    The ID of the event, such as evt_....

Response 200

  • createdstring (date-time)required

    When it happened, in UTC.

  • dataEventDatarequired

    The kind and ids of the object it happened to. It never holds the object itself.

    Show child attributesHide child attributes
    • bookingstringnullable

      The booking the object belongs to. Present on report events.

    • connectionstringnullable

      The connection the object belongs to. Only present when it applies.

    • customerstringnullable

      The customer the object belongs to. Present on order events, and on the connection events of a meals connection.

    • idstringrequired

      The ID of that object. Fetch the object with your API key.

    • objectenumrequired

      The kind of object the event is about: connection, booking, report, order or ping.

      • connection
      • booking
      • report
      • order
      • ping
    • orderstringnullable

      The order the object belongs to. Only present when it applies.

    • patientstringnullable

      The patient the object belongs to. Present on booking and report events, and on the connection events of a care connection.

    • reportstringnullable

      The report the object belongs to. Only present when it applies.

  • idstringrequired

    The ID of the event.

  • modeenumrequired

    test for the sandbox, prod for production.

    • test
    • prod
  • typeenumrequired

    What happened, such as report.signed.

    • connection.approved
    • connection.declined
    • connection.revoked
    • booking.created
    • booking.canceled
    • report.signed
    • order.created
    • order.paid
    • order.fulfilled
    • order.shipped
    • order.delivered
    • order.refunded
    • order.canceled
    • ping

Errors

Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.

jsonError response
{
  "error": {
    "code": "not_found",
    "message": "The object does not exist.",
    "request_id": "req_0123456789abcdef0123456789abcdef"
  }
}
StatusCodeMeaning
401invalid_api_keyThe API key is missing or not valid.
403company_archivedThis company is archived.
403company_not_liveThe company must be live to use prod keys.
403company_suspendedThis company is suspended.
404not_foundThe requested resource was not found.
429rate_limitedToo many requests. Wait before calling again.
500internal_errorSomething went wrong on our side. Please try again later.
502upstream_errorA Nurish'd service could not complete the request.
503upstream_unavailableA Nurish'd service is unavailable. Please try again later.
504upstream_timeoutA Nurish'd service did not answer in time. Please try again.

All error codes and what to do about them