{"info":{"_postman_id":"a633d964-7855-4e87-8abb-adfa2c65a908","name":"Pipit Global API with FX v3.0","description":"<html><head></head><body><p>Welcome to the PiP iT Global API! You can use our API to access PiP iT Global API endpoints to carry out requests, create orders, make payments, check for confirmations and more.</p>\n<p><strong>Please Note</strong></p>\n<blockquote>\n<p>Many of our endpoints require an authorization token, <em>authToken</em>, that is returned after a successful logn. You must provide this token in the header of your request for a qualified call to our API. Check the <strong>HEADERS</strong> entry for each endpoint on when to pass your <em>authToken</em>.</p>\n</blockquote>\n<p><strong>Please Note</strong><br>You can use <a href=\"https://beta-system.pipit.global\">https://beta-system.pipit.global</a> or Beta testing. The client dashboard is here <a href=\"https://beta-dashboard.pipit.global\">https://beta-dashboard.pipit.global</a> . Please note that data can disappear from beta at any time.</p>\n<p>The live dashboard is here [<a href=\"https://dashboard.pipit.global%5D\">https://dashboard.pipit.global]</a> where you can create a live test account. Note that any test payments made will not be settled back to you until you have a contract with Pipit Global.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9064048","collectionId":"a633d964-7855-4e87-8abb-adfa2c65a908","publishedId":"TVejgVeB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-21T11:30:11.000Z"},"item":[{"name":"Login","item":[{"name":"Login","event":[{"listen":"test","script":{"id":"586147d3-b0d7-4162-bba0-a37a04e959b0","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"auth\", jsonData.authToken);\r","\r","console.log(JSON.stringify(postman.getEnvironmentVariable(\"auth\"), null, \"\"));"],"type":"text/javascript"}}],"id":"6cc5ec44-7346-405b-a154-5727b80642d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"username\": \"{{username}}\",\n    \"password\": \"{{password}}\"\n}"},"url":"{{host}}/api/v2/login","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Length: 0\nSet-Cookie: JSESSIONID=C089BA3EAD86D257BAA77CABACC7FACC7FAF6; Path=/;HttpOnly\n</code></pre>\n<aside>\nThe data must be sent as <code>application/x-www-form-urlencoded</code> (i.e. not JSON)\nThe <code>cookie</code> returned must be used for subsequent API calls which require authentication.\n</aside>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v2","login"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cc5ec44-7346-405b-a154-5727b80642d2"},{"name":"Log Out","id":"750f8262-f0e7-47b9-80b2-3e1825e0bc4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"{{host}}/logout","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Length: 0\n</code></pre>\n<aside>\nA <code>cookie</code> must be supplied to identify the client to logout. After logout, the client should destroy the <code>cookie</code>.\n</aside>\n","urlObject":{"path":["logout"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"750f8262-f0e7-47b9-80b2-3e1825e0bc4f"}],"id":"fa607220-3597-464b-a16c-be8b684b185f","_postman_id":"fa607220-3597-464b-a16c-be8b684b185f","description":""},{"name":"Cash-In Orders","item":[{"name":"Create a Cash-In Order","event":[{"listen":"test","script":{"id":"5423a304-49e3-47f8-a67d-440488aa6180","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"barcode\", jsonData.barcode);"],"type":"text/javascript"}}],"id":"0ffa28f3-c83f-4acd-9f06-a7db03ab9a9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"body":{"mode":"raw","raw":"{\r\n    \"orderCurrencyCode\": \"GBP\",\r\n    \"clientOrderReference\": \"{{vendorOrderReference}}\",\r\n    \"clientName\": \"{{username}}\",\r\n    \"orderValue\": 100,\r\n    \"customerEmail\": \"{{customerEmail}}\"\r\n}"},"url":"{{host}}/api/merchant/v2/orders","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 201 Created\nLocation: {{host}}/api/order/6377839876703799318\nContent-Type:application/json;charset=UTF-8\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 5715,\n    \"barcode\": \"630070010575276263100002050\",\n    \"reference\": \"276263\",\n    \"vendorReference\": \"Sample Order\",\n    \"currencyCode\": \"GBP\",\n    \"orderValue\": 20,\n    \"totalValue\": 20.5,\n    \"fee\": 0.5,\n    \"createdDate\": \"2019-03-13T16:04:02Z\",\n    \"expiryDate\": \"2019-03-15T12:00:00Z\",\n    \"status\": \"PENDING\"\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>vendorName</td>\n<td>string</td>\n<td>The 'Merchant Username' created at sign up</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>vendorOrderReference</td>\n<td>string</td>\n<td>The vendor's order refernce</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>orderValue</td>\n<td>number</td>\n<td>The value of the order</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>orderCurrencyCode</td>\n<td>string</td>\n<td>The <a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO-4217</a> currency code</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>customerEmail</td>\n<td>string</td>\n<td>The email address of the customer</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>expireInSeconds</td>\n<td>string</td>\n<td>Order expiry time in seconds</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>The <a href=\"https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3\">ISO 3166-1 alpha-3</a> three-letter country code. This code is to identtify the client's territory and is only currently only required for the Euro Area.</td>\n<td></td>\n</tr>\n<tr>\n<td>signature</td>\n<td>string</td>\n<td>The SHA-1 signature</td>\n<td></td>\n</tr>\n<tr>\n<td>customerName</td>\n<td>string</td>\n<td>The customer's name</td>\n<td></td>\n</tr>\n<tr>\n<td>customerMobileNumber</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerDob</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerIdentificationId</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerIdentificationType</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerIdentificationImage</td>\n<td>string</td>\n<td>The URI to an image</td>\n<td></td>\n</tr>\n<tr>\n<td>customerLanguage</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerAddressLine1</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerAddressLine2</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerAddressLine3</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerAddressLine4</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerAddressLine5</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerAddressLine6</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerCountry</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>customerTimezone</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>extraInfo</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>replyUrl</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"notes---callbacks\">Notes - Callbacks</h1>\n<p><strong>Merchant Callbacks</strong></p>\n<p>If Pipit Global is providing live payment information (as opposed to in a batch process) to a merchant then merchants are able to enable live callbacks from Pipit Global to their own system. Callbacks are enabled via the 'callback' (Y or N) and 'callback_url' fields in their merchant profile.</p>\n<p>Callbacks are done only once per status change so they can be reconciled with the order status lists from the RESTApi as defined previously if the merchant’s server was unable to received the callbacks at some stage during the day.</p>\n<p>Order creation, payment and expiry are notified via the callback.</p>\n<p><strong>Payment Received</strong></p>\n<p>When a payment is received on the Pip-it system then a callback message is generated to the merchant’s servers using the Callback_URL provided by the merchant and set in their account profile (also the callbacks = 'Y' field must be set).</p>\n<p>The POST request will contain the following fields:</p>\n<ul>\n<li>BARCODE The Pip-it barcode is for the newly paid Order.</li>\n<li>VENDOR_ORDER_ID The transaction id for the order used by the merchant. The merchant will use this id to identify the order on their own system.</li>\n<li>PAID_DATE The date and time the Order was paid in the format 'YYYMMDDHHMISS'. e.g. 20131114103000</li>\n<li>SIGN The Sha-2 hash for the message (Optional).</li>\n</ul>\n<p>The Internet Merchant can identify this callback as a paid order callback because it contains the PAID_DATE field.</p>\n<p>For example, in the case of a merchant providing ‘<a href=\"http://www.myshop.com/pip-itcallback%E2%80%99\">http://www.myshop.com/pip-itcallback’</a> as the callback URL and the barcode being</p>\n<p>'605002264492001076102918376' then the http POST would be:</p>\n<p><a href=\"http://www.myshop.com/pip-itcallback?BARCODE=605002264492001076102918376&amp;VENDOR_ORDER_ID=123456789&amp;PAID_DATE=20131114103000\">http://www.myshop.com/pip-itcallback?BARCODE=605002264492001076102918376&amp;VENDOR_ORDER_ID=123456789&amp;PAID_DATE=20131114103000</a></p>\n<p>This Payment message would be received on the merchant’s server and then the goods will be dispatched by the merchant to the customer.</p>\n<p>If the merchant has set the 'Secret Key' parameter, then this message will also be signed using a Sha-2 hash in a similar fashion as for the new order message described earlier.</p>\n<p>For the basic example we used above, this can be worked out as so (where “secret” is the secret key in this case): cleartext = ”60500226449200107610291837612345678920131114103000secret”;<br />sha-2(cleartext) = e9798b09e37edef38f16a021c5b12ca41ad837e2;</p>\n<p>This would then give the following URL:</p>\n<p><a href=\"https://www.myshop.com/pip-itpaymentreceived?BARCODE=605002264492001076102918376&amp;VENDOR_ORDER_ID=123456789&amp;PAID_DATE=20131114103000&amp;SIGN=e9798b09e37edef38f16a021c5b12ca41ad837e2\">https://www.myshop.com/pip-itpaymentreceived?BARCODE=605002264492001076102918376&amp;VENDOR_ORDER_ID=123456789&amp;PAID_DATE=20131114103000&amp;SIGN=e9798b09e37edef38f16a021c5b12ca41ad837e2</a></p>\n<p>The merchant’s servers would then be expected to check the SIGN field to ensure that the message had indeed come from the PiP iT servers.</p>\n<p><strong>Order Created</strong></p>\n<p>There is also an order created callback. It has the same format as above but with CREATE_DATE substituting for PAID_DATE. It is activated when an order is created.</p>\n<p><strong>Order Expired</strong></p>\n<p>There is also an order expired callback. It has the same format as above but with EXPIRE_DATE substituting for PAID_DATE. It is activated when an order expires.</p>\n<h1 id=\"guaranteed-fx-rates\">Guaranteed FX Rates</h1>\n<p>We have updated the FX. When you create an order in one currency but specify a different 'settlementCountry' or 'settlementCurrency' we then also return the FX rate in the order reply. e.g.</p>\n<p>There are two modes of operation:</p>\n<h2 id=\"specify-local-payment-amount-with-settlement-currency\">Specify Local Payment Amount with Settlement Currency</h2>\n<p>Here you specify how much you want the payer to pay in local currency band you want to know how much you get receive in your choosen settlement currency. If you create an order for CLP 50,000 and specify you want settlement in USD like so:</p>\n<p>{<br /><strong>\"orderCurrencyCode\": \"CLP\",</strong><br />\"country\": \"CHL\",<br /><strong>\"settlementCurrency\": \"USD\",</strong><br />\"clientOrderReference\": \"your ref\",<br />\"clientName\": \"{{client-username}}\",<br />\"orderValue\": \"50000\",<br />\"customerMobiPhoneNumberExt}}\",<br />\"customerEmail\": \"<a href=\"mailto:email@email.com\">email@email.com</a>\",<br />\"replyUrl\": \"https://​your.callback​.com\"<br />}</p>\n<p>You will get this is return:</p>\n<p>{<br />\"barcode\": \"382220025\",<br />\"reference\": \"500381\",<br />\"clientReference\": \"your ref\",<br />\"partnerReference\": \"Ln7HMNoCS0\",<br /><strong>\"currencyCode\": \"CLP\",</strong><br /><strong>\"orderValue\": 50000.00,</strong><br />\"totalValue\": 50000.00,<br />\"fee\": 0.00,<br />\"createdDate\": \"2022-08-02T06:57:18Z\",<br />\"expiryDate\": \"2022-08-03T05:59:59Z\",<br />\"status\": \"PENDING\",<br />\"orderType\": \"CashIn\",<br />\"settlementBarcode\": \"654210479\",<br /><strong>\"settlementCurrency\": \"USD\",****\"settlementValue\": 51.40</strong><br />}</p>\n<p>When that order is paid you will receive USD$ 51.40 minus fees. We actually create two associated orders; the local one to be paid and the USD one to hold the FX. So you can see both on your dashboard and via the API. When the local order is paid so is the FX and all the settlement and notifications function as you would expect.</p>\n<p>​Obviously, if we can't guarantee the FX rate the create will fail with an explanatory message. ​</p>\n<p>You can always create orders just in local currency but then you'll just get the rate on the day of settlement.</p>\n<p>This system is just where we can guarantee the rate.</p>\n<p>​This works right now for LATAM and Africa, and we are adding more all the time.</p>\n<h2 id=\"specify-required-settlement-amount-with-paymentcountry\">Specify Required Settlement Amount with paymentCountry</h2>\n<p>Here you specify how much you want to receive when an order is paid. You aren't especially concerned with how much actually needs to be paid in the local currency. e.g you create an order for USD$ 300 and you specify you want it to be paid in Chile in CLP like so:</p>\n<p>{<br /><strong>\"orderCurrencyCode\": \"USD\",<strong><strong>\"orderValue\": \"300\",</strong></strong>\"paymentCountry\": \"CHL\",</strong><br />\"clientOrderReference\": \"your ref\",<br />\"clientName\": \"{{client-username}}\",<br />\"orderValue\": \"300\",<br />\"customerMobiPhoneNumberExt\": \"{{phonenumber}},<br />\"customerEmail\": \"<a href=\"mailto:email@email.com\">email@email.com</a>\",<br />\"replyUrl\": \"https://​your.callback​.com\"<br />}</p>\n<p>You will get this is return:</p>\n<p>{<br />\"barcode\": \"382220025\",<br />\"reference\": \"500381\",<br />\"clientReference\": \"your ref\",<br />\"partnerReference\": \"Ln7HMNoCS0\",<br /><strong>\"currencyCode\": \"USD\",****\"orderValue\": 300.00,</strong><br />\"totalValue\": 300.00,<br />\"fee\": 0.00,<br />\"createdDate\": \"2022-08-02T06:57:18Z\",<br />\"expiryDate\": \"2022-08-03T05:59:59Z\",<br />\"status\": \"PENDING\",<br />\"orderType\": FX Order\",<br /><strong>\"paymentBarcode\": \"654210479\",<strong><strong>\"paymentCurrency\": \"CLP\",</strong></strong>\"paymentValue\": \"291856.63\"</strong><br />}</p>\n<p>In this case you will need to provide the 'paymentBarcode' as the order reference to the payer as that is what they actually pay. When the order is paid locally you will receive the USD value you originally requested.</p>\n","urlObject":{"path":["api","merchant","v2","orders"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ffa28f3-c83f-4acd-9f06-a7db03ab9a9e"},{"name":"Retrieve a Cash-In Order","event":[{"listen":"test","script":{"id":"df97c7b8-5691-4d95-ab57-e495b0fa5463","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"barcode\", jsonData.barcode);\r","postman.setEnvironmentVariable(\"totalValue\", jsonData.totalValue);\r","postman.setEnvironmentVariable(\"orderCurrencyCodeCreated\", jsonData.currencyCode);"],"type":"text/javascript"}}],"id":"e0b8928d-2500-4495-aee9-028e9586963a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"{{host}}/api/order/{{barcode}}","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 5715,\n    \"barcode\": \"630070010575276263100002050\",\n    \"reference\": \"276263\",\n    \"vendorReference\": \"Sample Order\",\n    \"currencyCode\": \"GBP\",\n    \"orderValue\": 20,\n    \"totalValue\": 20.5,\n    \"fee\": 0.5,\n    \"createdDate\": \"2019-03-13T16:04:02Z\",\n    \"expiryDate\": \"2019-03-15T12:00:00Z\",\n    \"status\": \"PENDING\"\n}\n</code></pre>\n","urlObject":{"path":["api","order","{{barcode}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e0b8928d-2500-4495-aee9-028e9586963a"},{"name":"Retrieve More Details of a Cash-In Order","id":"916dded4-0de6-4ebe-8f96-927c8c4ce158","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/order/{{barcode}}/details","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"barcode\": \"6377839862260014614\",\n    \"createdDate\": \"2019-01-07T19:47:28Z\",\n    \"currencyCode\": \"EUR\",\n    \"customerDetails\": {\n        \"addressLine1\": \"7 Vancouver Place\",\n        \"addressLine2\": \"Northcliff\",\n        \"addressLine3\": \"Extension\",\n        \"addressLine4\": \"15\",\n        \"addressLine5\": \"2195\",\n        \"addressLine6\": \"Gauteng\",\n        \"country\": \"South Africa\",\n        \"email\": {{customerEmail}},\n        \"name\": {{customerName}},\n        \"timezone\": \"SAST\"\n    },\n    \"expiryDate\": \"2019-01-08T19:47:28Z\",\n    \"language\": \"ENG\",\n    \"orderValue\": 621.01,\n    \"reference\": \"1461\",\n    \"status\": \"PENDING\",\n    \"totalValue\": 627.22,\n    \"vendorReference\": \"ZZ-3722\"\n}\n</code></pre>\n","urlObject":{"path":["api","merchant","order","{{barcode}}","details"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"916dded4-0de6-4ebe-8f96-927c8c4ce158"},{"name":"Find Pending Orders","id":"1ce127ac-88b5-4e7c-a633-56f068685f27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/orders/pending","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"content\": [\n        {\n            \"barcode\": \"6377839815483408088\",\n            \"createdDate\": \"2019-01-07T07:01:25Z\",\n            \"expiryDate\": \"2019-01-08T07:01:25Z\",\n            \"orderValue\": 1234.0,\n            \"reference\": \"340808\",\n            \"status\": \"PENDING\",\n            \"totalValue\": 1246.34,\n            \"vendorReference\": \"1234\"\n        },\n        {\n            \"barcode\": \"6377839860745768754\",\n            \"createdDate\": \"2019-01-07T13:24:48Z\",\n            \"expiryDate\": \"2019-01-08T13:24:48Z\",\n            \"orderValue\": 1234.0,\n            \"reference\": \"576875\",\n            \"status\": \"PENDING\",\n            \"totalValue\": 1246.34,\n            \"vendorReference\": \"1234\"\n        }\n    ],\n    \"first\": true,\n    \"last\": true,\n    \"number\": 0,\n    \"numberOfElements\": 2,\n    \"size\": 20,\n    \"sort\": null\n}\n</code></pre>\n<blockquote>\n<p><strong>Examples</strong></p>\n</blockquote>\n<p>Query Parameters\nsort: (string)\nsize: (integer)\npage: (integer)</p>\n<blockquote>\n<p>Find pending orders sorted by createdDate:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -v -b cookies.txt \"{{host}}/merchant/orders/pending?sort=createdDate\"\n</code></pre>\n<blockquote>\n<p>Find pending orders sorted by createdDate ascending, page size of 2:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -v -b cookies.txt \"{{host}}/merchant/orders/pending?sort=createdDate,asc&amp;size=2\"\n</code></pre>\n<blockquote>\n<p>Find pending orders sorted by createdDate ascending, page size of 2, and 3rd page:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -v -b cookies.txt \"{{host}}/merchant/orders/pending?sort=createdDate,asc&amp;size=2&amp;page=3\"\n</code></pre>\n","urlObject":{"path":["api","merchant","orders","pending"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ce127ac-88b5-4e7c-a633-56f068685f27"},{"name":"Find Expired Orders","id":"f3635add-db4d-4fa0-b774-694a0585aa8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/orders/expired","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"content\": [\n        {\n            \"barcode\": \"605002828627001075113012260\",\n            \"createdDate\": \"2007-11-30T10:16:23Z\",\n            \"expiryDate\": \"2007-11-30T10:26:37Z\",\n            \"orderValue\": 10.0,\n            \"reference\": \"828627\",\n            \"status\": \"EXPIRED\",\n            \"totalValue\": 10.75,\n            \"vendorReference\": \"1234\"\n        },\n        {\n            \"barcode\": \"605002673473013332120413085\",\n            \"createdDate\": \"2007-12-04T10:57:52Z\",\n            \"expiryDate\": \"2007-12-04T11:12:02Z\",\n            \"orderValue\": 131.32,\n            \"reference\": \"673473\",\n            \"status\": \"EXPIRED\",\n            \"totalValue\": 133.32,\n            \"vendorReference\": \"order_id\"\n        }\n    ],\n    \"first\": true,\n    \"last\": true,\n    \"number\": 0,\n    \"numberOfElements\": 2,\n    \"size\": 20,\n    \"sort\": null\n}\n</code></pre>\n<blockquote>\n<p><strong>Examples</strong></p>\n</blockquote>\n<p>Query Parameters\nsort: (string)\nsize: (integer)\npage: (integer)</p>\n<blockquote>\n<p>Find expired orders sorted by expiryDate:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -b cookies.txt \"{{host}}/merchant/orders/expired?sort=expiryDate\"\n</code></pre>\n<blockquote>\n<p>Show 5 results per page:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -b cookies.txt \"{{host}}/merchant/orders/expired?size=5\"\n</code></pre>\n<blockquote>\n<p>Sort by expiry date, desc, show 5 results per page, and 3rd page:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -b cookies.txt \"{{host}}/merchant/orders/expired?sort=expiryDate,desc&amp;size=5&amp;page=3\"\n</code></pre>\n","urlObject":{"path":["api","merchant","orders","expired"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3635add-db4d-4fa0-b774-694a0585aa8f"},{"name":"Find Paid Orders","id":"2f55290b-4a9d-4d1c-8e3b-a533a61173dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/orders/paid","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"content\": [\n        {\n            \"barcode\": \"605002062654016668031412380\",\n            \"createdDate\": \"2019-03-14T11:15:51Z,\n            \"expiryDate\": \"2019-03-17T11:15:51Z,\n            \"orderValue\": 164.43,\n            \"paymentDate\": \"\"2019-03-15T09:35:44Z\",\n            \"reference\": \"62654\",\n            \"status\": \"PAID\",\n            \"totalValue\": 166.68,\n            \"vendorReference\": \"order_id\"\n        },\n...\n        {\n            \"barcode\": \"6377839896340627813\",\n            \"createdDate\": \"2019-01-05T09:19:26Z\",\n            \"expiryDate\": \"2019-01-06T09:19:26Z\",\n            \"orderValue\": 1234.0,\n            \"reference\": \"62781\",\n            \"status\": \"PAID\",\n            \"totalValue\": 1246.34,\n            \"vendorReference\": \"1234\"\n        }\n    ],\n    \"first\": true,\n    \"last\": false,\n    \"number\": 0,\n    \"numberOfElements\": 20,\n    \"size\": 20,\n    \"sort\": null\n}\n\n</code></pre>\n<blockquote>\n<p><strong>Examples</strong></p>\n</blockquote>\n<p>Query Parameters\nsort: (string)\nsize: (integer)\npage: (integer)</p>\n<blockquote>\n<p>Find paid orders sorted by expiryDate:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -b cookies.txt \"{{host}}/merchant/orders/paid?sort=expiryDate\"\n</code></pre>\n<blockquote>\n<p>Show 5 results per page:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -b cookies.txt \"{{host}}/merchant/orders/paid?size=5\"\n</code></pre>\n<blockquote>\n<p>Sort by expiry date, desc, show 5 results per page, and 3rd page:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -b cookies.txt \"{{host}}/merchant/orders/paid?sort=expiryDate,desc&amp;size=5&amp;page=3\"\n</code></pre>\n","urlObject":{"path":["api","merchant","orders","paid"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f55290b-4a9d-4d1c-8e3b-a533a61173dd"},{"name":"Mark an Order Paid (Only for Cash Collection Clients)","event":[{"listen":"prerequest","script":{"id":"7fbbf962-9f82-45c8-8cd2-7a1107e08dc5","exec":["var sigString = pm.environment.get(\"barcode\") + \r","                pm.environment.get(\"vendorOrderReference\") +\r","                pm.environment.get(\"orderCurrencyCodeCreated\") +\r","                pm.environment.get(\"secretkeyLocal\");\r","var sign = CryptoJS.SHA256(sigString);\r","\r","postman.setGlobalVariable(\"sign\", sign);\r","\r","console.log(sigString);"],"type":"text/javascript"}}],"id":"9dd85046-0302-49eb-a210-6d17e0799677","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"clientname\": \"{{clientname}}\",\r\n\t\"pipit-ref\": \"{{barcode}}\",\r\n\t\"location-ref\" : \"another location\",\r\n\t\"payment-ref\": \"This is a supplied reference\",\r\n\t\"amount\": \"{{totalValue}}\",\r\n\t\"sign\": \"{{sign}}\",\r\n\t\"currency\": \"{{orderCurrencyCodeCreated}}\",\r\n\t\"address-line-1\": \"address-line-1\",\r\n\t\"address-line-2\": \"address-line-2\",\r\n\t\"address-line-3\": \"address-line-3\",\r\n\t\"address-line-4\": \"address-line-4\",\r\n\t\"city\": \"city\",\r\n\t\"post-code\": \"A Code\",\r\n\t\"country\": \"A Country\",\r\n\t\"latitude\": \"53.2724178\",\r\n\t\"longitude\": \"-9.0492046\"\r\n}"},"url":"{{host}}/api/merchant/v2/payorder","description":"<h2 id=\"note\">NOTE!</h2>\n<p>You will be unable to mark an order paid until you have contacted PiPiT Global's sales team to sign up to our service.</p>\n<blockquote>\n<p>Example Request</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"clientname\": \"Your Company Name\",\n    \"pipit-ref\": \"630070010575276263100002050\",\n    \"location-ref\": \"You supply this trackable location\",\n    \"payment-ref\": \"This is a supplied reference\",\n    \"total-value\": \"20.50\",\n    \"sign\": \"15b16e2e566ee881750946ee45632e9cd47684b12a29143ad14c88adbc066936\",\n    \"currency\": \"EUR\",\n    \"address-line-1\": \"address-line-1\",\n    \"address-line-2\": \"address-line-2\",\n    \"address-line-3\": \"address-line-3\",\n    \"address-line-4\": \"address-line-4\",\n    \"city\": \"city\",\n    \"post-code\": \"A Code\",\n    \"country\": \"A Country\",\n    \"latitude\": \"53.2724178\",\n    \"longitude\": \"-9.0492046\"\n}\n</code></pre>\n<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 \nLocation: {{host}}/api/merchant/v2/payorder\nContent-Type:application/json;\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"timestamp\": \"2019-05-27T15:32:03Z\",\n    \"code\": \"PAYMENT_SUCCESSFUL\",\n    \"message\": \"PayzoneIRL Payment Request Received: from IP (0:0:0:0:0:0:0:1)...barcode=630070017517011456600012050...order found...order value(amount) (incl fee) matches...currently unpaid...This is a payment message. PAID!\",\n    \"path\": \"/api/merchant/v2/payorder\"\n}\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>clientname</td>\n<td>string</td>\n<td>The 'Merchant Username' created at sign up</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>pipit-ref</td>\n<td>string</td>\n<td>The reference we use to find your order e.g. barcode</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>location-ref</td>\n<td>string</td>\n<td>You supply this trackable location reference</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>payment-ref</td>\n<td>string</td>\n<td>This is a supplied reference</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>total-value</td>\n<td>string</td>\n<td>The value of the order including fees</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>orderCurrencyCode</td>\n<td>string</td>\n<td>The <a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO-4217</a> currency code</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>sign</td>\n<td>string</td>\n<td>A sha256 hash value of the concenated of <em>pipit-ref</em> + <em>clientOrderReference</em> + <em>currency</em> + <em>secretkey</em></td>\n<td>✔</td>\n</tr>\n<tr>\n<td>address-line-1</td>\n<td>string</td>\n<td>Address Line</td>\n<td></td>\n</tr>\n<tr>\n<td>address-line-2</td>\n<td>string</td>\n<td>Address Line</td>\n<td></td>\n</tr>\n<tr>\n<td>address-line-3</td>\n<td>string</td>\n<td>Address Line</td>\n<td></td>\n</tr>\n<tr>\n<td>address-line-4</td>\n<td>string</td>\n<td>Address Line</td>\n<td></td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>city</td>\n<td></td>\n</tr>\n<tr>\n<td>post-code</td>\n<td>string</td>\n<td>post-code</td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>country</td>\n<td></td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>string</td>\n<td>latitude</td>\n<td></td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>string</td>\n<td>longitude</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Although the address information is not <strong>required</strong> we encourage you to supply as much information as possible when marking an order paid. This ensures all parties are complient with international rules on financial transactions.</p>\n<h1 id=\"sign\">SIGN</h1>\n<p>In order to secure transactions you must supply your secretkey as part of the seed for a sha256 hash value. This hash is created by concatenating <em>pipit-ref</em> + <em>clientOrderReference</em> + <em>currency</em> + <em>secretkey</em>. We can supply you with a Postman collection to aid you in your integration with our API. \nYour secret key is obtained via our <a href=\"https://merchant.pip-it.net/\">Client Dashboard</a>.</p>\n<p>For nodejs integrations the <a href=\"https://github.com/brix/crypto-js\">crypto-js</a> is an excellent resource and is used in our Postman scripts. Please use an equivalent library for your code base language. </p>\n<p><strong>crypto-js example</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">var sigString = \"630070010575276263100002050\" + \"This is a sample order\" + \"EUR\" + \"8d3a1d0292ec496da68da6599d214622\";\nCryptoJS.SHA256(sigString);\n</code></pre>\n","urlObject":{"path":["api","merchant","v2","payorder"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9dd85046-0302-49eb-a210-6d17e0799677"}],"id":"1e9da0b9-a4d9-431a-8e81-e160be55c595","event":[{"listen":"prerequest","script":{"id":"689ce151-fdaf-4584-a8c2-228a1d2b48ee","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7caadbea-8703-4d51-b3d1-8ae06f20184b","type":"text/javascript","exec":[""]}}],"_postman_id":"1e9da0b9-a4d9-431a-8e81-e160be55c595","description":""},{"name":"Cash-Out Orders","item":[{"name":"Create a Cash-Out","event":[{"listen":"test","script":{"id":"5ca8f131-6568-41b8-94a5-991e5f44fa8f","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"barcodeCashOut\", jsonData.barcode);"],"type":"text/javascript"}}],"id":"165326f7-4e66-4719-8953-e45a27fbc04f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"body":{"mode":"raw","raw":"{  \r\n    \"customerEmail\":\"{{customerEmail}}\",\r\n    \"orderCurrencyCode\":\"{{orderCurrencyCodeCreated}}\",\r\n    \"orderValue\":\"200\",\r\n    \"clientOrderReference\":\"Create CashOut Order Postman\",\r\n\t\"customerMobileNumber\": \"\",\r\n\t\"customerLanguage\" : \"ENG\",\r\n\t\"customerName\": \"Aileen Mabini Teves\",\r\n\t\"customerPhoneNumber\": \"0123456789\",\r\n\t\"customerDob\": \"01/09/1983\",\r\n\t\"customerIdentificationId\": \"P6849259A\",\r\n\t\"customerIdentificationType\": \"Passport\",\r\n\t\"customerIdentificationImage\": \"https://servers.pip-it.net/images/1AF3D6B3-9CEF-44C0-B09E-B3F967D828E8.jpg\",\r\n\t\"customerAddressLine1\": \"4579 V. Francisco St.\",\r\n\t\"customerAddressLine2\": \"Sta. Mesa\",\r\n\t\"customerAddressLine3\": \"Manila\",\r\n\t\"customerAddressLine4\": \"\",\r\n\t\"customerAddressLine5\": \"\",\r\n\t\"customerAddressLine6\": \"\",\r\n\t\"customerCountry\": \"Philippines\",\r\n\t\"customerTimezone\": \"GMT+8\",\r\n\t\"extraInfo\": \"Live CASH-OUT Test Order\",\r\n\t\"expireInSeconds\":286400\r\n}\r\n"},"url":"{{host}}/api/merchant/v2/orders/cashout","urlObject":{"path":["api","merchant","v2","orders","cashout"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"165326f7-4e66-4719-8953-e45a27fbc04f"},{"name":"Retrieve Details on CashOut Order Using a Barcode","event":[{"listen":"test","script":{"id":"d184c72a-1c51-42b0-b7fa-55cab58e3c5d","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"barcodeCashOut\", jsonData.barcode);\r","postman.setEnvironmentVariable(\"totalValue\", jsonData.totalValue);\r","postman.setEnvironmentVariable(\"orderCurrencyCodeCreated\", jsonData.currencyCode);\r","postman.setEnvironmentVariable(\"cashOutClientOrderReference\", jsonData.clientReference);\r","\r","//tests\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","pm.test(\"Status code is OK\", function () {\r","    pm.response.to.have.status(\"OK\");\r","});"],"type":"text/javascript"}}],"id":"268b8cc0-4e67-4f2d-b819-c4118e5c64ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{auth}}","type":"text"}],"url":"{{host}}/api/merchant/v2/orders/cashout/{{barcodeCashOut}}","urlObject":{"path":["api","merchant","v2","orders","cashout","{{barcodeCashOut}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"268b8cc0-4e67-4f2d-b819-c4118e5c64ae"},{"name":"Find Pending Cash-Out Orders","id":"a16bf096-5f96-4ad1-a93d-1a8255ebe112","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/cashout/pending","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"content\": [\n        {\n            \"barcode\": \"6377839815483408088\",\n            \"createdDate\": \"2019-01-07T07:01:25Z\",\n            \"expiryDate\": \"2019-01-08T07:01:25Z\",\n            \"orderValue\": 1234.0,\n            \"reference\": \"340808\",\n            \"status\": \"PENDING\",\n            \"totalValue\": 1246.34,\n            \"vendorReference\": \"1234\"\n        },\n        {\n            \"barcode\": \"6377839860745768754\",\n            \"createdDate\": \"2019-01-07T13:24:48Z\",\n            \"expiryDate\": \"2019-01-08T13:24:48Z\",\n            \"orderValue\": 1234.0,\n            \"reference\": \"576875\",\n            \"status\": \"PENDING\",\n            \"totalValue\": 1246.34,\n            \"vendorReference\": \"1234\"\n        }\n    ],\n    \"first\": true,\n    \"last\": true,\n    \"number\": 0,\n    \"numberOfElements\": 2,\n    \"size\": 20,\n    \"sort\": null\n}\n</code></pre>\n<blockquote>\n<p><strong>Examples</strong></p>\n</blockquote>\n<p>Query Parameters\nsort: (string)\nsize: (integer)\npage: (integer)</p>\n<blockquote>\n<p>Find pending orders sorted by createdDate:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -v -b cookies.txt \"{{host}}/merchant/orders/pending?sort=createdDate\"\n</code></pre>\n<blockquote>\n<p>Find pending orders sorted by createdDate ascending, page size of 2:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -v -b cookies.txt \"{{host}}/merchant/orders/pending?sort=createdDate,asc&amp;size=2\"\n</code></pre>\n<blockquote>\n<p>Find pending orders sorted by createdDate ascending, page size of 2, and 3rd page:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -v -b cookies.txt \"{{host}}/merchant/orders/pending?sort=createdDate,asc&amp;size=2&amp;page=3\"\n</code></pre>\n","urlObject":{"path":["api","merchant","v2","cashout","pending"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a16bf096-5f96-4ad1-a93d-1a8255ebe112"}],"id":"39793c60-7801-4d24-9334-a7379e4b489f","_postman_id":"39793c60-7801-4d24-9334-a7379e4b489f","description":""},{"name":"Client Details & Settings","item":[{"name":"Account Registration","id":"2a64a996-4a5a-44ad-bcae-2cc382195510","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"{{companyName}}\",\r\n  \"username\": \"{{vendorName}}\",\r\n  \"password\": \"donttellanyone\",\r\n  \"ownerEmailAddress\": \"{{vendorEmail}}\"\r\n}"},"url":"{{host}}/api/merchant/register","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"timestamp\": \"2019-03-13T16:38:53Z\",\n    \"code\": \"MERCHANT_REGISTERED\",\n    \"message\": \"An email has been sent to your email address.  Please follow the instructions in the email to verify your account.\",\n    \"path\": \"/api/merchant/register\"\n}\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>The name of the merchant.</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>The username to use to log in.</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>The password to use to log in.</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>ownerEmailAddress</td>\n<td>string</td>\n<td>The email address of the owner. The registration verification email will be sent to this address.</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>notificationEmailAddress</td>\n<td>string</td>\n<td>Order notifications will be sent to this address. If not specified, this will default to the value of ownerEmailAddress</td>\n<td></td>\n</tr>\n<tr>\n<td>enableNotificationEmail</td>\n<td>boolean</td>\n<td>Should order notification emails be sent? Defaults to <code>true</code></td>\n<td></td>\n</tr>\n<tr>\n<td>orderCallbackUrl</td>\n<td>string</td>\n<td>The url to use for order callbacks</td>\n<td></td>\n</tr>\n<tr>\n<td>enableOrderCallbacks</td>\n<td>boolean</td>\n<td>Should order callbacks be invoked? Defaults to <code>true</code> if a <code>orderCallbackUrl</code> has been specified</td>\n<td></td>\n</tr>\n<tr>\n<td>orderExpiryTimeHours</td>\n<td>number</td>\n<td>The number of hours before an order expires. <code>Defaults to 72 (3 days)</code></td>\n<td></td>\n</tr>\n<tr>\n<td>secretKey</td>\n<td>string</td>\n<td>The key used to sign order requests</td>\n<td></td>\n</tr>\n<tr>\n<td>contactName</td>\n<td>string</td>\n<td>The contact person for the merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>telephoneNumber</td>\n<td>string</td>\n<td>The telephone number the contact person can be contacted on</td>\n<td></td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>The merchant's website</td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine1</td>\n<td>string</td>\n<td>The address of the merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine2</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine3</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine4</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine5</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine6</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>The country that the merchant is located in</td>\n<td></td>\n</tr>\n<tr>\n<td>timezone</td>\n<td>string</td>\n<td>The timezone of the merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>string</td>\n<td>The default currency code that merchant's orders are placed in</td>\n<td></td>\n</tr>\n<tr>\n<td>language</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","register"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a64a996-4a5a-44ad-bcae-2cc382195510"},{"name":"Account Verification","id":"c1eb6af1-c531-4c9a-bf8b-ec82f0ed596a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"url":"{{host}}/api/merchant/verify/{token}","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"timestamp\":\"2019-01-07T12:29:49Z\",\n    \"code\":\"MERCHANT_VERIFIED\",\n    \"message\":\"Your account has been verified successfully\",\n    \"path\":\"/api/merchant/verify/NzA1NjczMzMtYzIzNS00NDcxLThiMzctYjQxZTFlMzVhOTcy\"\n}\n</code></pre>\n<p>Verification of a merchants account allows the merchant to:</p>\n<ul>\n<li>Log in and use merchant's REST API</li>\n<li>Create an order using the merchant's username</li>\n</ul>\n","urlObject":{"path":["api","merchant","verify","{token}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1eb6af1-c531-4c9a-bf8b-ec82f0ed596a"},{"name":"Retrieve a Profile","id":"84fbb27d-6af1-427f-aff6-a20bb46c1987","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/profile","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"notificationEmailAddress\": {{customerEmail}},\n    \"orderCallbackUrl\": {{host}},\n    \"orderExpiryTimeHours\": 24,\n    \"secretKey\": null,\n    \"website\": null\n}\n</code></pre>\n","urlObject":{"path":["api","merchant","profile"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"84fbb27d-6af1-427f-aff6-a20bb46c1987"},{"name":"Update a Profile","id":"608e4855-d8b3-44f2-b182-75c8642707b4","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":false},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}","description":"<p>(Required) The bearer token returned from the login action</p>\n"}],"body":{"mode":"raw","raw":"{\r\n  \"notificationEmailAddress\": \"{{customerEmail}}\",\r\n  \"orderCallbackUrl\": \"{{orderCallbackUrl}}\",\r\n  \"orderExpiryTimeHours\": 22,\r\n  \"secretKey\": \"meowmeow\",\r\n  \"website\": null,\r\n  \"oldPassword\": \"myfirstsecret\",\r\n  \"newPassword\": \"mycurrentsecret\"\r\n}"},"url":"{{host}}/api/merchant/profile","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"code\": \"PROFILE_UPDATED\",\n    \"message\": \"Your account has been updated successfully.\",\n    \"path\": \"/api/merchant/profile\",\n    \"timestamp\": \"2019-03-14T11:15:51Z\"\n}\n</code></pre>\n<p>If a parameter is specified <strong>(even if it is null)</strong> it is assumed that the intent is to update the parameter (possibly to a null value). To leave a parameter unchanged, do not include it in the payload.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>notificationEmailAddress</td>\n<td>string</td>\n<td>The notification email address (cannot be specified as null)</td>\n</tr>\n<tr>\n<td>orderCallbackUrl</td>\n<td>string</td>\n<td>The order callback url</td>\n</tr>\n<tr>\n<td>orderExpiryTimeHours</td>\n<td>string</td>\n<td>The order expiry time in hours (cannot be specified as null)</td>\n</tr>\n<tr>\n<td>secretKey</td>\n<td>string</td>\n<td>The secret key</td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>The merchant's website address</td>\n</tr>\n<tr>\n<td>newPassword</td>\n<td>string</td>\n<td>The new password (cannot be specified as null)</td>\n</tr>\n<tr>\n<td>oldPassword</td>\n<td>string</td>\n<td>The existing password. <strong>Only</strong> required if newPassword is specified</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","profile"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"608e4855-d8b3-44f2-b182-75c8642707b4"},{"name":"Request a Password Reset Token","id":"31ba2edb-d557-42ae-97c2-48c07aaa0d51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"{{userName}}\"\r\n}"},"url":"{{host}}/api/merchant/reset-password-token","description":"<h2 id=\"requesting-a-password-reset-token\">Requesting a Password Reset Token</h2>\n<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"timestamp\": \"2019-03-14T11:15:51Z\",\n    \"code\": \"MERCHANT_RESET_PASSWORD_TOKEN_GENERATED\",\n    \"message\": \"An email has been sent to your email address with instructions on how to reset your password.\",\n    \"path\": \"/api/merchant/reset-password-token\"\n}\n</code></pre>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>The merchant's username (used to log in). Not necessarily the same as the merchant's name</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","reset-password-token"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"31ba2edb-d557-42ae-97c2-48c07aaa0d51"},{"name":"Reset a Password using a Password Reset Token","id":"2a3dbbfb-345b-4ec6-9a9f-db08aa130583","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"{{userName}}\",\r\n  \"token\": \"ZWI5MThhNGItOTBkZS00ZDI3LTk3ZjYtNTE1ZDA1MGVhMTMw\",\r\n  \"password\": \"p@ssword1\"\r\n}"},"url":"{{host}}/api/merchant/reset-password","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"code\":\"MERCHANT_RESET_PASSWORD_SUCCESS\",\n    \"message\":\"Your password has been reset.\",\n    \"timestamp\": \"2019-03-14T11:15:51Z,\n    \"path\":\"/api/merchant/reset-password\"\n}\n\n</code></pre>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>token</td>\n<td>string</td>\n<td>The token</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>The merchant's username (used to log in). Not necessarily the same at the merchant's name</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>The new password</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div><p>The token that needs to be supplied is sent in an email to the notification address of the merchant's account after successfully requesting a password reset token.</p>\n<h3 id=\"an-example-email-is-as-follows\">An example email is as follows:</h3>\n<p><em>Dear ACME TRADING,</em></p>\n<p><em>A request to reset your Pip-it password has been received.\nIn order to change your password, please click the following link: <br />\n{{host}}api/merchant/reset-password/<code>ZWI5MThhNGItOTBkZS00ZDI3LTk3ZjYtNTE1ZDA1MGVhMTMw</code>\n<br />\nPlease note that this link will expire at 22:09, 25 Jan, 2019</em></p>\n<p><em>Regards, The Pip-it Team</em></p>\n<p>In this example, the token is: <code>ZWI5MThhNGItOTBkZS00ZDI3LTk3ZjYtNTE1ZDA1MGVhMTMw</code><br /></p>\n<p>Clicking the link in the email will allow you to reset the password using a HTML form. The following sections describe the REST API for performing the same operation.</p>\n","urlObject":{"path":["api","merchant","reset-password"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a3dbbfb-345b-4ec6-9a9f-db08aa130583"},{"name":"Retrieve an Order Using a Barcode","id":"afad6fcd-63ab-419f-8e5d-5f6e5ea7304d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/order/{{barcode}}","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"barcode\":\"6377839824167832902\",\n  \"reference\":\"783290\",\n  \"vendorReference\":\"ABC-123\",\n  \"orderValue\":123.58,\n  \"totalValue\":124.82,\n  \"createdDate\":\"2019-03-07T12:40:12Z\",\n  \"expiryDate\":\"2019-03-10T12:40:12Z\",\n  \"status\":\"PENDING\"\n}\n</code></pre>\n","urlObject":{"path":["api","merchant","order","{{barcode}}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"afad6fcd-63ab-419f-8e5d-5f6e5ea7304d"},{"name":"Account Registration","id":"dcaea053-813e-4704-933f-5668801ea858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"{{companyName}}\",\r\n  \"username\": \"{{vendorName}}\",\r\n  \"password\": \"donttellanyone\",\r\n  \"ownerEmailAddress\": \"{{vendorEmail}}\"\r\n}"},"url":"{{host}}/api/merchant/v2/signUp","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"timestamp\": \"2019-03-14T11:00:28Z\",\n    \"code\": \"MERCHANT_REGISTERED\",\n    \"message\": \"An email has been sent to your email address.  Please follow the instructions in the email to verify your account.\",\n    \"path\": \"/api/merchant/v2/signUp\"\n}\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>The name of the merchant.</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>The username to use to log in.</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>The password to use to log in.</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>ownerEmailAddress</td>\n<td>string</td>\n<td>The email address of the owner. The registration verification email will be sent to this address.</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>notificationEmailAddress</td>\n<td>string</td>\n<td>Order notifications will be sent to this address. If not specified, this will default to the value of ownerEmailAddress</td>\n<td></td>\n</tr>\n<tr>\n<td>enableNotificationEmail</td>\n<td>boolean</td>\n<td>Should order notification emails be sent? Defaults to <code>true</code></td>\n<td></td>\n</tr>\n<tr>\n<td>orderCallbackUrl</td>\n<td>string</td>\n<td>The url to use for order callbacks</td>\n<td></td>\n</tr>\n<tr>\n<td>enableOrderCallbacks</td>\n<td>boolean</td>\n<td>Should order callbacks be invoked? Defaults to <code>true</code> if a <code>orderCallbackUrl</code> has been specified</td>\n<td></td>\n</tr>\n<tr>\n<td>orderExpiryTimeHours</td>\n<td>number</td>\n<td>The number of hours before an order expires. <code>Defaults to 72 (3 days)</code></td>\n<td></td>\n</tr>\n<tr>\n<td>secretKey</td>\n<td>string</td>\n<td>The key used to sign order requests</td>\n<td></td>\n</tr>\n<tr>\n<td>contactName</td>\n<td>string</td>\n<td>The contact person for the merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>telephoneNumber</td>\n<td>string</td>\n<td>The telephone number the contact person can be contacted on</td>\n<td></td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>The merchant's website</td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine1</td>\n<td>string</td>\n<td>The address of the merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine2</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine3</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine4</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine5</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>addressLine6</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>The country that the merchant is located in</td>\n<td></td>\n</tr>\n<tr>\n<td>timezone</td>\n<td>string</td>\n<td>The timezone of the merchant</td>\n<td></td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>string</td>\n<td>The default currency code that merchant's orders are placed in</td>\n<td></td>\n</tr>\n<tr>\n<td>language</td>\n<td>string</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","signUp"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dcaea053-813e-4704-933f-5668801ea858"},{"name":"Account Verification","id":"9d868c9c-0ded-4217-91b1-54784dea5305","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"{{companyName}}\",\r\n  \"username\": \"{{vendorName}}\",\r\n  \"password\": \"donttellanyone\",\r\n  \"ownerEmailAddress\": \"{{vendorEmail}}\"\r\n}"},"url":"{{host}}/api/merchant/v2/verify","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"timestamp\":\"2019-03-07T12:29:49Z\",\n    \"code\":\"MERCHANT_VERIFIED\",\n    \"message\":\"Your account has been verified successfully\",\n    \"path\":\"/api/merchant/verify/NzA1NjczMzMtYzIzNS00NDcxLThiMzctYjQxZTFlMzVhOTcy\"\n}\n</code></pre>\n<p>Verification of a merchants account allows the merchant to:</p>\n<p>Log in and use the merchant REST API\nCreate an order using the merchant's username</p>\n","urlObject":{"path":["api","merchant","v2","verify"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d868c9c-0ded-4217-91b1-54784dea5305"},{"name":"Reset the Password Using the Token","id":"ce395b3e-ec49-4b89-8563-0939aa645542","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"token\": \"ZWI5MThhNGItOTBkZS00ZDI3LTk3ZjYtNTE1ZDA1MGVhMTMw\",\r\n  \"password\": \"p@ssword1\"\r\n}"},"url":"{{host}}/api/merchant/v2/reset-password","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"timestamp\": \"2019-03-14T12:00:37Z\",\n    \"code\": \"MERCHANT_RESET_PASSWORD_SUCCESS\",\n    \"message\": \"Your password has been reset.\",\n    \"path\": \"/api/merchant/v2/reset-password\"\n}\n\n</code></pre>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>token</td>\n<td>string</td>\n<td>The token</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>The new password</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div><p>The token that needs to be supplied is sent in an email to the notification address of the merchant's account after successfully requesting a password reset token.</p>\n<h3 id=\"an-example-email-is-as-follows\">An example email is as follows:</h3>\n<p><em>Dear ACME TRADING,</em></p>\n<p><em>A request to reset your Pip-it password has been received.\nIn order to change your password, please click the following link: <br />\n{{host}}/api/merchant/v2/reset-password/<code>ZWI5MThhNGItOTBkZS00ZDI3LTk3ZjYtNTE1ZDA1MGVhMTMw</code>\n<br />\nPlease note that this link will expire at 22:09, 25 Jan, 2019</em></p>\n<p><em>Regards, The Pip-it Team</em></p>\n<p>In this example, the token is: <code>ZWI5MThhNGItOTBkZS00ZDI3LTk3ZjYtNTE1ZDA1MGVhMTMw</code><br /></p>\n<p>Clicking the link in the email will allow you to reset the password using a HTML form. The following sections describe the REST API for performing the same operation.</p>\n","urlObject":{"path":["api","merchant","v2","reset-password"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce395b3e-ec49-4b89-8563-0939aa645542"},{"name":"Request a Password Reset Token","id":"4c632e8d-446b-4c9e-9fc2-62d8b28e021f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"{{vendorName}}\"\r\n}"},"url":"{{host}}/api/merchant/v2/reset-password/request-token","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type: application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"timestamp\": \"2019-03-14T11:58:31Z\",\n    \"code\": \"MERCHANT_RESET_PASSWORD_TOKEN_GENERATED\",\n    \"message\": \"An email has been sent to your email address with instructions on how to reset your password.\",\n    \"path\": \"/api/merchant/v2/reset-password/request-token\"\n}\n</code></pre>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>The merchant's username (used to log in). Not necessarily the same as the merchant's name</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","reset-password","request-token"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c632e8d-446b-4c9e-9fc2-62d8b28e021f"},{"name":"Retrieve All Settlements","id":"c58c0ffa-7516-4cc7-b079-cc95d655605c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/settled","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"content\": [\n    {\n      \"id\": 6150,\n      \"vendor\": \"PiP Payments Ltd\",\n      \"currency\": \"GBP\",\n      \"reportDate\": \"2019-2-11T00:00:00Z\",\n      \"reportEndDate\": \"2098-2-11T00:00:00Z\",\n      \"reportStartDate\": \"2019-1-29T00:00:00Z\",\n      \"reportRunDate\": \"2019-2-12T04:10:00Z\",\n      \"totalSalesSoFar\": 1001.5,\n      \"totalVendorSalesSoFar\": 999.5,\n      \"totalCountSoFar\": 4,\n      \"totalValueOwedSoFar\": 965.12,\n      \"previouslyPaidThisMonth\": 0,\n      \"unpaidLastMonth\": 0,\n      \"totalPaidThisTime\": 963.12,\n      \"totalOwedThisMonth\": 963.12\n    }\n  ],\n  \"totalPages\": 15,\n  \"last\": false,\n  \"totalElements\": 15,\n  \"numberOfElements\": 1,\n  \"sort\": [\n    {\n      \"direction\": \"ASC\",\n      \"property\": \"reportStartDate\",\n      \"ignoreCase\": false,\n      \"nullHandling\": \"NATIVE\",\n      \"descending\": false,\n      \"ascending\": true\n    }\n  ],\n  \"first\": false,\n  \"size\": 1,\n  \"number\": 2\n}\n\n</code></pre>\n<blockquote>\n<p><strong>Examples</strong></p>\n</blockquote>\n<p>Query Parameters</p>\n<p>sort: (string)\nsize: (integer)\npage: (integer)</p>\n<blockquote>\n<p>Find settled orders sorted by start date:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -H \"{{auth}}\" {{host}}/merchant/v2/settled?sort=reportStartDate\n</code></pre>\n<blockquote>\n<p>Sorted by start date, showing 2 results per page,:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -H \"{{auth}}\" {{host}}/merchant/v2/settled?sort=reportStartDate,asc&amp;size=2\n</code></pre>\n<blockquote>\n<p>Sort by start date, showing 2 results per page, and the 3rd page:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -H \"{{auth}}\" {{host}}/merchant/v2/settled?sort=reportStartDate,asc&amp;size=2&amp;page=3\n</code></pre>\n","urlObject":{"path":["api","merchant","v2","settled"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c58c0ffa-7516-4cc7-b079-cc95d655605c"},{"name":"Retrieve All Settlements by Currency","id":"54768828-8637-4916-ac5d-92edaa602ff8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/settled/{currency}/{dateFrom}/{dateTo}","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"content\": [\n    {\n      \"id\": 6150,\n      \"vendor\": {{vendorName}},\n      \"currency\": \"GBP\",\n      \"reportDate\": \"2019-2-11T00:00:00Z\",\n      \"reportEndDate\": \"2019-2-11T00:00:00Z\",\n      \"reportStartDate\": \"2019-1-29T00:00:00Z\",\n      \"reportRunDate\": \"2019-2-12T04:10:00Z\",\n      \"totalSalesSoFar\": 1001.5,\n      \"totalVendorSalesSoFar\": 999.5,\n      \"totalCountSoFar\": 4,\n      \"totalValueOwedSoFar\": 965.12,\n      \"previouslyPaidThisMonth\": 0,\n      \"unpaidLastMonth\": 0,\n      \"totalPaidThisTime\": 963.12,\n      \"totalOwedThisMonth\": 963.12\n    }\n  ],\n  \"totalPages\": 15,\n  \"last\": false,\n  \"totalElements\": 15,\n  \"numberOfElements\": 1,\n  \"sort\": [\n    {\n      \"direction\": \"ASC\",\n      \"property\": \"reportStartDate\",\n      \"ignoreCase\": false,\n      \"nullHandling\": \"NATIVE\",\n      \"descending\": false,\n      \"ascending\": true\n    }\n  ],\n  \"first\": false,\n  \"size\": 1,\n  \"number\": 2\n}\n\n</code></pre>\n<blockquote>\n<p><strong>Examples</strong></p>\n</blockquote>\n<p>Query Parameters\nsort: (string)\nsize: (integer)\npage: (integer)</p>\n<blockquote>\n<p>Find settled Euro orders between two dates, sorted by start date:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -H \"{{auth}}\" {{host}}/merchant/v2/settled/EUR/2001-01-01/2002-01-02?sort=reportStartDate\n</code></pre>\n<blockquote>\n<p>Sorted by start date, showing 2 results per page,:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -H \"{{auth}}\" {{host}}/merchant/v2/settled/EUR/2001-01-01/2002-01-02?sort=reportStartDate,asc&amp;size=2\n</code></pre>\n<blockquote>\n<p>Sort by start date, ascending, showing 2 results per page, and the 3rd page:</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -H \"{{auth}}\" ${{host}}/merchant/v2/settled/EUR/2001-01-01/2002-01-02?sort=reportStartDate,asc&amp;size=2&amp;page=3\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>The <a href=\"https://www.iso.org/iso-4217-currency-codes.html\">ISO-4217</a> currency code</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>dateFrom</td>\n<td>string</td>\n<td>First date</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>dateTo</td>\n<td>string</td>\n<td>End date</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","settled","{currency}","{dateFrom}","{dateTo}"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"54768828-8637-4916-ac5d-92edaa602ff8"},{"name":"Retrieve Orders by Settlement","id":"f7f3b8d5-9cc3-4601-b7ef-100401118e86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/settled/{settlementId}/orders","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 6077,\n    \"barcode\": \"6300708045050663\",\n    \"reference\": \"804505\",\n    \"vendorReference\": \"ABC-123\",\n    \"currencyCode\": \"EUR\",\n    \"orderValue\": 123.58,\n    \"totalValue\": 124.08,\n    \"fee\": 0.5,\n    \"createdDate\": \"2019-02-28T15:51:42Z\",\n    \"expiryDate\": \"2019-03-01T15:51:42Z\",\n    \"status\": \"PENDING\",\n    }\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>settlementId</td>\n<td>string</td>\n<td>settlement ID</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","settled","{settlementId}","orders"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7f3b8d5-9cc3-4601-b7ef-100401118e86"}],"id":"5418bc68-8b0d-4daf-8d1c-429d6c63f640","event":[{"listen":"prerequest","script":{"id":"7ba01e87-b7b2-4f0a-a4e7-077a62013602","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"525aad81-4055-4f8d-bef9-2a3d71aa7288","type":"text/javascript","exec":[""]}}],"_postman_id":"5418bc68-8b0d-4daf-8d1c-429d6c63f640","description":""},{"name":"Billstack API","item":[{"name":"/api/billstack/v2/countries","id":"33382d51-96fd-467b-8ca8-233e99d288df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{auth}}","type":"text"}],"url":"{{host}}/api/billstack/v2/countries","urlObject":{"path":["api","billstack","v2","countries"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"33382d51-96fd-467b-8ca8-233e99d288df"},{"name":"/api/billstack/v2/billers","id":"278c771b-727b-4cec-b45d-557891cca720","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{auth}}","type":"text"}],"url":"{{host}}/api/billstack/v2/billers","urlObject":{"path":["api","billstack","v2","billers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"278c771b-727b-4cec-b45d-557891cca720"},{"name":"/api/billstack/v2/Echo","id":"4fb45252-c7fb-4d5e-bc0f-88c56a1ad0d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/billstack/v2/Echo","urlObject":{"path":["api","billstack","v2","Echo"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4fb45252-c7fb-4d5e-bc0f-88c56a1ad0d2"},{"name":"/api/billstack/v2/country/MEX/billers","id":"ab2d7376-1da2-459f-8dea-55584357d858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{host}}/api/billstack/v2/country/MEX/billers","urlObject":{"path":["api","billstack","v2","country","MEX","billers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ab2d7376-1da2-459f-8dea-55584357d858"},{"name":"/api/billstack/v2/biller/484000000000200/services","id":"d8ba086f-9a51-4050-af9b-005dbf065c3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{{auth}}","type":"text"}],"url":"{{host}}/api/billstack/v2/biller/484000000000200/services","urlObject":{"path":["api","billstack","v2","biller","484000000000200","services"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8ba086f-9a51-4050-af9b-005dbf065c3c"},{"name":"/api/billstack/v2/biller/484000000000200/service/00000000000000000001/io","id":"1716ca62-8f6a-4997-8ad7-ed664cad84e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{auth}}","type":"text"}],"url":"{{host}}/api/billstack/v2/biller/484000000000200/service/00000000000000000001/io","urlObject":{"path":["api","billstack","v2","biller","484000000000200","service","00000000000000000001","io"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1716ca62-8f6a-4997-8ad7-ed664cad84e8"},{"name":"/api/billstack/v2/country/MEX/type/Utility/billers","id":"3e989362-2a59-43b9-b1ef-916a1056e7c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{auth}}","type":"text"}],"url":"{{host}}/api/billstack/v2/country/MEX/type/Mobile Postpaid/billers","urlObject":{"path":["api","billstack","v2","country","MEX","type","Mobile Postpaid","billers"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e989362-2a59-43b9-b1ef-916a1056e7c1"},{"name":"/api/billstack/v2/billers/types","id":"a841604d-ab3e-4f09-bfec-28f2dc134fe8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{auth}}","type":"text"}],"url":"{{host}}/api/billstack/v2/billers/types","urlObject":{"path":["api","billstack","v2","billers","types"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a841604d-ab3e-4f09-bfec-28f2dc134fe8"},{"name":"/api/billstack/v2/AmountDue","id":"cde4978f-2b0c-455e-9008-fcb862d27c20","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":"{{auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"locationID\" : \"1\",\n\t\"pointOfSaleID\" : \"1\",\n\t\"cashierID\" : \"PiP iT\",\n\t\"entityTransactionID\" : \"1000\",\n\t\"entityCustomerID\" : \"1\",\n\t\"billerID\" : \"484000000000200\",\n\t\"sku\" : \"00000000000000000001\",\n\t\"inputs\" : \"734794343987\"\n}"},"url":"{{host}}/api/billstack/v2/AmountDue","urlObject":{"path":["api","billstack","v2","AmountDue"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cde4978f-2b0c-455e-9008-fcb862d27c20"},{"name":"/api/billstack/v2/DailyFXRate","id":"ac8f8a8a-fd63-496c-801b-74d75a14c08e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"raw","raw":"{\n\t\"baseCurrency\" : \"USD\",\n\t\"settlementCurrency\" : \"MXN\",\n\t\"fxdate\" : \"20191009\"\n}"},"url":"{{host}}/api/billstack/v2/DailyFXRate","urlObject":{"path":["api","billstack","v2","DailyFXRate"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac8f8a8a-fd63-496c-801b-74d75a14c08e"},{"name":"/api/billstack/v2/ProcessPayment","id":"982101af-ee0c-4401-bb9b-75c7c217a83c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"raw","raw":"{\n\t\"locationID\" : \"1\",\n\t\"pointOfSaleID\" : \"1\",\n\t\"cashierID\" : \"PiP iT\",\n\t\"entityTransactionID\" : \"2019-09-05 15:45:28\",\n\t\"entityCustomerID\" : \"1\",\n\t\"billerID\" : \"484000000000200\",\n\t\"sku\" : \"00000000000000000001\",\n\t\"input1\" : \"734794343987|X\",\n\t\"amount\" : \"100.00\"\n}\n"},"url":"http://localhost:8080/api/billstack/v2/ProcessPayment","urlObject":{"protocol":"http","port":"8080","path":["api","billstack","v2","ProcessPayment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"982101af-ee0c-4401-bb9b-75c7c217a83c"},{"name":"/api/billstack/v2/VerifyPaymentStatus","id":"350a4938-f5e0-475c-8802-8fe92e842351","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":"{{auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"locationID\" : \"1\",\n\t\"pointOfSaleID\" : \"1\",\n\t\"cashierID\" : \"PiP iT\",\n\t\"entityTransactionID\" : \"1001\",\n\t\"entityTransactionIDVerify\" : \"1000\"\n}\n"},"url":"{{host}}/api/billstack/v2/VerifyPaymentStatus","urlObject":{"path":["api","billstack","v2","VerifyPaymentStatus"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"350a4938-f5e0-475c-8802-8fe92e842351"},{"name":"/api/billstack/v2/quoteMePrice","event":[{"listen":"test","script":{"id":"4b4027c8-41a2-4b41-9d35-f656ac3f1855","exec":["var jsonData = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"baseCurrencyB\", jsonData.baseCurrencyB);\r","postman.setEnvironmentVariable(\"settlementCurrencyB\", jsonData.settlementCurrencyB);\r","postman.setEnvironmentVariable(\"settlementAmount\", jsonData.settlementAmount);\r","postman.setEnvironmentVariable(\"priceValidForDay\", jsonData.priceValidForDay);\r","postman.setEnvironmentVariable(\"priceValidUntil\", jsonData.priceValidUntil);\r","console.log(JSON.stringify(pm.response.text(), null,\"\"));"],"type":"text/javascript"}}],"id":"054919d2-c4f0-4526-bbd0-eeaefb2af40f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{auth}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"baseCurrency\": \"{{baseCurrencyB}}\",\n    \"settlementCurrency\": \"{{settlementCurrencyB}}\",\n    \"settlementAmount\": \"{{settlementAmount}}\",\n    \"priceValidForDay\": \"{{priceValidForDay}}\",\n    \"priceValidUntil\": \"{{priceValidUntil}}\"\n}"},"url":"{{host}}/api/billstack/v2/quoteMePrice","description":"<p>Get a Fx Quotation.</p>\n","urlObject":{"path":["api","billstack","v2","quoteMePrice"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"054919d2-c4f0-4526-bbd0-eeaefb2af40f"}],"id":"eb69f6e0-0327-4285-9047-1a58d73e58d9","event":[{"listen":"prerequest","script":{"id":"690a0d1c-b0a3-485c-a9d5-be214089667c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e8ba384c-b7f1-4bda-92ed-6033bdf03542","type":"text/javascript","exec":[""]}}],"_postman_id":"eb69f6e0-0327-4285-9047-1a58d73e58d9","description":""},{"name":"Services","item":[{"name":"Retrieve List of All Countries","id":"fc14e807-a5bc-40fa-baaa-2fda2aee5cb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/countries","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"code\": \"UK\",\n    \"title\": \"United Kingdom\"\n  },\n  {\n    \"code\": \"IE\",\n    \"title\": \"Ireland\"\n  },\n  {\n    \"code\": \"DE\",\n    \"title\": \"Germany\"\n  },\n  {\n    \"code\": \"AU\",\n    \"title\": \"Australia\"\n  },\n  {\n    \"code\": \"CH\",\n    \"title\": \"Switzerland\"\n  },\n  {\n    \"code\": \"IT\",\n    \"title\": \"Italy\"\n  },\n  {\n    \"code\": \"SA\",\n    \"title\": \"Saudi Arabia\"\n  }\n]\n\n</code></pre>\n","urlObject":{"path":["api","merchant","v2","countries"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc14e807-a5bc-40fa-baaa-2fda2aee5cb5"},{"name":"Retrieve Services for Country","id":"6ebf48b5-b11f-482b-bc4e-451fe425251e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/countries/{country}/services","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"serviceName\": \"CashIn-Live\"\n  },\n  {\n    \"serviceName\": \"CashIn-Batch\"\n  },\n  {\n    \"serviceName\": \"Billers-Live\"\n  },\n  {\n    \"serviceName\": \"Billers-Batch\"\n  }\n]\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>The <a href=\"https://www.iso.org/iso-3166-country-codes.html\">ISO-3166</a> country code</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","countries","{country}","services"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ebf48b5-b11f-482b-bc4e-451fe425251e"},{"name":"Retrieve Country Service Details","id":"f9cd3fda-0cc9-4730-9eee-165786958c60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/countries/{country}/services/{service}/details","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"bands\": [\n    {\n      \"frequency\": null,\n      \"notification\": \"callback\",\n      \"time\": \"08:20Z\",\n      \"feePerOrder\": 0.5,\n      \"percentage\": 1,\n      \"min\": 20,\n      \"max\": 999.99\n    }\n  ]\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>The <a href=\"https://www.iso.org/iso-3166-country-codes.html\">ISO-3166</a> country code</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>service</td>\n<td>string</td>\n<td>service name</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","countries","{country}","services","{service}","details"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9cd3fda-0cc9-4730-9eee-165786958c60"},{"name":"Retrieve Country Services for Client","id":"1b652935-4a4b-4baa-8fa8-32a0f078682e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/client/{clientID}/countries/{country}/services","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n  {\n    \"serviceName\": \"CashIn-Live\"\n  },\n  {\n    \"serviceName\": \"CashIn-Batch\"\n  },\n  {\n    \"serviceName\": \"Billers-Live\"\n  },\n  {\n    \"serviceName\": \"Billers-Batch\"\n  }\n]\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>vendorId</td>\n<td>string</td>\n<td>vendor ID</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","client","{clientID}","countries","{country}","services"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b652935-4a4b-4baa-8fa8-32a0f078682e"},{"name":"Retrieve Country Service Details for Client","id":"6ae45c4d-ab05-4f5b-8b35-6bee62b0416d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/client/{clientId}/countries/{country}/services/{service}/details","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"bands\": [\n    {\n      \"frequency\": null,\n      \"notification\": \"callback\",\n      \"time\": \"08:20Z\",\n      \"feePerOrder\": 0.5,\n      \"percentage\": 1,\n      \"min\": 20,\n      \"max\": 999.99\n    }\n  ]\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>vendorId</td>\n<td>string</td>\n<td>vendor ID</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>The <a href=\"https://www.iso.org/iso-3166-country-codes.html\">ISO-3166</a> country code</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>service</td>\n<td>string</td>\n<td>service name</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","client","{clientId}","countries","{country}","services","{service}","details"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ae45c4d-ab05-4f5b-8b35-6bee62b0416d"},{"name":"Retrieve List of All Countries for Client","id":"f6bca4ef-ed71-4345-8734-32e550dd94c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","type":"text","value":"{{auth}}"}],"url":"{{host}}/api/merchant/v2/client/{clientID}/countries","description":"<blockquote>\n<p>Example Response</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-yaml\">HTTP/1.1 200 OK\nContent-Type:application/json;charset=UTF-8\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"bands\": [\n    {\n      \"frequency\": null,\n      \"notification\": \"callback\",\n      \"time\": \"08:20Z\",\n      \"feePerOrder\": 0.5,\n      \"percentage\": 1,\n      \"min\": 20,\n      \"max\": 999.99\n    }\n  ]\n}\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>vendorId</td>\n<td>string</td>\n<td>vendor ID</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>The <a href=\"https://www.iso.org/iso-3166-country-codes.html\">ISO-3166</a> country code</td>\n<td>✔</td>\n</tr>\n<tr>\n<td>service</td>\n<td>string</td>\n<td>service name</td>\n<td>✔</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","merchant","v2","client","{clientID}","countries"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6bca4ef-ed71-4345-8734-32e550dd94c9"}],"id":"9401afbe-14f2-4b46-bfba-e0410ec64969","_postman_id":"9401afbe-14f2-4b46-bfba-e0410ec64969","description":""}],"event":[{"listen":"prerequest","script":{"id":"5449ce40-59bc-4d37-966b-d3c2aa940d3f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"01dfac62-1c37-4f94-ab6d-d7da611aec66","type":"text/javascript","exec":[""]}}]}