{"info":{"_postman_id":"6823b9b7-866b-49d0-b7d8-839c653417e7","name":"X for Developers","description":"<html><head></head><body><p>Hello and welcome to X for Developers! Here you'll find everything that you need to integrate with us and book your orders. We provide APIs for order creation, status management, and visibility of the whole order lifecycle until fulfillment.</p>\n<h1 id=\"what-we-will-be-providing\">What We Will Be Providing</h1>\n<hr>\n<h3 id=\"slack-channel--support\">Slack Channel &amp; Support</h3>\n<p>A Slack Channel will be provided as our medium of communication.<br>Inquiries, concerns, and other discussions related to this document and the processes it involves may be raised in the given channel, such as error-handling, process flow clarifications, etc.</p>\n<p><a href=\"null\"></a></p>\n<p>Keys</p>\n<p>We will be providing you with a pair of API and Secret keys once you sign up for our services. The API key should be passed as the subject (sub) attribute of the JWT payload while the secret key is used to create the token signature. Never share your secret key and make sure that it would not be exposed at any time.</p>\n<h1 id=\"authorization\">Authorization</h1>\n<hr>\n<p>Some of the resources defined in this document are secured using <a href=\"https://\">JSON Web Tokens (JWT)</a>. JWT is an <a href=\"https://\">industry standard</a> for authorization and exchanging claims between two parties.</p>\n<p>Basic JSON Web Tokens are made up of three parts separated by dots, which are:</p>\n<ul>\n<li>Header</li>\n<li>Payload</li>\n<li>Signature</li>\n</ul>\n<p>In turn, a JWT ends up looking like the following:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>aaaaa.bbbbb.ccccc\n\n</code></pre><p>The following subsections briefly explain these three parts.</p>\n<h3 id=\"header\">Header</h3>\n<p>The header is the first part of the token where the token type (typ) and hashing algorithm (alg) used to generate the signature are defined. Only <code>HMAC SHA256</code> is supported at the moment.</p>\n<h6 id=\"json-header\">JSON Header</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"alg\": \"HS256\",\n\"typ\": \"JWT\"\n}\n\n</code></pre>\n<p>This header is then encoded using <code>Base64Url</code>.</p>\n<p>The following result is normally the header when dealing with our API:</p>\n<h6 id=\"base64-encoded-header-url-safe\">Base64 Encoded Header (URL-safe)</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\n\n</code></pre><h3 id=\"payload\">Payload</h3>\n<p>The payload is the second part of the token where the claims are defined. The following claims should always be present on the payload:</p>\n<ul>\n<li><strong>iat</strong> - Unix timestamp of when the token was created</li>\n<li><strong>jti</strong> - unique nonce value. Requests with a repeated jti value will be rejected.</li>\n<li><strong>sub</strong> - <a href=\"https://\">your API key</a></li>\n</ul>\n<h6 id=\"json-payload\">JSON Payload</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"iat\": 1463702400,\n\"jti\": \"abe953c8-3621-414b-99e9-a01d9461b129\",\n\"sub\": \"2af9713592\"\n}\n\n</code></pre>\n<p>Like the header, this is then encoded using <code>Base64Url</code>.</p>\n<h6 id=\"sample-generated-base64-encoded-payload-url-safe\">Sample Generated Base64 Encoded Payload (URL-safe)</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>eyJpYXQiOjE0NjM3MDI0MDAsImp0aSI6ImFiZTk1M2M4LTM2MjEtNDE0Yi05OWU5LWEwMWQ5NDYxYjEyOSIsInN1YiI6IjJhZjk3MTM1OTIifQ\n\n</code></pre><h3 id=\"signature\">Signature</h3>\n<p>The last part to be generated is the signature.<br>To generate this, concatenate the base64 encoded header and payload with a dot and generate the hash using HMAC SHA256.</p>\n<h6 id=\"for-clarity-the-process-is-as-follows\">For clarity, the process is as follows:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-js\">signature = base64EncodeURL( hmac_sha256( base64EncodeURL(header) + '.' + base64EncodeURL(payload), SECRET_KEY ) )\n\n</code></pre>\n<h6 id=\"for-the-purpose-of-comparison-and-checking-the-produced-signature-for-our-previous-header-and-payload-examples-is\">For the purpose of comparison and checking, the produced signature for our previous header and payload examples is:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>// when SECRET_KEY = 'itsasecret'\nAXXvB0EgZWWTBQZsImnq_M6bHsEbw7H8k7tU_cYZz98\n\n</code></pre><h3 id=\"resulting-jwt\">Resulting JWT</h3>\n<p>The token is then built by concatenating dots in between the produced header, payload, and signature.</p>\n<p>It should appear as follows:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(header).(payload).(signature)\n\n</code></pre><h6 id=\"substituting-the-header-payload-and-signature-placeholders-with-their-actual-values-we-finally-have-our-jwt\">Substituting the header, payload, and signature placeholders with their actual values, we finally have our JWT:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0NjM3MDI0MDAsImp0aSI6ImFiZTk1M2M4LTM2MjEtNDE0Yi05OWU5LWEwMWQ5NDYxYjEyOSIsInN1YiI6IjJhZjk3MTM1OTIifQ.AXXvB0EgZWWTBQZsImnq_M6bHsEbw7H8k7tU_cYZz98\n\n</code></pre><h3 id=\"sending-the-jwt\">Sending the JWT</h3>\n<p>The token should be sent as a part of your HTTP Request Header.</p>\n<h6 id=\"use-the-authorization-bearer-schema-as-seen-below\">Use the Authorization Bearer schema, as seen below:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">Authorization: Bearer {token}\n\n</code></pre>\n<h6 id=\"sample-header-using-the-jwt-we-generated-in-the-previous-example\">Sample Header, using the JWT we generated in the previous example:</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">POST /v1/orders HTTP/1.1\nHost: api.lbcx.ph\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0NjM3MDI0MDAsImp0aSI6ImFiZTk1M2M4LTM2MjEtNDE0Yi05OWU5LWEwMWQ5NDYxYjEyOSIsInN1YiI6IjJhZjk3MTM1OTIifQ.3ZbAieutFTwQ0RXidGRCDO_hkSqZNydNz3fcwj3WAbA\n\n</code></pre>\n<h3 id=\"additional-information\">Additional Information</h3>\n<p>For more clarity on the subject of JWT, you can read the <a href=\"https://\">Official JWT documentation</a> to get a better idea regarding the token-generating process. You can also download their <a href=\"https://\">3rd party libraries and SDKs</a> to use in your APIs.</p>\n<h1 id=\"responses-success-errors\">Responses (Success, Errors)</h1>\n<hr>\n<p>Standard HTTP status codes are returned on every response. <code>200</code> means that the request was successful, <code>4xx</code> indicates failure, and <code>500</code> means that something went wrong on our side. The error message and details are sent back as a JSON-encoded string in the response body. Here's a list of status codes that F3 uses:</p>\n<table><tbody><tr><th><b>Status</b></th><th><b>Message</b></th><th><b>Description</b></th></tr><tr><td><div>200</div><div><div><div><div></div></div></div><div></div></div></td><td><div>OK</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Success</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>400</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Bad Request</div><div><div><div><div></div></div></div><div></div></div></td><td><div>We didn't understand your request. Please make sure that you're sending a valid JSON payload in the request body.</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>401</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Unauthorized</div><div><div><div><div></div></div></div><div></div></div></td><td><div>The token is not valid or may have already expired. It could also be that you don't have sufficient privileges to access the resource.</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>404</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Not Found</div><div><div><div><div></div></div></div><div></div></div></td><td><div>The entity that you're looking for does not exist.</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>413</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Request Entity Too Large</div><div><div><div><div></div></div></div><div></div></div></td><td><div>You have exceeded the maximum allowable upload size of 1MB.</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>422</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Unprocessable Entity</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Some of the parameters failed validation.</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>429</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Too Many Requests</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Your account has been temporarily suspended because you have exceeded the allowable number of requests.</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>500</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Internal Server Error</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Something went wrong. We're looking into it.</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<h6 id=\"sample-successful-response\">Sample Successful Response</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">    HTTP/1.1 200 OK\n    Content-Type: application/json\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n    \"id\": 21,\n    \"currency\": \"PHP\",\n    \"reference_id\": \"7336180193817RYKP\",\n    \"tracking_number\": \"0000-0021-ZTMR\",\n    \"payment_method\": \"cod\",\n    \"status\": \"pending\",\n    \"email\": \"johndoe@email.com\",\n    \"contact_number\": \"+639172274819\",\n    \"total\": \"3103.25\",\n    \"paid\": 0,\n    \"metadata\": {\n    \"key_1\": \"value_1\",\n    \"key_2\": \"value_2\"\n    },\n    \"preferred_pickup_time\": \"morning\",\n    \"preferred_delivery_time\": \"3pm - 5pm\",\n    \"pickup_address\": {\n    \"name\": \"John Doe\",\n    \"phone_number\": \"5713429\",\n    \"mobile_number\": \"+639197421753\",\n    \"line_1\": \"8F U825 Building A\",\n    \"line_2\": \"711 Nulla St.\",\n    \"city\": \"Makati\",\n    \"state\": \"NCR\",\n    \"postal_code\": \"1200\",\n    \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"delivery_address\": {\n    \"name\": \"Jane Doe\",\n    \"phone_number\": \"6358972\",\n    \"mobile_number\": \"+63907117421\",\n    \"line_1\": \"3F U311 Bldg. C\",\n    \"line_2\": \"Jade St.\",\n    \"city\": \"Taguig\",\n    \"state\": \"NCR\",\n    \"postal_code\": \"1600\",\n    \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"charge\": {\n    \"status\": \"pending\",\n    \"payment_method\": \"cod\",\n    \"total_amount\": 3103.25,\n    \"tendered_amount\": 0,\n    \"change_amount\": 0,\n    \"remarks\": null\n    },\n    \"items\": [\n      {\n        \"type\": \"product\",\n        \"description\": \"Red Shirt\",\n        \"amount\": \"1250.00\",\n        \"quantity\": 1,\n        \"metadata\": {\n          \"size\": \"medium\",\n          \"color\": \"red\"\n        }\n      },\n      {\n        \"type\": \"product\",\n        \"description\": \"Blue Shirt\",\n        \"amount\": \"700.00\",\n        \"quantity\": 2,\n        \"metadata\": {\n          \"size\": \"medium\",\n          \"color\": \"blue\"\n        }\n      },\n      {\n        \"type\": \"tax\",\n        \"description\": \"Tax\",\n        \"amount\": \"132.50\",\n        \"quantity\": 1,\n        \"metadata\": null\n      },\n      {\n        \"type\": \"shipping\",\n        \"description\": \"Expedited Shipping\",\n        \"amount\": \"250.00\",\n        \"quantity\": 1,\n        \"metadata\": null\n      },\n      {\n        \"type\": \"fee\",\n        \"description\": \"Handling Fee\",\n        \"amount\": \"20.00\",\n        \"quantity\": 1,\n        \"metadata\": null\n      },\n      {\n        \"type\": \"fee\",\n        \"description\": \"Gift Wrapping Fee\",\n        \"amount\": \"50.75\",\n        \"quantity\": 1,\n        \"metadata\": null\n      }\n    ]\n  }\n\n</code></pre>\n<h6 id=\"sample-error-response-422\">Sample Error Response (422)</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">    HTTP/1.1 422 Unprocessable Entity\n    Content-Type: application/json\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n    \"status\": 422,\n    \"message\": \"Unprocessable Entity\",\n    \"description\": \"The given data failed to pass validation.\",\n    \"parameters\": {\n      \"payment_method\": [\n        \"The selected payment method is invalid.\"\n      ]\n    }\n  }\n\n</code></pre>\n<h1 id=\"pagination\">Pagination</h1>\n<hr>\n<p>All API resources that return lists or bulk data support pagination and share the same parameters.<br>All of these parameters are optional and have default values.<br>Pagination data is returned on both the header and response body for convenience.</p>\n<table><tbody><tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Description</b></th><th><b>Required?</b></th><th><b>Default Value</b></th></tr><tr><td><div>page</div><div><div><div><div></div></div></div><div></div></div></td><td><div>integer</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Page Number</div><div><div><div><div></div></div></div><div></div></div></td><td><div>optional</div><div><div><div><div></div></div></div><div></div></div></td><td><div>1</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>per_page</div><div><div><div><div></div></div></div><div></div></div></td><td><div>integer</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Count per Page</div><div><div><div><div></div></div></div><div></div></div></td><td><div>optional</div><div><div><div><div></div></div></div><div></div></div></td><td><div>25</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<h6 id=\"sample-response-with-pagination\">Sample Response with Pagination</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">    HTTP/1.1 200 OK\n    Content-Type: application/json\n    Link: &lt;https://api.lbcx.ph/v1/orders?page=2&gt;; rel=\"next\"\n    X-Pagination-Current-Page: 1\n    X-Pagination-Page-Count: 8\n    X-Pagination-Per-Page: 25\n    X-Pagination-Total-Count: 192\n    X-Powered-By: PHP/5.6.2\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n    \"total\": 192,\n    \"per_page\": 25,\n    \"current_page\": 1,\n    \"last_page\": 8,\n    \"next_page_url\": \"https://api.lbcx.ph/v1/orders?page=2\",\n    \"prev_page_url\": null,\n    \"from\": 1,\n    \"to\": 25,\n    \"data\": [\n      {\n        \"id\": 1,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0001-BSWF\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 2,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0002-SRFT\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 3,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0003-QMVL\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 4,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0004-VLSN\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 5,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0005-NQYS\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 6,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0006-ACZM\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 7,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0007-MAGY\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 8,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0008-KQNS\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 9,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0009-VDYH\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 10,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0010-JQXZ\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 11,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0011-ATHR\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 12,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0012-WCFM\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 13,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0013-ERTC\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 14,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0014-VLKU\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 15,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0015-TRXY\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 16,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0016-VHLD\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 17,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0017-WXHS\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 18,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0018-EKSQ\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 19,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0019-SYCA\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 20,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0020-WZGL\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 28,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0028-TWMB\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 21,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0021-ZTMR\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 22,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0022-RSBY\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 23,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0023-NDEH\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      },\n      {\n        \"id\": 24,\n        \"currency\": \"PHP\",\n        \"reference_id\": \"7336180193817RYKP\",\n        \"tracking_number\": \"0000-0024-PXYM\",\n        \"payment_method\": \"cod\",\n        \"status\": \"pending\",\n        \"email\": \"johndoe@email.com\",\n        \"contact_number\": \"+639172274819\",\n        \"total\": \"3103.25\",\n        \"paid\": 0,\n        \"metadata\": {\n          \"key_1\": \"value_1\",\n          \"key_2\": \"value_2\"\n        },\n        \"preferred_pickup_time\": \"morning\",\n        \"preferred_delivery_time\": \"3pm - 5pm\"\n      }\n    ]\n  }\n\n</code></pre>\n<h1 id=\"webhooks\">Webhooks</h1>\n<hr>\n<p>A webhook is an HTTP callback that you define to process incoming events or status updates from our API.<br>We currently support both <strong>HTTP</strong> and <strong>HTTPS</strong> URLs but we advise you to use HTTPS as much as possible to ensure security. An alternate security measure you can do is to append a token to the URL in order to make it “unguessable” to the public.<br>We only send JSON data to your webhook URL via HTTP POST and expect a <strong>200 HTTP status code</strong> in the response. Anything other than a 200 status code will be treated as failure and the request will be retried at a later time.<br>There is currently no user interface for setting the webhook URL so please send us an email or message us on your designated slack channel if you need to have it changed.</p>\n<h2 id=\"multiple-events-per-tracking-number\"><strong>Multiple Events per Tracking Number</strong></h2>\n<p>The webhook payload may contain multiple events associated with the same tracking number. This can occur when there are updates to the shipment status or other relevant information during the delivery process.</p>\n<p>Clients can distinguish between these events using the following approaches:</p>\n<ol>\n<li><strong>Event ID</strong>: Each event is assigned a unique incremental <code>event_id</code>. Events for the same tracking number will have different <code>event_id</code> values, allowing you to identify and sort them accordingly.</li>\n<li><strong>Event Timestamp</strong>: The <code>status_updated_at</code> field represents the timestamp when the event occurred. Events for the same tracking number will have different <code>status_updated_at</code> values, enabling you to order them chronologically.</li>\n</ol>\n<p>It is recommended to process the events in the order they are received or based on the <code>status_updated_at</code> field to ensure accurate tracking of the shipment's progress. Clients can ignore outdated events and consider only the latest event from the payload for the most up-to-date shipment status.</p>\n<p><strong>Special Handling for End States</strong></p>\n<p>There is a possibility that <code>status_updated_at</code> dates for events representing end states (e.g., delivered, cancelled, or returned) may be erroneous. To account for this, clients should accept all end state events, regardless of any date issues, and consider them as valid updates for the shipment status.</p>\n<h2 id=\"format\">Format</h2>\n<p>Every JSON payload sent to your webhook will have the following attributes:</p>\n<table><tbody><tr><th>Name</th><th>Type</th><th>Description</th><th>Required?</th><th>Default Value</th></tr><tr><td><div>`event`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>string</div><div><div><div><div></div></div></div><div></div></div></td><td><div>type of event</div><div><div><div><div></div></div></div><div></div></div></td><td><div>yes</div><div><div><div><div></div></div></div><div></div></div></td><td><div>`status_update`</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`timestamp`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>integer</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Date and time in unix time when the data was sent to the webhook.</div><div><div><div><div></div></div></div><div></div></div></td><td><div>yes</div><div><div><div><div></div></div></div><div></div></div></td><td><div>N/A</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`data`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>json array</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Array of events; historical data.</div><div><div><div><div></div></div></div><div></div></div></td><td><div>yes</div><div><div><div><div></div></div></div><div></div></div></td><td><div>N/A</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<h6 id=\"sample-payload\">Sample Payload</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">    POST /your/webhook HTTP/1.1\n    Content-Type: application/json\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">  {\n    \"event\": \"status_update\",\n    \"timestamp\": 1512551041,\n    \"data\": [{\n        \"event_id\": 35862967,\n        \"tracking_number\": \"0495-0754-VZXJ\",\n        \"reference_id\": \"17120514285DPEK.42ecdce0-d185-4356-a30f-d33ea14cff05\",\n        \"created_at\": \"2017-12-06 16:41:31.898782+08\",\n        \"status_updated_at\": \"2017-12-06 16:41:21+08\",\n        \"status\": \"picked_up\",\n        \"remarks\": \"Package successfully picked up\",\n        \"fees\": {\n          \"shipping_fee\": 100,\n          \"insurance_fee\": 9,\n          \"transaction_fee\": 27\n        },\n        \"party\": {\n          \"id\": 6,\n          \"external_id\": null\n        },\n        \"parent\": {\n          \"id\": null,\n          \"tracking_number\": null,\n          \"reference_id\": null\n        }\n      },\n      {\n        \"event_id\": 35862969,\n        \"tracking_number\": \"0476-8835-FHUL\",\n        \"reference_id\": \"17120110305AQXW.db11da3c-15f9-4a79-a605-2aa59600790f\",\n        \"created_at\": \"2017-12-06 16:41:31.939001+08\",\n        \"status_updated_at\": \"2017-12-06 16:04:06+08\",\n        \"status\": \"in_transit\",\n        \"remarks\": \"FORWARDED TO PUERTO PRINCESA DELIVERY HUB\",\n        \"fees\": {\n          \"shipping_fee\": 100,\n          \"insurance_fee\": 5,\n          \"transaction_fee\": 20\n        },\n        \"party\": {\n          \"id\": 6,\n          \"external_id\": null\n        },\n        \"parent\": {\n          \"id\": null,\n          \"tracking_number\": null,\n          \"reference_id\": null\n        }\n      },\n      {\n        \"event_id\": 35862972,\n        \"tracking_number\": \"0479-8119-CWAX\",\n        \"reference_id\": \"17120109493993N.88b7c455-cf29-404c-a91f-a398278ad1fd\",\n        \"created_at\": \"2017-12-06 16:41:32.475252+08\",\n        \"status_updated_at\": \"2017-12-06 16:20:19+08\",\n        \"status\": \"in_transit\",\n        \"remarks\": \"RECEIVED AT SOUTH LUZON AREA\",\n        \"fees\": {\n          \"shipping_fee\": 100,\n          \"insurance_fee\": 6.1,\n          \"transaction_fee\": 20\n        },\n        \"party\": {\n          \"id\": 6,\n          \"external_id\": null\n        },\n        \"parent\": {\n          \"id\": null,\n          \"tracking_number\": null,\n          \"reference_id\": null\n        }\n      },\n      {\n        \"event_id\": 35862977,\n        \"tracking_number\": \"0481-9668-HAJN\",\n        \"reference_id\": \"17120113387HYRH.3623ee76-ee52-44a0-b890-f2bdc661078e\",\n        \"created_at\": \"2017-12-06 16:41:33.064148+08\",\n        \"status_updated_at\": \"2017-12-06 16:37:43+08\",\n        \"status\": \"in_transit\",\n        \"remarks\": \"RECEIVED AT SOUTH LUZON AREA\",\n        \"fees\": {\n          \"shipping_fee\": 100,\n          \"insurance_fee\": 5.52,\n          \"transaction_fee\": 20\n        },\n        \"party\": {\n          \"id\": 6,\n          \"external_id\": null\n        },\n        \"parent\": {\n          \"id\": null,\n          \"tracking_number\": null,\n          \"reference_id\": null\n        }\n      },\n      {\n        \"event_id\": 35862981,\n        \"tracking_number\": \"0492-6744-JFQD\",\n        \"reference_id\": \"17120411264R1YD.8b95ac0c-4466-4053-bd03-ce1c9723b8fc\",\n        \"created_at\": \"2017-12-06 16:41:33.193278+08\",\n        \"status_updated_at\": \"2017-12-06 16:41:22+08\"\n      }\n    ]\n  }\n\n</code></pre>\n<h2 id=\"retries\">Retries</h2>\n<p>Our system has a retry protocol whenever we get an error response from the client (i.e. a non-200 HTTP status code).<br>Our retry phases are as follows:</p>\n<ol>\n<li>Retry the failed message every 5 minutes for a maximum of 5 times.</li>\n<li>If the status update still fails after the 5th retry, its contents go to our dead letter queue (DLQ) for manual investigation.</li>\n<li>We (QuadX) report the failure to the client.</li>\n</ol>\n<p><img src=\"https://www.quadx.xyz/wp-content/themes/quad-x/assets/img/footergreen.png\"></p></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"What We Will Be Providing","slug":"what-we-will-be-providing"},{"content":"Authorization","slug":"authorization"},{"content":"Responses (Success, Errors)","slug":"responses-success-errors"},{"content":"Pagination","slug":"pagination"},{"content":"Webhooks","slug":"webhooks"}],"owner":"12850780","collectionId":"6823b9b7-866b-49d0-b7d8-839c653417e7","publishedId":"TVKJyvMn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-01-13T15:01:20.000Z"},"item":[{"name":"Locations","item":[{"name":"Get Countries","event":[{"listen":"test","script":{"id":"f2df1064-8054-4e69-bc49-d05c92ecd823","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"591f1143-5c50-4af8-99f0-e29f8b82dc74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries","description":"<p>Returns a list of countries.</p>\n","urlObject":{"path":["locations","countries"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"479fef63-f636-4a20-a799-9a08ffce6012","name":"Get Countries","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Cache-control","value":"no-cache=\"set-cookie\""},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 19 Nov 2018 12:31:13 GMT"},{"key":"Server","value":"nginx/1.8.1"},{"key":"Set-Cookie","value":"AWSELB=6333EBB245B1797925BC7134D653291A1F580C645999E3E1F2C7364FE046295A437F791EC81C3A117DABCB1F59402F34BAD3AFE901C12B6E16BE6D69876EFC88B6212A2C;PATH=/;MAX-AGE=86400"},{"key":"Via","value":"kong/0.8.3"},{"key":"X-Kong-Proxy-Latency","value":"0"},{"key":"X-Kong-Upstream-Latency","value":"146"},{"key":"X-Pagination-Current-Page","value":"1"},{"key":"X-Pagination-Page-Count","value":"1"},{"key":"X-Pagination-Per-Page","value":"100"},{"key":"X-Pagination-Total-Count","value":"5"},{"key":"X-Powered-By","value":"PHP/7.1.23"},{"key":"Content-Length","value":"623"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 5,\n    \"per_page\": 100,\n    \"current_page\": 1,\n    \"last_page\": 1,\n    \"next_page_url\": null,\n    \"prev_page_url\": null,\n    \"from\": 1,\n    \"to\": 5,\n    \"data\": [\n        {\n            \"id\": 89844,\n            \"code\": \"CN\",\n            \"name\": \"China\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 36275,\n            \"code\": \"MY\",\n            \"name\": \"Malaysia\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 1,\n            \"code\": \"PH\",\n            \"name\": \"Philippines\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 143413,\n            \"code\": \"UK\",\n            \"name\": \"United Kingdom\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 36273,\n            \"code\": \"US\",\n            \"name\": \"United States Of America\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        }\n    ]\n}"},{"id":"8e5d265d-64f1-46be-a15d-44511aa1c475","name":"Get Countries","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Cache-control","value":"no-cache=\"set-cookie\""},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 19 Nov 2018 12:31:13 GMT"},{"key":"Server","value":"nginx/1.8.1"},{"key":"Set-Cookie","value":"AWSELB=6333EBB245B1797925BC7134D653291A1F580C645999E3E1F2C7364FE046295A437F791EC81C3A117DABCB1F59402F34BAD3AFE901C12B6E16BE6D69876EFC88B6212A2C;PATH=/;MAX-AGE=86400"},{"key":"Via","value":"kong/0.8.3"},{"key":"X-Kong-Proxy-Latency","value":"0"},{"key":"X-Kong-Upstream-Latency","value":"146"},{"key":"X-Pagination-Current-Page","value":"1"},{"key":"X-Pagination-Page-Count","value":"1"},{"key":"X-Pagination-Per-Page","value":"100"},{"key":"X-Pagination-Total-Count","value":"5"},{"key":"X-Powered-By","value":"PHP/7.1.23"},{"key":"Content-Length","value":"623"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 5,\n    \"per_page\": 100,\n    \"current_page\": 1,\n    \"last_page\": 1,\n    \"next_page_url\": null,\n    \"prev_page_url\": null,\n    \"from\": 1,\n    \"to\": 5,\n    \"data\": [\n        {\n            \"id\": 89844,\n            \"code\": \"CN\",\n            \"name\": \"China\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 36275,\n            \"code\": \"MY\",\n            \"name\": \"Malaysia\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 1,\n            \"code\": \"PH\",\n            \"name\": \"Philippines\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 143413,\n            \"code\": \"UK\",\n            \"name\": \"United Kingdom\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 36273,\n            \"code\": \"US\",\n            \"name\": \"United States Of America\",\n            \"type\": \"country\",\n            \"parent_id\": null,\n            \"postal_code\": null\n        }\n    ]\n}"}],"_postman_id":"591f1143-5c50-4af8-99f0-e29f8b82dc74"},{"name":"Get Country by ID","event":[{"listen":"test","script":{"id":"ff9fd265-0def-44f8-88aa-3fc666a18598","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"003ecd96-2edc-40f4-bd20-b734176f5ddb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries/{{id}}","description":"<p>Returns a country by ID or the two letter ISO country code (eg. PH,EU,etc.).</p>\n","urlObject":{"path":["locations","countries","{{id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"523d4534-0d36-40bb-9e98-c5aa94155813","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries/PH"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"98","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:10:20 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"87","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"id\":44295,\"code\":\"PH\",\"name\":\"Philippines\",\"type\":\"country\",\"parent_id\":null,\"postal_code\":null}"}],"_postman_id":"003ecd96-2edc-40f4-bd20-b734176f5ddb"},{"name":"Get Regions by Country ID","event":[{"listen":"test","script":{"id":"20c328e2-1b53-4d1b-851e-dd73bb981534","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"93f1bbbf-fb9d-4aab-8b66-6c4c7402e853","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries/{{id}}/regions","description":"<p>Returns a list of regions for the given country.</p>\n","urlObject":{"path":["locations","countries","{{id}}","regions"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"6a8906f6-af61-45ad-a983-0c99158a9588","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries/PH/regions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"492","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:10:35 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"226","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Pagination-Current-Page","value":"1","name":"X-Pagination-Current-Page","description":""},{"key":"X-Pagination-Page-Count","value":"1","name":"X-Pagination-Page-Count","description":""},{"key":"X-Pagination-Per-Page","value":"100","name":"X-Pagination-Per-Page","description":""},{"key":"X-Pagination-Total-Count","value":"4","name":"X-Pagination-Total-Count","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"total\":4,\"per_page\":100,\"current_page\":1,\"last_page\":1,\"next_page_url\":null,\"prev_page_url\":null,\"from\":1,\"to\":4,\"data\":[{\"id\":1,\"code\":null,\"name\":\"Luzon\",\"type\":\"region\",\"parent_id\":44295,\"postal_code\":null},{\"id\":4,\"code\":null,\"name\":\"Metro Manila\",\"type\":\"region\",\"parent_id\":44295,\"postal_code\":null},{\"id\":3,\"code\":null,\"name\":\"Mindanao\",\"type\":\"region\",\"parent_id\":44295,\"postal_code\":null},{\"id\":2,\"code\":null,\"name\":\"Visayas\",\"type\":\"region\",\"parent_id\":44295,\"postal_code\":null}]}"}],"_postman_id":"93f1bbbf-fb9d-4aab-8b66-6c4c7402e853"},{"name":"Get States by Country ID","event":[{"listen":"test","script":{"id":"643ebe9e-9c93-4049-876f-5a69eca72a49","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"26d588fd-3948-4e42-b153-076629a4b7d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries/{{id}}/provinces","description":"<p>Returns a list of states for the given country.</p>\n","urlObject":{"path":["locations","countries","{{id}}","provinces"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"02f6e80a-22d5-4624-b898-fffe2df3f8b9","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries/{{id}}/provinces"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"7675","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:10:24 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"168","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Pagination-Current-Page","value":"1","name":"X-Pagination-Current-Page","description":""},{"key":"X-Pagination-Page-Count","value":"1","name":"X-Pagination-Page-Count","description":""},{"key":"X-Pagination-Per-Page","value":"100","name":"X-Pagination-Per-Page","description":""},{"key":"X-Pagination-Total-Count","value":"81","name":"X-Pagination-Total-Count","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"total\":81,\"per_page\":100,\"current_page\":1,\"last_page\":1,\"next_page_url\":null,\"prev_page_url\":null,\"from\":1,\"to\":81,\"data\":[{\"id\":5,\"code\":null,\"name\":\"Abra\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":1420,\"code\":null,\"name\":\"Agusan del Norte\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":2436,\"code\":null,\"name\":\"Agusan del Sur\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":336,\"code\":null,\"name\":\"Aklan\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":681,\"code\":null,\"name\":\"Albay\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":1827,\"code\":null,\"name\":\"Antique\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":1686,\"code\":null,\"name\":\"Apayao\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":2765,\"code\":null,\"name\":\"Aurora\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":5285,\"code\":null,\"name\":\"Basilan\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":2925,\"code\":null,\"name\":\"Bataan\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":4091,\"code\":null,\"name\":\"Batanes\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":5554,\"code\":null,\"name\":\"Batangas\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":3176,\"code\":null,\"name\":\"Benguet\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":3461,\"code\":null,\"name\":\"Biliran\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":4127,\"code\":null,\"name\":\"Bohol\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":3602,\"code\":null,\"name\":\"Bukidnon\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":6668,\"code\":null,\"name\":\"Bulacan\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":8520,\"code\":null,\"name\":\"Cagayan\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":9683,\"code\":null,\"name\":\"Camarines Norte\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":10469,\"code\":null,\"name\":\"Camarines Sur\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":9619,\"code\":null,\"name\":\"Camiguin\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":9978,\"code\":null,\"name\":\"Capiz\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":11570,\"code\":null,\"name\":\"Catanduanes\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":11897,\"code\":null,\"name\":\"Cavite\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":7262,\"code\":null,\"name\":\"Cebu\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":9370,\"code\":null,\"name\":\"Compostela Valley\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":29313,\"code\":null,\"name\":\"Cotabato (North Cotabato)\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":13590,\"code\":null,\"name\":\"Davao del Norte\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":13054,\"code\":null,\"name\":\"Davao del Sur\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":12859,\"code\":null,\"name\":\"Davao Oriental\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":12751,\"code\":null,\"name\":\"Dinagat Islands\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":13825,\"code\":null,\"name\":\"Eastern Samar\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":14446,\"code\":null,\"name\":\"Guimaras\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":15643,\"code\":null,\"name\":\"Ifugao\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":17776,\"code\":null,\"name\":\"Ilocos Norte\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":18357,\"code\":null,\"name\":\"Ilocos Sur\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":15830,\"code\":null,\"name\":\"Iloilo\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":14550,\"code\":null,\"name\":\"Isabela\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":19160,\"code\":null,\"name\":\"Kalinga\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":21006,\"code\":null,\"name\":\"Laguna\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":21713,\"code\":null,\"name\":\"Lanao del Norte\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":22243,\"code\":null,\"name\":\"Lanao del Sur\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":23443,\"code\":null,\"name\":\"La Union\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":19321,\"code\":null,\"name\":\"Leyte\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":25294,\"code\":null,\"name\":\"Maguindanao\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":28491,\"code\":null,\"name\":\"Marinduque\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":24040,\"code\":null,\"name\":\"Masbate\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":25877,\"code\":null,\"name\":\"Metro Manila\",\"type\":\"state\",\"parent_id\":4,\"postal_code\":null},{\"id\":24786,\"code\":null,\"name\":\"Misamis Occidental\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":27960,\"code\":null,\"name\":\"Misamis Oriental\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":29158,\"code\":null,\"name\":\"Mountain Province\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":29875,\"code\":null,\"name\":\"Negros Occidental\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":31453,\"code\":null,\"name\":\"Negros Oriental\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":32036,\"code\":null,\"name\":\"Northern Samar\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":30570,\"code\":null,\"name\":\"Nueva Ecija\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":32630,\"code\":null,\"name\":\"Nueva Vizcaya\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":24612,\"code\":null,\"name\":\"Occidental Mindoro\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":28716,\"code\":null,\"name\":\"Oriental Mindoro\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":32921,\"code\":null,\"name\":\"Palawan\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":33380,\"code\":null,\"name\":\"Pampanga\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":33941,\"code\":null,\"name\":\"Pangasinan\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":35493,\"code\":null,\"name\":\"Quezon\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":35354,\"code\":null,\"name\":\"Quirino\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":36778,\"code\":null,\"name\":\"Rizal\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":36981,\"code\":null,\"name\":\"Romblon\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":38386,\"code\":null,\"name\":\"Samar (Western Samar)\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":37456,\"code\":null,\"name\":\"Sarangani\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":39364,\"code\":null,\"name\":\"Siquijor\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":39505,\"code\":null,\"name\":\"Sorsogon\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":37218,\"code\":null,\"name\":\"South Cotabato\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":37866,\"code\":null,\"name\":\"Southern Leyte\",\"type\":\"state\",\"parent_id\":2,\"postal_code\":null},{\"id\":37604,\"code\":null,\"name\":\"Sultan Kudarat\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":40748,\"code\":null,\"name\":\"Sulu\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":40391,\"code\":null,\"name\":\"Surigao del Norte\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":40062,\"code\":null,\"name\":\"Surigao del Sur\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":41178,\"code\":null,\"name\":\"Tarlac\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":41708,\"code\":null,\"name\":\"Tawi-Tawi\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":41923,\"code\":null,\"name\":\"Zambales\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null},{\"id\":42185,\"code\":null,\"name\":\"Zamboanga del Norte\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":42904,\"code\":null,\"name\":\"Zamboanga del Sur\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null},{\"id\":43712,\"code\":null,\"name\":\"Zamboanga Sibugay\",\"type\":\"state\",\"parent_id\":3,\"postal_code\":null}]}"}],"_postman_id":"26d588fd-3948-4e42-b153-076629a4b7d9"},{"name":"Get Cities by Country ID","event":[{"listen":"test","script":{"id":"3814f7ff-41cd-4b16-b9a5-426a79c54916","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"bd3f3ae3-255f-429a-ba7c-7005f94ba48f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries/{{id}}/cities","description":"<p>Returns a list of cities for the given country.</p>\n","urlObject":{"path":["locations","countries","{{id}}","cities"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"d25b04df-876c-42bb-a045-94cc8a8a9b4a","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/countries/PH/cities"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"9504","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:10:43 GMT","name":"Date","description":""},{"key":"Link","value":"<http://api.staging.lbcx.ph/v1/locations/countries/PH/cities?page=2>; rel=\"next\"","name":"Link","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"406","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Pagination-Current-Page","value":"1","name":"X-Pagination-Current-Page","description":""},{"key":"X-Pagination-Page-Count","value":"17","name":"X-Pagination-Page-Count","description":""},{"key":"X-Pagination-Per-Page","value":"100","name":"X-Pagination-Per-Page","description":""},{"key":"X-Pagination-Total-Count","value":"1634","name":"X-Pagination-Total-Count","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"total\":1634,\"per_page\":100,\"current_page\":1,\"last_page\":17,\"next_page_url\":\"http:\\/\\/api.staging.lbcx.ph\\/v1\\/locations\\/countries\\/PH\\/cities?page=2\",\"prev_page_url\":null,\"from\":1,\"to\":100,\"data\":[{\"id\":32936,\"code\":null,\"name\":\"Aborlan\",\"type\":\"city\",\"parent_id\":32921,\"postal_code\":null},{\"id\":24613,\"code\":null,\"name\":\"Abra de Ilog\",\"type\":\"city\",\"parent_id\":24612,\"postal_code\":null},{\"id\":2926,\"code\":null,\"name\":\"Abucay\",\"type\":\"city\",\"parent_id\":2925,\"postal_code\":null},{\"id\":8564,\"code\":null,\"name\":\"Abulug\",\"type\":\"city\",\"parent_id\":8520,\"postal_code\":null},{\"id\":19394,\"code\":null,\"name\":\"Abuyog\",\"type\":\"city\",\"parent_id\":19321,\"postal_code\":null},{\"id\":17777,\"code\":null,\"name\":\"Adams\",\"type\":\"city\",\"parent_id\":17776,\"postal_code\":null},{\"id\":35514,\"code\":null,\"name\":\"Agdangan\",\"type\":\"city\",\"parent_id\":35493,\"postal_code\":null},{\"id\":35355,\"code\":null,\"name\":\"Aglipay\",\"type\":\"city\",\"parent_id\":35354,\"postal_code\":null},{\"id\":34045,\"code\":null,\"name\":\"Agno\",\"type\":\"city\",\"parent_id\":33941,\"postal_code\":null},{\"id\":5575,\"code\":null,\"name\":\"Agoncillo\",\"type\":\"city\",\"parent_id\":5554,\"postal_code\":null},{\"id\":23469,\"code\":null,\"name\":\"Agoo\",\"type\":\"city\",\"parent_id\":23443,\"postal_code\":null},{\"id\":34063,\"code\":null,\"name\":\"Aguilar\",\"type\":\"city\",\"parent_id\":33941,\"postal_code\":null},{\"id\":15675,\"code\":null,\"name\":\"Aguinaldo\",\"type\":\"city\",\"parent_id\":15643,\"postal_code\":null},{\"id\":32956,\"code\":null,\"name\":\"Agutaya\",\"type\":\"city\",\"parent_id\":32921,\"postal_code\":null},{\"id\":15905,\"code\":null,\"name\":\"Ajuy\",\"type\":\"city\",\"parent_id\":15830,\"postal_code\":null},{\"id\":5303,\"code\":null,\"name\":\"Akbar\",\"type\":\"city\",\"parent_id\":5285,\"postal_code\":null},{\"id\":35494,\"code\":null,\"name\":\"Alabat\",\"type\":\"city\",\"parent_id\":35493,\"postal_code\":null},{\"id\":37457,\"code\":null,\"name\":\"Alabel\",\"type\":\"city\",\"parent_id\":37456,\"postal_code\":null},{\"id\":29334,\"code\":null,\"name\":\"Alamada\",\"type\":\"city\",\"parent_id\":29313,\"postal_code\":null},{\"id\":33942,\"code\":null,\"name\":\"Alaminos\",\"type\":\"city\",\"parent_id\":33941,\"postal_code\":null},{\"id\":21007,\"code\":null,\"name\":\"Alaminos\",\"type\":\"city\",\"parent_id\":21006,\"postal_code\":null},{\"id\":19322,\"code\":null,\"name\":\"Alangalang\",\"type\":\"city\",\"parent_id\":19321,\"postal_code\":null},{\"id\":5286,\"code\":null,\"name\":\"Al-Barka\",\"type\":\"city\",\"parent_id\":5285,\"postal_code\":null},{\"id\":19377,\"code\":null,\"name\":\"Albuera\",\"type\":\"city\",\"parent_id\":19321,\"postal_code\":null},{\"id\":4128,\"code\":null,\"name\":\"Alburquerque\",\"type\":\"city\",\"parent_id\":4127,\"postal_code\":null},{\"id\":33982,\"code\":null,\"name\":\"Alcala\",\"type\":\"city\",\"parent_id\":33941,\"postal_code\":null},{\"id\":8585,\"code\":null,\"name\":\"Alcala\",\"type\":\"city\",\"parent_id\":8520,\"postal_code\":null},{\"id\":7328,\"code\":null,\"name\":\"Alcantara\",\"type\":\"city\",\"parent_id\":7262,\"postal_code\":null},{\"id\":36982,\"code\":null,\"name\":\"Alcantara\",\"type\":\"city\",\"parent_id\":36981,\"postal_code\":null},{\"id\":7263,\"code\":null,\"name\":\"Alcoy\",\"type\":\"city\",\"parent_id\":7262,\"postal_code\":null},{\"id\":7272,\"code\":null,\"name\":\"Alegria\",\"type\":\"city\",\"parent_id\":7262,\"postal_code\":null},{\"id\":40392,\"code\":null,\"name\":\"Alegria\",\"type\":\"city\",\"parent_id\":40391,\"postal_code\":null},{\"id\":29314,\"code\":null,\"name\":\"Aleosan\",\"type\":\"city\",\"parent_id\":29313,\"postal_code\":null},{\"id\":11925,\"code\":null,\"name\":\"Alfonso\",\"type\":\"city\",\"parent_id\":11897,\"postal_code\":null},{\"id\":32640,\"code\":null,\"name\":\"Alfonso Castaneda\",\"type\":\"city\",\"parent_id\":32630,\"postal_code\":null},{\"id\":15644,\"code\":null,\"name\":\"Alfonso Lista (Potia)\",\"type\":\"city\",\"parent_id\":15643,\"postal_code\":null},{\"id\":30571,\"code\":null,\"name\":\"Aliaga\",\"type\":\"city\",\"parent_id\":30570,\"postal_code\":null},{\"id\":43713,\"code\":null,\"name\":\"Alicia\",\"type\":\"city\",\"parent_id\":43712,\"postal_code\":null},{\"id\":4157,\"code\":null,\"name\":\"Alicia\",\"type\":\"city\",\"parent_id\":4127,\"postal_code\":null},{\"id\":14611,\"code\":null,\"name\":\"Alicia\",\"type\":\"city\",\"parent_id\":14550,\"postal_code\":null},{\"id\":18358,\"code\":null,\"name\":\"Alilem\",\"type\":\"city\",\"parent_id\":18357,\"postal_code\":null},{\"id\":15831,\"code\":null,\"name\":\"Alimodian\",\"type\":\"city\",\"parent_id\":15830,\"postal_code\":null},{\"id\":5555,\"code\":null,\"name\":\"Alitagtag\",\"type\":\"city\",\"parent_id\":5554,\"postal_code\":null},{\"id\":8611,\"code\":null,\"name\":\"Allacapan\",\"type\":\"city\",\"parent_id\":8520,\"postal_code\":null},{\"id\":32037,\"code\":null,\"name\":\"Allen\",\"type\":\"city\",\"parent_id\":32036,\"postal_code\":null},{\"id\":38387,\"code\":null,\"name\":\"Almagro\",\"type\":\"city\",\"parent_id\":38386,\"postal_code\":null},{\"id\":3462,\"code\":null,\"name\":\"Almeria\",\"type\":\"city\",\"parent_id\":3461,\"postal_code\":null},{\"id\":7338,\"code\":null,\"name\":\"Aloguinsan\",\"type\":\"city\",\"parent_id\":7262,\"postal_code\":null},{\"id\":24787,\"code\":null,\"name\":\"Aloran\",\"type\":\"city\",\"parent_id\":24786,\"postal_code\":null},{\"id\":337,\"code\":null,\"name\":\"Altavas\",\"type\":\"city\",\"parent_id\":336,\"postal_code\":null},{\"id\":27961,\"code\":null,\"name\":\"Alubijid\",\"type\":\"city\",\"parent_id\":27960,\"postal_code\":null},{\"id\":11898,\"code\":null,\"name\":\"Amadeo\",\"type\":\"city\",\"parent_id\":11897,\"postal_code\":null},{\"id\":32631,\"code\":null,\"name\":\"Ambaguio\",\"type\":\"city\",\"parent_id\":32630,\"postal_code\":null},{\"id\":31454,\"code\":null,\"name\":\"Amlan (Ayuquitan)\",\"type\":\"city\",\"parent_id\":31453,\"postal_code\":null},{\"id\":25295,\"code\":null,\"name\":\"Ampatuan\",\"type\":\"city\",\"parent_id\":25294,\"postal_code\":null},{\"id\":8639,\"code\":null,\"name\":\"Amulung\",\"type\":\"city\",\"parent_id\":8520,\"postal_code\":null},{\"id\":37867,\"code\":null,\"name\":\"Anahawan\",\"type\":\"city\",\"parent_id\":37866,\"postal_code\":null},{\"id\":41179,\"code\":null,\"name\":\"Anao\",\"type\":\"city\",\"parent_id\":41178,\"postal_code\":null},{\"id\":4140,\"code\":null,\"name\":\"Anda\",\"type\":\"city\",\"parent_id\":4127,\"postal_code\":null},{\"id\":34004,\"code\":null,\"name\":\"Anda\",\"type\":\"city\",\"parent_id\":33941,\"postal_code\":null},{\"id\":14551,\"code\":null,\"name\":\"Angadanan\",\"type\":\"city\",\"parent_id\":14550,\"postal_code\":null},{\"id\":6669,\"code\":null,\"name\":\"Angat\",\"type\":\"city\",\"parent_id\":6668,\"postal_code\":null},{\"id\":33381,\"code\":null,\"name\":\"Angeles City\",\"type\":\"city\",\"parent_id\":33380,\"postal_code\":null},{\"id\":36779,\"code\":null,\"name\":\"Angono\",\"type\":\"city\",\"parent_id\":36778,\"postal_code\":null},{\"id\":15883,\"code\":null,\"name\":\"Anilao\",\"type\":\"city\",\"parent_id\":15830,\"postal_code\":null},{\"id\":1828,\"code\":null,\"name\":\"Anini-y\",\"type\":\"city\",\"parent_id\":1827,\"postal_code\":null},{\"id\":4173,\"code\":null,\"name\":\"Antequera\",\"type\":\"city\",\"parent_id\":4127,\"postal_code\":null},{\"id\":29381,\"code\":null,\"name\":\"Antipas\",\"type\":\"city\",\"parent_id\":29313,\"postal_code\":null},{\"id\":36790,\"code\":null,\"name\":\"Antipolo\",\"type\":\"city\",\"parent_id\":36778,\"postal_code\":null},{\"id\":33415,\"code\":null,\"name\":\"Apalit\",\"type\":\"city\",\"parent_id\":33380,\"postal_code\":null},{\"id\":8521,\"code\":null,\"name\":\"Aparri\",\"type\":\"city\",\"parent_id\":8520,\"postal_code\":null},{\"id\":32922,\"code\":null,\"name\":\"Araceli\",\"type\":\"city\",\"parent_id\":32921,\"postal_code\":null},{\"id\":29352,\"code\":null,\"name\":\"Arakan\",\"type\":\"city\",\"parent_id\":29313,\"postal_code\":null},{\"id\":33428,\"code\":null,\"name\":\"Arayat\",\"type\":\"city\",\"parent_id\":33380,\"postal_code\":null},{\"id\":7282,\"code\":null,\"name\":\"Argao\",\"type\":\"city\",\"parent_id\":7262,\"postal_code\":null},{\"id\":23444,\"code\":null,\"name\":\"Aringay\",\"type\":\"city\",\"parent_id\":23443,\"postal_code\":null},{\"id\":32647,\"code\":null,\"name\":\"Aritao\",\"type\":\"city\",\"parent_id\":32630,\"postal_code\":null},{\"id\":24041,\"code\":null,\"name\":\"Aroroy\",\"type\":\"city\",\"parent_id\":24040,\"postal_code\":null},{\"id\":13826,\"code\":null,\"name\":\"Arteche\",\"type\":\"city\",\"parent_id\":13825,\"postal_code\":null},{\"id\":34023,\"code\":null,\"name\":\"Asingan\",\"type\":\"city\",\"parent_id\":33941,\"postal_code\":null},{\"id\":15665,\"code\":null,\"name\":\"Asipulo\",\"type\":\"city\",\"parent_id\":15643,\"postal_code\":null},{\"id\":7354,\"code\":null,\"name\":\"Asturias\",\"type\":\"city\",\"parent_id\":7262,\"postal_code\":null},{\"id\":13591,\"code\":null,\"name\":\"Asuncion (Saug)\",\"type\":\"city\",\"parent_id\":13590,\"postal_code\":null},{\"id\":35527,\"code\":null,\"name\":\"Atimonan\",\"type\":\"city\",\"parent_id\":35493,\"postal_code\":null},{\"id\":3177,\"code\":null,\"name\":\"Atok\",\"type\":\"city\",\"parent_id\":3176,\"postal_code\":null},{\"id\":14646,\"code\":null,\"name\":\"Aurora\",\"type\":\"city\",\"parent_id\":14550,\"postal_code\":null},{\"id\":42905,\"code\":null,\"name\":\"Aurora\",\"type\":\"city\",\"parent_id\":42904,\"postal_code\":null},{\"id\":31463,\"code\":null,\"name\":\"Ayungon\",\"type\":\"city\",\"parent_id\":31453,\"postal_code\":null},{\"id\":10470,\"code\":null,\"name\":\"Baao\",\"type\":\"city\",\"parent_id\":10469,\"postal_code\":null},{\"id\":19458,\"code\":null,\"name\":\"Babatngon\",\"type\":\"city\",\"parent_id\":19321,\"postal_code\":null},{\"id\":682,\"code\":null,\"name\":\"Bacacay\",\"type\":\"city\",\"parent_id\":681,\"postal_code\":null},{\"id\":17779,\"code\":null,\"name\":\"Bacarra\",\"type\":\"city\",\"parent_id\":17776,\"postal_code\":null},{\"id\":4227,\"code\":null,\"name\":\"Baclayon\",\"type\":\"city\",\"parent_id\":4127,\"postal_code\":null},{\"id\":23519,\"code\":null,\"name\":\"Bacnotan\",\"type\":\"city\",\"parent_id\":23443,\"postal_code\":null},{\"id\":28717,\"code\":null,\"name\":\"Baco\",\"type\":\"city\",\"parent_id\":28716,\"postal_code\":null},{\"id\":21714,\"code\":null,\"name\":\"Bacolod\",\"type\":\"city\",\"parent_id\":21713,\"postal_code\":null},{\"id\":29876,\"code\":null,\"name\":\"Bacolod City\",\"type\":\"city\",\"parent_id\":29875,\"postal_code\":null},{\"id\":22315,\"code\":null,\"name\":\"Bacolod-Kalawi (Bacolod Grande)\",\"type\":\"city\",\"parent_id\":22243,\"postal_code\":null},{\"id\":33459,\"code\":null,\"name\":\"Bacolor\",\"type\":\"city\",\"parent_id\":33380,\"postal_code\":null},{\"id\":31488,\"code\":null,\"name\":\"Bacong\",\"type\":\"city\",\"parent_id\":31453,\"postal_code\":null}]}"}],"_postman_id":"bd3f3ae3-255f-429a-ba7c-7005f94ba48f"},{"name":"Get Region by ID","event":[{"listen":"test","script":{"id":"5f11d8b0-bfed-4dbc-9ac5-9e46d6aa010d","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"3cdca595-f1ae-400b-85c7-18f74ca1a209","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/regions/{{id}}","description":"<p>Returns a region by ID.</p>\n","urlObject":{"path":["locations","regions","{{id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9bcd9749-e3ac-4a78-8f91-03f35e934460","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/regions/{{id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"492","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:12:24 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"111","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Pagination-Current-Page","value":"1","name":"X-Pagination-Current-Page","description":""},{"key":"X-Pagination-Page-Count","value":"1","name":"X-Pagination-Page-Count","description":""},{"key":"X-Pagination-Per-Page","value":"100","name":"X-Pagination-Per-Page","description":""},{"key":"X-Pagination-Total-Count","value":"4","name":"X-Pagination-Total-Count","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"total\":4,\"per_page\":100,\"current_page\":1,\"last_page\":1,\"next_page_url\":null,\"prev_page_url\":null,\"from\":1,\"to\":4,\"data\":[{\"id\":1,\"code\":null,\"name\":\"Luzon\",\"type\":\"region\",\"parent_id\":44295,\"postal_code\":null},{\"id\":4,\"code\":null,\"name\":\"Metro Manila\",\"type\":\"region\",\"parent_id\":44295,\"postal_code\":null},{\"id\":3,\"code\":null,\"name\":\"Mindanao\",\"type\":\"region\",\"parent_id\":44295,\"postal_code\":null},{\"id\":2,\"code\":null,\"name\":\"Visayas\",\"type\":\"region\",\"parent_id\":44295,\"postal_code\":null}]}"}],"_postman_id":"3cdca595-f1ae-400b-85c7-18f74ca1a209"},{"name":"Get Provinces by Region ID","event":[{"listen":"test","script":{"id":"93ff61cc-0e97-47d9-8c6d-a573e18a2879","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"4b24976b-64ce-434a-9ed0-bad840efedfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/regions/{{id}}/provinces","description":"<p>Returns a list of provinces for the given region.</p>\n","urlObject":{"path":["locations","regions","{{id}}","provinces"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"11413cf1-1741-4c7c-907b-3dce9e530484","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/regions/{{id}}/provinces"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"1746","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:12:32 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"196","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Pagination-Current-Page","value":"1","name":"X-Pagination-Current-Page","description":""},{"key":"X-Pagination-Page-Count","value":"1","name":"X-Pagination-Page-Count","description":""},{"key":"X-Pagination-Per-Page","value":"100","name":"X-Pagination-Per-Page","description":""},{"key":"X-Pagination-Total-Count","value":"17","name":"X-Pagination-Total-Count","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"total\":17,\"per_page\":100,\"current_page\":1,\"last_page\":1,\"next_page_url\":null,\"prev_page_url\":null,\"from\":1,\"to\":17,\"data\":[{\"id\":25878,\"code\":null,\"name\":\"Caloocan City\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":26070,\"code\":null,\"name\":\"Las Pinas\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":26131,\"code\":null,\"name\":\"Makati\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":26279,\"code\":null,\"name\":\"Malabon\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":26097,\"code\":null,\"name\":\"Mandaluyong\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":26302,\"code\":null,\"name\":\"Manila\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27272,\"code\":null,\"name\":\"Marikina\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27290,\"code\":null,\"name\":\"Muntinlupa\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27305,\"code\":null,\"name\":\"Navotas\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27404,\"code\":null,\"name\":\"Paranaque City\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27444,\"code\":null,\"name\":\"Pasay City\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27321,\"code\":null,\"name\":\"Pasig City\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27433,\"code\":null,\"name\":\"Pateros\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27662,\"code\":null,\"name\":\"Quezon City\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27857,\"code\":null,\"name\":\"San Juan\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27890,\"code\":null,\"name\":\"Taguig City\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null},{\"id\":27923,\"code\":null,\"name\":\"Valenzuela\",\"type\":\"city\",\"parent_id\":25877,\"postal_code\":null}]}"}],"_postman_id":"4b24976b-64ce-434a-9ed0-bad840efedfe"},{"name":"Get Province by ID","event":[{"listen":"test","script":{"id":"1257c6e6-1f95-410a-bbd3-19accab96bea","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"7718448b-2e14-45f5-ad59-90df489d3a88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/provinces/{{id}}","description":"<p>Returns a state/province by ID.</p>\n","urlObject":{"path":["locations","provinces","{{id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"f15c122c-c71c-47cb-962f-59f2a4321310","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/provinces/{{id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"89","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:11:57 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"59","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"id\":5554,\"code\":null,\"name\":\"Batangas\",\"type\":\"state\",\"parent_id\":1,\"postal_code\":null}"}],"_postman_id":"7718448b-2e14-45f5-ad59-90df489d3a88"},{"name":"Get Cities by Province ID","event":[{"listen":"test","script":{"id":"e307a99b-c250-47a7-b292-0f877cba1fa2","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"4f52e816-395e-401d-82cc-19892f7879be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/provinces/{{id}}/cities","description":"<p>Returns a list of cities for the given province.</p>\n","urlObject":{"path":["locations","provinces","{{id}}","cities"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"db1bc279-fc12-4b52-9e17-eac3db7e5333","name":"Get Cities by Province ID","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/provinces/18130/cities"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 19 Nov 2018 13:02:42 GMT"},{"key":"Server","value":"nginx/1.8.1"},{"key":"Via","value":"kong/0.8.3"},{"key":"X-Kong-Proxy-Latency","value":"0"},{"key":"X-Kong-Upstream-Latency","value":"85"},{"key":"X-Pagination-Current-Page","value":"1"},{"key":"X-Pagination-Page-Count","value":"1"},{"key":"X-Pagination-Per-Page","value":"100"},{"key":"X-Pagination-Total-Count","value":"4"},{"key":"X-Powered-By","value":"PHP/7.1.23"},{"key":"Content-Length","value":"498"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 4,\n    \"per_page\": 100,\n    \"current_page\": 1,\n    \"last_page\": 1,\n    \"next_page_url\": null,\n    \"prev_page_url\": null,\n    \"from\": 1,\n    \"to\": 4,\n    \"data\": [\n        {\n            \"id\": 18131,\n            \"code\": null,\n            \"name\": \"Bangued\",\n            \"type\": \"city\",\n            \"parent_id\": 18130,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 18146,\n            \"code\": null,\n            \"name\": \"Pidigan\",\n            \"type\": \"city\",\n            \"parent_id\": 18130,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 18156,\n            \"code\": null,\n            \"name\": \"San Quintin\",\n            \"type\": \"city\",\n            \"parent_id\": 18130,\n            \"postal_code\": null\n        },\n        {\n            \"id\": 18160,\n            \"code\": null,\n            \"name\": \"Tayum\",\n            \"type\": \"city\",\n            \"parent_id\": 18130,\n            \"postal_code\": null\n        }\n    ]\n}"}],"_postman_id":"4f52e816-395e-401d-82cc-19892f7879be"},{"name":"Get City by ID","event":[{"listen":"test","script":{"id":"3013df0c-8e37-4953-bba4-d55e852b0a45","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"ec0ca42c-4bd7-49df-a7dd-be03a07fa0d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/cities/{{id}}","description":"<p>Returns a city by ID.</p>\n","urlObject":{"path":["locations","cities","{{id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1f2108a1-a31e-46de-8904-53fbdfbb342c","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/cities/79"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"85","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:12:44 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"60","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"id\":79,\"code\":null,\"name\":\"Dolores\",\"type\":\"city\",\"parent_id\":5,\"postal_code\":null}"}],"_postman_id":"ec0ca42c-4bd7-49df-a7dd-be03a07fa0d5"},{"name":"Get District by City ID","event":[{"listen":"test","script":{"id":"58d4090f-5da6-4d6e-a401-12170fc182fa","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"637d52e3-c0c7-4243-8c42-620cdd793e30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/cities/{{id}}/districts","description":"<p>Returns a list of districts for the given city.</p>\n","urlObject":{"path":["locations","cities","{{id}}","districts"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"74cbe01b-8c36-4201-86df-1c20aa2e65fb","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/cities/79/districts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"1526","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:12:47 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"93","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Pagination-Current-Page","value":"1","name":"X-Pagination-Current-Page","description":""},{"key":"X-Pagination-Page-Count","value":"1","name":"X-Pagination-Page-Count","description":""},{"key":"X-Pagination-Per-Page","value":"100","name":"X-Pagination-Per-Page","description":""},{"key":"X-Pagination-Total-Count","value":"15","name":"X-Pagination-Total-Count","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"total\":15,\"per_page\":100,\"current_page\":1,\"last_page\":1,\"next_page_url\":null,\"prev_page_url\":null,\"from\":1,\"to\":15,\"data\":[{\"id\":80,\"code\":null,\"name\":\"Bayaan\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":81,\"code\":null,\"name\":\"Cabaroan\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":82,\"code\":null,\"name\":\"Calumbaya\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":83,\"code\":null,\"name\":\"Cardona\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":84,\"code\":null,\"name\":\"Isit\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":85,\"code\":null,\"name\":\"Kimmalaba\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":86,\"code\":null,\"name\":\"Libtec\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":87,\"code\":null,\"name\":\"Lub-lubba\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":88,\"code\":null,\"name\":\"Mudiit\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":89,\"code\":null,\"name\":\"Namit-ingan\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":90,\"code\":null,\"name\":\"Pacac\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":91,\"code\":null,\"name\":\"Poblacion\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":92,\"code\":null,\"name\":\"Salucag\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":93,\"code\":null,\"name\":\"Talogtog\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"},{\"id\":94,\"code\":null,\"name\":\"Taping\",\"type\":\"district\",\"parent_id\":79,\"postal_code\":\"2801\"}]}"}],"_postman_id":"637d52e3-c0c7-4243-8c42-620cdd793e30"},{"name":"Get District by ID","event":[{"listen":"test","script":{"id":"976daf28-06dc-4ece-adf5-a0bae67264f0","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"e22f9aab-74b8-48da-ad21-807c3c08157c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/locations/district/{{id}}","description":"<p>Returns a district by ID.</p>\n<p><img src=\"https://www.quadx.xyz/wp-content/themes/quad-x/assets/img/footergreen.png\" /></p>","urlObject":{"path":["locations","district","{{id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"0c212511-75b6-456c-9aa3-09391a1fa6e6","name":"Example","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/locations/district/107"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Length","value":"96","name":"Content-Length","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Sun, 20 Nov 2016 09:12:56 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.8.1","name":"Server","description":""},{"key":"Via","value":"kong/0.8.3","name":"Via","description":""},{"key":"X-Kong-Proxy-Latency","value":"0","name":"X-Kong-Proxy-Latency","description":""},{"key":"X-Kong-Upstream-Latency","value":"88","name":"X-Kong-Upstream-Latency","description":""},{"key":"X-Powered-By","value":"PHP/5.6.21","name":"X-Powered-By","description":""}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"staging.lbcx.ph","path":"/","secure":false,"value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIkMnkkMTAkVXJSTEdlY1hlTTBWRlJweFQ3T29JZWRub29iOWdiQkYzVHdwNVdBSDl5cnV0TzlyMUJGQ0siLCJleHAiOjE0Nzk3MTkzMzgsImlhdCI6MTQ3OTYzMjkzOH0.547t9orekf-3uQWtdJ5orSWyoY_KpUb6Ic_T8vRyDqw","key":"token"}],"responseTime":null,"body":"{\"id\":107,\"code\":null,\"name\":\"Poblacion\",\"type\":\"district\",\"parent_id\":103,\"postal_code\":\"2824\"}"}],"_postman_id":"e22f9aab-74b8-48da-ad21-807c3c08157c"}],"id":"03c51881-c781-4f3d-9097-b5e3ce8670b7","description":"<p>The following endpoints return information regarding Locations. \nIt is advised to use this API in order to have a uniform format for addresses.\nCountry, Region, State, City, Province, and District are the parameters that make up the address format.</p>\n","event":[{"listen":"prerequest","script":{"id":"5bc36810-482f-4051-b4ac-50de324770cb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"978ac2f7-658f-4a51-8018-9378898547b2","type":"text/javascript","exec":[""]}}],"_postman_id":"03c51881-c781-4f3d-9097-b5e3ce8670b7"},{"name":"Orders","item":[{"name":"Create Orders","event":[{"listen":"prerequest","script":{"id":"60ae93a0-4803-4c99-a76e-2eddae54775f","exec":["/**"," * https://gist.github.com/jhurliman/1250118"," */","function base64Encode(data)","{","    data = CryptoJS.enc.Utf8.parse(data);","    data = CryptoJS.enc.Base64.stringify(data);","    data = urlSafe(data);","    return data;","}","","/**"," * https://gist.github.com/jhurliman/1250118"," */","function urlSafe(data)","{","    return data.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/\\=+$/, '');","}","","/**"," * https://jwt.io/introduction/"," */","function getHeader()","{","    // Create the header.","    // Only HMAC SHA256 is supported for now.","    var header = JSON.stringify({","        alg: 'HS256',","        typ: 'JWT'","    });","    ","    // Encode it.","    return base64Encode(header);","}","","/**"," * https://jwt.io/introduction/"," */","function getPayload()","{","    // Create the payload.","    var payload = {","        // API key that's mapped to a party ID.","        sub: postman.getEnvironmentVariable('api_key'),","        // Issued at.","        iat: Math.floor(Date.now() / 1000),","        // Nonce.","        jti: Math.floor(Date.now() / 1000),","    };","    ","    // Add the obo, if available.","    var obo = postman.getEnvironmentVariable('obo');","    ","    if (obo) {","        payload.obo = obo;","    }","    ","    // Encode it.","    payload = JSON.stringify(payload);","    ","    // Encode it.","    return base64Encode(payload);","}","","/**"," * https://jwt.io/introduction/"," */","function sign(header, payload)","{","    // Build the string to be signed.","    var data = header + '.' + payload;","    ","    // Hash it.","    var hash = CryptoJS.HmacSHA256(data, postman.getEnvironmentVariable('secret_key'));","    ","    // Encode it.","    return urlSafe(CryptoJS.enc.Base64.stringify(hash));","}","","/**"," * Generates a reference ID."," */","function getReferenceId(length)","{","    if (typeof(length) == 'undefined') {","        length = 8;","    }","    ","    var reference_id = '';","    var chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";","","    for (var i = 0; i < length; i++) {","        reference_id += chars.charAt(Math.floor(Math.random() * chars.length));","    }","    ","    return reference_id.toUpperCase();","}","","// Create the authorization header.","var header = getHeader();","var payload = getPayload();","var signature = sign(header, payload);","var jwt = header + '.' + payload + '.' + signature;","postman.setEnvironmentVariable('authorization', 'Bearer ' + jwt);","","// Set the reference ID.","postman.setEnvironmentVariable('reference_id', getReferenceId());"],"type":"text/javascript"}},{"listen":"test","script":{"id":"ccde8e9b-7805-400e-bb05-a666d4447242","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"81638d5a-c54c-4885-9b9b-beeab2521dcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"for_pickup\",\n    \"delivery_address\": {\n        \"name\": \"Test buyer\",\n        \"company\": \"Maxis\",\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"district\": \"San Fernando\",\n        \"city\": \"Mangaldan\",\n        \"state\": \"Pangasinan\",\n        \"postal_code\": \"4233\",\n        \"country\": \"PH\",\n        \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"pickup_address\": {\n        \"name\": \"JJJ. Doe\",\n        \"company\": \"Maxis\",\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"city\": \"Baguio City\",\n        \"state\": \"Benguet\",\n        \"postal_code\": \"1226\",\n        \"country\": \"PH\",\n        \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"return_address\": {\n        \"name\": \"JJ. ABC\",\n        \"company\": \"Maxis\",\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"city\": \"Baguio City\",\n        \"state\": \"Benguet\",\n        \"postal_code\": \"1226\",\n        \"country\": \"PH\",\n        \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"contact_number\": \"639178117983\",\n    \"buyer_name\": \"Angelica Mae Anacion\",\n    \"parcel\": {\n        \"dimensions\": {\n            \"width\": 10,\n            \"length\": 10,\n            \"uom\": \"cm\",\n            \"height\": 10\n        },\n        \"weight\": {\n            \"value\": 4.0,\n            \"uom\": \"kg\"\n        }\n    },\n    \"payment_provider\": \"other\",\n    \"payment_method\": \"other\",\n    \"items\": [\n        {\n            \"type\": \"product\",\n            \"description\": \"Red Shirt\",\n            \"amount\": 1250,\n            \"quantity\": 1,\n            \"metadata\": {\n                \"size\": \"medium\",\n                \"color\": \"red\"\n            }\n        },\n        {\n            \"type\": \"product\",\n            \"description\": \"Blue Shirt\",\n            \"amount\": 700,\n            \"quantity\": 2,\n            \"metadata\": {\n                \"size\": \"medium\",\n                \"color\": \"blue\"\n            }\n        },\n        {\n            \"type\": \"tax\",\n            \"description\": \"Tax\",\n            \"amount\": 132.50\n        },\n        {\n            \"type\": \"shipping\",\n            \"description\": \"Expedited Shipping\",\n            \"amount\": 150\n        },\n        {\n            \"type\": \"fee\",\n            \"description\": \"Handling Fee\",\n            \"amount\": 20\n        },\n        {\n            \"type\": \"fee\",\n            \"description\": \"Gift Wrapping Fee\",\n            \"amount\": 50.75\n        },\n        {\n            \"type\": \"insurance\",\n            \"description\": \"Insurance\",\n            \"amount\": 150\n        }\n    ],\n    \"currency\": \"PHP\",\n    \"shipment\": \"custom\",\n    \"total\": 3153.25\n}"},"url":"{{base_url}}/orders","description":"<p>Creates an order for shipment. Only authorized clients of QuadX can create orders.</p>\n<p>An order is defined by a sender/shipper, a pickup address, the items (or parcels) being sent, the buyer, the recipient/consignee (possibly different from buyer), their delivery address, and payment information.</p>\n<p><img src=\"https://i.imgur.com/LkBPnbV.png\" /></p>\n\n<h3 id=\"address-data\">Address Data</h3>\n<p>A delivery address is required to create an order. A pickup address can be provided, but is only required once the order has been tagged as \"ready for pickup\". An address is comprised of the following fields:</p>\n<table><tbody><tr><th>Field Name, Type, Character Limit, Required?</th><th>Sample Value</th><th>Definition</th></tr><tr><td><div>`name`<br /><i>string</i><br /><br />255 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`John Doe`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>name of the sender/consignee</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`company`<br /><i>string</i><br /><br />255 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`QuadX`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>company name (if applicable)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`title`<br /><i>string</i><br /><br />50 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`Mr.`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>title (eg, Mr., Mrs., Ms., Officer)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`email`<br /><i>string</i><br /><br />50 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>johndoe@quadx.xyz</div><div><div><div><div></div></div></div><div></div></div></td><td><div>email address</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`phone_number`<br /><i>string</i><br /><br />50 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`4331234`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>phone number (landline)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`mobile_number`<br /><i>string</i><br /><br />50 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`09171234567`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>mobile number</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`fax_number`<br /><i>string</i><br /><br />50 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`4331234`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>fax number</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`district`<br /><i>string</i><br /><br />300 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`Poblacion`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>district</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`line_1`<br /><i>string</i><br /><br />500 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`2F U221 Bldg. A`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>address line 1</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`line_2`<br /><i>string</i><br /><br />500 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`Emerald St.`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>address line 2 (if applicable)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`city`<br /><i>string</i><br /><br />300 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`Makati`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>city</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`state`<br /><i>string</i><br /><br />300 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`Metro Manila`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>state or province</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`postal_code`<br /><i>string</i><br /><br />50 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`1600`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>postal or zip code</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`country`<br /><i>string</i><br /><br />50 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`PH`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>2-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) (eg, US)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`remarks`<br /><i>string</i><br /><br />500 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`imported items; kindly double check`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>additional descriptive notes</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<p><img src=\"https://i.imgur.com/LkBPnbV.png\" /></p>\n\n<h3 id=\"product-data\">Product Data</h3>\n<p>It is also required to pass the items which comprise the order. This is used as the basis for printing the waybill, as well as computing insurance, shipping and transaction costs. \"items\" is an array of items, each of which is described by the following fields:</p>\n<table><tbody><tr><th>Field Name, Type, Character Limit, Required?</th><th>Sample Value</th><th>Definition</th></tr><tr><td><div>`type`<br /><i>string</i><br /><br />10 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`tax`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>one of product, shipping, tax, fee, insurance, discount (see below for definitions)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`description`<br /><i>string</i><br /><br />500 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`Bracelet`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>item description</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`amount`<br /><i>float</i><br /><br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`123.45`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>amount of item (rounded to two decimal places)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`quantity`<br /><i>integer</i><br /><br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`2`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>number of items (defaults to 1, applicable only to products)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`preferred_pickup_time`<br /><i>string</i><br /><br />100 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`morning`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>descriptive string re: preferred time of pickup</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`preferred_delivery_time`<br /><i>string</i><br /><br />100 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`2pm-5pm`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>descriptive string re: preferred time of pickup</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`metadata`<br /><i>jsonb</i><br /><br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>{\"product_image\": \"https://cdn.checkmeout.ph/v1/e87.png\"}</div><div><div><div><div></div></div></div><div></div></div></td><td><div>additional JSON-encoded metadata</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<h3 id=\"item-type-data\">Item Type Data</h3>\n<p>Each item can be one of several types. At least one \"product\" must be present, with the others being optional.</p>\n<table><tbody><tr><th>Field Name</th><th>Required?</th><th>Definition</th></tr><tr><td><div>`product`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>yes; at least 1</div><div><div><div><div></div></div></div><div></div></div></td><td><div>at least 1 product entry is required</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`shipping`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>optional</div><div><div><div><div></div></div></div><div></div></div></td><td><div>shipping fee charged, if any</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`tax`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>optional</div><div><div><div><div></div></div></div><div></div></div></td><td><div>tax charged, if any</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`fee`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>optional</div><div><div><div><div></div></div></div><div></div></div></td><td><div>additional fees charged, if any</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`insurance`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>optional</div><div><div><div><div></div></div></div><div></div></div></td><td><div>insurance charged, if any</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`discount`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>optional</div><div><div><div><div></div></div></div><div></div></div></td><td><div>discounts applied, if any (this must &lt;= 0))</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<p><img src=\"https://i.imgur.com/LkBPnbV.png\" /></p>\n\n<h3 id=\"payment-data\">Payment Data</h3>\n<p>Payment details consist of the currency, total amount, payment method and provider:</p>\n<table><tbody><tr><th>Field Name, Type, Character Limit, Required?</th><th>Sample Value</th><th>Definition</th></tr><tr><td><div>`total`<br /><i>float</i><br /><br /><br /><i>required; at least 1</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`305.63`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>total value of the order,<br />must match sum total of order items</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`currency`<br /><i>string</i><br /><br />5 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`PHP`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>3-letter <a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO currency code</a> (eg, PHP)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`payment_method`<br /><i>string</i><br /><br />15 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`credit_card`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>must be one of the following:<br />`credit_card`, `debit_card`, `otc`, `cod`, or `other`</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`payment_provider`<br /><i>string</i><br /><br />15 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`paypal`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>must be one of the following:<br />`asiapay`, `dragonpay`, `lbc`, `lbcx`, `paypal`, or `other`</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`seller_payment_method`<br /><i>string</i><br /><br /><br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`cash`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>This field represents the payment method utilized to collect service fees, encompassing shipping and insurance costs, at the point of pickup from the seller.<br /><br />available options:<br /><code>cash</code>, <code>gcash</code> or <code>null</code></div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<p><strong>Note:</strong> If <code>seller_payment_method</code> is omitted, service fees will be automatically billed and/or deducted from the disbursal as applicable.</p>\n<p><img src=\"https://i.imgur.com/LkBPnbV.png\" /></p>\n\n<h3 id=\"remaining-fields\">Remaining Fields</h3>\n<p>The remaining fields of an order are:</p>\n<table><tbody><tr><th>Field Name, Type, Character Limit, Required?</th><th>Sample Value</th><th>Definition</th></tr><tr><td><div>`shipment`<br /><i>string</i><br /><br />50 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`small-pouch`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>type of package with possible values: `small-pouch, medium-pouch, big-pouch, box, oversized, custom (requires parcel dimensions and weight)`</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`buyer_name`<br /><i>string</i><br /><br />100 characters<br /><br /><i>required; at least 1</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`Jane Doe`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>buyer's name</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`buyer_id`<br /><i>integer</i><br /><br /><br /></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`123`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>buyer's account id</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`email`<br /><i>string</i><br /><br />50 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`janedoe@quadx.xyz`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>buyer's email address (one of email/contact number is required)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`contact_number`<br /><i>string</i><br /><br />50 characters<br /><br /><i>required</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`4331234`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>buyer's contact number (one of email/contact number is required)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`status`<br /><i>string</i><br /><br />15 characters<br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`pending`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>one of the following:<br />`pending`, `confirmed` or `for_pickup` (defaults to pending)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`reference_id`<br /><i>string</i><br /><br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`QGZ63AWA`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>unique reference id for order</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`own_print`<br /><i>boolean</i><br /><br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`true`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>if `true`, client will print label,<br />if `false`, QuadX will print the label.<br />defaults to `false` if not passed.</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`pickup_total`<br /><i>float</i><br /><br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>`200.00`</div><div><div><div><div></div></div></div><div></div></div></td><td><div>indicates the amount the rider needs to collect from the merchant.<br />defaults to 0 if not passed.<br />if passed, should be a value greater than 0.</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>`metadata`<br /><i>jsonb</i><br /><br /><br /><i>optional</i></div><div><div><div><div></div></div></div><div></div></div></td><td><div>{\"shop_id\": \"12345\"}</div><div><div><div><div></div></div></div><div></div></div></td><td><div>additional JSON-encoded metadata</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n<h4 id=\"custom-package-requirements\">Custom Package Requirements</h4>\n<p>When selecting <code>custom</code> as the package type, you must provide the parcel dimensions and weight:</p>\n<ul>\n<li><p><strong>Dimensions</strong>: Length, width, and height of the parcel in centimeters (cm).</p>\n</li>\n<li><p><strong>Weight</strong>: Weight of the parcel in kilograms (kg).</p>\n</li>\n</ul>\n","urlObject":{"path":["orders"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9fd89793-f4c9-4aab-a874-c46317f9a982","name":"Create Orders","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{authorization}}"}],"body":{"mode":"raw","raw":"{\n    \"status\": \"for_pickup\",\n    \"delivery_address\": {\n        \"name\": \"Test buyer\",\n        \"company\": \"Maxis\",\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"district\": \"San Fernando\",\n        \"city\": \"Mangaldan\",\n        \"state\": \"Pangasinan\",\n        \"postal_code\": \"4233\",\n        \"country\": \"PH\",\n        \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"pickup_address\": {\n        \"name\": \"JJJ. Doe\",\n        \"company\": \"Maxis\",\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"district\": \"Pio del Pilar\",\n        \"city\": \"Makati City\",\n        \"state\": \"Metro Manila\",\n        \"postal_code\": \"1226\",\n        \"country\": \"PH\",\n        \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"return_address\": {\n        \"name\": \"JJ. ABC\",\n        \"company\": \"Maxis\",\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"district\": \"Pio del Pilar\",\n        \"city\": \"Makati City\",\n        \"state\": \"Metro Manila\",\n        \"postal_code\": \"1226\",\n        \"country\": \"PH\",\n        \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"contact_number\": \"639178117983\",\n    \"buyer_name\": \"Angelica Mae Anacion\",\n    \"parcel\": {\n        \"dimensions\": {\n            \"width\": 10,\n            \"length\": 10,\n            \"uom\": \"cm\",\n            \"height\": 10\n        },\n        \"weight\": {\n            \"value\": 4.0,\n            \"uom\": \"kg\"\n        }\n    },\n    \"payment_provider\": \"other\",\n    \"payment_method\": \"other\",\n    \"items\": [\n        {\n            \"type\": \"product\",\n            \"description\": \"Red Shirt\",\n            \"amount\": 1250,\n            \"quantity\": 1,\n            \"metadata\": {\n                \"size\": \"medium\",\n                \"color\": \"red\"\n            }\n        },\n        {\n            \"type\": \"product\",\n            \"description\": \"Blue Shirt\",\n            \"amount\": 700,\n            \"quantity\": 2,\n            \"metadata\": {\n                \"size\": \"medium\",\n                \"color\": \"blue\"\n            }\n        }\n    ],\n    \"currency\": \"PHP\",\n    \"shipment\": \"custom\",\n    \"total\": 2650\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Mon, 19 Nov 2018 12:42:04 GMT"},{"key":"Server","value":"nginx/1.8.1"},{"key":"Via","value":"kong/0.8.3"},{"key":"X-Kong-Proxy-Latency","value":"0"},{"key":"X-Kong-Upstream-Latency","value":"2775"},{"key":"X-Powered-By","value":"PHP/7.1.23"},{"key":"Content-Length","value":"2832"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 8074443,\n    \"party_id\": 20596,\n    \"service_id\": 10801,\n    \"currency\": \"PHP\",\n    \"reference_id\": null,\n    \"tracking_number\": \"5ALH-AKML-3JPE\",\n    \"payment_method\": \"other\",\n    \"payment_provider\": \"other\",\n    \"seller_payment_method\": null,\n    \"seller_payment_provider\": null,\n    \"service\": \"next_day\",\n    \"status\": \"for_pickup\",\n    \"status_id\": \"1200\",\n    \"status_remarks\": null,\n    \"status_updated_at\": \"2025-10-29 09:18:18.957433+00\",\n    \"buyer_name\": \"Angelica Mae Anacion\",\n    \"email\": null,\n    \"contact_number\": \"639178117983\",\n    \"subtotal\": \"2650.00\",\n    \"tax\": \"0.00\",\n    \"fee\": \"0.00\",\n    \"insurance\": \"0.00\",\n    \"discount\": \"0.00\",\n    \"shipping\": \"0.00\",\n    \"total\": \"2650.00\",\n    \"transaction_fee\": \"0.00\",\n    \"insurance_fee\": \"21.50\",\n    \"shipping_fee\": \"130.00\",\n    \"return_fee\": \"86.50\",\n    \"metadata\": {\n        \"original_fees\": {\n            \"shipping_fee\": 130\n        },\n        \"original_shipment\": \"custom\"\n    },\n    \"pickup_time_slot\": null,\n    \"delivery_time_slot\": null,\n    \"created_at\": \"2025-10-29 09:18:18+00\",\n    \"tat\": {\n        \"sla_start\": 1761753600,\n        \"for_pickup\": 1761729498,\n        \"first_pickup_at\": 1761753600,\n        \"first_estimated_delivery_date\": 1761955200\n    },\n    \"shipment\": \"custom\",\n    \"remarks\": null,\n    \"buyer_id\": null,\n    \"parcel\": {\n        \"for_pickup\": {\n            \"weight\": {\n                \"uom\": \"kg\",\n                \"value\": 4\n            },\n            \"dimensions\": {\n                \"uom\": \"cm\",\n                \"width\": 10,\n                \"height\": 10,\n                \"length\": 10\n            },\n            \"parcel_type\": \"pouch\",\n            \"tpl_parcel_type\": \"medium-pouch\",\n            \"chargeable_weight\": {\n                \"uom\": \"kg\",\n                \"value\": 4\n            }\n        }\n    },\n    \"estimated_delivery_date\": \"2025-11-01 00:00:00+00\",\n    \"updated_at\": \"2025-10-29 09:18:19+00\",\n    \"pickup_at\": \"2025-10-30 00:00:00+0800\",\n    \"pickup_attempts\": 0,\n    \"channel_id\": null,\n    \"declared_value\": \"2650.00\",\n    \"tracking_links\": null,\n    \"client\": \"GOGO\",\n    \"own_print\": false,\n    \"agent\": null,\n    \"failure_reason\": null,\n    \"fees_adjustment\": null,\n    \"rebooking\": null,\n    \"pickup_total\": \"0.00\",\n    \"channel\": null,\n    \"organization\": {\n        \"party_id\": 20596,\n        \"name\": \"GOGO Staging\",\n        \"external_id\": \"sLGYskcOZpPFycVCTBeFctUxv4N2\",\n        \"is_new_merchant\": true\n    },\n    \"pickup_address\": {\n        \"id\": 22214011,\n        \"code\": null,\n        \"name\": \"JJJ. Doe\",\n        \"title\": null,\n        \"email\": null,\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"fax_number\": null,\n        \"company\": \"Maxis\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"district\": \"Pio del Pilar\",\n        \"city\": \"Makati City\",\n        \"state\": \"Metro Manila\",\n        \"postal_code\": \"1226\",\n        \"region\": \"MMB\",\n        \"country\": {\n            \"code\": \"PH\",\n            \"name\": \"Philippines\"\n        },\n        \"xcode\": null,\n        \"location\": null,\n        \"address_type\": null,\n        \"remarks\": \"Optional notes / remarks go here.\",\n        \"city_approximation\": \"Makati City\",\n        \"branch_code\": null\n    },\n    \"delivery_address\": {\n        \"id\": 22214012,\n        \"code\": null,\n        \"name\": \"Test buyer\",\n        \"title\": null,\n        \"email\": null,\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"fax_number\": null,\n        \"company\": \"Maxis\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"district\": \"San Fernando\",\n        \"city\": \"Mangaldan\",\n        \"state\": \"Pangasinan\",\n        \"postal_code\": \"4233\",\n        \"region\": \"NL\",\n        \"country\": {\n            \"code\": \"PH\",\n            \"name\": \"Philippines\"\n        },\n        \"xcode\": null,\n        \"location\": null,\n        \"address_type\": null,\n        \"remarks\": \"Optional notes / remarks go here.\",\n        \"city_approximation\": \"Mangaldan\"\n    },\n    \"return_address\": {\n        \"id\": 22214013,\n        \"code\": null,\n        \"name\": \"JJ. ABC\",\n        \"title\": null,\n        \"email\": null,\n        \"phone_number\": \"6358972\",\n        \"mobile_number\": \"+63907117421\",\n        \"fax_number\": null,\n        \"company\": \"Maxis\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": \"Jade St.\",\n        \"district\": \"Pio del Pilar\",\n        \"city\": \"Makati City\",\n        \"state\": \"Metro Manila\",\n        \"postal_code\": \"1226\",\n        \"region\": \"MMB\",\n        \"country\": {\n            \"code\": \"PH\",\n            \"name\": \"Philippines\"\n        },\n        \"xcode\": null,\n        \"location\": null,\n        \"address_type\": null,\n        \"remarks\": \"Optional notes / remarks go here.\"\n    },\n    \"dropoff_address\": {\n        \"id\": null,\n        \"code\": null,\n        \"name\": null,\n        \"title\": null,\n        \"email\": null,\n        \"phone_number\": null,\n        \"mobile_number\": null,\n        \"fax_number\": null,\n        \"company\": null,\n        \"line_1\": null,\n        \"line_2\": null,\n        \"district\": null,\n        \"city\": null,\n        \"state\": null,\n        \"postal_code\": null,\n        \"region\": null,\n        \"country\": {\n            \"code\": null,\n            \"name\": null\n        },\n        \"xcode\": null,\n        \"address_type\": null,\n        \"remarks\": null\n    },\n    \"charge\": {\n        \"order_id\": null,\n        \"status\": null,\n        \"reference_id\": null,\n        \"total_amount\": null,\n        \"tendered_amount\": null,\n        \"change_amount\": null,\n        \"remarks\": null,\n        \"created_at\": null,\n        \"updated_at\": null\n    },\n    \"claim\": {\n        \"status\": null,\n        \"amount\": null,\n        \"shipping_fee_flag\": null,\n        \"insurance_fee_flag\": null,\n        \"transaction_fee_flag\": null,\n        \"assets\": null,\n        \"reason\": null,\n        \"remarks\": null,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"tat\": null,\n        \"reference_id\": null\n    },\n    \"buyer_name_parsed\": {\n        \"first_name\": \"Angelica Mae Anacion\",\n        \"middle_name\": null,\n        \"last_name\": null\n    },\n    \"items\": [\n        {\n            \"type\": \"product\",\n            \"description\": \"Red Shirt\",\n            \"amount\": \"1250.00\",\n            \"quantity\": 1,\n            \"total\": \"1250.00\",\n            \"metadata\": {\n                \"size\": \"medium\",\n                \"color\": \"red\"\n            },\n            \"insured_value\": null\n        },\n        {\n            \"type\": \"product\",\n            \"description\": \"Blue Shirt\",\n            \"amount\": \"700.00\",\n            \"quantity\": 2,\n            \"total\": \"1400.00\",\n            \"metadata\": {\n                \"size\": \"medium\",\n                \"color\": \"blue\"\n            },\n            \"insured_value\": null\n        }\n    ],\n    \"segments\": [\n        {\n            \"courier\": \"Central Hub\",\n            \"type\": \"pick_up\",\n            \"barcode_format\": \"qr\",\n            \"tat\": {\n                \"end_date\": null,\n                \"start_date\": null\n            },\n            \"shipping_type\": \"land\",\n            \"currency\": null,\n            \"amount\": null,\n            \"reference_id\": \"5ALH-AKML-3JPE\",\n            \"active\": true,\n            \"hub_code\": \"CTR\",\n            \"pickup_address\": {\n                \"name\": \"JJJ. Doe\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": \"6358972\",\n                \"mobile_number\": \"+63907117421\",\n                \"fax_number\": null,\n                \"company\": \"Maxis\",\n                \"line_1\": \"3F U311 Bldg. C\",\n                \"line_2\": \"Jade St.\",\n                \"district\": \"Pio del Pilar\",\n                \"city\": \"Makati City\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1226\",\n                \"region\": \"MMB\",\n                \"country\": {\n                    \"code\": \"PH\",\n                    \"name\": \"Philippines\"\n                },\n                \"xcode\": null,\n                \"remarks\": \"Optional notes / remarks go here.\"\n            },\n            \"delivery_address\": {\n                \"name\": \"Central Hub\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": null,\n                \"mobile_number\": null,\n                \"fax_number\": null,\n                \"company\": null,\n                \"line_1\": \"Allegro Center\",\n                \"line_2\": null,\n                \"district\": \"Magallanes\",\n                \"city\": \"Makati\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1232\",\n                \"region\": \"MMB\",\n                \"country\": {\n                    \"code\": \"PH\",\n                    \"name\": \"Philippines\"\n                },\n                \"xcode\": null,\n                \"remarks\": null\n            }\n        },\n        {\n            \"courier\": \"Dagupan01 Hub\",\n            \"type\": \"delivery\",\n            \"barcode_format\": \"qr\",\n            \"tat\": {\n                \"end_date\": null,\n                \"start_date\": null\n            },\n            \"shipping_type\": \"land\",\n            \"currency\": null,\n            \"amount\": null,\n            \"reference_id\": \"71001381169128\",\n            \"active\": false,\n            \"hub_code\": \"DGP\",\n            \"pickup_address\": {\n                \"name\": \"Dagupan01 HUB\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": null,\n                \"mobile_number\": null,\n                \"fax_number\": null,\n                \"company\": null,\n                \"line_1\": \"BHF Family Plaza Warehouse\",\n                \"line_2\": null,\n                \"district\": \"Mayombo\",\n                \"city\": \"Dagupan City\",\n                \"state\": \"Pangasinan\",\n                \"postal_code\": \"-\",\n                \"region\": \"NL\",\n                \"country\": {\n                    \"code\": \"PH\",\n                    \"name\": \"Philippines\"\n                },\n                \"xcode\": null,\n                \"remarks\": null\n            },\n            \"delivery_address\": {\n                \"name\": \"Test buyer\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": \"6358972\",\n                \"mobile_number\": \"+63907117421\",\n                \"fax_number\": null,\n                \"company\": \"Maxis\",\n                \"line_1\": \"3F U311 Bldg. C\",\n                \"line_2\": \"Jade St.\",\n                \"district\": \"San Fernando\",\n                \"city\": \"Mangaldan\",\n                \"state\": \"Pangasinan\",\n                \"postal_code\": \"4233\",\n                \"region\": \"NL\",\n                \"country\": {\n                    \"code\": \"PH\",\n                    \"name\": \"Philippines\"\n                },\n                \"xcode\": null,\n                \"remarks\": \"Optional notes / remarks go here.\"\n            }\n        }\n    ],\n    \"children\": []\n}"}],"_postman_id":"81638d5a-c54c-4885-9b9b-beeab2521dcd"},{"name":"Get Orders","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["/**"," * https://gist.github.com/jhurliman/1250118"," */","function base64Encode(data)","{","    data = CryptoJS.enc.Utf8.parse(data);","    data = CryptoJS.enc.Base64.stringify(data);","    data = urlSafe(data);","    return data;","}","","/**"," * https://gist.github.com/jhurliman/1250118"," */","function urlSafe(data)","{","    return data.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/\\=+$/, '');","}","","/**"," * https://jwt.io/introduction/"," */","function getHeader()","{","    // Create the header.","    // Only HMAC SHA256 is supported for now.","    var header = JSON.stringify({","        alg: 'HS256',","        typ: 'JWT'","    });","    ","    // Encode it.","    return base64Encode(header);","}","","/**"," * https://jwt.io/introduction/"," */","function getPayload()","{","    // Create the payload.","    var payload = {","        // API key that's mapped to a party ID.","        sub: postman.getEnvironmentVariable('api_key'),","        // Issued at.","        iat: Math.floor(Date.now() / 1000),","        // Nonce.","        jti: Math.floor(Date.now() / 1000),","    };","    ","    // Add the obo, if available.","    var obo = postman.getEnvironmentVariable('obo');","    ","    if (obo) {","        payload.obo = obo;","    }","    ","    // Encode it.","    payload = JSON.stringify(payload);","    ","    // Encode it.","    return base64Encode(payload);","}","","/**"," * https://jwt.io/introduction/"," */","function sign(header, payload)","{","    // Build the string to be signed.","    var data = header + '.' + payload;","    ","    // Hash it.","    var hash = CryptoJS.HmacSHA256(data, postman.getEnvironmentVariable('secret_key'));","    ","    // Encode it.","    return urlSafe(CryptoJS.enc.Base64.stringify(hash));","}","","/**"," * Generates a reference ID."," */","function getReferenceId(length)","{","    if (typeof(length) == 'undefined') {","        length = 8;","    }","    ","    var reference_id = '';","    var chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";","","    for (var i = 0; i < length; i++) {","        reference_id += chars.charAt(Math.floor(Math.random() * chars.length));","    }","    ","    return reference_id.toUpperCase();","}","","// Create the authorization header.","var header = getHeader();","var payload = getPayload();","var signature = sign(header, payload);","var jwt = header + '.' + payload + '.' + signature;","postman.setEnvironmentVariable('authorization', 'Bearer ' + jwt);","","// Set the reference ID.","postman.setEnvironmentVariable('reference_id', getReferenceId());"],"id":"437a68c8-c977-4db5-8294-4f5f09abaa83"}},{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"id":"1804ae1c-29a1-4257-81d2-bb2421c3fe8a"}}],"id":"fa0dc4ad-6db3-45ab-8a75-e0c35066ed82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}"}],"url":"{{base_url}}/orders","description":"<p>Returns a list of orders. Only basic order details such as id, currency, amount, etc. will be returned. Pagination details will also be included on both the JSON payload and response headers.</p>\n","urlObject":{"path":["orders"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"4880bf2a-b30f-4918-80f8-c83ccc560cbf","name":"Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}"}],"url":"{{base_url}}/orders","description":"Returns a list of orders. Only basic order details such as id, currency, amount, etc. will be returned. Pagination details will also be included on both the JSON payload and response headers."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","description":""},{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Fri, 02 Dec 2016 15:02:19 GMT","name":"Date","description":""},{"key":"Server","value":"nginx/1.6.1","name":"Server","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""},{"key":"X-Pagination-Current-Page","value":"1","name":"X-Pagination-Current-Page","description":""},{"key":"X-Pagination-Page-Count","value":"1","name":"X-Pagination-Page-Count","description":""},{"key":"X-Pagination-Per-Page","value":"25","name":"X-Pagination-Per-Page","description":""},{"key":"X-Pagination-Total-Count","value":"2","name":"X-Pagination-Total-Count","description":""},{"key":"X-Powered-By","value":"PHP/5.6.2","name":"X-Powered-By","description":""}],"cookie":[],"responseTime":null,"body":"{\r\n  \"total\": 2,\r\n  \"per_page\": 25,\r\n  \"current_page\": 1,\r\n  \"last_page\": 1,\r\n  \"next_page_url\": null,\r\n  \"prev_page_url\": null,\r\n  \"from\": 1,\r\n  \"to\": 2,\r\n  \"data\": [\r\n    {\r\n      \"id\": 58,\r\n      \"currency\": \"PHP\",\r\n      \"reference_id\": \"PZZSJDYC\",\r\n      \"tracking_number\": \"0000-0058-WJGH\",\r\n      \"payment_method\": \"cod\",\r\n      \"payment_provider\": \"lbcx\",\r\n      \"status\": \"for_pickup\",\r\n      \"buyer_name\": \"John Doe\",\r\n      \"email\": \"johndoe@email.com\",\r\n      \"contact_number\": \"+639172274819\",\r\n      \"subtotal\": \"2650.00\",\r\n      \"tax\": \"132.50\",\r\n      \"fee\": \"70.75\",\r\n      \"insurance\": \"150.00\",\r\n      \"shipping\": \"250.00\",\r\n      \"total\": \"3253.25\",\r\n      \"transaction_fee\": \"97.60\",\r\n      \"insurance_fee\": \"32.53\",\r\n      \"shipping_fee\": \"150.00\",\r\n      \"metadata\": {\r\n        \"key_1\": \"value_1\",\r\n        \"key_2\": \"value_2\"\r\n      },\r\n      \"preferred_pickup_time\": \"morning\",\r\n      \"preferred_delivery_time\": \"3pm - 5pm\",\r\n      \"created_at\": \"2016-12-01 07:29:58+08\",\r\n      \"buyer_name_parsed\": {\r\n        \"first_name\": \"John\",\r\n        \"middle_name\": null,\r\n        \"last_name\": \"Doe\"\r\n      }\r\n    },\r\n    {\r\n      \"id\": 57,\r\n      \"currency\": \"PHP\",\r\n      \"reference_id\": \"ZMVA34FC\",\r\n      \"tracking_number\": \"0000-0057-GWVQ\",\r\n      \"payment_method\": \"cod\",\r\n      \"payment_provider\": \"lbcx\",\r\n      \"status\": \"delivered\",\r\n      \"buyer_name\": \"John Doe\",\r\n      \"email\": \"johndoe@email.com\",\r\n      \"contact_number\": \"+639172274819\",\r\n      \"subtotal\": \"2650.00\",\r\n      \"tax\": \"132.50\",\r\n      \"fee\": \"70.75\",\r\n      \"insurance\": \"150.00\",\r\n      \"shipping\": \"250.00\",\r\n      \"total\": \"3253.25\",\r\n      \"transaction_fee\": \"97.60\",\r\n      \"insurance_fee\": \"32.53\",\r\n      \"shipping_fee\": \"150.00\",\r\n      \"metadata\": {\r\n        \"key_1\": \"value_1\",\r\n        \"key_2\": \"value_2\"\r\n      },\r\n      \"preferred_pickup_time\": \"morning\",\r\n      \"preferred_delivery_time\": \"3pm - 5pm\",\r\n      \"created_at\": \"2016-11-29 13:01:30+08\",\r\n      \"buyer_name_parsed\": {\r\n        \"first_name\": \"John\",\r\n        \"middle_name\": null,\r\n        \"last_name\": \"Doe\"\r\n      }\r\n    }\r\n  ]\r\n}"}],"_postman_id":"fa0dc4ad-6db3-45ab-8a75-e0c35066ed82"},{"name":"Get Orders by Tracking Number","event":[{"listen":"prerequest","script":{"id":"1e264a65-1723-44be-be95-dd58e3eb0825","exec":["/**"," * https://gist.github.com/jhurliman/1250118"," */","function base64Encode(data)","{","    data = CryptoJS.enc.Utf8.parse(data);","    data = CryptoJS.enc.Base64.stringify(data);","    data = urlSafe(data);","    return data;","}","","/**"," * https://gist.github.com/jhurliman/1250118"," */","function urlSafe(data)","{","    return data.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/\\=+$/, '');","}","","/**"," * https://jwt.io/introduction/"," */","function getHeader()","{","    // Create the header.","    // Only HMAC SHA256 is supported for now.","    var header = JSON.stringify({","        alg: 'HS256',","        typ: 'JWT'","    });","    ","    // Encode it.","    return base64Encode(header);","}","","/**"," * https://jwt.io/introduction/"," */","function getPayload()","{","    // Create the payload.","    var payload = {","        // API key that's mapped to a party ID.","        sub: postman.getEnvironmentVariable('api_key'),","        // Issued at.","        iat: Math.floor(Date.now() / 1000),","        // Nonce.","        jti: Math.floor(Date.now() / 1000),","    };","    ","    // Add the obo, if available.","    var obo = postman.getEnvironmentVariable('obo');","    ","    if (obo) {","        payload.obo = obo;","    }","    ","    // Encode it.","    payload = JSON.stringify(payload);","    ","    // Encode it.","    return base64Encode(payload);","}","","/**"," * https://jwt.io/introduction/"," */","function sign(header, payload)","{","    // Build the string to be signed.","    var data = header + '.' + payload;","    ","    // Hash it.","    var hash = CryptoJS.HmacSHA256(data, postman.getEnvironmentVariable('secret_key'));","    ","    // Encode it.","    return urlSafe(CryptoJS.enc.Base64.stringify(hash));","}","","/**"," * Generates a reference ID."," */","function getReferenceId(length)","{","    if (typeof(length) == 'undefined') {","        length = 8;","    }","    ","    var reference_id = '';","    var chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";","","    for (var i = 0; i < length; i++) {","        reference_id += chars.charAt(Math.floor(Math.random() * chars.length));","    }","    ","    return reference_id.toUpperCase();","}","","// Create the authorization header.","var header = getHeader();","var payload = getPayload();","var signature = sign(header, payload);","var jwt = header + '.' + payload + '.' + signature;","postman.setEnvironmentVariable('authorization', 'Bearer ' + jwt);","","// Set the reference ID.","postman.setEnvironmentVariable('reference_id', getReferenceId());"],"type":"text/javascript"}},{"listen":"test","script":{"id":"f8957ce2-e352-47d8-8450-1200e241e097","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"type":"text/javascript"}}],"id":"f33da5f0-2348-4733-ada5-57d207608848","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}"}],"url":"{{base_url}}/orders/0075-7540-EMBN","description":"<p>Returns the details of an order by tracking number. Use the unique ID that was returned when you created an order. All order details are returned including the order items, charge details, pick up and delivery addresses.</p>\n","urlObject":{"path":["orders","0075-7540-EMBN"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a3e7cd47-7118-496b-9720-40b4013ba267","name":"Get Orders by Tracking Number","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}"}],"url":"{{base_url}}/orders/RVM7-6TPJ-8XA1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"11100"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 05 Sep 2023 04:27:48 GMT"},{"key":"x-amzn-RequestId","value":"ea9cd1e4-53cf-4137-9ee9-7f811f7ed628"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=o6nsZo1RHi1/p3u8YP2oEH1ag0DJlMGwz7bXbXILrqA/zRnuyvRrSrKdr/WYFOhu7UQ892x5X9PCiDa6mUA2kpfr4T7GszMZOD1Gm5N2ihTzXb2JeMb14oiHjFEK; Expires=Tue, 12 Sep 2023 04:27:48 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=o6nsZo1RHi1/p3u8YP2oEH1ag0DJlMGwz7bXbXILrqA/zRnuyvRrSrKdr/WYFOhu7UQ892x5X9PCiDa6mUA2kpfr4T7GszMZOD1Gm5N2ihTzXb2JeMb14oiHjFEK; Expires=Tue, 12 Sep 2023 04:27:48 GMT; Path=/; SameSite=None; Secure"},{"key":"x-amz-apigw-id","value":"KxAquFDRSQ0Fo4Q="},{"key":"Cache-Control","value":"no-cache"},{"key":"x-amzn-Remapped-Server","value":"nginx/1.18.0"},{"key":"X-Powered-By","value":"PHP/7.1.33"},{"key":"x-amzn-Remapped-Date","value":"Tue, 05 Sep 2023 04:27:48 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 99cb2d66006e30a31c324742ead42212.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MNL52-P2"},{"key":"X-Amz-Cf-Id","value":"Dh0avF2SwLxtIWp-JTwuaLsTJzHzpXCNXbEJwXMdpqTr1CfTsTOu6Q=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 7961326,\n    \"party_id\": 7941,\n    \"service_id\": 7941,\n    \"currency\": \"PHP\",\n    \"reference_id\": null,\n    \"tracking_number\": \"RVM7-6TPJ-8XA1\",\n    \"payment_method\": \"cod\",\n    \"payment_provider\": \"lbcx\",\n    \"seller_payment_method\": null,\n    \"seller_payment_provider\": null,\n    \"service\": \"next_day\",\n    \"status\": \"delivered\",\n    \"status_id\": \"2200\",\n    \"status_remarks\": \"Parcel received by Consignee Thirdy\",\n    \"status_updated_at\": \"2023-07-04 02:11:14+00\",\n    \"buyer_name\": \"Thirdy\",\n    \"email\": \"test@mailinator.com\",\n    \"contact_number\": \"09478746796\",\n    \"subtotal\": \"1000.00\",\n    \"tax\": \"0.00\",\n    \"fee\": \"0.00\",\n    \"insurance\": \"0.00\",\n    \"discount\": \"0.00\",\n    \"shipping\": \"0.00\",\n    \"total\": \"1000.00\",\n    \"transaction_fee\": \"20.00\",\n    \"insurance_fee\": \"10.00\",\n    \"shipping_fee\": \"100.00\",\n    \"return_fee\": \"210.00\",\n    \"metadata\": {\n        \"item_type\": \"Not Dangerous\",\n        \"jobData_otp\": \"0000\",\n        \"original_fees\": {\n            \"shipping_fee\": 100\n        },\n        \"original_shipment\": \"medium-pouch\",\n        \"allowable_parcel_sizes\": null,\n        \"fieldData_receiver_name\": \"NA\"\n    },\n    \"preferred_pickup_time\": null,\n    \"preferred_delivery_time\": null,\n    \"created_at\": \"2023-06-30 13:08:07+00\",\n    \"tat\": {\n        \"delivered\": 1688436674,\n        \"picked_up\": 1688130904,\n        \"sla_start\": 1688140800,\n        \"for_pickup\": 1688130487,\n        \"out_for_pickup\": 1688130883,\n        \"failed_delivery\": 1688131298,\n        \"first_pickup_at\": 1688140800,\n        \"out_for_delivery\": 1688436592,\n        \"pickup_rider_found\": 1688130837,\n        \"received_at_pickup_hub\": 1688130964,\n        \"received_at_delivery_hub\": 1688131014,\n        \"first_estimated_delivery_date\": 1688428800\n    },\n    \"shipment\": \"medium-pouch\",\n    \"remarks\": null,\n    \"buyer_id\": null,\n    \"parcel\": {\n        \"for_pickup\": {\n            \"parcel_type\": \"pouch\"\n        }\n    },\n    \"estimated_delivery_date\": \"2023-07-04 16:00:00+00\",\n    \"updated_at\": \"2023-07-04 02:11:27.987139+00\",\n    \"pickup_at\": \"2023-06-30 16:00:00+00\",\n    \"pickup_attempts\": 0,\n    \"channel_id\": null,\n    \"client\": \"Meork\",\n    \"own_print\": false,\n    \"agent\": {\n        \"hub\": \"makati hub\",\n        \"code\": \"ebel_fe_01_lbc\",\n        \"name\": \"ebel rider\",\n        \"location\": {\n            \"latitude\": 14.1321236,\n            \"longitude\": 120.9554095\n        },\n        \"mobile_number\": \"09478746796\"\n    },\n    \"failure_reason\": null,\n    \"fees_adjustment\": null,\n    \"rebooking\": null,\n    \"pickup_total\": \"0.00\",\n    \"channel\": null,\n    \"organization\": {\n        \"party_id\": 7941,\n        \"name\": \"Meork\",\n        \"external_id\": \"4718b791-46ed-403c-b615-558ef5369674\"\n    },\n    \"pickup_address\": {\n        \"id\": 21871410,\n        \"code\": null,\n        \"name\": \"Niki\",\n        \"title\": null,\n        \"email\": \"niki@yopmail.com\",\n        \"phone_number\": \"639279502775\",\n        \"mobile_number\": \"639279502775\",\n        \"fax_number\": null,\n        \"company\": \"Test Shop\",\n        \"line_1\": \"San Lorenzo Ruiz Monument, Rizal Park, Roxas Blvd., Ermita, Manila, Metro Manila\",\n        \"line_2\": null,\n        \"district\": \"Ermita\",\n        \"city\": \"Manila\",\n        \"state\": \"Metro Manila\",\n        \"postal_code\": \"1000\",\n        \"region\": \"MMB\",\n        \"country\": {\n            \"code\": \"PH\",\n            \"name\": \"Philippines\"\n        },\n        \"xcode\": \"MM06000\",\n        \"location\": null,\n        \"address_type\": null,\n        \"city_approximation\": \"Manila\",\n        \"branch_code\": null\n    },\n    \"delivery_address\": {\n        \"id\": 21871411,\n        \"code\": null,\n        \"name\": \"Thirdy\",\n        \"title\": null,\n        \"email\": null,\n        \"phone_number\": \"639279502775\",\n        \"mobile_number\": \"639279502775\",\n        \"fax_number\": null,\n        \"company\": null,\n        \"line_1\": \"1242 Sto. Nino, Ssmpaloc, Manila\",\n        \"line_2\": \"\",\n        \"district\": \"Barangay 586\",\n        \"city\": \"Sampaloc\",\n        \"state\": \"Metro Manila\",\n        \"postal_code\": \"3020\",\n        \"region\": \"MMB\",\n        \"country\": {\n            \"code\": \"PH\",\n            \"name\": \"Philippines\"\n        },\n        \"xcode\": \"MM06529\",\n        \"location\": null,\n        \"address_type\": null,\n        \"city_approximation\": \"Sampaloc\"\n    },\n    \"return_address\": {\n        \"id\": 21871412,\n        \"code\": null,\n        \"name\": \"Niki\",\n        \"title\": null,\n        \"email\": \"niki@yopmail.com\",\n        \"phone_number\": \"639279502775\",\n        \"mobile_number\": \"639279502775\",\n        \"fax_number\": null,\n        \"company\": \"Test Shop\",\n        \"line_1\": \"San Lorenzo Ruiz Monument, Rizal Park, Roxas Blvd., Ermita, Manila, Metro Manila\",\n        \"line_2\": null,\n        \"district\": \"Ermita\",\n        \"city\": \"Manila\",\n        \"state\": \"Metro Manila\",\n        \"postal_code\": \"1000\",\n        \"region\": \"MMB\",\n        \"country\": {\n            \"code\": \"PH\",\n            \"name\": \"Philippines\"\n        },\n        \"xcode\": \"MM06000\",\n        \"location\": null,\n        \"address_type\": null\n    },\n    \"dropoff_address\": {\n        \"id\": null,\n        \"code\": null,\n        \"name\": null,\n        \"title\": null,\n        \"email\": null,\n        \"phone_number\": null,\n        \"mobile_number\": null,\n        \"fax_number\": null,\n        \"company\": null,\n        \"line_1\": null,\n        \"line_2\": null,\n        \"district\": null,\n        \"city\": null,\n        \"state\": null,\n        \"postal_code\": null,\n        \"region\": null,\n        \"country\": {\n            \"code\": null,\n            \"name\": null\n        },\n        \"xcode\": null,\n        \"address_type\": null\n    },\n    \"charge\": {\n        \"order_id\": 7961326,\n        \"status\": \"paid\",\n        \"reference_id\": \"71001380954496\",\n        \"total_amount\": \"1000.00\",\n        \"tendered_amount\": \"1000.00\",\n        \"change_amount\": \"0.00\",\n        \"remarks\": null,\n        \"created_at\": \"2023-06-30 13:08:07+00\",\n        \"updated_at\": \"2023-07-04 02:11:28+00\"\n    },\n    \"claim\": {\n        \"status\": null,\n        \"amount\": null,\n        \"shipping_fee_flag\": null,\n        \"insurance_fee_flag\": null,\n        \"transaction_fee_flag\": null,\n        \"assets\": null,\n        \"reason\": null,\n        \"remarks\": null,\n        \"created_at\": null,\n        \"updated_at\": null,\n        \"tat\": null,\n        \"reference_id\": null\n    },\n    \"buyer_name_parsed\": {\n        \"first_name\": \"Thirdy\",\n        \"middle_name\": null,\n        \"last_name\": null\n    },\n    \"items\": [\n        {\n            \"type\": \"product\",\n            \"description\": \"Bike\",\n            \"amount\": \"1000.00\",\n            \"quantity\": 1,\n            \"total\": \"1000.00\",\n            \"metadata\": null,\n            \"insured_value\": null\n        }\n    ],\n    \"segments\": [\n        {\n            \"courier\": \"Manila Hub\",\n            \"type\": \"pick_up\",\n            \"barcode_format\": \"qr\",\n            \"tat\": {\n                \"end_date\": null,\n                \"start_date\": null\n            },\n            \"shipping_type\": \"land\",\n            \"currency\": null,\n            \"amount\": null,\n            \"reference_id\": \"RVM7-6TPJ-8XA1\",\n            \"active\": false,\n            \"hub_code\": \"MNL\",\n            \"pickup_address\": {\n                \"name\": \"Niki\",\n                \"title\": null,\n                \"email\": \"niki@yopmail.com\",\n                \"phone_number\": \"639279502775\",\n                \"mobile_number\": \"639279502775\",\n                \"fax_number\": null,\n                \"company\": \"Test Shop\",\n                \"line_1\": \"San Lorenzo Ruiz Monument, Rizal Park, Roxas Blvd., Ermita, Manila, Metro Manila\",\n                \"line_2\": null,\n                \"district\": \"Ermita\",\n                \"city\": \"Manila\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1000\",\n                \"region\": \"MMB\",\n                \"country\": {\n                    \"code\": \"PH\",\n                    \"name\": \"Philippines\"\n                },\n                \"xcode\": \"MM06000\"\n            },\n            \"delivery_address\": {\n                \"name\": \"MANILA HUB\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": null,\n                \"mobile_number\": null,\n                \"fax_number\": null,\n                \"company\": null,\n                \"line_1\": \"7A MH Del Pilar St, East Grace Park\",\n                \"line_2\": null,\n                \"district\": \"Barangay 41\",\n                \"city\": \"Caloocan City\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"-\",\n                \"region\": \"Metro Manila\",\n                \"country\": {\n                    \"code\": \"PH\",\n                    \"name\": \"Philippines\"\n                },\n                \"xcode\": null\n            },\n            \"hub_zone\": \"Z01\"\n        },\n        {\n            \"courier\": \"Manila Hub\",\n            \"type\": \"delivery\",\n            \"barcode_format\": \"qr\",\n            \"tat\": {\n                \"end_date\": null,\n                \"start_date\": null\n            },\n            \"shipping_type\": \"land\",\n            \"currency\": null,\n            \"amount\": null,\n            \"reference_id\": \"71001380954496\",\n            \"active\": true,\n            \"hub_code\": \"MNL\",\n            \"pickup_address\": {\n                \"name\": \"MANILA HUB\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": null,\n                \"mobile_number\": null,\n                \"fax_number\": null,\n                \"company\": null,\n                \"line_1\": \"7A MH Del Pilar St, East Grace Park\",\n                \"line_2\": null,\n                \"district\": \"Barangay 41\",\n                \"city\": \"Caloocan City\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"-\",\n                \"region\": \"Metro Manila\",\n                \"country\": {\n                    \"code\": \"PH\",\n                    \"name\": \"Philippines\"\n                },\n                \"xcode\": null\n            },\n            \"delivery_address\": {\n                \"name\": \"Thirdy\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": \"639279502775\",\n                \"mobile_number\": \"639279502775\",\n                \"fax_number\": null,\n                \"company\": null,\n                \"line_1\": \"1242 Sto. Nino, Ssmpaloc, Manila\",\n                \"line_2\": \"\",\n                \"district\": \"Barangay 586\",\n                \"city\": \"Sampaloc\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"3020\",\n                \"region\": \"MMB\",\n                \"country\": {\n                    \"code\": \"PH\",\n                    \"name\": \"Philippines\"\n                },\n                \"xcode\": \"MM06529\"\n            },\n            \"hub_zone\": \"Z01\"\n        }\n    ],\n    \"events\": [\n        {\n            \"id\": 19474405,\n            \"status\": \"pickup_rider_found\",\n            \"status_id\": \"5600\",\n            \"created_at\": \"2023-06-30 13:14:08.474865+00\",\n            \"remarks\": \"Pickup rider found\",\n            \"agent\": {\n                \"hub\": \"north hub\",\n                \"location\": {\n                    \"latitude\": null,\n                    \"longitude\": null\n                }\n            },\n            \"hubs\": {\n                \"origin\": \"north hub\"\n            },\n            \"failure_reason\": null,\n            \"photo\": null,\n            \"signature\": null,\n            \"status_updated_at\": \"2023-06-30 13:13:57+00\",\n            \"status_name\": \"Pickup rider found\"\n        },\n        {\n            \"id\": 19474419,\n            \"status\": \"out_for_pickup\",\n            \"status_id\": \"5300\",\n            \"created_at\": \"2023-06-30 13:15:02.862216+00\",\n            \"remarks\": \"Rider is out for pickup\",\n            \"agent\": {\n                \"hub\": \"north hub\",\n                \"code\": \"fe_deguzman_lbc\",\n                \"name\": \"fe rider deguzman\",\n                \"location\": {\n                    \"latitude\": 14.7868708,\n                    \"longitude\": 121.0118349\n                },\n                \"mobile_number\": \"09999999999\"\n            },\n            \"hubs\": {\n                \"origin\": \"north hub\"\n            },\n            \"failure_reason\": null,\n            \"photo\": null,\n            \"signature\": null,\n            \"status_updated_at\": \"2023-06-30 13:14:43+00\",\n            \"status_name\": \"Out for pickup\"\n        },\n        {\n            \"id\": 19474424,\n            \"status\": \"picked_up\",\n            \"status_id\": \"1400\",\n            \"created_at\": \"2023-06-30 13:15:21.281774+00\",\n            \"remarks\": \"Package successfully picked up\",\n            \"agent\": {\n                \"hub\": \"north hub\",\n                \"code\": \"fe_deguzman_lbc\",\n                \"name\": \"fe rider deguzman\",\n                \"location\": {\n                    \"latitude\": 14.7868708,\n                    \"longitude\": 121.0118349\n                },\n                \"mobile_number\": \"09999999999\"\n            },\n            \"hubs\": {\n                \"origin\": \"north hub\"\n            },\n            \"failure_reason\": null,\n            \"photo\": \"https://epod.staging.quadx.xyz/photos/epod-RVM7-6TPJ-8XA1-1688130904.jpg\",\n            \"signature\": \"https://epod.staging.quadx.xyz/signatures/epod-RVM7-6TPJ-8XA1-1688130904.jpg\",\n            \"status_updated_at\": \"2023-06-30 13:15:04+00\",\n            \"status_name\": \"Picked up\"\n        },\n        {\n            \"id\": 19474435,\n            \"status\": \"received_at_pickup_hub\",\n            \"status_id\": \"2900\",\n            \"created_at\": \"2023-06-30 13:16:17.38148+00\",\n            \"remarks\": \"Received by NORTH HUB\",\n            \"agent\": {\n                \"hub\": \"north hub\",\n                \"location\": {\n                    \"latitude\": null,\n                    \"longitude\": null\n                }\n            },\n            \"hubs\": {\n                \"origin\": \"north hub\"\n            },\n            \"failure_reason\": null,\n            \"photo\": null,\n            \"signature\": null,\n            \"status_updated_at\": \"2023-06-30 13:16:04+00\",\n            \"status_name\": \"Received at pickup hub\"\n        },\n        {\n            \"id\": 19474446,\n            \"status\": \"received_at_delivery_hub\",\n            \"status_id\": \"3100\",\n            \"created_at\": \"2023-06-30 13:17:08.791099+00\",\n            \"remarks\": \"Ready for delivery\",\n            \"agent\": {\n                \"hub\": \"makati hub\",\n                \"code\": \"deguzman_lbc\",\n                \"location\": {\n                    \"latitude\": 0,\n                    \"longitude\": 0\n                }\n            },\n            \"hubs\": {\n                \"origin\": \"makati hub\"\n            },\n            \"failure_reason\": null,\n            \"photo\": null,\n            \"signature\": null,\n            \"status_updated_at\": \"2023-06-30 13:16:54+00\",\n            \"status_name\": \"Received at delivery hub\"\n        },\n        {\n            \"id\": 19474469,\n            \"status\": \"out_for_delivery\",\n            \"status_id\": \"1501\",\n            \"created_at\": \"2023-06-30 13:19:28.672761+00\",\n            \"remarks\": \"Out for delivery\",\n            \"agent\": {\n                \"hub\": \"north hub\",\n                \"code\": \"fe_deguzman_lbc\",\n                \"name\": \"fe rider deguzman\",\n                \"location\": {\n                    \"latitude\": 14.7868708,\n                    \"longitude\": 121.0118349\n                },\n                \"mobile_number\": \"09999999999\"\n            },\n            \"hubs\": {\n                \"origin\": \"north hub\"\n            },\n            \"failure_reason\": null,\n            \"photo\": null,\n            \"signature\": null,\n            \"status_updated_at\": \"2023-06-30 13:19:13+00\",\n            \"status_name\": \"Out for delivery\"\n        },\n        {\n            \"id\": 19474489,\n            \"status\": \"failed_delivery\",\n            \"status_id\": \"1700\",\n            \"created_at\": \"2023-06-30 13:21:54.097649+00\",\n            \"remarks\": \"Delivery unsuccessful due to: Acts of God - Weather Disturbance\",\n            \"agent\": {\n                \"hub\": \"north hub\",\n                \"code\": \"fe_deguzman_lbc\",\n                \"name\": \"fe rider deguzman\",\n                \"location\": {\n                    \"latitude\": 14.7868708,\n                    \"longitude\": 121.0118349\n                },\n                \"mobile_number\": \"09999999999\"\n            },\n            \"hubs\": {\n                \"origin\": \"north hub\"\n            },\n            \"failure_reason\": {\n                \"reason\": \"Acts of God - Weather Disturbance\",\n                \"classification\": \"Fortuitous Event\"\n            },\n            \"photo\": \"https://epod.staging.quadx.xyz/photos/epod-RVM7-6TPJ-8XA1-1688131298.jpg\",\n            \"signature\": null,\n            \"status_updated_at\": \"2023-06-30 13:21:38+00\",\n            \"status_name\": \"Failed delivery\"\n        },\n        {\n            \"id\": 19505144,\n            \"status\": \"out_for_delivery\",\n            \"status_id\": \"1501\",\n            \"created_at\": \"2023-07-04 02:10:06.202906+00\",\n            \"remarks\": \"Out for delivery\",\n            \"agent\": {\n                \"hub\": \"makati hub\",\n                \"code\": \"ebel_fe_01_lbc\",\n                \"name\": \"ebel rider\",\n                \"location\": {\n                    \"latitude\": 14.1321236,\n                    \"longitude\": 120.9554095\n                },\n                \"mobile_number\": \"09478746796\"\n            },\n            \"hubs\": {\n                \"origin\": \"makati hub\"\n            },\n            \"failure_reason\": null,\n            \"photo\": null,\n            \"signature\": null,\n            \"status_updated_at\": \"2023-07-04 02:09:52+00\",\n            \"status_name\": \"Out for delivery\"\n        },\n        {\n            \"id\": 19505153,\n            \"status\": \"delivered\",\n            \"status_id\": \"2200\",\n            \"created_at\": \"2023-07-04 02:11:27.987139+00\",\n            \"remarks\": \"Parcel received by Consignee Thirdy\",\n            \"agent\": {\n                \"hub\": \"makati hub\",\n                \"code\": \"ebel_fe_01_lbc\",\n                \"name\": \"ebel rider\",\n                \"location\": {\n                    \"latitude\": 14.1321236,\n                    \"longitude\": 120.9554095\n                },\n                \"mobile_number\": \"09478746796\"\n            },\n            \"hubs\": {\n                \"origin\": \"makati hub\"\n            },\n            \"failure_reason\": null,\n            \"photo\": \"https://epod.staging.quadx.xyz/photos/epod-RVM7-6TPJ-8XA1-1688436674.jpg\",\n            \"signature\": \"https://epod.staging.quadx.xyz/signatures/epod-RVM7-6TPJ-8XA1-1688436674.jpg\",\n            \"status_updated_at\": \"2023-07-04 02:11:14+00\",\n            \"status_name\": \"Delivered\"\n        }\n    ],\n    \"children\": []\n}"}],"_postman_id":"f33da5f0-2348-4733-ada5-57d207608848"},{"name":"Update Order","id":"a2e10d4b-b174-4999-aff2-54b9fe944979","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{base_url}}/orders/{{tracking_number}}","description":"<p>Updates <code>pickup_address</code>.</p>\n","urlObject":{"path":["orders","{{tracking_number}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ae0195da-aaa5-4afd-ac29-b65014079c4d","name":"Update Pickup Address","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pickup_address\": {\n        \"phone_number\": \"4218244\",\n        \"mobile_number\": \"+639172947494\",\n        \"name\": \"Jane Doee\",\n        \"email\": \"johndoe@email.caom\",\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"city\": \"Cebu City\",\n        \"state\": \"Cebu\",\n        \"postal_code\": \"1600\",\n        \"country\": \"PH\",\n        \"remarks\": \"Test123\"\n    }\n}"},"url":"{{base_url}}/orders/{{tracking_number}}"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 70652,\n    \"party_id\": 85,\n    \"currency_id\": 113,\n    \"reference_id\": \"4\",\n    \"pickup_address_id\": 112793,\n    \"delivery_address_id\": 112795,\n    \"return_address_id\": null,\n    \"active_segment_id\": null,\n    \"tracking_number\": \"0007-0652-ZRFE\",\n    \"payment_method\": \"cod\",\n    \"payment_provider\": \"lbcx\",\n    \"status\": \"pending\",\n    \"buyer_name\": \"Marvin Calizo\",\n    \"email\": \"mcalizo@olx.ph\",\n    \"contact_number\": \"+639178973012\",\n    \"subtotal\": \"3000.00\",\n    \"shipping\": \"0.00\",\n    \"tax\": \"0.00\",\n    \"fee\": \"0.00\",\n    \"insurance\": \"0.00\",\n    \"discount\": \"0.00\",\n    \"grand_total\": \"3000.00\",\n    \"total_collected\": \"0.00\",\n    \"shipping_fee\": \"50.00\",\n    \"insurance_fee\": \"30.00\",\n    \"transaction_fee\": \"75.00\",\n    \"metadata\": null,\n    \"parcel\": null,\n    \"ip_address\": \"172.34.31.6\",\n    \"preferred_pickup_time\": null,\n    \"preferred_delivery_time\": null,\n    \"tat\": \"{\\\"pending\\\": 1490876423}\",\n    \"remarks\": null,\n    \"pickup_attempts\": 0,\n    \"delivery_attempts\": 0,\n    \"status_updated_at\": \"2018-11-30\",\n    \"flagged\": 0,\n    \"created_at\": \"2017-03-30 20:20:23+08\",\n    \"updated_by\": null,\n    \"updated_at\": {\n        \"date\": \"2018-11-27 08:39:59.120154\",\n        \"timezone_type\": 3,\n        \"timezone\": \"UTC\"\n    },\n    \"shipment\": \"small-pouch\",\n    \"pickup_method\": \"for_pickup\",\n    \"buyer_id\": null,\n    \"parent_id\": null,\n    \"dropoff_address_id\": null,\n    \"service_id\": null,\n    \"estimated_delivery_date\": \"2018-12-04 00:00:00+08\",\n    \"return_fee\": \"0.00\",\n    \"seller_payment_method\": null,\n    \"seller_payment_provider\": null,\n    \"pickup_address\": {\n        \"id\": 112793,\n        \"party_id\": 85,\n        \"type\": \"pickup\",\n        \"name\": \"Jane Doee\",\n        \"title\": null,\n        \"email\": \"johndoe@email.caom\",\n        \"phone_number\": \"4218244\",\n        \"mobile_number\": \"+639172947494\",\n        \"fax_number\": null,\n        \"company\": null,\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": null,\n        \"district\": null,\n        \"city\": \"Cebu City\",\n        \"state\": \"Cebu\",\n        \"postal_code\": \"1600\",\n        \"region\": \"VIS\",\n        \"country_id\": 1,\n        \"remarks\": \"cebubugtest\",\n        \"hash\": \"8d014cc49d3ad6368c3f466dd72c7008\",\n        \"created_by\": null,\n        \"created_at\": \"2017-03-13 19:54:27.532821+08\",\n        \"updated_by\": null,\n        \"updated_at\": {\n            \"date\": \"2018-11-27 08:39:59.157129\",\n            \"timezone_type\": 3,\n            \"timezone\": \"UTC\"\n        },\n        \"code\": null,\n        \"deleted_at\": null,\n        \"deleted_by\": null,\n        \"preferred\": 0,\n        \"latitude\": null,\n        \"longitude\": null,\n        \"v_address\": null,\n        \"xcode\": null\n    },\n    \"segments\": [\n        {\n            \"id\": 166918,\n            \"order_id\": 70652,\n            \"courier_party_id\": 13,\n            \"shipping_type\": \"land\",\n            \"type\": \"pick_up\",\n            \"status\": \"pending\",\n            \"currency_id\": null,\n            \"amount\": null,\n            \"reference_id\": \"0007-0652-ZRFE\",\n            \"pickup_address_id\": 112794,\n            \"delivery_address_id\": 2,\n            \"barcode_format\": \"qr\",\n            \"tat\": null,\n            \"flagged\": 0,\n            \"created_at\": \"2018-11-26 11:26:12.46617+08\",\n            \"updated_at\": \"2018-11-26 12:35:49+08\",\n            \"delivery_address\": {\n                \"id\": 2,\n                \"party_id\": 13,\n                \"type\": \"business\",\n                \"name\": \"LBCX Allegro\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": null,\n                \"mobile_number\": null,\n                \"fax_number\": null,\n                \"company\": null,\n                \"line_1\": \"Allegro Center\",\n                \"line_2\": null,\n                \"district\": \"Magallanes\",\n                \"city\": \"Makati\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1232\",\n                \"region\": \"MMB\",\n                \"country_id\": 1,\n                \"remarks\": null,\n                \"hash\": \"3b54e7bb435e741a514cd806de84810a\",\n                \"created_by\": null,\n                \"created_at\": \"2017-03-07 01:26:51.702674+08\",\n                \"updated_by\": null,\n                \"updated_at\": null,\n                \"code\": null,\n                \"deleted_at\": null,\n                \"deleted_by\": null,\n                \"preferred\": 0,\n                \"latitude\": null,\n                \"longitude\": null,\n                \"v_address\": null,\n                \"xcode\": null\n            }\n        },\n        {\n            \"id\": 166919,\n            \"order_id\": 70652,\n            \"courier_party_id\": 13,\n            \"shipping_type\": \"land\",\n            \"type\": \"delivery\",\n            \"status\": \"pending\",\n            \"currency_id\": null,\n            \"amount\": null,\n            \"reference_id\": \"0007-0652-ZRFE\",\n            \"pickup_address_id\": 112794,\n            \"delivery_address_id\": 112795,\n            \"barcode_format\": \"qr\",\n            \"tat\": null,\n            \"flagged\": 0,\n            \"created_at\": \"2018-11-26 11:26:12.46617+08\",\n            \"updated_at\": null,\n            \"delivery_address\": {\n                \"id\": 112795,\n                \"party_id\": 85,\n                \"type\": \"delivery\",\n                \"name\": \"Marvin Calizo\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": null,\n                \"mobile_number\": null,\n                \"fax_number\": null,\n                \"company\": \"OLX Philippines\",\n                \"line_1\": \"40F Unionbank Plaza\",\n                \"line_2\": \"Meralco Ave., Ortigas Center\",\n                \"district\": null,\n                \"city\": \"Pasig City\",\n                \"state\": \"NCR\",\n                \"postal_code\": \"1605\",\n                \"region\": \"Mmb\",\n                \"country_id\": 1,\n                \"remarks\": \"Prod Engineering Team\",\n                \"hash\": \"6d50b4954316fa4e84733e247eb6cadd\",\n                \"created_by\": null,\n                \"created_at\": \"2017-03-13 20:03:22.182296+08\",\n                \"updated_by\": null,\n                \"updated_at\": null,\n                \"code\": null,\n                \"deleted_at\": null,\n                \"deleted_by\": null,\n                \"preferred\": 0,\n                \"latitude\": null,\n                \"longitude\": null,\n                \"v_address\": null,\n                \"xcode\": null\n            }\n        }\n    ],\n    \"organization\": {\n        \"party_id\": 85,\n        \"name\": \"Kimstore\"\n    }\n}"},{"id":"64de34d0-d7ad-4c98-8775-b42eee658b77","name":"Update Pickup Date","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"pickup_at\": \"2023-01-06\"\n}"},"url":"{{base_url}}/orders/{{tracking_number}}"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 70652,\n    \"party_id\": 85,\n    \"currency_id\": 113,\n    \"reference_id\": \"4\",\n    \"pickup_address_id\": 112793,\n    \"delivery_address_id\": 112795,\n    \"return_address_id\": null,\n    \"active_segment_id\": null,\n    \"tracking_number\": \"0007-0652-ZRFE\",\n    \"payment_method\": \"cod\",\n    \"payment_provider\": \"lbcx\",\n    \"status\": \"pending\",\n    \"buyer_name\": \"Marvin Calizo\",\n    \"email\": \"mcalizo@olx.ph\",\n    \"contact_number\": \"+639178973012\",\n    \"subtotal\": \"3000.00\",\n    \"shipping\": \"0.00\",\n    \"tax\": \"0.00\",\n    \"fee\": \"0.00\",\n    \"insurance\": \"0.00\",\n    \"discount\": \"0.00\",\n    \"grand_total\": \"3000.00\",\n    \"total_collected\": \"0.00\",\n    \"shipping_fee\": \"50.00\",\n    \"insurance_fee\": \"30.00\",\n    \"transaction_fee\": \"75.00\",\n    \"metadata\": null,\n    \"parcel\": null,\n    \"ip_address\": \"172.34.31.6\",\n    \"preferred_pickup_time\": null,\n    \"preferred_delivery_time\": null,\n    \"tat\": \"{\\\"pending\\\": 1490876423}\",\n    \"remarks\": null,\n    \"pickup_attempts\": 0,\n    \"delivery_attempts\": 0,\n    \"status_updated_at\": \"2018-11-30\",\n    \"flagged\": 0,\n    \"created_at\": \"2017-03-30 20:20:23+08\",\n    \"updated_by\": null,\n    \"updated_at\": {\n        \"date\": \"2018-11-27 08:39:59.120154\",\n        \"timezone_type\": 3,\n        \"timezone\": \"UTC\"\n    },\n    \"shipment\": \"small-pouch\",\n    \"pickup_method\": \"for_pickup\",\n    \"buyer_id\": null,\n    \"parent_id\": null,\n    \"dropoff_address_id\": null,\n    \"service_id\": null,\n    \"estimated_delivery_date\": \"2018-12-04 00:00:00+08\",\n    \"return_fee\": \"0.00\",\n    \"seller_payment_method\": null,\n    \"seller_payment_provider\": null,\n    \"pickup_address\": {\n        \"id\": 112793,\n        \"party_id\": 85,\n        \"type\": \"pickup\",\n        \"name\": \"Jane Doee\",\n        \"title\": null,\n        \"email\": \"johndoe@email.caom\",\n        \"phone_number\": \"4218244\",\n        \"mobile_number\": \"+639172947494\",\n        \"fax_number\": null,\n        \"company\": null,\n        \"line_1\": \"3F U311 Bldg. C\",\n        \"line_2\": null,\n        \"district\": null,\n        \"city\": \"Cebu City\",\n        \"state\": \"Cebu\",\n        \"postal_code\": \"1600\",\n        \"region\": \"VIS\",\n        \"country_id\": 1,\n        \"remarks\": \"cebubugtest\",\n        \"hash\": \"8d014cc49d3ad6368c3f466dd72c7008\",\n        \"created_by\": null,\n        \"created_at\": \"2017-03-13 19:54:27.532821+08\",\n        \"updated_by\": null,\n        \"updated_at\": {\n            \"date\": \"2018-11-27 08:39:59.157129\",\n            \"timezone_type\": 3,\n            \"timezone\": \"UTC\"\n        },\n        \"code\": null,\n        \"deleted_at\": null,\n        \"deleted_by\": null,\n        \"preferred\": 0,\n        \"latitude\": null,\n        \"longitude\": null,\n        \"v_address\": null,\n        \"xcode\": null\n    },\n    \"segments\": [\n        {\n            \"id\": 166918,\n            \"order_id\": 70652,\n            \"courier_party_id\": 13,\n            \"shipping_type\": \"land\",\n            \"type\": \"pick_up\",\n            \"status\": \"pending\",\n            \"currency_id\": null,\n            \"amount\": null,\n            \"reference_id\": \"0007-0652-ZRFE\",\n            \"pickup_address_id\": 112794,\n            \"delivery_address_id\": 2,\n            \"barcode_format\": \"qr\",\n            \"tat\": null,\n            \"flagged\": 0,\n            \"created_at\": \"2018-11-26 11:26:12.46617+08\",\n            \"updated_at\": \"2018-11-26 12:35:49+08\",\n            \"delivery_address\": {\n                \"id\": 2,\n                \"party_id\": 13,\n                \"type\": \"business\",\n                \"name\": \"LBCX Allegro\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": null,\n                \"mobile_number\": null,\n                \"fax_number\": null,\n                \"company\": null,\n                \"line_1\": \"Allegro Center\",\n                \"line_2\": null,\n                \"district\": \"Magallanes\",\n                \"city\": \"Makati\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1232\",\n                \"region\": \"MMB\",\n                \"country_id\": 1,\n                \"remarks\": null,\n                \"hash\": \"3b54e7bb435e741a514cd806de84810a\",\n                \"created_by\": null,\n                \"created_at\": \"2017-03-07 01:26:51.702674+08\",\n                \"updated_by\": null,\n                \"updated_at\": null,\n                \"code\": null,\n                \"deleted_at\": null,\n                \"deleted_by\": null,\n                \"preferred\": 0,\n                \"latitude\": null,\n                \"longitude\": null,\n                \"v_address\": null,\n                \"xcode\": null\n            }\n        },\n        {\n            \"id\": 166919,\n            \"order_id\": 70652,\n            \"courier_party_id\": 13,\n            \"shipping_type\": \"land\",\n            \"type\": \"delivery\",\n            \"status\": \"pending\",\n            \"currency_id\": null,\n            \"amount\": null,\n            \"reference_id\": \"0007-0652-ZRFE\",\n            \"pickup_address_id\": 112794,\n            \"delivery_address_id\": 112795,\n            \"barcode_format\": \"qr\",\n            \"tat\": null,\n            \"flagged\": 0,\n            \"created_at\": \"2018-11-26 11:26:12.46617+08\",\n            \"updated_at\": null,\n            \"delivery_address\": {\n                \"id\": 112795,\n                \"party_id\": 85,\n                \"type\": \"delivery\",\n                \"name\": \"Marvin Calizo\",\n                \"title\": null,\n                \"email\": null,\n                \"phone_number\": null,\n                \"mobile_number\": null,\n                \"fax_number\": null,\n                \"company\": \"OLX Philippines\",\n                \"line_1\": \"40F Unionbank Plaza\",\n                \"line_2\": \"Meralco Ave., Ortigas Center\",\n                \"district\": null,\n                \"city\": \"Pasig City\",\n                \"state\": \"NCR\",\n                \"postal_code\": \"1605\",\n                \"region\": \"Mmb\",\n                \"country_id\": 1,\n                \"remarks\": \"Prod Engineering Team\",\n                \"hash\": \"6d50b4954316fa4e84733e247eb6cadd\",\n                \"created_by\": null,\n                \"created_at\": \"2017-03-13 20:03:22.182296+08\",\n                \"updated_by\": null,\n                \"updated_at\": null,\n                \"code\": null,\n                \"deleted_at\": null,\n                \"deleted_by\": null,\n                \"preferred\": 0,\n                \"latitude\": null,\n                \"longitude\": null,\n                \"v_address\": null,\n                \"xcode\": null\n            }\n        }\n    ],\n    \"organization\": {\n        \"party_id\": 85,\n        \"name\": \"Kimstore\"\n    }\n}"}],"_postman_id":"a2e10d4b-b174-4999-aff2-54b9fe944979"},{"name":"Set Order Status to cancel","id":"ba6b36ba-e00d-48a0-9f09-9b05fc9f32af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{authorization}}"}],"body":{"mode":"raw","raw":""},"url":"{{base_url}}/orders/{{tracking_number}}/cancel","description":"<p>Change the order status to canceled as long as it hasn't been assigned to a rider.</p>\n","urlObject":{"path":["orders","{{tracking_number}}","cancel"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba6b36ba-e00d-48a0-9f09-9b05fc9f32af"},{"name":"Set Order Status to for_pickup","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["/**"," * https://gist.github.com/jhurliman/1250118"," */","function base64Encode(data)","{","    data = CryptoJS.enc.Utf8.parse(data);","    data = CryptoJS.enc.Base64.stringify(data);","    data = urlSafe(data);","    return data;","}","","/**"," * https://gist.github.com/jhurliman/1250118"," */","function urlSafe(data)","{","    return data.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/\\=+$/, '');","}","","/**"," * https://jwt.io/introduction/"," */","function getHeader()","{","    // Create the header.","    // Only HMAC SHA256 is supported for now.","    var header = JSON.stringify({","        alg: 'HS256',","        typ: 'JWT'","    });","    ","    // Encode it.","    return base64Encode(header);","}","","/**"," * https://jwt.io/introduction/"," */","function getPayload()","{","    // Create the payload.","    var payload = {","        // API key that's mapped to a party ID.","        sub: postman.getEnvironmentVariable('api_key'),","        // Issued at.","        iat: Math.floor(Date.now() / 1000),","        // Nonce.","        jti: Math.floor(Date.now() / 1000),","    };","    ","    // Add the obo, if available.","    var obo = postman.getEnvironmentVariable('obo');","    ","    if (obo) {","        payload.obo = obo;","    }","    ","    // Encode it.","    payload = JSON.stringify(payload);","    ","    // Encode it.","    return base64Encode(payload);","}","","/**"," * https://jwt.io/introduction/"," */","function sign(header, payload)","{","    // Build the string to be signed.","    var data = header + '.' + payload;","    ","    // Hash it.","    var hash = CryptoJS.HmacSHA256(data, postman.getEnvironmentVariable('secret_key'));","    ","    // Encode it.","    return urlSafe(CryptoJS.enc.Base64.stringify(hash));","}","","/**"," * Generates a reference ID."," */","function getReferenceId(length)","{","    if (typeof(length) == 'undefined') {","        length = 8;","    }","    ","    var reference_id = '';","    var chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";","","    for (var i = 0; i < length; i++) {","        reference_id += chars.charAt(Math.floor(Math.random() * chars.length));","    }","    ","    return reference_id.toUpperCase();","}","","// Create the authorization header.","var header = getHeader();","var payload = getPayload();","var signature = sign(header, payload);","var jwt = header + '.' + payload + '.' + signature;","postman.setEnvironmentVariable('authorization', 'Bearer ' + jwt);","","// Set the reference ID.","postman.setEnvironmentVariable('reference_id', getReferenceId());"],"id":"12f531cc-a94b-454d-8135-b2dacebc9d35"}},{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Status code is 200\"] = responseCode.code === 200;"],"id":"f45eccf0-f105-45fd-8071-9eefdb289bd3"}}],"id":"8a436f1a-746f-492a-a7e7-4c0e5c8515af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{authorization}}"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"pickup_address\": {\n    \"name\": \"Mart Rules 2\",\n    \"company\": \"Company name\",\n    \"phone_number\": \"12345\",\n    \"mobile_number\": \"54321\",\n    \"line_1\": \"Street 2\",\n    \"line_2\": \"District 2\",\n    \"city\": \"City 2\",\n    \"state\": \"Abra 2\",\n    \"postal_code\": \"1630-2\",\n    \"country\": \"PH\",\n    \"remarks\": \"Remarks here\"\n  }\n}"},"url":"{{base_url}}/orders/{{tracking_number}}/for-pickup","description":"<p>Sets the order status to for_pickup.</p>\n","urlObject":{"path":["orders","{{tracking_number}}","for-pickup"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a436f1a-746f-492a-a7e7-4c0e5c8515af"},{"name":"Get List of Statuses","id":"4218284d-45d6-4347-bfaf-f9efef3722a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>Returns the list of statuses</p>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"423c38be-4333-4783-954f-3a73e5cf64c7","name":"Get List of Statuses","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization}}","type":"text"}],"url":"{{base_url}}/orders/statuses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2992"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 01 Sep 2023 09:32:14 GMT"},{"key":"x-amzn-RequestId","value":"6c4bfe51-1f38-4f8c-9cdf-75965b5e52e3"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=KR9D7+9uxu+dh7Qgq0NFQyepTFB5gEQoErBg6+kh7KGgcwy7aliyNFUuokJrT8ikSby2WA221UcTKS5KjOIK+4G05NZPrOObTOu1xXH9PVX9yB/yI8sXFKDYYm7n; Expires=Fri, 08 Sep 2023 09:32:14 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=KR9D7+9uxu+dh7Qgq0NFQyepTFB5gEQoErBg6+kh7KGgcwy7aliyNFUuokJrT8ikSby2WA221UcTKS5KjOIK+4G05NZPrOObTOu1xXH9PVX9yB/yI8sXFKDYYm7n; Expires=Fri, 08 Sep 2023 09:32:14 GMT; Path=/; SameSite=None; Secure"},{"key":"x-amz-apigw-id","value":"KkhgzFRHyQ0FQIw="},{"key":"Cache-Control","value":"no-cache"},{"key":"x-amzn-Remapped-Server","value":"nginx/1.18.0"},{"key":"X-Powered-By","value":"PHP/7.1.33"},{"key":"x-amzn-Remapped-Date","value":"Fri, 01 Sep 2023 09:32:14 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 3ec86593f80e10f8ce4ca4f47a7e0804.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MNL52-P2"},{"key":"X-Amz-Cf-Id","value":"QClbVLID71XfPOIqYvDB9MQ27z1QREG1l9KBDa4AlneWPbKDLhJ6Pg=="}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"pending\",\n        \"label\": \"Pending\"\n    },\n    {\n        \"name\": \"for_pickup\",\n        \"label\": \"Ready for pickup\"\n    },\n    {\n        \"name\": \"picked_up\",\n        \"label\": \"Picked up\"\n    },\n    {\n        \"name\": \"failed_pickup\",\n        \"label\": \"Failed pickup\"\n    },\n    {\n        \"name\": \"failed_delivery\",\n        \"label\": \"Failed delivery\"\n    },\n    {\n        \"name\": \"in_transit\",\n        \"label\": \"In transit\"\n    },\n    {\n        \"name\": \"claimed\",\n        \"label\": \"Claimed\"\n    },\n    {\n        \"name\": \"delivered\",\n        \"label\": \"Delivered\"\n    },\n    {\n        \"name\": \"return_in_transit\",\n        \"label\": \"Returned - in transit\"\n    },\n    {\n        \"name\": \"returned\",\n        \"label\": \"Returned\"\n    },\n    {\n        \"name\": \"failed_return\",\n        \"label\": \"Failed return\"\n    },\n    {\n        \"name\": \"out_for_delivery\",\n        \"label\": \"Out for delivery\"\n    },\n    {\n        \"name\": \"confirmed\",\n        \"label\": \"Confirmed\"\n    },\n    {\n        \"name\": \"canceled\",\n        \"label\": \"Canceled\"\n    },\n    {\n        \"name\": \"for_consolidation\",\n        \"label\": \"For consolidation\"\n    },\n    {\n        \"name\": \"consolidated\",\n        \"label\": \"Consolidated\"\n    },\n    {\n        \"name\": \"for_dropoff\",\n        \"label\": \"Ready for dropoff\"\n    },\n    {\n        \"name\": \"dropped_off\",\n        \"label\": \"Dropped off\"\n    },\n    {\n        \"name\": \"for_acceptance\",\n        \"label\": \"For acceptance\"\n    },\n    {\n        \"name\": \"accepted\",\n        \"label\": \"Accepted\"\n    },\n    {\n        \"name\": \"out_for_return\",\n        \"label\": \"Out for return\"\n    },\n    {\n        \"name\": \"for_payment\",\n        \"label\": \"For payment\"\n    },\n    {\n        \"name\": \"paid\",\n        \"label\": \"Paid\"\n    },\n    {\n        \"name\": \"for_transfer\",\n        \"label\": \"For transfer\"\n    },\n    {\n        \"name\": \"received_at_pickup_hub\",\n        \"label\": \"Received at pickup hub\"\n    },\n    {\n        \"name\": \"received_at_delivery_hub\",\n        \"label\": \"Received at delivery hub\"\n    },\n    {\n        \"name\": \"received_at_delivery_area\",\n        \"label\": \"Received at delivery area\"\n    },\n    {\n        \"name\": \"at_3pl_facility\",\n        \"label\": \"At 3PL facility\"\n    },\n    {\n        \"name\": \"at_sorting_center\",\n        \"label\": \"At sorting center\"\n    },\n    {\n        \"name\": \"in_transit_to_delivery_area\",\n        \"label\": \"In transit to delivery area\"\n    },\n    {\n        \"name\": \"transferred_to_partner\",\n        \"label\": \"Transferred to partner\"\n    },\n    {\n        \"name\": \"for_return\",\n        \"label\": \"For return\"\n    },\n    {\n        \"name\": \"arrived_at_rts_hub\",\n        \"label\": \"Arrived at RTS hub\"\n    },\n    {\n        \"name\": \"arrived_at_rts_area\",\n        \"label\": \"Arrived at RTS area\"\n    },\n    {\n        \"name\": \"at_sorting_center_rts\",\n        \"label\": \"At sorting center RTS\"\n    },\n    {\n        \"name\": \"for_claims\",\n        \"label\": \"For Claims\"\n    },\n    {\n        \"name\": \"claims_in_transit\",\n        \"label\": \"Claims in transit\"\n    },\n    {\n        \"name\": \"arrived_at_claims_area\",\n        \"label\": \"Arrived at claims area\"\n    },\n    {\n        \"name\": \"disposed\",\n        \"label\": \"Disposed\"\n    },\n    {\n        \"name\": \"rejected\",\n        \"label\": \"Rejected\"\n    },\n    {\n        \"name\": \"damaged\",\n        \"label\": \"Damaged\"\n    },\n    {\n        \"name\": \"lost\",\n        \"label\": \"Lost\"\n    },\n    {\n        \"name\": \"rider_found\",\n        \"label\": \"Rider found\"\n    },\n    {\n        \"name\": \"picking_up\",\n        \"label\": \"Picking up\"\n    },\n    {\n        \"name\": \"for_delivery\",\n        \"label\": \"For delivery\"\n    },\n    {\n        \"name\": \"for_release\",\n        \"label\": \"For release\"\n    },\n    {\n        \"name\": \"out_for_pickup\",\n        \"label\": \"Out for pickup\"\n    },\n    {\n        \"name\": \"failed_pickup_attempt\",\n        \"label\": \"Failed pickup attempt\"\n    },\n    {\n        \"name\": \"runsheet_closure\",\n        \"label\": \"Runsheet closure\"\n    },\n    {\n        \"name\": \"pickup_rider_found\",\n        \"label\": \"Pickup rider found\"\n    },\n    {\n        \"name\": \"delivery_rider_found\",\n        \"label\": \"Delivery rider found\"\n    },\n    {\n        \"name\": \"for_disposal\",\n        \"label\": \"For disposal\"\n    },\n    {\n        \"name\": \"pending_disposition\",\n        \"label\": \"Pending disposition\"\n    },\n    {\n        \"name\": \"rcd_at_sorting_center\",\n        \"label\": \"RCD at sorting center\"\n    },\n    {\n        \"name\": \"rcd_in_transit\",\n        \"label\": \"RCD in transit\"\n    },\n    {\n        \"name\": \"received_at_claims_recovery_hub\",\n        \"label\": \"Received at Claims/Recovery hub\"\n    },\n    {\n        \"name\": \"dws_update\",\n        \"label\": \"DWS update\"\n    },\n    {\n        \"name\": \"searching_for_rider\",\n        \"label\": \"Searching for Rider\"\n    }\n]"}],"_postman_id":"4218284d-45d6-4347-bfaf-f9efef3722a6"},{"name":"Get Rates","event":[{"listen":"prerequest","script":{"id":"b264dc03-3f95-4920-86d0-4694eb6a1b13","exec":["/**"," * https://gist.github.com/jhurliman/1250118"," */","function base64Encode(data)","{","    data = CryptoJS.enc.Utf8.parse(data);","    data = CryptoJS.enc.Base64.stringify(data);","    data = urlSafe(data);","    return data;","}","","/**"," * https://gist.github.com/jhurliman/1250118"," */","function urlSafe(data)","{","    return data.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/\\=+$/, '');","}","","/**"," * https://jwt.io/introduction/"," */","function getHeader()","{","    // Create the header.","    // Only HMAC SHA256 is supported for now.","    var header = JSON.stringify({","        alg: 'HS256',","        typ: 'JWT'","    });","    ","    // Encode it.","    return base64Encode(header);","}","","/**"," * https://jwt.io/introduction/"," */","function getPayload()","{","    // Create the payload.","    var payload = {","        // API key that's mapped to a party ID.","        sub: postman.getEnvironmentVariable('api_key'),","        // Issued at.","        iat: Math.floor(Date.now() / 1000),","        // Nonce.","        jti: Math.floor(Date.now() / 1000),","    };","    ","    // Add the obo, if available.","    var obo = postman.getEnvironmentVariable('obo');","    ","    if (obo) {","        payload.obo = obo;","    }","    ","    // Encode it.","    payload = JSON.stringify(payload);","    ","    // Encode it.","    return base64Encode(payload);","}","","/**"," * https://jwt.io/introduction/"," */","function sign(header, payload)","{","    // Build the string to be signed.","    var data = header + '.' + payload;","    ","    // Hash it.","    var hash = CryptoJS.HmacSHA256(data, postman.getEnvironmentVariable('secret_key'));","    ","    // Encode it.","    return urlSafe(CryptoJS.enc.Base64.stringify(hash));","}","","/**"," * Generates a reference ID."," */","function getReferenceId(length)","{","    if (typeof(length) == 'undefined') {","        length = 8;","    }","    ","    var reference_id = '';","    var chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";","","    for (var i = 0; i < length; i++) {","        reference_id += chars.charAt(Math.floor(Math.random() * chars.length));","    }","    ","    return reference_id.toUpperCase();","}","","// Create the authorization header.","var header = getHeader();","var payload = getPayload();","var signature = sign(header, payload);","var jwt = header + '.' + payload + '.' + signature;","postman.setEnvironmentVariable('authorization', 'Bearer ' + jwt);","","// Set the reference ID.","postman.setEnvironmentVariable('reference_id', getReferenceId());"],"type":"text/javascript"}}],"id":"0b29cd0b-4b7b-4246-a079-b62ce8f60e9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"{{authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"attributes\": {\n            \"service_type\": \"next_day\", // next_day | same_day_delivery\n            \"pickup_address\": {\n                \"line_1\": \"Home 1\",\n                \"line_2\": null,\n                \"district\": null,\n                \"city\": \"Makati\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1234\",\n                \"country\": \"PH\"\n            },\n            \"delivery_address\": {\n                \"line_1\": \"Home 2\",\n                \"line_2\": null,\n                \"district\": null,\n                \"city\": \"Taguig\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1234\",\n                \"country\": \"PH\"\n            },\n            \"shipment\": \"box\", // returns all parcel rates if shipment is not present\n            \"declared_value\": 2600,\n            \"payment_method\": \"cod\" // cod | non-cod. If not present, default is non-cod\n        }\n    }\n}"},"url":"{{base_url}}/orders/estimates/rates","description":"<p>Provides the parcel shipping costs based on the specified pickup and delivery locations.</p>\n","urlObject":{"path":["orders","estimates","rates"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"5d590e2d-5ceb-473f-a64c-fc7c2a5c1c6e","name":"{{base_url}}/orders/estimates/rates","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"{{authorization}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"attributes\": {\n            \"service_type\": \"next_day\", // next_day | same_day_delivery\n            \"pickup_address\": {\n                \"line_1\": \"Home 1\",\n                \"line_2\": null,\n                \"district\": null,\n                \"city\": \"Makati\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1234\",\n                \"country\": \"PH\"\n            },\n            \"delivery_address\": {\n                \"line_1\": \"Home 2\",\n                \"line_2\": null,\n                \"district\": null,\n                \"city\": \"Taguig\",\n                \"state\": \"Metro Manila\",\n                \"postal_code\": \"1234\",\n                \"country\": \"PH\"\n            },\n            \"shipment\": \"box\", // returns all parcel rates if shipment is not present\n            \"declared_value\": 2600,\n            \"payment_method\": \"cod\" // cod | non-cod. If not present, default is non-cod\n        }\n    }\n}"},"url":"{{base_url}}/orders/estimates/rates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/vnd.api+json"},{"key":"Content-Length","value":"710"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 02 Aug 2023 08:20:00 GMT"},{"key":"x-amzn-RequestId","value":"ba280d8f-a719-4617-82a2-281b22ecd6d6"},{"key":"x-amzn-Remapped-Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"AWSALB=rb1/TwOaxv/TZO0l8m+uo/M34Cd5XioyDDyKVzVZ9daJWtjiCz6Bo9Zhm3Aq/rkSTYxj0X2dhE7k16EsN4qAmKXuI9nuoxD/kB58cueverFVXthXUXlXEinTQPnA; Expires=Wed, 09 Aug 2023 08:19:59 GMT; Path=/"},{"key":"Set-Cookie","value":"AWSALBCORS=rb1/TwOaxv/TZO0l8m+uo/M34Cd5XioyDDyKVzVZ9daJWtjiCz6Bo9Zhm3Aq/rkSTYxj0X2dhE7k16EsN4qAmKXuI9nuoxD/kB58cueverFVXthXUXlXEinTQPnA; Expires=Wed, 09 Aug 2023 08:19:59 GMT; Path=/; SameSite=None; Secure"},{"key":"x-amz-apigw-id","value":"JBeziGykSQ0FREg="},{"key":"Cache-Control","value":"no-cache"},{"key":"x-amzn-Remapped-Server","value":"nginx/1.18.0"},{"key":"X-Powered-By","value":"PHP/7.1.33"},{"key":"x-amzn-Remapped-Date","value":"Wed, 02 Aug 2023 08:20:00 GMT"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 326f367e4d8a2e0b0850291465457588.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MNL52-P2"},{"key":"X-Amz-Cf-Id","value":"kmuRjZebrXGhCdgx-3mWdzQLxzPu5U5VBvt1XKNyyZ-k0D8Cspigmw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"type\": \"class\",\n        \"id\": \"\",\n        \"attributes\": {\n            \"shipping_fee\": 200,\n            \"insurance_fee\": 21,\n            \"transaction_fee\": 0,\n            \"return_fee\": 221,\n            \"id\": null,\n            \"links\": {\n                \"uri\": \"/v1/orders/estimates/rates\"\n            }\n        }\n    },\n    \"links\": {\n        \"self\": \"http://orders.api.staging.lbcx.ph/api/v1/orders/estimates/rates\"\n    }\n}"}],"_postman_id":"0b29cd0b-4b7b-4246-a079-b62ce8f60e9a"}],"id":"27557b3e-3b3c-4ec4-89e4-554c7f80dabc","description":"<p>The following endpoints return information regarding Orders. \nThis API is the core of all order-related processes, from order creation, to getting orders and their statuses.</p>\n","event":[{"listen":"prerequest","script":{"id":"eeb20c97-0440-4776-9a20-cedf4171f142","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fd12fdc1-e482-42d5-ac45-a6fc9af9a922","type":"text/javascript","exec":[""]}}],"_postman_id":"27557b3e-3b3c-4ec4-89e4-554c7f80dabc"},{"name":"AWB Printing","item":[{"name":"AWB Label Single Print","id":"6e929fe9-02cb-4612-8dec-4e8861539fe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{authorization}}"}],"url":"{{base_url}}/print/awb/{{tracking_number}}?type=zebra","description":"<p>Gets a single pdf of the requested label.\nTracking Number is required, along with the queried type (zebra or fuji).</p>\n","urlObject":{"path":["print","awb","{{tracking_number}}"],"host":["{{base_url}}"],"query":[{"description":{"content":"<p>Valid values are 'zebra' or 'fuji'</p>\n","type":"text/plain"},"key":"type","value":"zebra"}],"variable":[]}},"response":[{"id":"051fadbe-b822-429a-bb1c-c017d94f1a31","name":"AWB Label Single Print","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{authorization}}"}],"url":{"raw":"{{base_url}}/print/awb/{{tracking_number}}?type=zebra","host":["{{base_url}}"],"path":["print","awb","{{tracking_number}}"],"query":[{"key":"type","value":"zebra","description":"Valid values are 'zebra' or 'fuji'"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": {\n        \"tracking_number\": \"0570-6897-BHWJ\",\n        \"date_pickup_at\": \"2020-11-26\",\n        \"estimated_delivery_date\": \"2020-11-29\",\n        \"pickup_hub\": \"NTH\",\n        \"pickup_hub_zone\": \"Z112\",\n        \"delivery_hub\": \"NTH\",\n        \"awb\": \"https://s3.ap-southeast-1.amazonaws.com/awbpod.staging.quadx.xyz/zebra/AWB-0570-6897-BHWJ.pdf?AWSAccessKeyId=ASIA3SHA62V66MEVV67I&Expires=1606439747&Signature=G4POeYpI72XC3IfZgEEhpZmm6e4%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEIH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDmFwLXNvdXRoZWFzdC0xIkcwRQIgGQJ4AOp%2FvJcvJr5gjJa0db1GjYb%2FuxUX39590FuRktECIQCjsu1QZ4l2o%2FELYrcDOf3m79xzT7aSSzRhO7zfvHY5Jir1AQj6%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAEaDDc5NTA0MDczMjU0MSIM2TkFDCXQoHp7pyhEKskBQ86QhdH9wSh%2FZfEQ90oslEskIZHc3LX7BE%2F2AuaLZ%2BB%2FnVWpFub1A6Z%2FwU31lR%2BLyvOk4uqyUXu8tpMHY8BjqXDlmxdMo%2BIqlk%2FFE1PArWf9BzYaq2%2BJD8XFlFlpugx22TG6HfLEgi1sGqXfsA%2FTFziEVgMAbBzPVCZgt7GXu4fmb5T4g9MyGgtbM6oDVfdEeJyIuZe3Wwdt8kbdBb76aZiT8EQCuPQp%2BaPOgqCA3Xz2C5XcHUtZzq08Lp3zzulJxgMIwwfIXKzUMLmD%2FP0FOuABm8jIBSLXzCx1q5Tk%2BbsdDh%2FtNOUGmnah4P6%2F%2BXBgUObdzSFqaVKyBfYZ4C1djBxwFQT5B5wd3L%2BC7nS64d0uXTlJhthCeqepy2wWWQFynQVFGwfATlJ98Xst7nn4K8wbFnDi%2B%2BRIPRkh%2B1w83McLZJKhUSKpxomF96Vp7WgNVG3yBVTykifK04shNWTKvTfs0uUDNHF1%2F74rxJOC2%2B7LJXeYpf3A1dXMGRdPcpvF0E6bWjN9o62Al0HHmoA0gB5vorDcLrbAGuWsbvGDl8EmZrHPrpq%2FPUUSWNArX5HH0W4%3D\"\n    }\n}"}],"_postman_id":"6e929fe9-02cb-4612-8dec-4e8861539fe1"},{"name":"AWB Label Bulk Print","id":"dedaad44-6979-4b64-8d67-761dd563e2db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{authorization}}"}],"body":{"mode":"raw","raw":"{\r\n    \"tracking_number\": [\r\n        \"0248-8053-WMHB\"\r\n        ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/print/awb?type=zebra","description":"<p>Requests for a pdf compiling multiple tracking numbers.</p>\n<p>Body contains an array of the tracking numbers that must be printed, while type (zebra, fuji) is queried via the url.</p>\n","urlObject":{"path":["print","awb"],"host":["{{base_url}}"],"query":[{"key":"type","value":"zebra"}],"variable":[]}},"response":[{"id":"efc1fc90-3220-486d-a0aa-e320c5d3826b","name":"AWB Label Bulk Print","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"{{authorization}}"}],"body":{"mode":"raw","raw":"{\r\n    \"tracking_number\": [\r\n        \"0248-8053-WMHB\"\r\n        ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/print/awb?type=zebra","host":["{{base_url}}"],"path":["print","awb"],"query":[{"key":"type","value":"zebra"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"pollUrl\": \"https://api.staging.quadx.xyz/v1/print/awb/poll/1606353498666\",\n    \"success\": true,\n    \"id\": 1606353498666,\n    \"numOfBatches\": 1,\n    \"message\": null\n}"}],"_postman_id":"dedaad44-6979-4b64-8d67-761dd563e2db"},{"name":"Poll URL for Bulk Print","id":"e2e90351-9cfe-4eee-acd3-a80cf8c9d29f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{authorization}}"}],"url":"{{base_url}}/print/awb/poll/{{awb_poll_id}}","description":"<p>The purpose of this endpoint is for the client to check if the requested pdfs have already been created on the backend.</p>\n","urlObject":{"path":["print","awb","poll","{{awb_poll_id}}"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a548498f-5610-46a2-a9e3-3997865a6b0a","name":"Poll URL for Bulk Print","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"{{authorization}}"}],"url":"{{base_url}}/print/awb/poll/{{awb_poll_id}}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"batchgroupid\": \"1606353498666\",\n        \"labelType\": \"awb\",\n        \"sequence\": 1,\n        \"batchid\": \"1606353498666-1-awb\",\n        \"printer\": \"zebra\",\n        \"status\": \"done\",\n        \"file\": \"awb-1606353498666-1-of-1.pdf\",\n        \"url\": \"https://s3.ap-southeast-1.amazonaws.com/awbpod.staging.quadx.xyz/batch/awb-1606353498666-1-of-1.pdf?AWSAccessKeyId=ASIA3SHA62V67NF5ICXL&Expires=1606439922&Signature=Up6ca68qwr9daLGYjdJ20cgaXWY%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEIH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDmFwLXNvdXRoZWFzdC0xIkYwRAIgWXLf4bHhf%2BzpbygCmYJkCEPNrUf7qMhkAQNUyNCnKZsCIEjvF%2BWWR3Ad9x076NMm8zERx5INOxwJ5AkBgOzEp7%2BWKvYBCPr%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQARoMNzk1MDQwNzMyNTQxIgyUoZL3K6P1ucoUISgqygHTOajkUlavUW%2F%2FUAOHH3WItWkTyBu5odQJ5FindW00Vw93GvfrfT49CcIjwtcyTv2r4Lf%2BuaQL15SEmxwy5oVK%2FIzOGpU9oX27f%2BLjScDllADGF73fxFPROMfo0N5bcD1Oa3zMR%2FYvYfk91z%2Fb7dDtarJ2UiO12FVr0MnBBKM0z1QNwogJKRJXt2z2A5C7%2FNBiHePqUooFXmYykQIMPfiT0oNe%2F0mZzNFqiGs1MNx7lq1ZN1Jo2vIhR5ccdXaGx7WyxhVmPoceZzROMPCE%2FP0FOuEBbjv6RGg2rTMmBDc5LszuvgJlAPnKE9TAxH2djW68DOOqsvcGQn%2Ftu3cpnP8v0ON3rOdv8%2FPH0F3WqxIxFRcsF4dAMqoOPI1KJ47hKrspy%2FCv4rP0BeeEUkhCVmWJQ9JVn7TfKWKsES6DPqx3TLB82T%2Bfj6luV14Wjo7qQhKqgxuoE2WfR3uzdGU%2BPHIgHVrWNVe8J1NhT9KXRFtLRk2k6hEuYJ4lcoOP1evWOBN6HJtI%2FcOl7MCKyfn6RgoAYiSY7MgvBI1%2B8M72n3lOPXHOMM4H0PMyjoox6bLlrD5yG6aR\"\n    }\n]"}],"_postman_id":"e2e90351-9cfe-4eee-acd3-a80cf8c9d29f"}],"id":"22c7464c-a108-45fc-b4fe-e15a6c2d36ab","description":"<p>Endpoints for developers for generating pdf files of AWB/POD labels for printing.</p>\n","_postman_id":"22c7464c-a108-45fc-b4fe-e15a6c2d36ab"}],"event":[{"listen":"prerequest","script":{"id":"05bec26b-e8b2-4ec6-ac34-79d8e0b3b3f0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e0fa7973-b077-4179-9289-c91a6219428a","type":"text/javascript","exec":[""]}}]}