{"info":{"_postman_id":"7461854f-d2de-452f-97a3-de8cb05298e6","name":"SiCompounding <> Refill API","description":"<html><head></head><body><p>This API is designed to connect IVR systems to SiCompounding and create Prescription refill requests over the phone when a patient calls the pharmacy.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7588236","collectionId":"7461854f-d2de-452f-97a3-de8cb05298e6","publishedId":"2sAYkAQhQS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-14T14:40:03.000Z"},"item":[{"name":"authentication","item":[{"name":"getToken","id":"33a37fff-ed86-4789-9f8d-26b904cf41df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clientID\":\"77bb5780e40c203b693af2a640394251\",\n    \"clientSecret\":\"1cd95a4c75513d65169eae7aea69216d\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.sicompounding.cloud/V2/getToken","urlObject":{"path":["V2","getToken"],"host":["https://api-dev.sicompounding.cloud"],"query":[],"variable":[]}},"response":[{"id":"e284f983-37d4-40d0-8801-969f130d3cf8","name":"getToken","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clientID\":\"77bb5780e40c203b693af2a640394251\",\n    \"clientSecret\":\"1cd95a4c75513d65169eae7aea69216d\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.sicompounding.cloud/V2/getToken"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": 0,\r\n    \"msg\": \"success\",\r\n    \"token\": \"d7f8dd9989aa3f528696da3d651cb620\"\r\n}"}],"_postman_id":"33a37fff-ed86-4789-9f8d-26b904cf41df"},{"name":"getHealtStatus","id":"f00c897e-665f-4bb4-9bc1-83379bba60c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.sicompounding.cloud/V2/getHealthStatus","urlObject":{"path":["V2","getHealthStatus"],"host":["https://api-dev.sicompounding.cloud"],"query":[],"variable":[]}},"response":[{"id":"d599a01c-5ca3-4b10-8fcf-c006557ab81d","name":"getHealtStatus","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-dev.sicompounding.cloud/V2/getHealthStatus"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"status\": \"UP\"\r\n}"}],"_postman_id":"f00c897e-665f-4bb4-9bc1-83379bba60c8"}],"id":"0c61c710-525d-405e-a29f-aff4f33ed3d3","description":"<p>Authentication requires a Client ID and a Client Secret to obtain a Token that will use in all the requests.</p>\n","_postman_id":"0c61c710-525d-405e-a29f-aff4f33ed3d3"},{"name":"patient","item":[{"name":"getPatient","id":"0d86698b-38ff-4e04-9eb4-f9e5b9cdbb1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\",\n    \"request\":{\n        \"patient_id\":\"63838494111328260\"\n    }\n}"},"url":"https://api-dev.sicompounding.cloud/V2/getPatient","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\",\n    \"request\":{\n        \"patient_id\":\"63782945725317779\"\n    }\n}\n\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\",\n    \"request\":{\n        \"phone_number\":\"(111) 235-2569\"\n    }\n}\n\n</code></pre>","urlObject":{"path":["V2","getPatient"],"host":["https://api-dev.sicompounding.cloud"],"query":[],"variable":[]}},"response":[{"id":"5701b2ae-1750-481c-8d49-0958e1a8ae4f","name":"getPatient","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\",\n    \"request\":{\n        \"patient_id\":\"63838494111328260\"\n    }\n}"},"url":"https://api-dev.sicompounding.cloud/V2/getPatient"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"0d86698b-38ff-4e04-9eb4-f9e5b9cdbb1f"}],"id":"003f718d-3fa7-4686-ab15-fab4fb251600","description":"<p>The <strong>getPatient</strong> endpoint can search a patient record by a \"patient_id\" or \"patient_phone\".</p>\n","_postman_id":"003f718d-3fa7-4686-ab15-fab4fb251600"},{"name":"prescription","item":[{"name":"getPrescription","id":"1844b580-5d92-4258-9f8c-cb76e01d68d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\",\n    \"request\":{\n        \"rx_number\":\"1001117969\"\n    }\n}"},"url":"https://api-dev.sicompounding.cloud/V2/getPrescription","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"token\":\"20dba408eef542b67d96b62d015b0f21\",\n    \"request\":{\n        \"prescription_id\":\"63782347460273846\"\n    }\n}\n\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"token\":\"20dba408eef542b67d96b62d015b0f21\",\n    \"request\":{\n        \"patient_id\":\"63783646115317780\"\n    }\n}\n\n</code></pre>","urlObject":{"path":["V2","getPrescription"],"host":["https://api-dev.sicompounding.cloud"],"query":[],"variable":[]}},"response":[{"id":"00bf9989-5001-4bd3-81f3-edf82bcf203b","name":"getPrescription","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\",\n    \"request\":{\n        \"rx_number\":\"1001117969\"\n    }\n}"},"url":"https://api-dev.sicompounding.cloud/V2/getPrescription"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": 0,\r\n    \"msg\": \"success\",\r\n    \"data\": {\r\n        \"patient\": {\r\n            \"patient_id\": 63841550598335501,\r\n            \"first_name\": \"Test\",\r\n            \"last_name\": \"Primary\",\r\n            \"gender\": \"Male\",\r\n            \"phone_number\": \"9622850607\",\r\n            \"external_patient_id\": \"\"\r\n        },\r\n        \"total_prescriptions\": 1,\r\n        \"prescriptions\": [\r\n            {\r\n                \"prescription_id\": 63841558324288628,\r\n                \"formula_id\": 6383184943340979,\r\n                \"refills_remaining\": 0,\r\n                \"rx_number\": 1001117969,\r\n                \"refills\": 0,\r\n                \"days_authorized\": 50,\r\n                \"date_written\": \"01/22/2024\",\r\n                \"date_expire\": \"01/21/2025\",\r\n                \"status\": \"Inactive\",\r\n                \"external_prescription_id\": \"\",\r\n                \"status_ivr\": \"no_refills\"\r\n            }\r\n        ]\r\n    }\r\n}"}],"_postman_id":"1844b580-5d92-4258-9f8c-cb76e01d68d2"}],"id":"a7799570-9573-4b2b-9085-90c054b0f781","_postman_id":"a7799570-9573-4b2b-9085-90c054b0f781","description":""},{"name":"refill","item":[{"name":"createRefillRequest","id":"3004980e-cbdb-4a8f-90f7-58841a3106e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\",\n    \"request\":{\n        \"patient_id\": \"100749-679\",\n        \"external_location_id\": \"S123456\",\n        \"fulfillment_method\": \"delivery\",\n        \"prescriptions\": [\n            {\n                \"rx_number\": \"Rx123456\",\n                \"drug_name\": \"Lisinopril 20mg tablet\",\n                \"rx_status\": \"too_soon\",\n                \"rx_status_message\": \"Refill out of stock to refill\"\n            },\n            {\n                \"rx_number\": \"Rx123457\",\n                \"drug_name\": \"Lisinopril 40mg tablet\",\n                \"rx_status\": \"discontinued\",\n                \"rx_status_message\": \"Refill out of stock to refill111\"\n            }\n        ],\n        \"ingress_method\": \"other\",\n        \"notes\": \"I need a new prescription, can you call the doctor?\",\n        \"promise_time\": \"2020-12-05T00:00:00.000Z\",\n        \"external_link\": \"https://www.example.com/\"\n    }\n}"},"url":"https://api-dev.sicompounding.cloud/V2/createRefillRequest","urlObject":{"path":["V2","createRefillRequest"],"host":["https://api-dev.sicompounding.cloud"],"query":[],"variable":[]}},"response":[{"id":"03025281-6680-4637-8ad0-a1c6b9931cb7","name":"createRefillRequest","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\":\"e972271fdc578e408387e42cf6ca11ca\",\n    \"request\":{\n        \"patient_id\": \"100749-679\",\n        \"external_location_id\": \"S123456\",\n        \"fulfillment_method\": \"delivery\",\n        \"prescriptions\": [\n            {\n                \"rx_number\": \"Rx123456\",\n                \"drug_name\": \"Lisinopril 20mg tablet\",\n                \"rx_status\": \"too_soon\",\n                \"rx_status_message\": \"Refill out of stock to refill\"\n            },\n            {\n                \"rx_number\": \"Rx123457\",\n                \"drug_name\": \"Lisinopril 40mg tablet\",\n                \"rx_status\": \"discontinued\",\n                \"rx_status_message\": \"Refill out of stock to refill111\"\n            }\n        ],\n        \"ingress_method\": \"other\",\n        \"notes\": \"I need a new prescription, can you call the doctor?\",\n        \"promise_time\": \"2020-12-05T00:00:00.000Z\",\n        \"external_link\": \"https://www.example.com/\"\n    }\n}"},"url":"https://api-dev.sicompounding.cloud/V2/createRefillRequest"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": 0,\r\n    \"msg\": \"success\",\r\n    \"data\": {\r\n        \"refill_notification_id\": 638417871538605,\r\n        \"json_request\": {\r\n            \"patient_id\": \"100749-679\",\r\n            \"external_location_id\": \"S123456\",\r\n            \"fulfillment_method\": \"delivery\",\r\n            \"prescriptions\": [\r\n                {\r\n                    \"rx_number\": \"Rx123456\",\r\n                    \"drug_name\": \"Lisinopril 20mg tablet\",\r\n                    \"rx_status\": \"too_soon\",\r\n                    \"rx_status_message\": \"Refill out of stock to refill\"\r\n                },\r\n                {\r\n                    \"rx_number\": \"Rx123457\",\r\n                    \"drug_name\": \"Lisinopril 40mg tablet\",\r\n                    \"rx_status\": \"discontinued\",\r\n                    \"rx_status_message\": \"Refill out of stock to refill111\"\r\n                }\r\n            ],\r\n            \"ingress_method\": \"other\",\r\n            \"notes\": \"I need a new prescription, can you call the doctor?\",\r\n            \"promise_time\": \"2020-12-05T00:00:00.000Z\",\r\n            \"external_link\": \"https://www.example.com/\"\r\n        }\r\n    }\r\n}"}],"_postman_id":"3004980e-cbdb-4a8f-90f7-58841a3106e7"}],"id":"17d64335-4058-4e7d-a812-ae2d5ed4e4aa","_postman_id":"17d64335-4058-4e7d-a812-ae2d5ed4e4aa","description":""}],"event":[{"listen":"prerequest","script":{"id":"6ca51540-08b1-48f4-84be-4fc65528e012","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c1117ff4-1c71-4042-8f20-9f80f805c8f9","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseURL","value":"https://api-dev.sicompounding.cloud"},{"key":"baseURL_LOCAL","value":"http://siapi.local"},{"key":"baseURL_DEV","value":"https://api-dev.sicompounding.cloud"},{"key":"baseURL_PROD","value":"https://api.sicompounding.cloud","type":"string"},{"key":"token","value":"e972271fdc578e408387e42cf6ca11ca","type":"string"}]}