{"info":{"_postman_id":"9efec4c5-4df1-42f3-b01d-79af1445e89b","name":"Lifepack API","description":"<html><head></head><body><h1 id=\"changelogs\">Changelogs</h1>\n<h2 id=\"2025-08-06\">2025-08-06</h2>\n<ul>\n<li><p>Add the following properties under the <code>dosage_instruction</code> object in the response of <code>GET /partner/v1/product/{productId}</code></p>\n<ul>\n<li><p><code>duration</code></p>\n</li>\n<li><p><code>duration_unit</code></p>\n</li>\n</ul>\n</li>\n<li><p>Add a new endpoint:<br>  <code>POST /partner/v2/prescription</code>This endpoint is similar to <code>v1</code>, but with a key difference in the <code>dosage_instruction</code> field format inside the <code>products</code> array:</p>\n<ul>\n<li><p>In <code>v1</code>, <code>dosage_instruction</code> is a string (e.g. <code>\"Take 1 tablet every 4 hours\"</code>).</p>\n</li>\n<li><p>In <code>v2</code>, <code>dosage_instruction</code> is a JSON object with the following structure:</p>\n</li>\n</ul>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{  \"dosage\": 1,  \"dose_unit\": \"tablet\",  \"frequency\": \"three times a day\",  \"timing\": \"after meal\",  \"duration\": 3,  \"duration_unit\": \"days\"}\n\n</code></pre>\n<p>This structured format in v2 allows better validation, parsing, and flexibility for downstream processing and rendering, especially for prescription PDFs and clinical decision support.</p>\n<h2 id=\"2025-07-21\">2025-07-21</h2>\n<ul>\n<li><p>Added the following new response parameters to the <code>GET Product List</code> endpoint:</p>\n<ul>\n<li><p><code>uom</code> — Unit of measurement for the product.</p>\n</li>\n<li><p><code>price</code> — Product price per smallest unit (e.g., per tablet, bottle, or strip).</p>\n</li>\n<li><p><code>default_qty</code> — Default quantity used for purchase.</p>\n</li>\n<li><p><code>route</code> — Route of administration (e.g., Oral, Transdermal).</p>\n</li>\n<li><p><code>dosage_instruction</code> — Human-readable dosage instructions.</p>\n</li>\n</ul>\n</li>\n<li><p>Added a new endpoint: <code>GET /partner/v2/product</code><br>  This new version includes expanded product information with the following response parameters:This endpoint uses <code>limit</code> and <code>page</code> for pagination and no longer requires the <code>city_id</code> parameter used in <code>v1</code>.</p>\n<ul>\n<li><p><code>id</code> — Unique identifier for the product.</p>\n</li>\n<li><p><code>name</code> — Product name.</p>\n</li>\n<li><p><code>description</code> — Short description or content summary.</p>\n</li>\n<li><p><code>type</code> — Product type or form (e.g., Tablet, Capsule).</p>\n</li>\n<li><p><code>price</code> — Product price per smallest unit.</p>\n</li>\n<li><p><code>uom</code> — Unit of measurement for the product.</p>\n</li>\n<li><p><code>stock_availability</code> — Indicates if the product is in stock.</p>\n</li>\n<li><p><code>default_qty</code> — Default quantity used for purchase.</p>\n</li>\n<li><p><code>route</code> — Route of administration (e.g., Oral, Transdermal).</p>\n</li>\n<li><p><code>dosage_instruction</code> — Human-readable dosage instruction.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"2021-11-11\">2021-11-11</h2>\n<ul>\n<li>Add new <code>price</code> response parameter in <a href=\"https://api-docs.lifepack.id/#ce261a0f-27ae-45dc-a6b2-a57f060a0343\">GET Product List</a> endpoint.</li>\n</ul>\n<h2 id=\"2021-05-06\">2021-05-06</h2>\n<ul>\n<li><p>Add new subscription status (<code>order_expired</code>) that will be triggered if user doesn't take any action with the unpaid order with incomplete address within 1 hour.</p>\n</li>\n<li><p>Add new <code>expired_at</code> response parameter in <a href=\"https://api-docs.lifepack.id/#0bb084e6-2e38-4c52-86c9-1a3f28e65553\">GET Subscription History</a> endpoint.</p>\n</li>\n<li><p>Add new <code>expired_at</code> response parameter in <a href=\"https://api-docs.lifepack.id/#16595cf9-dfe3-4b83-a319-5e61d12464f9\">GET Subscription Detail</a> endpoint.</p>\n</li>\n</ul>\n<h2 id=\"2021-04-01\">2021-04-01</h2>\n<ul>\n<li>Add new way to submit prescription data, using free text (<code>medication</code> parameter) in <a href=\"https://api-docs.lifepack.id/#01382ce2-fb36-45cd-9077-a31495d47413\">POST Submit Prescription Data</a> endpoint.</li>\n</ul>\n<h2 id=\"2021-02-22\">2021-02-22</h2>\n<ul>\n<li><p><strong>[Breaking Changes]</strong> Set parameter <code>city_id</code> to mandatory on request body parameter of <a href=\"https://api-docs.lifepack.id/#01382ce2-fb36-45cd-9077-a31495d47413\">POST Submit Prescription Data</a> endpoint.</p>\n</li>\n<li><p><strong>[Breaking Changes]</strong> Add required parameter <code>city_id</code> on request query parameter of <a href=\"https://api-docs.lifepack.id/#ce261a0f-27ae-45dc-a6b2-a57f060a0343\">GET Product List</a> endpoint.</p>\n</li>\n<li><p>Updated the <a href=\"https://api-docs.lifepack.id/#3dc6feaa-ac70-4738-ad87-2b6aa008229f\">GET City Coverage</a> endpoint response values. We now support broader selection of cities to provide the best coverage and price offered possible to our partners.</p>\n</li>\n</ul>\n<h2 id=\"2021-01-14\">2021-01-14</h2>\n<ul>\n<li><p><strong>[Breaking Changes]</strong> Add mandatory <code>dosage_per_unit</code> on product entity if you are using submit by digital prescription method on <a href=\"https://api-docs.lifepack.id/#01382ce2-fb36-45cd-9077-a31495d47413\">POST Submit Prescription Data</a> endpoint.</p>\n</li>\n<li><p>Added optional <code>age_unit</code> in patient entity on <a href=\"https://api-docs.lifepack.id/#01382ce2-fb36-45cd-9077-a31495d47413\">POST Submit Prescription Data</a> endpoint. Default value is <code>years</code>.</p>\n</li>\n<li><p>Added optional [<code>age</code>, <code>age_unit</code>, <code>weight</code>] in patient entity of request parameters on <a href=\"https://api-docs.lifepack.id/#88f25b11-49ad-4272-a784-92893453b8ae\">POST Register Patient</a> endpoint.</p>\n</li>\n</ul>\n<h2 id=\"2020-12-21\">2020-12-21</h2>\n<ul>\n<li>Change <code>diagnose</code> on patient entity max character length from 100 characters to 255 characters on <a href=\"https://api-docs.lifepack.id/#01382ce2-fb36-45cd-9077-a31495d47413\">POST Submit Prescription Data</a> endpoint.</li>\n</ul>\n<h2 id=\"2020-12-16\">2020-12-16</h2>\n<ul>\n<li><p><strong>[Breaking Changes]</strong> Partner that sent \"address\" entity empty on <a href=\"https://api-docs.lifepack.id/#01382ce2-fb36-45cd-9077-a31495d47413\">POST Submit Prescription Data</a> endpoint should notice that the <code>address</code> entity on <a href=\"https://api-docs.lifepack.id/#16595cf9-dfe3-4b83-a319-5e61d12464f9\">GET Subscription Detail</a> endpoint will have value of empty object (<code>{}</code>) until user has set the address in the link given by SMS/notification at <code>pending_address</code> status. This happens to avoid delivery price showing up before user has set the address.</p>\n</li>\n<li><p>Adjust explanation on <code>payment</code> entity, add [<code>method</code>, <code>logo</code>, <code>account_number</code>] and change <code>expired_at</code> documentation on <a href=\"https://api-docs.lifepack.id/#16595cf9-dfe3-4b83-a319-5e61d12464f9\">GET Subscription Detail</a> endpoint.</p>\n</li>\n</ul>\n<h1 id=\"overview\">Overview</h1>\n<h2 id=\"lifepack-open-api-description\">Lifepack Open API Description</h2>\n<p>LifepackPartner is a project used to describe and document RESTful APIs.</p>\n<h2 id=\"partner-account-types\">Partner Account Types</h2>\n<p>Currently, there is two different partner account types available for partners to apply:</p>\n<ol>\n<li><p>Standard Partner Account - Partner who's applying this kind of account should have their customer coordinate address data to send to us while sending <a href=\"https://api-docs.lifepack.id/?version=latest#01382ce2-fb36-45cd-9077-a31495d47413\">Submit Prescription Data</a> requests and also they should have their own payment system.</p>\n</li>\n<li><p>Payment on Us Partner Account - Partner who applying this kind of account are the ones that still don't have their own payment system. Sending patient address coordinates while sending <a href=\"https://api-docs.lifepack.id/?version=latest#01382ce2-fb36-45cd-9077-a31495d47413\">Submit Prescription Data</a> requests are also optional.</p>\n</li>\n</ol>\n<h2 id=\"bussiness-flow\">Bussiness Flow</h2>\n<h3 id=\"subscription-creation-flow\">Subscription Creation Flow</h3>\n<p>The process begins on the Partner side. The partner starts the flow and checks whether the user has a prescription photo.</p>\n<ul>\n<li><p><strong>If the user has a prescription photo</strong>, the partner proceeds to collect the prescription photo and sends it to Lifepack.</p>\n</li>\n<li><p>Lifepack then performs the <strong>Upload Prescription Photo</strong> step, which returns a <strong>Prescription Photo ID</strong> to the partner.</p>\n</li>\n</ul>\n<p>Next, regardless of whether the prescription photo was available initially, the partner prepares the <strong>Prescription Data</strong>. This data may include medication details, dosage instructions, and other relevant information.</p>\n<p>The partner then submits the prescription data to Lifepack through the <strong>Submit Prescription Data</strong> process. Lifepack processes the submission and returns a <strong>Subscription ID</strong>.</p>\n<p>Finally, the flow ends once the subscription ID is received, indicating that the prescription submission and subscription creation are successfully completed.</p>\n<img src=\"https://content.pstmn.io/289e8938-41d6-4f9e-b57d-19956ee54270/U3Vic2NyaXB0aW9uQnVzaW5lc3NGbG93VjEuMy5wbmc=\" alt=\"Subscription%20Flow\">\n\n<h3 id=\"payment-flow\">Payment Flow</h3>\n<p>Currently, there are two payment flow available to use on our system. The default payment flow and payment flow with payment on us option. If your system or existing data doesn't have user's address coordinate picker and payment system, you can apply for payment on us option to be enabled by contacting our business team.</p>\n<h4 id=\"default-payment-flow\">Default Payment Flow</h4>\n<p>The default payment flow starts after the prescription has reviewed and approved by our pharmacists. You can directly hit our <a href=\"https://api-docs.lifepack.id/?version=latest#60c7c2e6-5e27-47d9-9713-7b898a1f6f16\">Change Payment Status to Paid</a> endpoint after your customer's payment is already paid and verified in your system.</p>\n<img src=\"https://content.pstmn.io/4eb9c8a2-1f2a-48ed-bd9a-bcae17a49c27/UGF5bWVudEJ1c2luZXNzRmxvd1YxLjEucG5n\" alt=\"Payment%20Flow\">\n\n<h4 id=\"payment-on-us-flow\">Payment on Us Flow</h4>\n<p>The payment on us flow also starts after the prescription has reviewed and approved by our pharmacists. But, the entire process on address picking will happen in our system. You can just listen to webhook callback from us for the subscription status updates.</p>\n<img src=\"https://content.pstmn.io/0fbd880f-4635-4a8c-bbde-79f8c7a14e8d/UGF5bWVudE9uVXNCdXNpbmVzc0Zsb3dWMS5wbmc=\" alt=\"Payment%20on%20Us\">\n\n<h2 id=\"ux-guideline\">UX Guideline</h2>\n<h3 id=\"registration-flow\">Registration Flow</h3>\n<img src=\"https://content.pstmn.io/2101d753-ae3d-41ee-9964-fdd049ee59ab/UmVnaXN0cmF0aW9uLmpwZw==\" alt=\"Registration%20Flow\">\n\n<h3 id=\"create-digital-prescription-flow\">Create Digital Prescription Flow</h3>\n<p><img src=\"https://content.pstmn.io/851b1d71-6906-4a83-a662-b8357ed0f4e6/Q3JlYXRlRGlnaXRhbFByZXNjcmlwdGlvbi0xLmpwZw==\" alt=\"Create%20Digital%20Prescription%20Flow%201\n<br><br><br><br><br>\"></p>\n<p><img src=\"https://content.pstmn.io/4aec0efa-3c6e-4b57-ac0d-297033efc63f/Q3JlYXRlRGlnaXRhbFByZXNjcmlwdGlvbi0yLmpwZw==\" alt=\"Create%20Digital%20Prescription%20Flow%202\n<br><br><br><br><br>\"></p>\n<p><img src=\"https://content.pstmn.io/132ed779-4697-42ea-8433-cc23254befc3/Q3JlYXRlRGlnaXRhbFByZXNjcmlwdGlvbi0zLmpwZw==\" alt=\"Create%20Digital%20Prescription%20Flow%203\n<br><br><br><br><br>\"></p>\n<h3 id=\"create-photo-prescription-flow\">Create Photo Prescription Flow</h3>\n<p><img src=\"https://content.pstmn.io/8f16f833-0f31-43a5-ab00-185dcdddcc9a/VXBsb2FkUHJlc2NyaXB0aW9uLTEuanBn\" alt=\"Create%20Photo%20Prescription%20Flow%201\n<br><br><br><br><br>\"></p>\n<img src=\"https://content.pstmn.io/ba7ec2c8-044e-4303-b96c-16281c547d73/VXBsb2FkUHJlc2NyaXB0aW9uLTIuanBn\" alt=\"Create%20Photo%20Prescription%20Flow%202\">\n\n<h1 id=\"features\">Features</h1>\n<h2 id=\"easy-to-integrate-api\">Easy to Integrate API</h2>\n<ul>\n<li><p>Our RESTful API’s enable our partners to integrate to our solution seamlessly;</p>\n</li>\n<li><p>Lifepack API support: Prescription, Subscription, Payment, Patient, Product.</p>\n</li>\n</ul>\n<h2 id=\"dashboard\">Dashboard</h2>\n<ul>\n<li>Lifepack provides a portal for our partners to see all prescription history as well as analytics of their shipment and consumption activities;</li>\n</ul>\n<h1 id=\"setting-up\">Setting Up</h1>\n<p>Once a partner has registered, it will have an access to our sandbox environment. Lifepack partner dashboard will also be accessible.</p>\n<h2 id=\"getting-notification\">Getting Notification</h2>\n<p>LIfepack allows partners to receive realtime notifications about Lifepack related information, by configuring a endpoint url on the Lifepack Partner Dashboard.</p>\n<p>We are sending notifications to Webhook URL. This endpoint will only be triggered if there are status changes to existing subscription. Please refer to <a href=\"https://api-docs.lifepack.id/?version=latest#subscription-status\">subscription status reference section</a> for which statuses are sent in the notification.</p>\n<p>Once configured, Lifepack will send a HTTP POST payload to the url, containing detail about specific event which can be seen in the notification payload section.</p>\n<p><strong>Configuring the Endpoint URL</strong></p>\n<ul>\n<li><p>To setup an Endpoint URL on Lifepack, head over to the <strong>SETTINGS</strong> tab on the sidebar, and edit the values on <strong>WEBHOOK URL</strong>.</p>\n</li>\n<li><p>Save the notification URL using the <strong>Submit</strong> button. The notification URL can be modified anytime from the settings page.</p>\n</li>\n</ul>\n<h2 id=\"notification-payload\">Notification Payload</h2>\n<h3 id=\"lifepack-webhook-payload-examples-full\">Lifepack Webhook Payload Examples (Full)</h3>\n<h4 id=\"payload-prescription-approve\">Payload Prescription Approve</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"prescription_approved\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"default\": false\n    }\n  },\n  \"total_payment\": null,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:33:18\",\n  \"payment_link\": null\n}\n\n</code></pre>\n<h4 id=\"payload-prescription-adjusted\">Payload Prescription Adjusted</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"prescription_adjusted\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"default\": false\n    }\n  },\n  \"total_payment\": 46692,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:33:18\",\n  \"payment_link\": null\n}\n\n</code></pre>\n<h4 id=\"payload-pending-address\">Payload Pending Address</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"pending_address\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"default\": false\n    }\n  },\n  \"total_payment\": 51828,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:33:22\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h4 id=\"payload-payment-order\">Payload Payment Order</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"payment_order\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"id\": 470,\n      \"default\": false,\n      \"latitude\": -6.175328,\n      \"longitude\": 106.8271517,\n      \"first_line\": \"Jalan Tugu Monas\",\n      \"second_line\": \"Jalan Tugu Monas, Jl. Tugu Monas No.1, Gambir, Kecamatan Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10110, Indonesia\",\n      \"postal_code\": \"10110\",\n      \"note\": \"monas\",\n      \"street_name\": \"Jalan Tugu Monas 1\",\n      \"province\": \"Daerah Khusus Ibukota Jakarta\",\n      \"city\": \"Kota Jakarta Pusat\",\n      \"district\": \"Kecamatan Gambir\",\n      \"sub_district\": \"Gambir\",\n      \"label\": \"monas\"\n    }\n  },\n  \"total_payment\": 79578,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:34:14\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h4 id=\"payload-waiting-for-payment\">Payload waiting for payment</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"waiting_for_payment\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"id\": 470,\n      \"default\": false,\n      \"latitude\": -6.175328,\n      \"longitude\": 106.8271517,\n      \"first_line\": \"Jalan Tugu Monas\",\n      \"second_line\": \"Jalan Tugu Monas, Jl. Tugu Monas No.1, Gambir, Kecamatan Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10110, Indonesia\",\n      \"postal_code\": \"10110\",\n      \"note\": \"monas\",\n      \"street_name\": \"Jalan Tugu Monas 1\",\n      \"province\": \"Daerah Khusus Ibukota Jakarta\",\n      \"city\": \"Kota Jakarta Pusat\",\n      \"district\": \"Kecamatan Gambir\",\n      \"sub_district\": \"Gambir\",\n      \"label\": \"monas\"\n    }\n  },\n  \"total_payment\": 71692,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:34:24\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h4 id=\"payload-payment-successful\">Payload Payment Successful</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"payment_successful\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"id\": 470,\n      \"default\": false,\n      \"latitude\": -6.175328,\n      \"longitude\": 106.8271517,\n      \"first_line\": \"Jalan Tugu Monas\",\n      \"second_line\": \"Jalan Tugu Monas, Jl. Tugu Monas No.1, Gambir, Kecamatan Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10110, Indonesia\",\n      \"postal_code\": \"10110\",\n      \"note\": \"monas\",\n      \"street_name\": \"Jalan Tugu Monas 1\",\n      \"province\": \"Daerah Khusus Ibukota Jakarta\",\n      \"city\": \"Kota Jakarta Pusat\",\n      \"district\": \"Kecamatan Gambir\",\n      \"sub_district\": \"Gambir\",\n      \"label\": \"monas\"\n    }\n  },\n  \"total_payment\": 71692,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:34:38\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h4 id=\"payload-order-processed\">Payload Order Processed</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"order_processed\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"id\": 470,\n      \"default\": false,\n      \"latitude\": -6.175328,\n      \"longitude\": 106.8271517,\n      \"first_line\": \"Jalan Tugu Monas\",\n      \"second_line\": \"Jalan Tugu Monas, Jl. Tugu Monas No.1, Gambir, Kecamatan Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10110, Indonesia\",\n      \"postal_code\": \"10110\",\n      \"note\": \"monas\",\n      \"street_name\": \"Jalan Tugu Monas 1\",\n      \"province\": \"Daerah Khusus Ibukota Jakarta\",\n      \"city\": \"Kota Jakarta Pusat\",\n      \"district\": \"Kecamatan Gambir\",\n      \"sub_district\": \"Gambir\",\n      \"label\": \"monas\"\n    }\n  },\n  \"total_payment\": 71692,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:37:10\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h4 id=\"payload-waiting-for-pickup\">Payload Waiting for Pickup</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"waiting_for_pickup\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"id\": 470,\n      \"default\": false,\n      \"latitude\": -6.175328,\n      \"longitude\": 106.8271517,\n      \"first_line\": \"Jalan Tugu Monas\",\n      \"second_line\": \"Jalan Tugu Monas, Jl. Tugu Monas No.1, Gambir, Kecamatan Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10110, Indonesia\",\n      \"postal_code\": \"10110\",\n      \"note\": \"monas\",\n      \"street_name\": \"Jalan Tugu Monas 1\",\n      \"province\": \"Daerah Khusus Ibukota Jakarta\",\n      \"city\": \"Kota Jakarta Pusat\",\n      \"district\": \"Kecamatan Gambir\",\n      \"sub_district\": \"Gambir\",\n      \"label\": \"monas\"\n    }\n  },\n  \"total_payment\": 71692,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:37:20\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h4 id=\"payload-picked-up\">Payload Picked Up</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"picked_up\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"id\": 470,\n      \"default\": false,\n      \"latitude\": -6.175328,\n      \"longitude\": 106.8271517,\n      \"first_line\": \"Jalan Tugu Monas\",\n      \"second_line\": \"Jalan Tugu Monas, Jl. Tugu Monas No.1, Gambir, Kecamatan Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10110, Indonesia\",\n      \"postal_code\": \"10110\",\n      \"note\": \"monas\",\n      \"street_name\": \"Jalan Tugu Monas 1\",\n      \"province\": \"Daerah Khusus Ibukota Jakarta\",\n      \"city\": \"Kota Jakarta Pusat\",\n      \"district\": \"Kecamatan Gambir\",\n      \"sub_district\": \"Gambir\",\n      \"label\": \"monas\"\n    }\n  },\n  \"total_payment\": 71692,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:38:29\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h4 id=\"payload-on-delivery\">Payload on Delivery</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"on_delivery\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"id\": 470,\n      \"default\": false,\n      \"latitude\": -6.175328,\n      \"longitude\": 106.8271517,\n      \"first_line\": \"Jalan Tugu Monas\",\n      \"second_line\": \"Jalan Tugu Monas, Jl. Tugu Monas No.1, Gambir, Kecamatan Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10110, Indonesia\",\n      \"postal_code\": \"10110\",\n      \"note\": \"monas\",\n      \"street_name\": \"Jalan Tugu Monas 1\",\n      \"province\": \"Daerah Khusus Ibukota Jakarta\",\n      \"city\": \"Kota Jakarta Pusat\",\n      \"district\": \"Kecamatan Gambir\",\n      \"sub_district\": \"Gambir\",\n      \"label\": \"monas\"\n    }\n  },\n  \"total_payment\": 71692,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:38:37\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h4 id=\"payload-delivered\">Payload Delivered</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"subscription_id\": 10678,\n  \"status\": \"delivered\",\n  \"reject_reason\": null,\n  \"reject_notes\": null,\n  \"patient\": {\n    \"id\": 783,\n    \"name\": \"MUHAMMAD AL HAFIZI\",\n    \"phone_number\": \"+628131133898989\",\n    \"address\": {\n      \"id\": 470,\n      \"default\": false,\n      \"latitude\": -6.175328,\n      \"longitude\": 106.8271517,\n      \"first_line\": \"Jalan Tugu Monas\",\n      \"second_line\": \"Jalan Tugu Monas, Jl. Tugu Monas No.1, Gambir, Kecamatan Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10110, Indonesia\",\n      \"postal_code\": \"10110\",\n      \"note\": \"monas\",\n      \"street_name\": \"Jalan Tugu Monas 1\",\n      \"province\": \"Daerah Khusus Ibukota Jakarta\",\n      \"city\": \"Kota Jakarta Pusat\",\n      \"district\": \"Kecamatan Gambir\",\n      \"sub_district\": \"Gambir\",\n      \"label\": \"monas\"\n    }\n  },\n  \"total_payment\": 71692,\n  \"products\": [\n    {\n      \"id\": 1691,\n      \"name\": \"NEUROBAT TABLET\",\n      \"qty\": 1,\n      \"type\": \"Tablet\",\n      \"price\": 46692,\n      \"currency\": \"IDR\",\n      \"uom\": \"Strip\",\n      \"consumption_day\": 7,\n      \"total_qty\": 1,\n      \"doctor_notes\": \"1\",\n      \"dosage_instruction\": {\n        \"dosage\": 1,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"2x sehari\",\n        \"timing\": \"Sebelum makan\",\n        \"duration\": 7,\n        \"duration_unit\": \"Hari\"\n      },\n      \"direction\": \"1x1 tablet\"\n    }\n  ],\n  \"timestamp\": \"2025-08-21 13:45:59\",\n  \"payment_link\": \"https://sandbox-link.lifepack.id/tFg5\"\n}\n\n</code></pre>\n<h3 id=\"payload-description\">Payload Description</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscription_id</td>\n<td>Subscription ID of the notification</td>\n</tr>\n<tr>\n<td>patient</td>\n<td><code>object</code> Please refer to <a href=\"https://api-docs.lifepack.id/#patient-entity\">patient entity</a></td>\n</tr>\n<tr>\n<td>status</td>\n<td>Refer to <a href=\"https://api-docs.lifepack.id/?version=latest#subscription-status\">subscription status reference section</a> for possible values</td>\n</tr>\n<tr>\n<td>total_payment</td>\n<td>Amount of the total payment for current subscription</td>\n</tr>\n<tr>\n<td>timestamp</td>\n<td><code>string</code> Last update time</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"product-entity\">Product Entity</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>id</th>\n<th>Product ID</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>Product name</td>\n</tr>\n<tr>\n<td>qty</td>\n<td>Quantity taken per day</td>\n</tr>\n<tr>\n<td>consumption_day</td>\n<td>Total days user should taking medicine</td>\n</tr>\n<tr>\n<td>total_qty</td>\n<td>Total quantity of product given to user</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"error-code-and-message\">Error Code and Message</h2>\n<h3 id=\"description-of-usual-server-responses-http-codes\">Description Of Usual Server Responses (HTTP Codes)</h3>\n<ul>\n<li><p><code>200 OK</code> - the request was successful (some API calls may return 201 instead).</p>\n</li>\n<li><p><code>201 Created</code> - the request was successful and a resource was created.</p>\n</li>\n<li><p><code>202 Accepted</code> - the request was accepted and enqueue for processing later.</p>\n</li>\n<li><p><code>204 No Content</code> - the request was successful but there is no representation to return (i.e. the response is empty).</p>\n</li>\n<li><p><code>400 Bad Request</code> - the request could not be understood or was missing required parameters.</p>\n</li>\n<li><p><code>401 Unauthorized</code> - authentication failed.</p>\n</li>\n<li><p><code>403 Forbidden</code> - access denied.</p>\n</li>\n<li><p><code>402 Payment Required</code> - payment is required.</p>\n</li>\n<li><p><code>404 Not Found</code> - resource was not found.</p>\n</li>\n<li><p><code>410 Gone</code> - the resource has been expired.</p>\n</li>\n<li><p><code>422 Unprocessable Entity</code> - i.e. validation errors.</p>\n</li>\n<li><p><code>500 Internal Server Error</code> - Bad bad bad.</p>\n</li>\n<li><p><code>503 Service Unavailable</code> - service is temporary unavailable (e.g. scheduled Platform Maintenance). Try again later.</p>\n</li>\n</ul>\n<h3 id=\"error-structure\">Error Structure</h3>\n<p>Aside from the <code>4XX</code> and <code>5XX</code> error HTTP Headers, we have an unified error structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"error_code\": \"INTERNAL_SERVER_ERROR\",\n  \"message\": \"Internal Server Error\"\n}\n\n</code></pre><p>This means that, if you get an <code>4XX</code> or <code>5XX</code> errors, you can utilize your system to log or display the error message to the user. Possible error codes will be explained in each endpoints.</p>\n<h1 id=\"reference\">Reference</h1>\n<h2 id=\"subscription-status\">Subscription Status</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n<th>Status appears on subscription detail?</th>\n<th>Will receive notification?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>in_review</td>\n<td>Prescription is under review (products and total payment still not exists)</td>\n<td>✅</td>\n<td>❌</td>\n</tr>\n<tr>\n<td>prescription_approved</td>\n<td>Prescription approved by pharmacist</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>prescription_adjusted</td>\n<td>Prescription is adjusted, partner should update prescription detail information</td>\n<td>❌</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>order_cancelled</td>\n<td>Prescription cancelled by pharmacist</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>order_expired</td>\n<td>Order is not continued within the time specified at <code>expired_at</code></td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>prescription_rejected</td>\n<td>Prescription is rejected by admin</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>pending_address</td>\n<td>User need to update address</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>payment_order</td>\n<td>Prescription is approved by admin and ready to be charged</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>waiting_for_payment</td>\n<td>User already selected payment method (only for payment on us partner type)</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>payment_successful</td>\n<td>Order has successfully paid by user</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>payment_expired</td>\n<td>Payment has expired (only for payment on us partner type)</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>payment_failed</td>\n<td>Payment has failed (only for payment on us partner type)</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>order_processed</td>\n<td>Pharmacist is preparing the order</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>waiting_for_pickup</td>\n<td>Package is ready to ship, waiting the courier to pick up</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>picked_up</td>\n<td>Package is picked up by courier</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>on_delivery</td>\n<td>Package is on delivery to customer address</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>delivered</td>\n<td>Package has already delivered to customer address</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>delivery_failed</td>\n<td>Package delivery has failed</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>active</td>\n<td>User click confirm button in lifepack app/automatically after 24 h delivered</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n<tr>\n<td>inactive</td>\n<td>Medication schedule ended</td>\n<td>✅</td>\n<td>✅</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"authorization\">Authorization</h1>\n<p>For the authorization headers for authenticating the requests, please refer to our <a href=\"https://api-docs.lifepack.id/?version=latest#authorization-header\">Authorization</a> section.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Changelogs","slug":"changelogs"},{"content":"Overview","slug":"overview"},{"content":"Features","slug":"features"},{"content":"Setting Up","slug":"setting-up"},{"content":"Reference","slug":"reference"},{"content":"Authorization","slug":"authorization"}],"owner":"11017458","collectionId":"9efec4c5-4df1-42f3-b01d-79af1445e89b","publishedId":"Szme4yQT","public":true,"customColor":{"top-bar":"162D64","right-sidebar":"303030","highlight":"162D64"},"publishDate":"2020-06-10T04:28:20.000Z"},"item":[{"name":"Lifepack API","item":[{"name":"Prescription","item":[{"name":"Upload Prescription Photo","id":"40410b4a-a4a3-4a6f-b78c-df9f6b39da78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"description":"<p><code>file</code> Prescription image with <code>jpg</code> or <code>jpeg</code> format (Maximum size: 5MB)</p>\n","key":"prescription","type":"file","src":"/Users/itmi/Downloads/9f149-senapanyangsudahjadi.jpg"},{"key":"prescription","type":"file","src":"/Users/itmi/Downloads/696387.jpeg"}]},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription-photo","description":"<p>By hitting this endpoint, you can add photos to the prescription, and you can add multiple images too. You must hit this first before you hit create new prescription endpoint. You can add multiple images by sending multiple <code>prescription</code> parameter in your request body.</p>\n<h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prescription_photo_id</td>\n<td><code>integer</code> Prescription Photo ID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","prescription-photo"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"4620e5dc-8869-409e-a93a-49631510c889","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"description":"Prescription file image","key":"prescription","type":"file","src":"/Users/itmi/Downloads/IMG_0835.jpg"},{"key":"","type":"text","value":"","disabled":true}]},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription-photo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"22"},{"key":"ETag","value":"W/\"16-97nxwqSHEiK73i8DFNxFbvAsopI\""},{"key":"Date","value":"Thu, 14 May 2020 01:56:42 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"prescription_photo_id\": 12\n}"},{"id":"acc2d5aa-12bb-48d0-b072-e0f2e75f9e69","name":"Upload Multiple Prescription Photo","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"description":"`file` Prescription image with `jpg` or `jpeg` format (Maximum size: 5MB)","key":"prescription","type":"file","src":"/Users/itmi/Downloads/9f149-senapanyangsudahjadi.jpg"},{"key":"prescription","type":"file","src":"/Users/itmi/Downloads/696387.jpeg"}]},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription-photo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Thu, 28 May 2020 08:18:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"30"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"1e-+ywOPMiudbevh4E9Kkqs0xYbwvE\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"{\n    \"prescription_photo_id\": 1641\n}"},{"id":"da6738a2-8802-4b7c-a58f-1aca602923b1","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"description":"Prescription file image","key":"prescription","type":"file","value":null,"disabled":true},{"key":"","type":"text","value":"","disabled":true}]},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription-photo"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"ETag","value":"W/\"48-AGgvIH6i59zjlHB9eSttZ7AjawA\""},{"key":"Date","value":"Thu, 14 May 2020 01:59:21 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"INTERNAL_SERVER_ERROR\",\n    \"message\": \"Internal Server Error\"\n}"},{"id":"dcf6c886-a455-49da-9af8-fc89addc59a2","name":"Incorrect Image Format","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"formdata","formdata":[{"description":"Prescription file image","key":"prescription","type":"file","src":"/Users/itmi/Downloads/Flowchart.png"},{"key":"","type":"text","value":"","disabled":true}]},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription-photo"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"100"},{"key":"ETag","value":"W/\"64-0pzb7lB6AUfLICzm8Lg1/Kqmwfk\""},{"key":"Date","value":"Thu, 14 May 2020 01:57:22 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"PRESCRIPTION_IMAGE_FORMAT_INCORRECT\",\n    \"message\": \"Prescription image format incorrect\"\n}"}],"_postman_id":"40410b4a-a4a3-4a6f-b78c-df9f6b39da78"},{"name":"Submit Prescription Data","id":"01382ce2-fb36-45cd-9077-a31495d47413","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_photo_id\": 15205,\n    \"city_id\": 1,\n    \"insurance\": {\n        \"company_name\": \"Generali\",\n        \"policy_number\": \"123132321313\",\n        \"member_number\": \"89892893\",\n        \"card_number\": \"1221212\",\n        \"insurance_class\": \"group\",\n        \"type\": \"non-VIP\"\n    },\n    \"doctor\": {\n        \"name\": \"dr Addina\",\n        \"phone_number\": \"+628877334442\",\n        \"speciality\": \"Umum\",\n        \"sip\": \"SIP3334\"\n    },\n    \"patient\": {\n        \"name\": \"Abdul\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -6.170166,\n            \"longitude\": 106.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription","description":"<p>You can submit prescription photos or prescription medication informations to get a subscription using this endpoint. After you have submitted your prescription, you will get a subscription with <code>in_review</code> status that would be reviewed by our pharmacists.</p>\n<p>We are using Reverse Geocoding to convert latitude and longitude values to address details. Therefore, you are only required to fill the latitude and longitude address and not required to fill the address detail. But if you prefer and/or have more accurate data, we will use the address details value that you send to us instead of the reverse geocoded ones. If you don't have any customer address coordinate data, you can apply for Payment on Us partner account type so you can send address entity without coordinate data. Please refer to <a href=\"#partner-account-types\">this</a> section for more information.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prescription_photo_id</td>\n<td><code>optional</code> <code>number</code> Prescription Photo ID</td>\n</tr>\n<tr>\n<td></td>\n<td>Required if <code>products</code> and <code>medication</code> parameter is set to <code>null</code></td>\n</tr>\n<tr>\n<td>city_id</td>\n<td><code>optional</code> <code>integer</code> City ID</td>\n</tr>\n<tr>\n<td></td>\n<td>Please refer to <a href=\"#68973471-4bc6-4071-ba30-127c8063fd9d\">this</a> section to obtain city ID</td>\n</tr>\n<tr>\n<td></td>\n<td>If this field is not set, default value will be gathered from doctor's first clinic location.</td>\n</tr>\n<tr>\n<td></td>\n<td>This will also affects the delivery price</td>\n</tr>\n<tr>\n<td>products</td>\n<td><code>optional</code> <code>object[]</code> Refer to product entity below</td>\n</tr>\n<tr>\n<td></td>\n<td>Required if <code>prescription_photo_id</code> and <code>medication</code> is set to <code>null</code></td>\n</tr>\n<tr>\n<td>medication</td>\n<td><code>optional</code> <code>string</code> Medication list (free text and accepts <code>\\n</code>)</td>\n</tr>\n<tr>\n<td></td>\n<td>Required if <code>prescription_photo_id</code> and <code>products</code> is set to <code>null</code></td>\n</tr>\n<tr>\n<td>doctor</td>\n<td><code>object</code> Refer to doctor entity below</td>\n</tr>\n<tr>\n<td>patient</td>\n<td><code>object</code> Refer to patient entity below</td>\n</tr>\n<tr>\n<td>insurance</td>\n<td><code>nullable</code> <code>object</code> Refer to insurance entity below</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"product-entity\">Product Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_id</td>\n<td><code>integer</code> Product ID</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td><code>integer</code> Medicine quantity</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than 0</td>\n</tr>\n<tr>\n<td>dosage_per_day</td>\n<td><code>integer</code> Medicine dosage per day</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than 0</td>\n</tr>\n<tr>\n<td>dosage_per_unit</td>\n<td><code>decimal</code> Medicine dosage per unit</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than 0</td>\n</tr>\n<tr>\n<td>direction</td>\n<td><code>string</code> Medicine direction</td>\n</tr>\n<tr>\n<td></td>\n<td>Example: <code>1 on morning, 2 on evening</code></td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be greater than 0</td>\n</tr>\n<tr>\n<td>notes</td>\n<td><code>optional</code> <code>string</code> Medicine notes</td>\n</tr>\n<tr>\n<td></td>\n<td>Fill this if only there is any concerned notes that is not covered within attributes above</td>\n</tr>\n<tr>\n<td></td>\n<td>Example: <code>finish the medicine</code></td>\n</tr>\n<tr>\n<td>dosage_instruction</td>\n<td><code>string</code> A complete sentence or phrase describing how to take the medication, including dosage, frequency, timing, and duration.</td>\n</tr>\n<tr>\n<td></td>\n<td>Example: <code>Take 1 tablet twice a day after meals for 7 days</code></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"doctor-entity\">Doctor Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of the doctor</td>\n</tr>\n<tr>\n<td></td>\n<td>Won't override existing doctor data if the doctor with current phone number already exists</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 3 to 36 characters</td>\n</tr>\n<tr>\n<td></td>\n<td>Only alphanumeric and space characters are allowed</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number of the doctor</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be started with \"+\" followed with series of numbers</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 9 to 15 characters</td>\n</tr>\n<tr>\n<td>specialty</td>\n<td><code>optional</code> <code>string</code> Doctor specialization</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 100</td>\n</tr>\n<tr>\n<td>sip</td>\n<td><code>optional</code> <code>string</code> Doctor SIP</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 100</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"patient-entity\">Patient Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 3 to 36 characters</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be started with \"+\" followed with series of numbers</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 9 to 15 characters</td>\n</tr>\n<tr>\n<td></td>\n<td><code>optional</code> <code>string</code> Patient's allergy</td>\n</tr>\n<tr>\n<td>allergy</td>\n<td><code>integer</code> Patient's age</td>\n</tr>\n<tr>\n<td>diagnose</td>\n<td><code>string</code> Patient diagnose</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 3 to 255 characters</td>\n</tr>\n<tr>\n<td>age</td>\n<td><code>number</code> Patient's age</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n<tr>\n<td>age_unit</td>\n<td><code>optional</code> <code>enum</code> Patient's age unit</td>\n</tr>\n<tr>\n<td></td>\n<td>Valid values: <code>years</code>, <code>months</code>, <code>days</code>. Default: <code>years</code></td>\n</tr>\n<tr>\n<td>weight</td>\n<td><code>number</code> Patient's body weight in kilograms</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n<tr>\n<td>gender</td>\n<td><code>enum</code> Patient's gender</td>\n</tr>\n<tr>\n<td></td>\n<td>Valid values: <code>male</code>, <code>female</code></td>\n</tr>\n<tr>\n<td>address</td>\n<td><code>object</code> Refer to address entity below</td>\n</tr>\n<tr>\n<td></td>\n<td>Only <code>optional</code> if partner account type is Payment on Us. Please refer to <a href=\"#partner-account-types\">this</a> section for more information</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"address-entity\">Address Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td><code>number</code> Address latitude</td>\n</tr>\n<tr>\n<td></td>\n<td>Only <code>optional</code> if partner account type is Payment on Us. Please refer to <a href=\"#partner-account-types\">this</a> section for more information</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be within -90 and 90</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td><code>number</code> Address longitude</td>\n</tr>\n<tr>\n<td></td>\n<td>Only <code>optional</code> if partner account type is Payment on Us. Please refer to <a href=\"#partner-account-types\">this</a> section for more information</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be within -180 and 180</td>\n</tr>\n<tr>\n<td>first_line</td>\n<td><code>optional</code> <code>string</code> Address first line</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>second_line</td>\n<td><code>optional</code> <code>string</code> Address second line</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>note</td>\n<td><code>optional</code> <code>string</code> Address notes</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>province</td>\n<td><code>optional</code> <code>string</code> Address province</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>district</td>\n<td><code>optional</code> <code>string</code> Address district</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>sub_district</td>\n<td><code>optional</code> <code>string</code> Address sub district</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td><code>optional</code> <code>string</code> Address postal code</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"insurance-entity\">Insurance Entity</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>company_name</td>\n<td><code>optional</code> <code>string</code> Insurance company name</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be matches with insurance that has already informed to us. Please let us know if you have a new insurance name registered</td>\n</tr>\n<tr>\n<td>policy_number</td>\n<td><code>optional</code> <code>string</code> Insurance policy number</td>\n</tr>\n<tr>\n<td>member_number</td>\n<td><code>optional</code> <code>string</code> Insurance member number</td>\n</tr>\n<tr>\n<td>card_number</td>\n<td><code>string</code> Insurance card number</td>\n</tr>\n<tr>\n<td></td>\n<td>Only required if insurance company name is filled</td>\n</tr>\n<tr>\n<td>insurance_class</td>\n<td><code>string</code> Insurance class</td>\n</tr>\n<tr>\n<td></td>\n<td>Only required if insurance company name is filled</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code> Insurance type</td>\n</tr>\n<tr>\n<td></td>\n<td>Only required if insurance company name is filled</td>\n</tr>\n<tr>\n<td>benefit</td>\n<td><code>optional</code> <code>string</code> Insurance benefits</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscription_id</td>\n<td><code>integer</code> Subscription ID</td>\n</tr>\n<tr>\n<td>patient_id</td>\n<td><code>integer</code> Patient ID</td>\n</tr>\n<tr>\n<td>doctor_id</td>\n<td><code>integer</code> Doctor ID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","prescription"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"67e8a817-3ae7-48db-9555-dc437bdb21ee","name":"Submit Prescription Data With Products (No Insurance)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_photo_id\": null,\n    \"city_id\": 1,\n    \"products\": [\n        {\n            \"product_id\": 1,\n            \"quantity\": 50,\n            \"dosage_per_day\": 3,\n            \"dosage_per_unit\": 1,\n            \"direction\": \"setelah makan\",\n            \"notes\": \"habiskan\",\n            \"dosage_instruction\": \"Take 1 tablet every 4 hours\"\n        }\n    ],\n    \"doctor\": {\n        \"name\": \"Faldy\",\n        \"phone_number\": \"+676767767\",\n        \"specialty\": \"Cardiologist\",\n        \"sip\": \"SIPDOKTER\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -6.170166,\n            \"longitude\": 106.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 26 May 2020 04:40:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"38-gMXWIPKCeZ2z0sZtZ/g8JfqMSGc\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"{\n    \"subscription_id\": 351,\n    \"patient_id\": 183,\n    \"doctor_id\": 244\n}"},{"id":"d37397d9-636e-41ca-88e9-5e1f06859f9b","name":"Submit With Prescription Photo ID (With Insurance)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_photo_id\": 12,\n    \"city_id\": 1,\n    \"insurance\": {\n        \"company_name\": \"Asuransiku\",\n        \"policy_number\": \"123132321313\",\n        \"member_number\": \"89892893\",\n        \"card_number\": \"1221212\",\n        \"insurance_class\": \"group\",\n        \"type\": \"Non-VIP\",\n        \"benefit\": \"\"\n    },\n    \"products\": null,\n    \"doctor\": {\n        \"name\": \"Faldy\",\n        \"phone_number\": \"+676767767\",\n        \"specialty\": \"Cardiologist\",\n        \"sip\": \"SIPDOKTER\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -6.170166,\n            \"longitude\": 106.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 15 May 2020 04:09:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"3a-isq06tvhxvUjHw3kl2KErl9jglA\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"{\n    \"subscription_id\": 139,\n    \"patient_id\": 12,\n    \"doctor_id\": 5\n}"},{"id":"1838f699-656e-4d50-884c-827f414d7029","name":"Invalid Coordinate","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_id\": 12,\n    \"city_id\": 1,\n    \"products\": null,\n    \"doctor\": {\n        \"name\": \"Faldy\",\n        \"phone_number\": \"+676767767\",\n        \"specialty\": \"Cardiologist\",\n        \"sip\": \"SIPDOKTER\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -89.170166,\n            \"longitude\": 179.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 15 May 2020 04:10:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"49-HKLnJ7ZVnQjZyFThTK6jDb73SEw\""}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"INVALID_COORDINATE\",\n    \"error_message\": \"Invalide Coordinate\"\n}"},{"id":"99ca559c-d5c6-422d-9d0c-7d1d16a53dad","name":"One of the Products not Found","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_photo_id\": null,\n    \"city_id\": 1,\n    \"insurance\": null,\n    \"products\": [\n        {\n            \"product_id\": 1,\n            \"quantity\": 50,\n            \"dosage_per_day\": 3,\n            \"dosage_per_unit\": 1,\n            \"direction\": \"setelah makan\",\n            \"notes\": \"habiskan\"\n        },\n        {\n            \"product_id\": 2,\n            \"quantity\": 50,\n            \"dosage_per_day\": 3,\n            \"dosage_per_unit\": 1,\n            \"direction\": \"setelah makan\",\n            \"notes\": \"habiskan\"\n        }\n    ],\n    \"doctor\": {\n        \"name\": \"Faldy\",\n        \"phone_number\": \"+676767754567\",\n        \"specialty\": \"Cardiologist\",\n        \"sip\": \"SIPDOKTER\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Hipertensi\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -6.170166,\n            \"longitude\": 106.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"64"},{"key":"etag","value":"W/\"40-1grZnfSF7+98rWMOqIMEHnjJDxA\""},{"key":"date","value":"Tue, 01 Sep 2020 10:00:40 GMT"},{"key":"x-forwarded-proto","value":"https"},{"key":"strict-transport-security","value":"max-age=2592000"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"PRODUCT_NOT_FOUND\",\n    \"message\": \"Product not found\"\n}"},{"id":"96eb4a71-ba2e-4540-8a36-1175e1e30fac","name":"Submit Prescription Data With non-strict Product Details","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"medication\": \"R/. Azithromycin 500mg No. X S 2 dd I pc\\nR/. Cortidex No. XV S 3 dd I\\nR/. Becomzet No. X S 1 dd I\\nR/. Seloxy No. X S 2 dd I\\nR/. Rhinos SR No. X S 2 dd I\",\n    \"consultation_fee\": 100000,\n    \"doctor\": {\n        \"name\": \"dr Amsal\",\n        \"phone_number\": \"+62187278712\",\n        \"specialty\": \"Cardiologist\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Suardoyo\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/prescription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 26 May 2020 04:40:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"38-gMXWIPKCeZ2z0sZtZ/g8JfqMSGc\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"{\n    \"subscription_id\": 351,\n    \"patient_id\": 183,\n    \"doctor_id\": 244\n}"}],"_postman_id":"01382ce2-fb36-45cd-9077-a31495d47413"},{"name":"[V2] Submit Prescription Data","id":"53954f1f-40bb-4a42-8b11-d455b3d6a10a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_photo_id\": 15205,\n    \"city_id\": 1,\n    \"insurance\": {\n        \"company_name\": \"Generali\",\n        \"policy_number\": \"123132321313\",\n        \"member_number\": \"89892893\",\n        \"card_number\": \"1221212\",\n        \"insurance_class\": \"group\",\n        \"type\": \"non-VIP\"\n    },\n    \"doctor\": {\n        \"name\": \"dr Addina\",\n        \"phone_number\": \"+628877334442\",\n        \"speciality\": \"Umum\",\n        \"sip\": \"SIP3334\"\n    },\n    \"patient\": {\n        \"name\": \"Abdul\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -6.170166,\n            \"longitude\": 106.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v2/prescription","description":"<p>You can submit prescription photos or prescription medication informations to get a subscription using this endpoint. After you have submitted your prescription, you will get a subscription with <code>in_review</code> status that would be reviewed by our pharmacists.</p>\n<p>We are using Reverse Geocoding to convert latitude and longitude values to address details. Therefore, you are only required to fill the latitude and longitude address and not required to fill the address detail. But if you prefer and/or have more accurate data, we will use the address details value that you send to us instead of the reverse geocoded ones. If you don't have any customer address coordinate data, you can apply for Payment on Us partner account type so you can send address entity without coordinate data. Please refer to <a href=\"#partner-account-types\">this</a> section for more information.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prescription_photo_id</td>\n<td><code>optional</code> <code>number</code> Prescription Photo ID</td>\n</tr>\n<tr>\n<td></td>\n<td>Required if <code>products</code> and <code>medication</code> parameter is set to <code>null</code></td>\n</tr>\n<tr>\n<td>city_id</td>\n<td><code>optional</code> <code>integer</code> City ID</td>\n</tr>\n<tr>\n<td></td>\n<td>Please refer to <a href=\"#68973471-4bc6-4071-ba30-127c8063fd9d\">this</a> section to obtain city ID</td>\n</tr>\n<tr>\n<td></td>\n<td>If this field is not set, default value will be gathered from doctor's first clinic location.</td>\n</tr>\n<tr>\n<td></td>\n<td>This will also affects the delivery price</td>\n</tr>\n<tr>\n<td>products</td>\n<td><code>optional</code> <code>object[]</code> Refer to product entity below</td>\n</tr>\n<tr>\n<td></td>\n<td>Required if <code>prescription_photo_id</code> and <code>medication</code> is set to <code>null</code></td>\n</tr>\n<tr>\n<td>medication</td>\n<td><code>optional</code> <code>string</code> Medication list (free text and accepts <code>\\n</code>)</td>\n</tr>\n<tr>\n<td></td>\n<td>Required if <code>prescription_photo_id</code> and <code>products</code> is set to <code>null</code></td>\n</tr>\n<tr>\n<td>doctor</td>\n<td><code>object</code> Refer to doctor entity below</td>\n</tr>\n<tr>\n<td>patient</td>\n<td><code>object</code> Refer to patient entity below</td>\n</tr>\n<tr>\n<td>insurance</td>\n<td><code>nullable</code> <code>object</code> Refer to insurance entity below</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"product-entity\">Product Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_id</td>\n<td><code>integer</code> Product ID</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td><code>integer</code> Medicine quantity</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than 0</td>\n</tr>\n<tr>\n<td>dosage_per_day</td>\n<td><code>integer</code> Medicine dosage per day</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than 0</td>\n</tr>\n<tr>\n<td>dosage_per_unit</td>\n<td><code>decimal</code> Medicine dosage per unit</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than 0</td>\n</tr>\n<tr>\n<td>direction</td>\n<td><code>string</code> Medicine direction</td>\n</tr>\n<tr>\n<td></td>\n<td>Example: <code>1 on morning, 2 on evening</code></td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be greater than 0</td>\n</tr>\n<tr>\n<td>notes</td>\n<td><code>optional</code> <code>string</code> Medicine notes</td>\n</tr>\n<tr>\n<td></td>\n<td>Fill this if only there is any concerned notes that is not covered within attributes above</td>\n</tr>\n<tr>\n<td></td>\n<td>Example: <code>finish the medicine</code></td>\n</tr>\n<tr>\n<td>dosage_instruction</td>\n<td>refer to Dosage Instruction entity below</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"doctor-entity\">Doctor Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of the doctor</td>\n</tr>\n<tr>\n<td></td>\n<td>Won't override existing doctor data if the doctor with current phone number already exists</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 3 to 36 characters</td>\n</tr>\n<tr>\n<td></td>\n<td>Only alphanumeric and space characters are allowed</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number of the doctor</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be started with \"+\" followed with series of numbers</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 9 to 15 characters</td>\n</tr>\n<tr>\n<td>specialty</td>\n<td><code>optional</code> <code>string</code> Doctor specialization</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 100</td>\n</tr>\n<tr>\n<td>sip</td>\n<td><code>optional</code> <code>string</code> Doctor SIP</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 100</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"patient-entity\">Patient Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 3 to 36 characters</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be started with \"+\" followed with series of numbers</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 9 to 15 characters</td>\n</tr>\n<tr>\n<td></td>\n<td><code>optional</code> <code>string</code> Patient's allergy</td>\n</tr>\n<tr>\n<td>allergy</td>\n<td><code>integer</code> Patient's age</td>\n</tr>\n<tr>\n<td>diagnose</td>\n<td><code>string</code> Patient diagnose</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be within 3 to 255 characters</td>\n</tr>\n<tr>\n<td>age</td>\n<td><code>number</code> Patient's age</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n<tr>\n<td>age_unit</td>\n<td><code>optional</code> <code>enum</code> Patient's age unit</td>\n</tr>\n<tr>\n<td></td>\n<td>Valid values: <code>years</code>, <code>months</code>, <code>days</code>. Default: <code>years</code></td>\n</tr>\n<tr>\n<td>weight</td>\n<td><code>number</code> Patient's body weight in kilograms</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n<tr>\n<td>gender</td>\n<td><code>enum</code> Patient's gender</td>\n</tr>\n<tr>\n<td></td>\n<td>Valid values: <code>male</code>, <code>female</code></td>\n</tr>\n<tr>\n<td>address</td>\n<td><code>object</code> Refer to address entity below</td>\n</tr>\n<tr>\n<td></td>\n<td>Only <code>optional</code> if partner account type is Payment on Us. Please refer to <a href=\"#partner-account-types\">this</a> section for more information</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"address-entity\">Address Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td><code>number</code> Address latitude</td>\n</tr>\n<tr>\n<td></td>\n<td>Only <code>optional</code> if partner account type is Payment on Us. Please refer to <a href=\"#partner-account-types\">this</a> section for more information</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be within -90 and 90</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td><code>number</code> Address longitude</td>\n</tr>\n<tr>\n<td></td>\n<td>Only <code>optional</code> if partner account type is Payment on Us. Please refer to <a href=\"#partner-account-types\">this</a> section for more information</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be within -180 and 180</td>\n</tr>\n<tr>\n<td>first_line</td>\n<td><code>optional</code> <code>string</code> Address first line</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>second_line</td>\n<td><code>optional</code> <code>string</code> Address second line</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>note</td>\n<td><code>optional</code> <code>string</code> Address notes</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>province</td>\n<td><code>optional</code> <code>string</code> Address province</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>district</td>\n<td><code>optional</code> <code>string</code> Address district</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>sub_district</td>\n<td><code>optional</code> <code>string</code> Address sub district</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td><code>optional</code> <code>string</code> Address postal code</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"insurance-entity\">Insurance Entity</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>company_name</td>\n<td><code>optional</code> <code>string</code> Insurance company name</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be matches with insurance that has already informed to us. Please let us know if you have a new insurance name registered</td>\n</tr>\n<tr>\n<td>policy_number</td>\n<td><code>optional</code> <code>string</code> Insurance policy number</td>\n</tr>\n<tr>\n<td>member_number</td>\n<td><code>optional</code> <code>string</code> Insurance member number</td>\n</tr>\n<tr>\n<td>card_number</td>\n<td><code>string</code> Insurance card number</td>\n</tr>\n<tr>\n<td></td>\n<td>Only required if insurance company name is filled</td>\n</tr>\n<tr>\n<td>insurance_class</td>\n<td><code>string</code> Insurance class</td>\n</tr>\n<tr>\n<td></td>\n<td>Only required if insurance company name is filled</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code> Insurance type</td>\n</tr>\n<tr>\n<td></td>\n<td>Only required if insurance company name is filled</td>\n</tr>\n<tr>\n<td>benefit</td>\n<td><code>optional</code> <code>string</code> Insurance benefits</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"dosage-instruction-entity\">Dosage Instruction Entity</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>dosage</code></td>\n<td>number</td>\n<td>The quantity to be taken at each administration.</td>\n<td><code>0.5</code></td>\n</tr>\n<tr>\n<td><code>dose_unit</code></td>\n<td>string</td>\n<td>The unit of dosage (e.g., tablet, capsule, ml).</td>\n<td><code>\"tablet\"</code></td>\n</tr>\n<tr>\n<td><code>frequency</code></td>\n<td>string</td>\n<td>How often the product should be taken. Natural language is allowed.</td>\n<td><code>\"once a day\"</code></td>\n</tr>\n<tr>\n<td><code>timing</code></td>\n<td>string</td>\n<td>null</td>\n<td>When the product should be taken (e.g., before meal, after meal).</td>\n</tr>\n<tr>\n<td><code>duration</code></td>\n<td>number</td>\n<td>The total duration of the medication.</td>\n<td></td>\n</tr>\n<tr>\n<td><code>duration_unit</code></td>\n<td>string</td>\n<td>The unit for the duration (e.g., days, weeks).</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscription_id</td>\n<td><code>integer</code> Subscription ID</td>\n</tr>\n<tr>\n<td>patient_id</td>\n<td><code>integer</code> Patient ID</td>\n</tr>\n<tr>\n<td>doctor_id</td>\n<td><code>integer</code> Doctor ID</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v2","prescription"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"57ece8bb-7a99-4ba8-b00d-cdbdfa4316d2","name":"Submit Prescription Data With Products (No Insurance)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_photo_id\": null,\n    \"city_id\": 1,\n    \"products\": [\n        {\n            \"product_id\": 1,\n            \"quantity\": 50,\n            \"dosage_per_day\": 3,\n            \"dosage_per_unit\": 1,\n            \"direction\": \"setelah makan\",\n            \"notes\": \"habiskan\",\n            \"dosage_instruction\": {\n                \"dosage\": 1,\n                \"dose_unit\": \"tablet\",\n                \"frequency\": \"three times a day\",\n                \"timing\": \"after meal\",\n                \"duration\": 3,\n                \"duration_unit\": \"days\"\n            }\n        }\n    ],\n    \"doctor\": {\n        \"name\": \"Faldy\",\n        \"phone_number\": \"+676767767\",\n        \"specialty\": \"Cardiologist\",\n        \"sip\": \"SIPDOKTER\",\n        \"str\": \"STR123\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -6.170166,\n            \"longitude\": 106.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v2/prescription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 26 May 2020 04:40:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"38-gMXWIPKCeZ2z0sZtZ/g8JfqMSGc\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"{\n    \"subscription_id\": 351,\n    \"patient_id\": 183,\n    \"doctor_id\": 244\n}"},{"id":"adc3209b-497c-4f1d-a07f-cab9032cf629","name":"Submit With Prescription Photo ID (With Insurance)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_photo_id\": 12,\n    \"city_id\": 1,\n    \"insurance\": {\n        \"company_name\": \"Asuransiku\",\n        \"policy_number\": \"123132321313\",\n        \"member_number\": \"89892893\",\n        \"card_number\": \"1221212\",\n        \"insurance_class\": \"group\",\n        \"type\": \"Non-VIP\",\n        \"benefit\": \"\"\n    },\n    \"products\": null,\n    \"doctor\": {\n        \"name\": \"Faldy\",\n        \"phone_number\": \"+676767767\",\n        \"specialty\": \"Cardiologist\",\n        \"sip\": \"SIPDOKTER\",\n        \"str\": \"STR123\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -6.170166,\n            \"longitude\": 106.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v2/prescription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 15 May 2020 04:09:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"3a-isq06tvhxvUjHw3kl2KErl9jglA\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"{\n    \"subscription_id\": 139,\n    \"patient_id\": 12,\n    \"doctor_id\": 5\n}"},{"id":"36f2ad3b-f8f8-4a6c-85cf-9c73fb5f63b6","name":"Invalid Coordinate","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_id\": 12,\n    \"city_id\": 1,\n    \"products\": null,\n    \"doctor\": {\n        \"name\": \"Faldy\",\n        \"phone_number\": \"+676767767\",\n        \"specialty\": \"Cardiologist\",\n        \"sip\": \"SIPDOKTER\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -89.170166,\n            \"longitude\": 179.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v2/prescription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 15 May 2020 04:10:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"49-HKLnJ7ZVnQjZyFThTK6jDb73SEw\""}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"INVALID_COORDINATE\",\n    \"error_message\": \"Invalide Coordinate\"\n}"},{"id":"c58c3ad1-04b4-4d6b-afd5-a8e0dd91a691","name":"One of the Products not Found","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"prescription_photo_id\": null,\n    \"city_id\": 1,\n    \"insurance\": null,\n    \"products\": [\n        {\n            \"product_id\": 1,\n            \"quantity\": 50,\n            \"dosage_per_day\": 3,\n            \"dosage_per_unit\": 1,\n            \"direction\": \"setelah makan\",\n            \"notes\": \"habiskan\"\n        },\n        {\n            \"product_id\": 2,\n            \"quantity\": 50,\n            \"dosage_per_day\": 3,\n            \"dosage_per_unit\": 1,\n            \"direction\": \"setelah makan\",\n            \"notes\": \"habiskan\"\n        }\n    ],\n    \"doctor\": {\n        \"name\": \"Faldy\",\n        \"phone_number\": \"+676767754567\",\n        \"specialty\": \"Cardiologist\",\n        \"sip\": \"SIPDOKTER\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Hipertensi\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\",\n        \"address\": {\n            \"postal_code\": \"98767\",\n            \"latitude\": -6.170166,\n            \"longitude\": 106.831375,\n            \"first_line\": \"Menara Palma\",\n            \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n            \"note\": \"Graha Irama\",\n            \"province\": \"DKI Jakarta\",\n            \"district\": \"South Jakarta\",\n            \"sub_district\": \"Setiabudi\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v2/prescription"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"64"},{"key":"etag","value":"W/\"40-1grZnfSF7+98rWMOqIMEHnjJDxA\""},{"key":"date","value":"Tue, 01 Sep 2020 10:00:40 GMT"},{"key":"x-forwarded-proto","value":"https"},{"key":"strict-transport-security","value":"max-age=2592000"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"PRODUCT_NOT_FOUND\",\n    \"message\": \"Product not found\"\n}"},{"id":"6b746970-0cfc-4f6b-adab-e2078810d3e9","name":"Submit Prescription Data With non-strict Product Details","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"medication\": \"R/. Azithromycin 500mg No. X S 2 dd I pc\\nR/. Cortidex No. XV S 3 dd I\\nR/. Becomzet No. X S 1 dd I\\nR/. Seloxy No. X S 2 dd I\\nR/. Rhinos SR No. X S 2 dd I\",\n    \"consultation_fee\": 100000,\n    \"doctor\": {\n        \"name\": \"dr Amsal\",\n        \"phone_number\": \"+62187278712\",\n        \"specialty\": \"Cardiologist\",\n        \"str\": \"STR123\"\n    },\n    \"patient\": {\n        \"name\": \"Jono Suardoyo\",\n        \"phone_number\": \"+628712312312\",\n        \"allergy\": \"Alergi debu\",\n        \"diagnose\": \"Hipertensi\",\n        \"age\": 45,\n        \"weight\": 102.2,\n        \"gender\": \"male\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v2/prescription"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 26 May 2020 04:40:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"38-gMXWIPKCeZ2z0sZtZ/g8JfqMSGc\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"{\n    \"subscription_id\": 351,\n    \"patient_id\": 183,\n    \"doctor_id\": 244\n}"}],"_postman_id":"53954f1f-40bb-4a42-8b11-d455b3d6a10a"}],"id":"cdcb9d94-f839-428c-99da-8f7a9953b529","description":"<p>In Prescription API there are two endpoints that is to upload the prescription photo and create new prescription.</p>\n<h2 id=\"submitting-prescriptions\">Submitting Prescriptions</h2>\n<p>The detailed workflow of submitting a prescription is as follows:</p>\n<h3 id=\"create-prescription-flow\">Create Prescription Flow</h3>\n<p><img src=\"https://drive.google.com/uc?export=view&amp;id=1B9-rTzJFqvmM2UyoEKDOccZ_J_LliQhE\" alt=\"Create Prescription Flow\" /></p>\n<p>After you have submitted your prescription, you will get a subscription with <code>in_review</code> status that would be reviewed by our pharmacists. And then, there is a possibility that your prescription will be rejected and changed the status to <code>prescription_rejected</code>. There are two ways to submit prescription data to this endpoint:</p>\n<h4 id=\"option-1-dont-have-prescription-photo-andor-want-to-manually-input-medication-details-with-existing-lifepack-product-information\">Option 1: Don't Have Prescription Photo and/or Want to Manually Input Medication Details With Existing Lifepack Product Information</h4>\n<p>If you prefer submitting prescription data with inputting the medication list, follow through this steps:</p>\n<ol>\n<li>Obtain the product IDs from product list using the endpoint <code>GET /partner/v1/product</code></li>\n<li>Submit the prescription through using the endpoint <code>POST /partner/v1/prescription</code>. You should only pass the <code>products</code> parameter as an array. Then, the <code>prescription_photo_id</code> and <code>medication</code> parameter should be <code>null</code>.</li>\n</ol>\n<h4 id=\"option-2-dont-have-prescription-photo-andor-want-to-manually-input-medication-details-more-freely\">Option 2: Don't Have Prescription Photo and/or Want to Manually Input Medication Details (More Freely)</h4>\n<p>If you need to submit the prescription data with inputting the medication list more freely without getting list medicines from Lifepack, please follow through this steps:</p>\n<ol>\n<li>Submit the prescription through using the endpoint <code>POST /partner/v1/prescription</code>. You should only pass the <code>medication</code> parameter as an array. Then, the <code>prescription_photo_id</code> and <code>products</code> parameter should be <code>null</code>.</li>\n</ol>\n<h4 id=\"option-3-have-prescription-photo-andor-dont-want-to-manually-input-medication-details\">Option 3: Have Prescription Photo and/or Don't Want to Manually Input Medication Details</h4>\n<p>If you prefer submitting prescription data without inputting the medication list, follow through this steps:</p>\n<ol>\n<li>Upload prescription photo through <code>POST /partner/v1/prescription-photo</code>.</li>\n<li>After you have obtained the <code>prescription_photo_id</code>, you are ready to submit the prescription. Submit the prescription through using the endpoint <code>POST /partner/v1/prescription</code>. You should only pass the <code>prescription_photo_id</code>. Then, the <code>products</code> and <code>medication</code> parameter should be <code>null</code>.</li>\n</ol>\n","event":[{"listen":"prerequest","script":{"id":"29bdccfa-a479-45e0-938e-d70ea78ccaf7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b478b994-5e15-479c-a90f-30bfb14c5082","type":"text/javascript","exec":[""]}}],"_postman_id":"cdcb9d94-f839-428c-99da-8f7a9953b529"},{"name":"Subscription","item":[{"name":"Subscription History","id":"0bb084e6-2e38-4c52-86c9-1a3f28e65553","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":"{{LIFEPACK_BASE_URL}}/partner/v1/subscription?limit=10&offset=0","description":"<p>You can get all of the subscription histories using this endpoint.</p>\n<h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> Subscription ID</td>\n</tr>\n<tr>\n<td>status</td>\n<td><code>enum</code> Refer to <a href=\"https://api-docs.lifepack.id/?version=latest#subscription-status\">subscription status reference section</a> for possible values</td>\n</tr>\n<tr>\n<td>full_name</td>\n<td><code>string</code> Patient's full name</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 36 characters</td>\n</tr>\n<tr>\n<td>total_price</td>\n<td><code>number</code> Total price</td>\n</tr>\n<tr>\n<td>currency</td>\n<td><code>string</code> Currency used for payment</td>\n</tr>\n<tr>\n<td></td>\n<td>Possibble values: <code>IDR</code>, <code>USD</code>, <code>SGD</code></td>\n</tr>\n<tr>\n<td>end_date</td>\n<td><code>string</code> Latest medication taking date time</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td><code>string</code> Data last updated at timestamp</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>expired_at</td>\n<td><code>nullable</code> <code>string</code> Data order will expired at. Only have value if the status is already <code>pending_addrress</code> or <code>payment_order</code>. Will be emptied again if status is <code>payment_successful</code>.</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>estimated_delivery</td>\n<td><code>string</code> Estimated package delivery time</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>is_notified</td>\n<td><code>boolean</code> If <code>true</code>, user has been notified when medication is already arrived</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","subscription"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[{"description":{"content":"<p>Maximum number of data (optional, default: 999)</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>Data offset (optional, default: 0)</p>\n","type":"text/plain"},"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"b9b22670-bf5b-4923-8339-f984fca9d3c3","name":"Success Get Subscription History","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/subscription?limit=10&offset=0","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","subscription"],"query":[{"key":"limit","value":"10","description":"Maximum number of data (optional, default: 999)"},{"key":"offset","value":"0","description":"Data offset (optional, default: 0)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1848"},{"key":"ETag","value":"W/\"738-TkQFOPdCDcPFMEaaQh5YXA/lubQ\""},{"key":"Date","value":"Mon, 08 Jun 2020 02:21:39 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 411,\n        \"status\": \"active\",\n        \"full_name\": \"Jono Diabetes\",\n        \"total_price\": 144802,\n        \"currency\": \"IDR\",\n        \"updated_at\": \"2020-06-04 11:28:46\",\n        \"expired_at\": null,\n        \"start_date\": \"2020-06-04 07:00:00\",\n        \"end_date\": \"2020-06-08 23:59:59\",\n        \"estimated_delivery\": \"2020-06-08 09:21:39\",\n        \"is_notified\": true\n    },\n    {\n        \"id\": 412,\n        \"status\": \"active\",\n        \"full_name\": \"Jono Diabetes\",\n        \"total_price\": 16502,\n        \"currency\": \"IDR\",\n        \"updated_at\": \"2020-06-04 15:33:44\",\n        \"expired_at\": null,\n        \"start_date\": \"2020-06-09 07:00:00\",\n        \"end_date\": \"2020-06-13 23:59:59\",\n        \"estimated_delivery\": \"2020-06-08 09:21:39\",\n        \"is_notified\": false\n    },\n    {\n        \"id\": 414,\n        \"status\": \"active\",\n        \"full_name\": \"Jono Diabetes\",\n        \"total_price\": 16502,\n        \"currency\": \"IDR\",\n        \"updated_at\": \"2020-06-04 15:50:52\",\n        \"expired_at\": null,\n        \"start_date\": \"2020-06-14 07:00:00\",\n        \"end_date\": \"2020-06-18 23:59:59\",\n        \"estimated_delivery\": \"2020-06-08 09:21:39\",\n        \"is_notified\": false\n    },\n    {\n        \"id\": 413,\n        \"status\": \"order_expired\",\n        \"full_name\": \"Jono Diabetes Mark IV\",\n        \"total_price\": 113509,\n        \"currency\": \"IDR\",\n        \"updated_at\": \"2020-06-04 16:20:00\",\n        \"expired_at\": \"2020-06-04 17:20:00\",\n        \"start_date\": \"2020-06-04 07:00:00\",\n        \"end_date\": \"2020-06-08 23:59:59\",\n        \"estimated_delivery\": \"2020-06-08 09:21:39\",\n        \"is_notified\": false\n    },\n    {\n        \"id\": 416,\n        \"status\": \"prescription_approved\",\n        \"full_name\": \"Jono Diabetes Mark IV\",\n        \"total_price\": 93509,\n        \"currency\": \"IDR\",\n        \"updated_at\": \"2020-06-04 16:57:20\",\n        \"expired_at\": null,\n        \"start_date\": \"2020-06-09 07:00:00\",\n        \"end_date\": null,\n        \"estimated_delivery\": \"2020-06-08 09:21:39\",\n        \"is_notified\": false\n    },\n    {\n        \"id\": 418,\n        \"status\": \"payment_order\",\n        \"full_name\": \"Jono Diabetes Mark X\",\n        \"total_price\": 54666,\n        \"currency\": \"IDR\",\n        \"updated_at\": \"2020-06-05 12:01:01\",\n        \"expired_at\": \"2020-07-05 12:01:01\",\n        \"start_date\": \"2020-06-05 07:00:00\",\n        \"end_date\": null,\n        \"estimated_delivery\": \"2020-06-08 09:21:39\",\n        \"is_notified\": false\n    }\n]"}],"_postman_id":"0bb084e6-2e38-4c52-86c9-1a3f28e65553"},{"name":"Subscription Detail","id":"16595cf9-dfe3-4b83-a319-5e61d12464f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":"{{LIFEPACK_BASE_URL}}/partner/v1/subscription/:subscriptionId","description":"<p>You can get the subscription detail data using this endpoint.</p>\n<h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> Subscription ID</td>\n</tr>\n<tr>\n<td>prescription_id</td>\n<td><code>integer</code> Prescription ID</td>\n</tr>\n<tr>\n<td>products[]</td>\n<td><code>array</code> Refer to product entity below</td>\n</tr>\n<tr>\n<td>payment</td>\n<td><code>object</code> Refer to payment entity below</td>\n</tr>\n<tr>\n<td>reject_reason</td>\n<td><code>string</code> Rejection reason (if rejected)</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 100 characters</td>\n</tr>\n<tr>\n<td>prescription_image</td>\n<td><code>string[]</code> Prescription image</td>\n</tr>\n<tr>\n<td>status</td>\n<td><code>enum</code> Refer to <a href=\"https://api-docs.lifepack.id/?version=latest#subscription-status\">subscription status reference section</a> for possible values</td>\n</tr>\n<tr>\n<td>invoice_url</td>\n<td><code>nullable</code> <code>string</code> Invoice URL. Will be null when invoice is not yet generated (order still hasn't paid)</td>\n</tr>\n<tr>\n<td>claim_id</td>\n<td><code>nullable</code> <code>string</code> Insurance claim ID</td>\n</tr>\n<tr>\n<td>next_recurring_id</td>\n<td><code>nullable</code> <code>integer</code> Contains subscription ID for the next recurring subscription if not null</td>\n</tr>\n<tr>\n<td>is_notified</td>\n<td><code>boolean</code> If <code>true</code>, user has been notified when medication is already arrived</td>\n</tr>\n<tr>\n<td>patient</td>\n<td><code>object</code> Refer to patient entity below</td>\n</tr>\n<tr>\n<td>estimated_delivery</td>\n<td><code>string</code> Estimated package delivery time</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>start_date</td>\n<td><code>string</code> First schedule for medication taking</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>end_date</td>\n<td><code>string</code> Last schedule for medication taking</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td><code>string</code> Data last updated at timestamp</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>expired_at</td>\n<td><code>nullable</code> <code>string</code> Data order will expired at. Only have value if the status is already <code>pending_addrress</code> or <code>payment_order</code>. Will be emptied again if status is <code>payment_successful</code>.</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td>currency</td>\n<td><code>string</code> Currency used for payment</td>\n</tr>\n<tr>\n<td></td>\n<td>Possibble values: <code>IDR</code>, <code>USD</code>, <code>SGD</code></td>\n</tr>\n<tr>\n<td>address</td>\n<td><code>optional</code> <code>object</code> Refer to address entity below</td>\n</tr>\n<tr>\n<td></td>\n<td>If the subscription is created without passing address entity and user hasn't set the address yet, this value will be an empty object (<code>{}</code>)</td>\n</tr>\n<tr>\n<td>payment_link</td>\n<td>Please follow this link for payment details</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"patient-entity\">Patient Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 36 characters</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be started with \"+\" followed with series of numbers</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 15 characters</td>\n</tr>\n<tr>\n<td>allergy</td>\n<td><code>optional</code> <code>string</code> Patient's allergy</td>\n</tr>\n<tr>\n<td>age</td>\n<td><code>optional</code> <code>integer</code> Patient's age</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n<tr>\n<td>weight</td>\n<td><code>optional</code> <code>number</code> Patient's body weight in kilograms</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n<tr>\n<td>gender</td>\n<td><code>enum</code> Patient's gender</td>\n</tr>\n<tr>\n<td></td>\n<td>Valid values: <code>male</code>, <code>female</code></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"address-entity\">Address Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>latitude</td>\n<td><code>optional</code> <code>number</code> Address latitude</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be within -90 and 90</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td><code>optional</code> <code>number</code> Address longitude</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be within -180 and 180</td>\n</tr>\n<tr>\n<td>first_line</td>\n<td><code>optional</code> <code>string</code> Address first line</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>second_line</td>\n<td><code>optional</code> <code>string</code> Address second line</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>note</td>\n<td><code>optional</code> <code>string</code> Address notes</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>province</td>\n<td><code>optional</code> <code>string</code> Address province</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>district</td>\n<td><code>optional</code> <code>string</code> Address district</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>sub_district</td>\n<td><code>optional</code> <code>string</code> Address sub district</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n<tr>\n<td>postal_code</td>\n<td><code>optional</code> <code>string</code> Address postal code</td>\n</tr>\n<tr>\n<td></td>\n<td>Length should be less than or equal to 255</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"product-entity\">Product Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> Product ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code> Product name</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 100 characters</td>\n</tr>\n<tr>\n<td>price</td>\n<td><code>number</code> Product total price</td>\n</tr>\n<tr>\n<td>currency</td>\n<td><code>string</code> Currency used for payment</td>\n</tr>\n<tr>\n<td></td>\n<td>Possibble values: <code>IDR</code>, <code>USD</code>, <code>SGD</code></td>\n</tr>\n<tr>\n<td>qty</td>\n<td><code>integer</code> Product quantity</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code> Product type</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 100 characters</td>\n</tr>\n<tr>\n<td>uom</td>\n<td><code>string</code> Unit of measurement for the product</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"payment-entity\">Payment Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> Payment ID</td>\n</tr>\n<tr>\n<td>total_price</td>\n<td><code>number</code> Total price include shipping</td>\n</tr>\n<tr>\n<td>subtotal_price</td>\n<td><code>number</code> Total price exclude shipping</td>\n</tr>\n<tr>\n<td>delivery_price</td>\n<td><code>number</code> Delivery price</td>\n</tr>\n<tr>\n<td>expired_at</td>\n<td><code>optiional</code> <code>string</code> Payment expiry time</td>\n</tr>\n<tr>\n<td></td>\n<td>Date format <code>YYYY-MM-DD HH:mm:ss</code></td>\n</tr>\n<tr>\n<td></td>\n<td>This value will only present if current status is <code>waiting_for_payment</code></td>\n</tr>\n<tr>\n<td>method</td>\n<td><code>optional</code> <code>number</code> Payment method</td>\n</tr>\n<tr>\n<td></td>\n<td>Only appear when payment is already initiated/at least is at <code>waiting_for_payment</code> status</td>\n</tr>\n<tr>\n<td>logo</td>\n<td><code>optional</code> <code>string</code> Bank logo</td>\n</tr>\n<tr>\n<td></td>\n<td>Only has value when payment is already initiated/at least is at <code>waiting_for_payment</code> status and payment method is using bank</td>\n</tr>\n<tr>\n<td>account_number</td>\n<td><code>optional</code> <code>string</code> Bank account number</td>\n</tr>\n<tr>\n<td></td>\n<td>Only has value when payment is already initiated/at least is at <code>waiting_for_payment</code> status and payment method is using bank</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","subscription",":subscriptionId"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[],"variable":[{"type":"string","value":"411","key":"subscriptionId"}]}},"response":[{"id":"b31628c0-f7f1-45ac-8e4f-b742acfd9ccb","name":"Success Get Subscription Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/subscription/:subscriptionId","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","subscription",":subscriptionId"],"variable":[{"key":"subscriptionId","value":"411","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1224"},{"key":"ETag","value":"W/\"4c8-c5h8Lhmpcatt+A3gitDAORbSKOY\""},{"key":"Date","value":"Mon, 08 Jun 2020 01:49:18 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 411,\n    \"prescription_id\": 443,\n    \"products\": [\n        {\n            \"id\": 1291,\n            \"name\": \"SERETIDE DISKUS 50 MCG/500 MCG\",\n            \"price\": 574094,\n            \"currency\": \"IDR\",\n            \"qty\": 1,\n            \"type\": \"Inhalant\",\n            \"uom\": \"Pcs\",\n            \"satuan\": \"Pcs\",\n            \"is_pending_po\": false,\n            \"is_required_self_pickup\": false,\n            \"direction\": \"2x1 Spray (Inhalational)\",\n            \"doctor_notes\": \"\",\n            \"dosage_instruction\": {\n                \"dosage\": 1,\n                \"dose_unit\": \"spray\",\n                \"frequency\": \"two times a day\",\n                \"timing\": \"after meal\"\n            }\n        },\n        {\n            \"id\": 4,\n            \"name\": \"ABILIFY 10 MG TABLET\",\n            \"price\": 390790,\n            \"currency\": \"IDR\",\n            \"qty\": 5,\n            \"type\": \"Tablet\",\n            \"uom\": \"Tablet\",\n            \"satuan\": \"Tablet\",\n            \"is_pending_po\": false,\n            \"is_required_self_pickup\": false,\n            \"direction\": \"1x1 Tablet (Oral)\",\n            \"doctor_notes\": \"\",\n            \"dosage_instruction\": {\n                \"dosage\": 1,\n                \"dose_unit\": \"tablet\",\n                \"frequency\": \"three times a day\",\n                \"timing\": \"after meal\"\n            }\n        }\n    ],\n    \"payment\": {\n        \"id\": 148,\n        \"subtotal_price\": 3002,\n        \"discount\": 0,\n        \"total_price\": 144802,\n        \"delivery_price\": 33500\n    },\n    \"reject_reason\": null,\n    \"prescription_image\": [\n        \"https://b2b.lifepack.id/images/prescription/prescription-1591238976100085.jpg\",\n        \"https://b2b.lifepack.id/images/prescription/prescription-1591238976106402.jpeg\"\n    ],\n    \"claim_id\": \"0030\",\n    \"invoice_url\": \"https://api.lifepack.id/images/invoice/202008/20200814-invoice-770.jpg\",\n    \"status\": \"active\",\n    \"next_recurring_id\": 412,\n    \"is_notified\": true,\n    \"patient\": {\n        \"id\": \"183\",\n        \"full_name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\"\n    },\n    \"estimated_delivery\": \"2020-06-08 08:49:18\",\n    \"start_date\": \"2020-06-04 07:00:00\",\n    \"end_date\": \"2020-06-08 23:59:59\",\n    \"updated_at\": \"2020-06-04 11:28:46\",\n    \"expired_at\": \"2020-06-04 15:28:46\",\n    \"currency\": \"IDR\",\n    \"address\": {\n        \"id\": 180,\n        \"default\": false,\n        \"latitude\": -6.170166,\n        \"longitude\": 106.831375,\n        \"first_line\": \"Menara Palma\",\n        \"second_line\": \"Jl. Hr. Rasuna Said Blok X2 No. 6\",\n        \"postal_code\": \"10710\",\n        \"note\": \"Graha Irama\",\n        \"street_name\": \" \",\n        \"province\": \"Jakarta\",\n        \"city\": \"Central Jakarta City\",\n        \"district\": \"Sawah Besar\",\n        \"sub_district\": null\n    },\n    \"payment_link\": \"https://link.lifepack.id/jV87\"\n}"}],"_postman_id":"16595cf9-dfe3-4b83-a319-5e61d12464f9"}],"id":"b2bec71d-6eff-4f37-a1e3-3c937ca21d01","description":"<p>See information about Subscription history and Subscription Detail</p>\n","event":[{"listen":"prerequest","script":{"id":"75f0f9ae-4f85-4b0f-8a7c-f0a6a64139f4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"40d06175-fbc0-46be-846b-9f88a854c655","type":"text/javascript","exec":[""]}}],"_postman_id":"b2bec71d-6eff-4f37-a1e3-3c937ca21d01"},{"name":"Payment","item":[{"name":"Change Payment Status to Paid","id":"60c7c2e6-5e27-47d9-9713-7b898a1f6f16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"subscription_id\": 12,\n    \"signature_key\": \"bf6c5a49d5a4d7a0debeb19d6fdc1008730565d36a6255530e3943fbd627eb489fc89129286df9e72ddc42d735c45d60d92938d6e103ac966ae4919a8d3c564c\"\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/payment","description":"<p>This endpoint is used to change payment status to paid for Standard Partner account type. If you have Payment on Us partner account type, you are forbidden to hit this endpoint. Please refer to <a href=\"#partner-account-types\">this</a> section for more information.</p>\n<p>Ideally, this endpoint is should be called after you got a subscription notification which the status changes to <code>payment_order</code> and you have successfully charge your customer for the payment. This endpoint only supposed to called once, when the status is <code>payment_order</code>.</p>\n<h3 id=\"signature\">Signature</h3>\n<p>When calling this endpoint, you will need to send a hashed signature with this algorithm:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>SHA512(ServerKey + SubscriptionId + Amount)\n\nServerKey = Partner Server Key\nSubscriptionId = refers to *id* in Subscription Detail\nAmount = refers to *payment.total_price* in Subscription Detail\n</code></pre><p>Note: Amount should has 2 decimal places.</p>\n<h4 id=\"sample-code-for-generating-signature-nodejs\">Sample Code for Generating Signature (node.js)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const Crypto = require('crypto');\n\nfunction generateSignature(serverKey, subscriptionId, amount) {\n    const stringKey = `${serverKey}${subscriptionId}${amount}`;\n    return Crypto.createHash('sha512').update(stringKey).digest('hex');\n}\n\nconst serverKey = '36fec90790f0ada49b009b146';\nconst subscriptionId = 12;\nconst amount = '100000.00';\n\nconsole.log(`Signature Key: ${generateSignature(serverKey, subscriptionId, amount)}`);\n</code></pre><h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>subscription_id</td>\n<td><code>integer</code> Subscription ID</td>\n</tr>\n<tr>\n<td>signature_key</td>\n<td><code>string</code> Signature for current subscription ID</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<p>It will return <code>400 Bad Request</code> error if the subscription ID or signature key is not valid. Otherwise, the response will be <code>200 OK</code> with the structure below if payment status has successfully changed.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td><code>enum</code> Payment request status</td>\n</tr>\n<tr>\n<td></td>\n<td>Possible values: <code>SUCCESS</code>, <code>FAILED</code></td>\n</tr>\n<tr>\n<td>error</td>\n<td><code>nullable</code> Refer to error entity below</td>\n</tr>\n<tr>\n<td></td>\n<td>Will only be sent if the <code>status</code> response is <code>FAILED</code></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"error-entity\">Error Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>error_code</td>\n<td><code>enum</code> Error code</td>\n</tr>\n<tr>\n<td></td>\n<td>Refer to error codes section below</td>\n</tr>\n<tr>\n<td>message</td>\n<td><code>string</code> Error message</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"error-codes\">Error Codes</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>SUBSCRIPTION_ALREADY_PAID</td>\n<td>Subscription is already paid before</td>\n</tr>\n<tr>\n<td>SUBSCRIPTION_NOT_READY_TO_PAID</td>\n<td>Subscription is still on review and not ready to be paid</td>\n</tr>\n<tr>\n<td>SUBSCRIPTION_NOT_FOUND</td>\n<td>Subscription is not found</td>\n</tr>\n<tr>\n<td>SUBSCRIPTION_SIGNATURE_KEY_INVALID</td>\n<td>Signature key invalid</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","payment"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"406eb6dd-a091-4e3f-8a12-f6187bf44b32","name":"Subscription not Found","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subscription_id\": 12,\n    \"signature_key\": \"bf6c5a49d5a4d7a0debeb19d6fdc1008730565d36a6255530e3943fbd627eb489fc89129286df9e72ddc42d735c45d60d92938d6e103ac966ae4919a8d3c564c\"\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/payment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"77"},{"key":"ETag","value":"W/\"4d-7m/y44GLTQ1U0X3UBGrgknqf2ns\""},{"key":"Date","value":"Thu, 14 May 2020 03:33:10 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"SUBSCRIPTION_NOT_FOUND\",\n    \"message\": \"Subscription is not found\"\n}"},{"id":"7207ac9a-933d-424d-8787-505f1b28305c","name":"Failed Change Payment Status","originalRequest":{"method":"PUT","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"raw","raw":"{\n    \"subscription_id\": 12,\n    \"signature_key\": \"bf6c5a49d5a4d7a0debeb19d6fdc1008730565d36a6255530e3943fbd627eb489fc89129286df9e72ddc42d735c45d60d92938d6e103ac966ae4919a8d3c564c\"\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"117"},{"key":"ETag","value":"W/\"75-HZH3y/v7rIcxgWLpsta3OvT91kY\""},{"key":"Date","value":"Thu, 14 May 2020 03:32:30 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"FAILED\",\n    \"error\": {\n        \"error_code\": \"SUBSCRIPTION_NOT_READY_TO_PAID\",\n        \"message\": \"Subscription is still on review and not ready to be paid\"\n    }\n}"},{"id":"e106c700-8d73-45b2-9191-13c0486f1f79","name":"Change Payment Status to Paid","originalRequest":{"method":"PUT","header":[{"key":"Authorization","type":"text","value":"Basic dGVzdC1wYXJ0bmVyOmE2MWNlZTUzZTJiODcxNWE3YjI1NzViNTBiZDU1YmMwNGRlYThlZjQ5ZWM2YjI1NTQ3"}],"body":{"mode":"raw","raw":"{\n    \"subscription_id\": 12,\n    \"signature_key\": \"bf6c5a49d5a4d7a0debeb19d6fdc1008730565d36a6255530e3943fbd627eb489fc89129286df9e72ddc42d735c45d60d92938d6e103ac966ae4919a8d3c564c\"\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n\t\"status\": \"SUCCESS\"\n}"}],"_postman_id":"60c7c2e6-5e27-47d9-9713-7b898a1f6f16"}],"id":"c82e02ef-ce29-4990-84bf-ec6535b9202c","description":"<p>You can use Payment API to change subscription payment status.</p>\n","event":[{"listen":"prerequest","script":{"id":"c1a28f09-f464-4390-9f94-643123273236","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f4f491ac-aaa4-4847-b6f3-59c0e836c231","type":"text/javascript","exec":[""]}}],"_postman_id":"c82e02ef-ce29-4990-84bf-ec6535b9202c"},{"name":"Patient","item":[{"name":"Patient Information","id":"ab3a1030-fc17-41d5-8ce3-e45c8db252a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":"{{LIFEPACK_BASE_URL}}/partner/v1/patient?limit=10&offset=0&patient_id=3","description":"<p>You can search for past patients information that have submitted their prescription with your partner credentials into our system at least once with this endpoint. You can pass <code>patient_id</code> query parameter to filter the patient, or you just can leave it blank to show all the patient data.</p>\n<h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>[]</td>\n<td><code>object[]</code> Refer to patient entity below</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"patient-entity\">Patient Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> Patient ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 36 characters</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be started with \"+\" followed with series of numbers</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 15 characters</td>\n</tr>\n<tr>\n<td>allergy</td>\n<td><code>optional</code> <code>string</code> Patient's allergy</td>\n</tr>\n<tr>\n<td>age</td>\n<td><code>optional</code> <code>integer</code> Patient's age</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n<tr>\n<td>gender</td>\n<td><code>enum</code> Patient's gender</td>\n</tr>\n<tr>\n<td></td>\n<td>Valid values: <code>male</code>, <code>female</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","patient"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[{"description":{"content":"<p><code>optional</code> <code>number</code> Data limit (default: 10)</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p><code>optional</code> <code>number</code> Data offset (default: 0)</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p><code>optional</code> <code>number</code> Patient ID</p>\n","type":"text/plain"},"key":"patient_id","value":"3"}],"variable":[]}},"response":[{"id":"cb74da40-f14a-4df7-b1dd-26f4e44de4eb","name":"Get List Specific Patient Information","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/patient?limit=10&offset=0&patient_id=3","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","patient"],"query":[{"key":"limit","value":"10","description":"`optional` `number` Data limit (default: 10)"},{"key":"offset","value":"0","description":"`optional` `number` Data offset (default: 0)"},{"key":"patient_id","value":"3","description":"`optional` `number` Patient ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"115"},{"key":"ETag","value":"W/\"73-Uk2+lq1tyk5AGvCime2K8cysS5k\""},{"key":"Date","value":"Wed, 20 May 2020 09:18:50 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\",\n        \"gender\": \"male\",\n        \"allergy\": \"Alergi kacang\",\n        \"age\": 45\n    }\n]"},{"id":"8b39fba0-1f52-49c2-b05e-2c58cb8fef1d","name":"Get List All Patient Information","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/patient?limit=10&offset=0","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","patient"],"query":[{"key":"limit","value":"10","description":"`optional` `number` Data limit (default: 10)"},{"key":"offset","value":"0","description":"`optional` `number` Data offset (default: 0)"},{"key":"patient_id","value":"27","description":"`optional` `number` Patient ID","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"115"},{"key":"ETag","value":"W/\"73-Uk2+lq1tyk5AGvCime2K8cysS5k\""},{"key":"Date","value":"Wed, 20 May 2020 09:18:07 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"name\": \"Jono Diabetes\",\n        \"phone_number\": \"+628712312312\",\n        \"gender\": \"male\",\n        \"allergy\": \"Alergi kacang\",\n        \"age\": 45\n    }\n]"}],"_postman_id":"ab3a1030-fc17-41d5-8ce3-e45c8db252a4"},{"name":"Register Patient","id":"88f25b11-49ad-4272-a784-92893453b8ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Yudia\",\r\n    \"phone_number\": \"+628569240856\",\r\n    \"insurance\": {\r\n        \"company_name\": \"BNI Life\",\r\n        \"policy_number\": \"003105\"\r\n    },\r\n    \"patients\": [\r\n        {\r\n            \"name\": \"yudia\",\r\n            \"phone_number\": \"+628569240856\",\r\n            \"member_number\": \"031322\",\r\n            \"family_type\": \"self\"\r\n        },\r\n        {\r\n            \"name\": \"karno\",\r\n            \"phone_number\": \"+628547236273\",\r\n            \"member_number\": \"861534\",\r\n            \"family_type\": \"spouse\"\r\n        },\r\n        {\r\n            \"name\": \"Kenan\",\r\n            \"phone_number\": null,\r\n            \"member_number\": \"761235\",\r\n            \"family_type\": \"child\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/patient","description":"<p>You can register patient with this endpoint. Main user should be added too in the patients array. If the operations succeeded, it will returns empty response with <code>204 No Response</code> status code.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td><code>string</code> Patient Name</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 100 characters</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Patient phone number</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be started with \"+\" followed with series of numbers</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 15 characters</td>\n</tr>\n<tr>\n<td>insurance</td>\n<td><code>object</code> Refer to insurance object below</td>\n</tr>\n<tr>\n<td>patients[]</td>\n<td><code>array</code> Refer to patients entity below</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"insurance-entity\">Insurance Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>company_name</td>\n<td><code>string</code> Insurance company name</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be matches with insurance that has already informed to us. Please let us know if you have a new insurance name registered</td>\n</tr>\n<tr>\n<td>policy_number</td>\n<td><code>string</code> Insurance policy number</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"patient-entity\">Patient Entity</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td><code>string</code> Name of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 36 characters</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td><code>string</code> Phone number of the patient</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be started with \"+\" followed with series of numbers</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 15 characters</td>\n</tr>\n<tr>\n<td>member_number</td>\n<td><code>string</code> Insurance member number</td>\n</tr>\n<tr>\n<td>family_type</td>\n<td><code>enum</code> Family type</td>\n</tr>\n<tr>\n<td></td>\n<td>Possible values: <code>self</code>, <code>spouse</code>, <code>child</code></td>\n</tr>\n<tr>\n<td>child_order</td>\n<td><code>optional</code> <code>integer</code> Child order</td>\n</tr>\n<tr>\n<td>age</td>\n<td><code>optional</code> <code>number</code> Patient's age</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n<tr>\n<td>age_unit</td>\n<td><code>optional</code> <code>enum</code> Patient's age unit</td>\n</tr>\n<tr>\n<td></td>\n<td>Valid values: <code>years</code>, <code>months</code>, <code>days</code>. Default: <code>years</code></td>\n</tr>\n<tr>\n<td>weight</td>\n<td><code>optional</code> <code>number</code> Patient's body weight in kilograms</td>\n</tr>\n<tr>\n<td></td>\n<td>Value should be greater than or equal to 0</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","patient"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"18a03c3a-3766-46b7-87f3-31fb908ef009","name":"Policy Number Already Exists","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Yudia\",\r\n    \"phone_number\": \"+628569240856\",\r\n    \"insurance\": {\r\n        \"company_name\": \"BNI Life\",\r\n        \"policy_number\": \"003105\"\r\n    },\r\n    \"patients\": [\r\n        {\r\n            \"name\": \"yudia\",\r\n            \"phone_number\": \"+628569240856\",\r\n            \"member_number\": \"031322\",\r\n            \"family_type\": \"self\"\r\n        },\r\n        {\r\n            \"name\": \"karno\",\r\n            \"phone_number\": \"+628547236273\",\r\n            \"member_number\": \"861534\",\r\n            \"family_type\": \"spouse\"\r\n        },\r\n        {\r\n            \"name\": \"Kenan\",\r\n            \"phone_number\": null,\r\n            \"member_number\": \"761235\",\r\n            \"family_type\": \"child\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/patient"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 01 Sep 2020 04:04:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"77"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4d-J0yz6fh1UzIh4IL9Pa7/LtZ1FIs\""}],"cookie":[],"responseTime":null,"body":"{\n    \"errorCode\": \"POLICY_NUMBER_EXISTS\",\n    \"message\": \"Policy Number already exists\"\n}"},{"id":"772fd0c6-8e9c-4a5e-8833-ca92c5d505d2","name":"User Already Registered (Duplicate Phone Number)","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Yudia\",\r\n    \"phone_number\": \"+628569240856\",\r\n    \"insurance\": {\r\n        \"company_name\": \"BNI Life\",\r\n        \"policy_number\": \"003145\"\r\n    },\r\n    \"patients\": [\r\n        {\r\n            \"name\": \"yudia\",\r\n            \"phone_number\": \"+628569240856\",\r\n            \"member_number\": \"031522\",\r\n            \"family_type\": \"self\"\r\n        },\r\n        {\r\n            \"name\": \"karno\",\r\n            \"phone_number\": \"+628547236273\",\r\n            \"member_number\": \"861554\",\r\n            \"family_type\": \"spouse\"\r\n        },\r\n        {\r\n            \"name\": \"Kenan\",\r\n            \"phone_number\": null,\r\n            \"member_number\": \"761255\",\r\n            \"family_type\": \"child\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/patient"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 01 Sep 2020 04:04:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4b-I81R4s5+keY66ztLD67I0ea3pLU\""}],"cookie":[],"responseTime":null,"body":"{\n    \"errorCode\": \"USER_ALREADY_REGISTERED\",\n    \"message\": \"User already registered\"\n}"},{"id":"7fab018f-e3b9-400b-b95e-4a5971aec939","name":"Success Register Patient","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Yudia\",\r\n    \"phone_number\": \"+628569240856\",\r\n    \"insurance\": {\r\n        \"company_name\": \"BNI Life\",\r\n        \"policy_number\": \"003105\"\r\n    },\r\n    \"patients\": [\r\n        {\r\n            \"name\": \"yudia\",\r\n            \"phone_number\": \"+628569240856\",\r\n            \"member_number\": \"031322\",\r\n            \"family_type\": \"self\"\r\n        },\r\n        {\r\n            \"name\": \"karno\",\r\n            \"phone_number\": \"+628547236273\",\r\n            \"member_number\": \"861534\",\r\n            \"family_type\": \"spouse\"\r\n        },\r\n        {\r\n            \"name\": \"Kenan\",\r\n            \"phone_number\": null,\r\n            \"member_number\": \"761235\",\r\n            \"family_type\": \"child\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/patient"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 01 Sep 2020 04:03:33 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":null},{"id":"f465dd5a-7ab6-469f-bf09-f7b64314da3e","name":"Member Number Already Exists","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Yudia\",\r\n    \"phone_number\": \"+628569240856\",\r\n    \"insurance\": {\r\n        \"company_name\": \"BNI Life\",\r\n        \"policy_number\": \"003145\"\r\n    },\r\n    \"patients\": [\r\n        {\r\n            \"name\": \"yudia\",\r\n            \"phone_number\": \"+628569240856\",\r\n            \"member_number\": \"031322\",\r\n            \"family_type\": \"self\"\r\n        },\r\n        {\r\n            \"name\": \"karno\",\r\n            \"phone_number\": \"+628547236273\",\r\n            \"member_number\": \"861534\",\r\n            \"family_type\": \"spouse\"\r\n        },\r\n        {\r\n            \"name\": \"Kenan\",\r\n            \"phone_number\": null,\r\n            \"member_number\": \"761235\",\r\n            \"family_type\": \"child\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{LIFEPACK_BASE_URL}}/partner/v1/patient"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 01 Sep 2020 04:04:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"77"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4d-TOw7mtn1lb6qNZLzaIoXWRuFLyM\""}],"cookie":[],"responseTime":null,"body":"{\n    \"errorCode\": \"MEMBER_NUMBER_EXISTS\",\n    \"message\": \"Member Number already exists\"\n}"}],"_postman_id":"88f25b11-49ad-4272-a784-92893453b8ae"}],"id":"50292532-2878-4b71-b7d0-8d5d3d83b8ff","_postman_id":"50292532-2878-4b71-b7d0-8d5d3d83b8ff","description":""},{"name":"Product","item":[{"name":"[V1] Product List","id":"ce261a0f-27ae-45dc-a6b2-a57f060a0343","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":"{{LIFEPACK_BASE_URL}}/partner/v1/product?keyword=paracetamol&city_id=2&limit=10&offset=0","description":"<p>You can search for our registered products using this endpoint. You should pass <code>keyword</code> query parameter to search the products, or you just can fill it with <code>%</code> to show all the products data without filtering. You should also pass <code>city_id</code> param that obtained from <a href=\"https://api-docs.lifepack.id/#3dc6feaa-ac70-4738-ad87-2b6aa008229f\">Get City Coverage</a> endpoint.</p>\n<h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> Product ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code> Product name</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 100 characters</td>\n</tr>\n<tr>\n<td>description</td>\n<td><code>string</code> Product description</td>\n</tr>\n<tr>\n<td>type</td>\n<td><code>string</code> Product type</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 100 characters</td>\n</tr>\n<tr>\n<td>stock_availability</td>\n<td><code>boolean</code> Product stock avaliability</td>\n</tr>\n<tr>\n<td>price</td>\n<td><code>number</code> Product unit price</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","product"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[{"description":{"content":"<p><code>required</code> <code>string</code> Product search keyword</p>\n","type":"text/plain"},"key":"keyword","value":"paracetamol"},{"description":{"content":"<p><code>required</code> <code>number</code> City ID</p>\n","type":"text/plain"},"key":"city_id","value":"2"},{"description":{"content":"<p><code>optional</code> <code>number</code> Data limit (default: 10)</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p><code>optional</code> <code>number</code> Data offset (default: 0)</p>\n","type":"text/plain"},"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"0e00e8f3-dda4-4046-8d64-32f9663d0c12","name":"Get Product List With Specific Keyword","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/product?keyword=paracetamol&city_id=2&limit=10&offset=0","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","product"],"query":[{"key":"keyword","value":"paracetamol","description":"`required` `string` Product search keyword"},{"key":"city_id","value":"2"},{"key":"limit","value":"10","description":"`optional` `number` Data limit (default: 10)"},{"key":"offset","value":"0","description":"`optional` `number` Data offset (default: 0)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"273"},{"key":"etag","value":"W/\"111-CXR8qX95VUF3/PkH4pJuNZsJa7I\""},{"key":"date","value":"Mon, 13 Jul 2020 10:11:55 GMT"},{"key":"x-forwarded-proto","value":"https"},{"key":"strict-transport-security","value":"max-age=2592000"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 886,\n        \"name\": \"PARACETAMOL 500 MG PRMD\",\n        \"description\": null,\n        \"type\": \"tablet\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 887,\n        \"name\": \"PARACETAMOL ESA\",\n        \"description\": null,\n        \"type\": \"tablet\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 888,\n        \"name\": \"PARACETAMOL TAB\",\n        \"description\": null,\n        \"type\": \"tablet\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    }\n]"},{"id":"613723a4-e0b3-493f-b123-fe17ffc3f16b","name":"No City ID Passed","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/product?keyword=paracetamol&limit=10&offset=0","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","product"],"query":[{"key":"keyword","value":"paracetamol","description":"`required` `string` Product search keyword"},{"key":"limit","value":"10","description":"`optional` `number` Data limit (default: 10)"},{"key":"offset","value":"0","description":"`optional` `number` Data offset (default: 0)"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Wed, 27 Jan 2021 09:41:14 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"62"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"3e-tPQxIpG8dCt702v6L2YVt3ng3v4\""}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"CITY_ID_REQUIRED\",\n    \"message\": \"City ID required\"\n}"},{"id":"8108c947-2093-4495-8c97-2a4b343605c1","name":"Get Product List Without Any Specific Keyword","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/product?keyword=%&city_id=2&limit=10&offset=0","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","product"],"query":[{"key":"keyword","value":"%","description":"`required` `string` Product search keyword"},{"key":"city_id","value":"2"},{"key":"limit","value":"10","description":"`optional` `number` Data limit (default: 10)"},{"key":"offset","value":"0","description":"`optional` `number` Data offset (default: 0)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"804"},{"key":"etag","value":"W/\"324-jirRklQg3+1TmWQdAkOsgtlew5k\""},{"key":"date","value":"Mon, 13 Jul 2020 10:12:55 GMT"},{"key":"x-forwarded-proto","value":"https"},{"key":"strict-transport-security","value":"max-age=2592000"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Arthozan Gc+Msm\",\n        \"description\": \"\",\n        \"type\": \"kapsul\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Coldycin Herbal Throat L\",\n        \"description\": \"\",\n        \"type\": \"tablet\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Imunea\",\n        \"description\": \"\",\n        \"type\": \"softgel\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Focus\",\n        \"description\": \"\",\n        \"type\": \"Kapsul\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Livergard\",\n        \"description\": \"\",\n        \"type\": \"Kapsul\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Vision\",\n        \"description\": \"\",\n        \"type\": \"Softgel\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Renovit Gold\",\n        \"description\": \"\",\n        \"type\": \"kaplet\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 8,\n        \"name\": \"Renovit\",\n        \"description\": \"\",\n        \"type\": \"kaplet\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 9,\n        \"name\": \"Ever E250\",\n        \"description\": \"\",\n        \"type\": \"softgel\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Hemaviton Cardio\",\n        \"description\": \"\",\n        \"type\": \"kaplet\",\n        \"stock_availability\": true,\n        \"price\": 100000\n    }\n]"}],"_postman_id":"ce261a0f-27ae-45dc-a6b2-a57f060a0343"},{"name":"[V2] Product List","id":"d26228f0-ea5c-4788-abc0-9e2a5d318bf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":"{{LIFEPACK_BASE_URL}}/partner/v2/product?keyword=UTRO&limit=10&page=1","description":"<p>You can retrieve a list of registered products using this endpoint.</p>\n<p>Use the <code>keyword</code> query parameter to search for specific product names. To return all products without filtering, use <code>%</code> as the value.</p>\n<p>Pagination is handled using the <code>limit</code> and <code>page</code> parameters.</p>\n<h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>integer</td>\n<td>Unique identifier for the product.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Product name. Maximum length: 100 characters.</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>Short description or content summary of the product.</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Product type or form (e.g., Tablet, Capsule). Maximum length: 100 characters.</td>\n</tr>\n<tr>\n<td><code>price</code></td>\n<td>number</td>\n<td>Product price per smallest unit (e.g., per tablet, bottle, or strip).</td>\n</tr>\n<tr>\n<td><code>uom</code></td>\n<td>string</td>\n<td>Unit of measurement for the product (e.g., Tablet, Bottle, Strip).</td>\n</tr>\n<tr>\n<td><code>stock_availability</code></td>\n<td>boolean</td>\n<td>Indicates whether the product is in stock (<code>true</code> for available, <code>false</code> otherwise).</td>\n</tr>\n<tr>\n<td><code>default_qty</code></td>\n<td>integer</td>\n<td>Default quantity used for purchase or order.</td>\n</tr>\n<tr>\n<td><code>route</code></td>\n<td>string</td>\n<td>Route of administration (e.g., Oral, Transdermal, Injection).</td>\n</tr>\n<tr>\n<td><code>dosage_instruction</code></td>\n<td>object</td>\n<td>Structured dosage instruction in JSON format.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>dosage_instruction</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>dosage</code></td>\n<td>number</td>\n<td>The quantity to be taken at each administration.</td>\n<td><code>0.5</code></td>\n</tr>\n<tr>\n<td><code>dose_unit</code></td>\n<td>string</td>\n<td>The unit of dosage (e.g., tablet, capsule, ml).</td>\n<td><code>\"tablet\"</code></td>\n</tr>\n<tr>\n<td><code>frequency</code></td>\n<td>string</td>\n<td>How often the product should be taken. Natural language is allowed.</td>\n<td><code>\"once a day\"</code></td>\n</tr>\n<tr>\n<td><code>timing</code></td>\n<td>string</td>\n<td>null</td>\n<td>When the product should be taken (e.g., before meal, after meal).</td>\n</tr>\n<tr>\n<td><code>duration</code></td>\n<td>number</td>\n<td>The total duration of the medication.</td>\n<td></td>\n</tr>\n<tr>\n<td><code>duration_unit</code></td>\n<td>string</td>\n<td>The unit for the duration (e.g., days, weeks).</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v2","product"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[{"key":"keyword","value":"UTRO"},{"description":{"content":"<p><code>optional</code> <code>number</code> Data limit (default: 10)</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"d786241e-4638-476c-b251-2a9d0c060484","name":"Get Product List Without Any Specific Keyword","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v2/product?keyword=UTRO&limit=10&page=1","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v2","product"],"query":[{"key":"keyword","value":"UTRO"},{"key":"limit","value":"10","description":"`optional` `number` Data limit (default: 10)"},{"key":"page","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"804"},{"key":"etag","value":"W/\"324-jirRklQg3+1TmWQdAkOsgtlew5k\""},{"key":"date","value":"Mon, 13 Jul 2020 10:12:55 GMT"},{"key":"x-forwarded-proto","value":"https"},{"key":"strict-transport-security","value":"max-age=2592000"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 1,\n    \"limit\": 10,\n    \"total\": 1,\n    \"data\": [\n        {\n            \"id\": 5,\n            \"name\": \"ABILIFY 5 MG TABLET\",\n            \"description\": \"Aripiprazole\",\n            \"type\": \"Tablet\",\n            \"uom\": \"Tablet\",\n            \"price\": 42987,\n            \"stock_availability\": true,\n            \"default_qty\": 3,\n            \"route\": \"Oral\",\n            \"dosage_instruction\": {\n                \"dosage\": 0.5,\n                \"dose_unit\": \"tablet\",\n                \"frequency\": \"once a day\",\n                \"timing\": \"after meal\",\n                \"duration\": 2,\n                \"duration_unit\": \"days\"\n            }\n        }\n    ]\n}"}],"_postman_id":"d26228f0-ea5c-4788-abc0-9e2a5d318bf0"},{"name":"Product Detail","id":"f087f17d-3851-4b25-8de5-e90af7ce801f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":"{{LIFEPACK_BASE_URL}}/partner/v1/product/:id","description":"<p>You can get product detail information from this endpoint.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>integer</td>\n<td>Unique identifier for the product.</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Product name. Maximum length: 100 characters.</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>Short description or content summary of the product.</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>Product type or form (e.g., Tablet, Capsule). Maximum length: 100 characters.</td>\n</tr>\n<tr>\n<td><code>price</code></td>\n<td>number</td>\n<td>Product price per smallest unit (e.g., per tablet, bottle, or strip).</td>\n</tr>\n<tr>\n<td><code>uom</code></td>\n<td>string</td>\n<td>Unit of measurement for the product (e.g., Tablet, Bottle, Strip).</td>\n</tr>\n<tr>\n<td><code>stock_availability</code></td>\n<td>boolean</td>\n<td>Indicates whether the product is in stock (<code>true</code> for available, <code>false</code> otherwise).</td>\n</tr>\n<tr>\n<td><code>default_qty</code></td>\n<td>integer</td>\n<td>Default quantity used for purchase or order.</td>\n</tr>\n<tr>\n<td><code>route</code></td>\n<td>string</td>\n<td>Route of administration (e.g., Oral, Transdermal, Injection).</td>\n</tr>\n<tr>\n<td><code>dosage_instruction</code></td>\n<td>object</td>\n<td>Structured dosage instruction in JSON format.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>dosage_instruction</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>dosage</code></td>\n<td>number</td>\n<td>The quantity to be taken at each administration.</td>\n<td><code>0.5</code></td>\n</tr>\n<tr>\n<td><code>dose_unit</code></td>\n<td>string</td>\n<td>The unit of dosage (e.g., tablet, capsule, ml).</td>\n<td><code>\"tablet\"</code></td>\n</tr>\n<tr>\n<td><code>frequency</code></td>\n<td>string</td>\n<td>How often the product should be taken. Natural language is allowed.</td>\n<td><code>\"once a day\"</code></td>\n</tr>\n<tr>\n<td><code>timing</code></td>\n<td>string</td>\n<td>null</td>\n<td>When the product should be taken (e.g., before meal, after meal).</td>\n</tr>\n<tr>\n<td><code>duration</code></td>\n<td>number</td>\n<td>The total duration of the medication.</td>\n<td></td>\n</tr>\n<tr>\n<td><code>duration_unit</code></td>\n<td>string</td>\n<td>The unit for the duration (e.g., days, weeks).</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","product",":id"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[],"variable":[{"description":{"content":"<p><code>number</code> Product ID</p>\n","type":"text/plain"},"type":"string","value":"1","key":"id"}]}},"response":[{"id":"6f644912-1eef-4390-aace-3c58c0e38e7b","name":"Failed Get Product Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/product/:id","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","product",":id"],"variable":[{"description":"`number` Product ID","key":"id","value":"100000"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 22 May 2020 04:45:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"48-AGgvIH6i59zjlHB9eSttZ7AjawA\""}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"INTERNAL_SERVER_ERROR\",\n    \"message\": \"Internal Server Error\"\n}"},{"id":"b035321b-604e-4abf-87bc-d297b0255f97","name":"Product Not Found","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{AUTH_TOKEN}}"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/product/:id","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","product",":id"],"variable":[{"key":"id","value":"9000","type":"string","description":"`number` Product ID"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"64"},{"key":"etag","value":"W/\"40-1grZnfSF7+98rWMOqIMEHnjJDxA\""},{"key":"date","value":"Tue, 01 Sep 2020 09:59:44 GMT"},{"key":"x-forwarded-proto","value":"https"},{"key":"strict-transport-security","value":"max-age=2592000"}],"cookie":[],"responseTime":null,"body":"{\n    \"error_code\": \"PRODUCT_NOT_FOUND\",\n    \"message\": \"Product not found\"\n}"},{"id":"c51007ed-84ad-4fe4-a01d-ab5699e01c6f","name":"Success Get Product Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":{"raw":"{{LIFEPACK_BASE_URL}}/partner/v1/product/:id","host":["{{LIFEPACK_BASE_URL}}"],"path":["partner","v1","product",":id"],"variable":[{"key":"id","value":"1","description":"`number` Product ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Fri, 22 May 2020 04:45:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"42-zcCe2RBDp5x1qdz4Pg/WppWrjH0\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"name\": \"ABILIFY 5 MG TABLET\",\n    \"description\": \"Aripiprazole\",\n    \"type\": \"Tablet\",\n    \"uom\": \"Tablet\",\n    \"price\": 42987,\n    \"stock_availability\": true,\n    \"default_qty\": 3,\n    \"route\": \"Oral\",\n    \"dosage_instruction\": {\n        \"dosage\": 0.5,\n        \"dose_unit\": \"tablet\",\n        \"frequency\": \"once a day\",\n        \"timing\": \"after meal\",\n        \"duration\": 3,\n        \"duration_unit\": \"days\"\n    }\n}"}],"_postman_id":"f087f17d-3851-4b25-8de5-e90af7ce801f"}],"id":"77714eee-fcaf-499a-b424-9f1c61025f74","_postman_id":"77714eee-fcaf-499a-b424-9f1c61025f74","description":""},{"name":"Address","item":[{"name":"City Coverage","id":"3dc6feaa-ac70-4738-ad87-2b6aa008229f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":"{{LIFEPACK_BASE_URL}}/partner/v1/address/cities","description":"<p>You can get list of supported city coverage for our service. Then, should pass the <code>id</code> to <code>city_id</code> parameter in submit prescription data endpoint.</p>\n<h3 id=\"response-parameters\">Response Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td><code>integer</code> City Coverage ID</td>\n</tr>\n<tr>\n<td>name</td>\n<td><code>string</code> City name</td>\n</tr>\n<tr>\n<td></td>\n<td>Maximum length is 255 characters</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["partner","v1","address","cities"],"host":["{{LIFEPACK_BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"a73ebf02-34a4-4bd6-9d7c-701a5c6a4cf0","name":"Success Get City Coverage","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{AUTH_TOKEN}}","type":"text"}],"url":"{{LIFEPACK_BASE_URL}}/partner/v1/address/cities"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 21 Jul 2020 07:53:39 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"125"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"7d-XOTtoruEKGCVdFoyVNsYgORh4N8\""},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"no-referrer"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"name\": \"DKI Jakarta\"\n    },\n    {\n        \"id\": \"2\",\n        \"name\": \"Tangerang & Banten\"\n    },\n    {\n        \"id\": \"3\",\n        \"name\": \"Jawa Barat\"\n    },\n    {\n        \"id\": \"4\",\n        \"name\": \"Jawa Tengah - Jawa Timur - Bali\"\n    },\n    {\n        \"id\": \"5\",\n        \"name\": \"Sumatera\"\n    },\n    {\n        \"id\": \"6\",\n        \"name\": \"Kalimantan\"\n    },\n    {\n        \"id\": \"7\",\n        \"name\": \"Indonesia Timur Lainnya\"\n    }\n]"}],"_postman_id":"3dc6feaa-ac70-4738-ad87-2b6aa008229f"}],"id":"1fa884b9-d9b2-4c39-87d1-2b4d938fd5e7","_postman_id":"1fa884b9-d9b2-4c39-87d1-2b4d938fd5e7","description":""}],"id":"23c0088b-ab22-4235-b162-0abf18fa8d03","description":"<p>This Lifepack API contains features that can be used in your doctor consultation system.</p>\n<h2 id=\"https-request\">HTTP(S) Request</h2>\n<p>Lifepack API can be requested through HTTP(S) Request to Lifepack Base URL endpoint. The HTTP(S) Header has to be used to allow proper authentication.</p>\n<h3 id=\"api-base-url\">API Base URL</h3>\n<ul>\n<li><p>Sandbox Environment: <code>https://api-sandbox.lifepack.id/partner</code></p>\n</li>\n<li><p>Production Environment: <code>https://api.lifepack.id/partner</code></p>\n</li>\n</ul>\n<h2 id=\"https-header\">HTTP(S) Header</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Value</th>\n<th>Definition</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Content-Type</td>\n<td>application/json</td>\n<td>The Content-Type field indicates that JSON type is acceptable to send to the recipient</td>\n</tr>\n<tr>\n<td>Accept</td>\n<td>application/json</td>\n<td>The Accept field is used to specify that JSON type is acceptable for the response</td>\n</tr>\n<tr>\n<td>Authorization</td>\n<td>Basic AUTH_STRING</td>\n<td>The Authorization field credentials can be found in Lifepack Partner Dashboard sidemenu</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"content-type-and-accept-header\">Content-Type and Accept Header</h3>\n<p>In Lifepack API, the input and output parameters of the methods will be in JSON format. To accept JSON input and output parameters, you need to add the following HTTP(S) header:</p>\n<ul>\n<li><p>Content-Type: application/json</p>\n</li>\n<li><p>Accept: application/json</p>\n</li>\n</ul>\n<h3 id=\"authorization-header\">Authorization Header</h3>\n<p>The authorization header utilizes API Key following HTTP(S) BASIC AUTH convention:</p>\n<ul>\n<li><p>For Development environment, obtain <code>Client Key</code> and <code>Server Key</code> in Lifepack Partner Sandbox Dashboard in setting menu</p>\n</li>\n<li><p>For Production environment, obtain <code>Client Key</code> and <code>Server Key</code> in Lifepack Partner Dashboard in setting menu</p>\n</li>\n</ul>\n<p>Lifepack validates HTTP request by using Basic Authentication method. You must always add this header to your request headers every API call or otherwise you will get unauthorized error:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>AUTH_STRING = Base64(CLIENT_KEY:SERVER_KEY)\nAuthorization: \"Basic AUTH_STRING\"\n\n</code></pre><p>You can use <a href=\"https://www.base64encode.org/\">Online Base64 Encode Tool</a> For encoding your authentication string.</p>\n","event":[{"listen":"prerequest","script":{"id":"34ff218b-75cf-48d4-a32a-c0b0d6eeb1cf","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9d157de3-4cb2-4ccb-8c8c-c416d37b9aab","type":"text/javascript","exec":[""]}}],"_postman_id":"23c0088b-ab22-4235-b162-0abf18fa8d03"}],"event":[{"listen":"prerequest","script":{"id":"e0d869da-5969-4e6a-83c0-09ad5d635b59","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8d7775f3-8d81-4f9e-af2b-cd5b03acb927","type":"text/javascript","exec":[""]}}]}