The Sandbox Environment
Sandbox Partners API Resource Server Details
Host: | https://partners.sandbox.honeybeehealth.com |
Sandbox Authentication
The sandbox environment is intended to help a partner get up and running. Only access tokens created on the Sandbox Authorization Server are authorized to be used on the Sandbox Partners API Resource Server.
Sandbox-Only API Endpoints
Some API endpoints are only available in the Sandbox Environment. For example, the GET /simulate
API endpoint allows you to request that a webhook event be sent to your webhook URL.
- Webhook Event Simulations (POST /simulate)
Please note that only RX_RECEIVED event simulations are available via this API endpoint at this time.
For additional information on webhooks that can be configured with the Honeybee Health Partners API, please see Events.
Example Request Body
{"simulation_type"=>"event",
"simulation"=>
{"event_type"=>"RX_RECEIVED",
"medication_requests"=>
[{"prescriber_name"=>"Dr. Jane Foster",
"drug_name"=>"SILDENAFIL 20MG TABLET",
"ndc"=>"59762003301",
"sig_text"=>"Take 1 tablet daily",
"written_qty"=>90,
"refills_left"=>2,
"expire_date"=>"2025-06-12T14:15:22Z",
"drug_schedule"=>4}]}}
Example Request
curl --request POST \
--url partners.sandbox.honeybeehealth.com/v1/simulate \
--header 'Accept: application/json' \
--header 'Authorization: Bearer wa-S061u5MPicct0wIASHYJzTHhRG922RYEt9MXoimk' \
--header 'content-type: application/json' \
--data '{"simulation_type":"event","simulation":{"event_type":"RX_RECEIVED","medication_requests":[{"prescriber_name":"Dr. Jane Foster","drug_name":"SILDENAFIL 20MG TABLET","ndc":"59762003301","sig_text":"Take 1 tablet daily","written_qty":90,"refills_left":2,"expire_date":"2025-06-12T14:15:22Z","drug_schedule":4}]}}'
--verbose
POST /v1/simulate HTTP/1.1
Authorization: Bearer wa-S061u5MPicct0wIASHYJzTHhRG922RYEt9MXoimk
Host: partners.sandbox.honeybeehealth.com
Accept: application/json
Content-Type: application/json
Cache-Control: no-cache
Example Response
HTTP/1.1 202 Accepted
Content-Type: application/json
Cache-Control: no-cache
X-Request-Id: 81350852-051d-4b90-8a21-a8b2636e8107
X-Honeybee-Signature: Y0wIASHYJzTHhRG922RYEt9MX