Setting this to true will publish any historic events for the prescription if the Subscription is created after the prescription already has events logged.
Intake API (2024-12-10)
This API allows prescribers to send new prescriptions to Gifthealth to be filled. This API is intended only for use by prescribers and their software vendors.
In order to use this API, you must have an active agreement and/or attestation with Gifthealth. If you are interested in using this API, please contact Gifthealth.
Events
Events allow you to receive updates about prescriptions as they move through the dispensing process.
When an important part of the dispensing process happens for a prescription, we publish an Event to the event feed if there is a Subscription record with matching demographic and prescription information (termed PrescriptionIdentity). You don't need to worry about creating subscriptions if you use our Intake API to send prescriptions to Gifthealth. We automatically create subscriptions for you.
The events endpoint is stateless, and assumes a single consumer. Events are not removed from the events endpoint when they are read.
Events currently remain visible in the events endpoint indefinitely, but this may change in the future. Design your system with the understanding that event availability has a limited timeframe.
You are responsible for tracking the iterator value as you process items from the queue. You can replay events as needed by resetting the iterator value to an earlier value.
Subscriptions
Events are published to your events endpoint when they match a Subscription. Subscriptions are created in one of two ways:
- Subscriptions are automatically created for prescriptions sent to Gifthealth through the Intake API.
- Subscriptions can be created for prescriptions received via fax or eRx using these endpoints. You are responsible for matching Gifthealth events to your own prescription records using the prescription's
PrescriptionIdentityattributes.
Details are used to match your prescriptions to Gifthealth prescriptions. This information will be included and sent back to you for all events so you can match up the events to scripts in your system.
Unique identifier for the eRx sent to Gifthealth. Although optional, including this value allows for a more exact match between Gifthealth events and your prescriptions.
10-digit National Provider Identifier (NPI) for the prescriber.
- https://app.gifthealth.com/intake_api/2024-12-10/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://{defaulthost}/intake_api/2024-12-10/subscriptions' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"subscription": {
"backfill_previous_events": true,
"prescription_identity": {
"erx_message_id": "123456789",
"patient_first_name": "Todd",
"patient_last_name": "Smith",
"patient_state": "CA",
"patient_dob": "1980-01-01",
"prescriber_npi": "123231321",
"written_date": "2025-02-25",
"drug_ndc": "1234567890"
}
}
}'{ "subscription": { "id": "ca101492-50c0-4c2f-9014-2dd926183f75", "api_version": "2024-12-10", "backfill_previous_events": true, "cancelled_at": null, "prescription_identity": { … } } }
- https://app.gifthealth.com/intake_api/2024-12-10/subscriptions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://{defaulthost}/intake_api/2024-12-10/subscriptions/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "subscription": { "id": "3d839a57-ce1d-47f3-b8f3-3ebfc74601c2", "api_version": "2024-12-10", "backfill_previous_events": true, "cancelled_at": null, "prescription_identity": { … } } }
- https://app.gifthealth.com/intake_api/2024-12-10/subscriptions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://{defaulthost}/intake_api/2024-12-10/subscriptions/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "subscription": { "id": "3d839a57-ce1d-47f3-b8f3-3ebfc74601c2", "api_version": "2024-12-10", "backfill_previous_events": true, "cancelled_at": "2024-12-09T00:00:00Z", "prescription_identity": { … } } }