{"info":{"_postman_id":"d224ca56-f66a-4161-a271-c79a6466aa36","name":"3rd Party","description":"<html><head></head><body><h2 id=\"overview\">Overview</h2>\n<p>The 3rd Party API collection is organized around REST architecture style. Our API has predictable resource-oriented URLs, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.</p>\n<h2 id=\"version\">Version</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Version</th>\n<th>Release Notes</th>\n<th>Date</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1.0</td>\n<td>Initial Release</td>\n<td>12/30/2020</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"authentication\">Authentication</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Auth token</td>\n<td>UUID</td>\n<td>Token provided by iLocal Box</td>\n</tr>\n<tr>\n<td>X-api-key</td>\n<td>UUID</td>\n<td>Secret Key required for authentication</td>\n</tr>\n</tbody>\n</table>\n</div><p>Authentication will be token based.</p>\n<h2 id=\"errors\">Errors</h2>\n<p>iLocalbox uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the&nbsp;2xx&nbsp;range indicate success. Codes in the&nbsp;4xx&nbsp;range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the&nbsp;5xx&nbsp;range indicate an error with Stripe's servers (these are rare).</p>\n<p>Some&nbsp;4xx&nbsp;errors that could be handled programmatically (e.g., a request is&nbsp;declined) include an&nbsp;error code&nbsp;that briefly explains the error reported.</p>\n<h2 id=\"http-status-code-summary\">HTTP STATUS CODE SUMMARY</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Status Code</th>\n<th>Status Message</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td>Everything worked as expected.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n<td>The request was unacceptable, often due to missing a required parameter.</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>No valid API key provided.</td>\n</tr>\n<tr>\n<td>402</td>\n<td>Request Failed</td>\n<td>The parameters were valid but the request failed.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n<td>The API key doesn't have permissions to perform the request.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>The requested resource doesn't exist.</td>\n</tr>\n<tr>\n<td>409</td>\n<td>Conflict</td>\n<td>The request conflicts with another request.</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests</td>\n<td>Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.</td>\n</tr>\n<tr>\n<td>500, 502, 503, 504</td>\n<td>Server Errors</td>\n<td>Something went wrong.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"field-definitions\">Field Definitions</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Client Identifier</td>\n<td>UUID</td>\n<td>Identifies the account expecting the order</td>\n</tr>\n<tr>\n<td>Vendor Identfier</td>\n<td>UUID</td>\n<td>Identifies the provider of the data</td>\n</tr>\n<tr>\n<td>Order id</td>\n<td>Number</td>\n<td>Vendor order number associated with the order</td>\n</tr>\n<tr>\n<td>Order Time Stamp</td>\n<td>Date / Time</td>\n<td>Date the order was received</td>\n</tr>\n<tr>\n<td>Store NCPDPId</td>\n<td>Number</td>\n<td>The NCPDPId associated with the account</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3635870","collectionId":"d224ca56-f66a-4161-a271-c79a6466aa36","publishedId":"TVzLnzQa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"155E67","highlight":"4BA686"},"publishDate":"2021-01-05T05:11:45.000Z"},"item":[{"name":"Create Order","id":"812d4f52-9d7d-48d6-afb5-d3e1bcad0aee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"authToken","value":"{token}","type":"text"},{"key":"x-api-key","value":"{X-API key}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client_identifier\": \"453f39de-d5cb-4b2f-9747-f2149d171d0f\",\n    \"vendor_identifier\": \"bf62aa9b-5e8e-4a55-a309-a43475b54a0d\",\n    \"order_id\": \"30011\",\n    \"order_timestamp\": \"2020-12-21 16:40:00.416+00\",\n    \"store_ncpdp\": \"Store123\",\n    \"patient\": {\n        \"patient_id\": \"230023\",\n        \"first_name\": \"Michael\",\n        \"last_name\": \"Jordan\",\n        \"gender\": \"male\",\n        \"dob\": \"11/11/2011\",\n        \"email\": \"email@email.com\"\n        \"sms_phone\": \"8009947351\"\n        \"address_line_1\": \"123 Main\",\n        \"address_line_2\": \"\",\n        \"city\": \"Palo ALto\",\n        \"state\": \"CA\",\n        \"zip\": \"60610\"\n    },\n    \"family_care_patients\": [\n        {\n            \"patient_id\": \"\",\n            \"dob\": \"\",\n            \"first_name\": \"\",\n            \"last_name\": \"\"\n        },\n        {\n            \"patient_id\": \"\",\n            \"dob\": \"\",\n            \"first_name\": \"\",\n            \"last_name\": \"\"\n        }\n    ],\n    \"order_details\": [\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX230041\",\n            \"name\": \"Tylenol 2mg\",\n            \"ndc\": \"123-4567\",\n            \"prescription_txn_id\": \"90800\",\n            \"fill_number\": \"001\",\n            \"prescription_id\": \"RXID-230014\",\n            \"amount_due\": \"100.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        },\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX2300024\",\n            \"name\": \"Lipitor 10mg\",\n            \"ndc\": \"5644-789\",\n            \"prescription_txn_id\": \"90900\",\n            \"fill_number\": \"002\",\n            \"prescription_id\": \"RXID-230042\",\n            \"amount_due\": \"15.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        },\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX2300803\",\n            \"name\": \"Amoxicillan 2ml\",\n            \"ndc\": \"568-9874\",\n            \"prescription_txn_id\": \"10101\",\n            \"fill_number\": \"003\",\n            \"prescription_id\": \"RXID-230083\",\n            \"amount_due\": \"15.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stageapi.localbox.net/orders","description":"<p>The \"create order\" API is designed to enable authenticated 3rd Party providers with a simple way to provide patient and prescription information to be used in the delivery process or kiosk pick up.</p>\n","urlObject":{"protocol":"https","path":["orders"],"host":["stageapi","localbox","net"],"query":[],"variable":[]}},"response":[{"id":"2b20f0db-6831-41cd-b04e-f175b43b097f","name":"Create order-Error","originalRequest":{"method":"POST","header":[{"key":"authToken","value":"{auth token}","type":"text"},{"key":"x-api-key","value":"{x api key}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client_identifier\": \"71ef3sds9de-d5cb-4b2f-9747-f2149d171d0f\",\n    \"vendor_identifier\": \"bf62aa9b-5e8e-4a55-a309-a43475b54a0d\",\n    \"order_id\": \"30011\",\n    \"order_timestamp\": \"2020-12-21 16:40:00.416+00\",\n    \"store_ncpdp\": \"Store123\",\n    \"patient\": {\n        \"patient_id\": \"230023\",\n        \"first_name\": \"Michael\",\n        \"last_name\": \"Jordan\",\n        \"gender\": \"male\",\n        \"dob\": \"11/11/2011\",\n        \"email\": \"email@email.com\",\n        \"sms_phone\": \"8009947351\",\n        \"address_line_1\": \"123 Main\",\n        \"address_line_2\": \"\",\n        \"city\": \"Palo ALto\",\n        \"state\": \"CA\",\n        \"zip\": \"60610\"\n    },\n    \"family_care_patients\": [\n        {\n            \"patient_id\": \"\",\n            \"dob\": \"\",\n            \"first_name\": \"\",\n            \"last_name\": \"\"\n        },\n        {\n            \"patient_id\": \"\",\n            \"dob\": \"\",\n            \"first_name\": \"\",\n            \"last_name\": \"\"\n        }\n    ],\n    \"order_details\": [\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX230041\",\n            \"name\": \"Tylenol 2mg\",\n            \"ndc\": \"123-4567\",\n            \"prescription_txn_id\": \"90800\",\n            \"fill_number\": \"001\",\n            \"prescription_id\": \"RXID-230014\",\n            \"amount_due\": \"100.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        },\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX2300024\",\n            \"name\": \"Lipitor 10mg\",\n            \"ndc\": \"5644-789\",\n            \"prescription_txn_id\": \"90900\",\n            \"fill_number\": \"002\",\n            \"prescription_id\": \"RXID-230042\",\n            \"amount_due\": \"15.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        },\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX2300803\",\n            \"name\": \"Amoxicillan 2ml\",\n            \"ndc\": \"568-9874\",\n            \"prescription_txn_id\": \"10101\",\n            \"fill_number\": \"003\",\n            \"prescription_id\": \"RXID-230083\",\n            \"amount_due\": \"15.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stageapi.localbox.net/orders"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"ErrorCode\": 409,\n            \"ErrorMessage\": \"prescription_txn_id 90800 is already exists.\"\n        },\n        {\n            \"ErrorCode\": 409,\n            \"ErrorMessage\": \"prescription_txn_id 90900 is already exists.\"\n        },\n        {\n            \"ErrorCode\": 409,\n            \"ErrorMessage\": \"prescription_txn_id 10101 is already exists.\"\n        }\n    ]\n}"},{"id":"b6b2c0ce-78da-44de-ba60-fca158b81e8b","name":"Create Order-Success","originalRequest":{"method":"POST","header":[{"key":"authToken","value":"{Auth Token)","type":"text"},{"key":"x-api-key","value":"{x-api key}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client_identifier\": \"17sde-d5cb-4b2f-9747-f2149d171d0f\",\n    \"vendor_identifier\": \"bf62aa9b-5e8e-4a55-a309-a43475b54a0d\",\n    \"order_id\": \"30011\",\n    \"order_timestamp\": \"2020-12-21 16:40:00.416+00\",\n    \"store_ncpdp\": \"Store123\",\n    \"patient\": {\n        \"patient_id\": \"230023\",\n        \"first_name\": \"Michael\",\n        \"last_name\": \"Jordan\",\n        \"gender\": \"male\",\n        \"dob\": \"11/11/2011\",\n        \"email\": \"email@email.com\",\n        \"sms_phone\": \"8009947351\",\n        \"address_line_1\": \"123 Main\",\n        \"address_line_2\": \"\",\n        \"city\": \"Palo ALto\",\n        \"state\": \"CA\",\n        \"zip\": \"60610\"\n    },\n    \"family_care_patients\": [\n        {\n            \"patient_id\": \"\",\n            \"dob\": \"\",\n            \"first_name\": \"\",\n            \"last_name\": \"\"\n        },\n        {\n            \"patient_id\": \"\",\n            \"dob\": \"\",\n            \"first_name\": \"\",\n            \"last_name\": \"\"\n        }\n    ],\n    \"order_details\": [\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX230041\",\n            \"name\": \"Tylenol 2mg\",\n            \"ndc\": \"123-4567\",\n            \"prescription_txn_id\": \"90800\",\n            \"fill_number\": \"001\",\n            \"prescription_id\": \"RXID-230014\",\n            \"amount_due\": \"100.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        },\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX2300024\",\n            \"name\": \"Lipitor 10mg\",\n            \"ndc\": \"5644-789\",\n            \"prescription_txn_id\": \"90900\",\n            \"fill_number\": \"002\",\n            \"prescription_id\": \"RXID-230042\",\n            \"amount_due\": \"15.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        },\n        {\n            \"patient_id\": \"230023\",\n            \"rx_num\": \"RX2300803\",\n            \"name\": \"Amoxicillan 2ml\",\n            \"ndc\": \"568-9874\",\n            \"prescription_txn_id\": \"10101\",\n            \"fill_number\": \"003\",\n            \"prescription_id\": \"RXID-230083\",\n            \"amount_due\": \"15.00\",\n            \"dispensed_qty\": \"10\",\n            \"expiry_date\": \"2022-11-11\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stageapi.localbox.net/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [],\n    \"client_identifier\": \"71ef39de-d5cb-4b2f-9747-f2149d171d0f\",\n    \"vendor_identifier\": \"bf62aa9b-5e8e-4a55-a309-a43475b54a0d\",\n    \"status\": \"ordered\",\n    \"order_id\": \"30011\",\n    \"overall_order_status\": \"\",\n    \"vendor_order_id\": \"30011\",\n    \"order_timestamp\": \"2020-12-21 16:40:00.416+00\"\n}"}],"_postman_id":"812d4f52-9d7d-48d6-afb5-d3e1bcad0aee"}]}