{"info":{"_postman_id":"f282c2aa-931d-4d1e-9080-ee1d8d7b9ab2","name":"POK Payments API","description":"<html><head></head><body><p>Production base url: <a href=\"https://api.pokpay.io\">https://api.pokpay.io</a></p>\n<p>Staging base url: <a href=\"https://api-staging.pokpay.io\">https://api-staging.pokpay.io</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17029398","collectionId":"f282c2aa-931d-4d1e-9080-ee1d8d7b9ab2","publishedId":"UVXojt72","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"008ACD"},"publishDate":"2022-01-24T10:51:15.000Z"},"item":[{"name":"Authentication API","item":[{"name":"Login to Payments API using keyId and keySecret","id":"a34d0cd5-37cf-4dac-b596-35c7bcecabc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"keyId\": \"{{keyId}}\",\n    \"keySecret\": \"{{keySecret}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/auth/sdk/login","description":"<p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>keyId</td>\n<td>String</td>\n<td>Received when adding new API key</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>keySecret</td>\n<td>String</td>\n<td>Received when adding new API key</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<p><strong>General response structure:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>statusCode</td>\n<td>Number</td>\n<td>HTTP status code</td>\n</tr>\n<tr>\n<td>serverStatusCode</td>\n<td>Number</td>\n<td>Server status code</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Object</td>\n<td>Response payload.</td>\n</tr>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Response message. In case of an unsuccessful request it is a message describing the error/s.</td>\n</tr>\n<tr>\n<td>errors</td>\n<td>Array</td>\n<td>List of errors in the request if any.</td>\n</tr>\n</tbody>\n</table>\n</div><p>The <strong>data</strong> field for each successful request contains different information. For this request its structure is given below:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>accessToken</td>\n<td>String</td>\n<td>Bearer token to authenticate API calls</td>\n</tr>\n<tr>\n<td>expiresIn</td>\n<td>Number</td>\n<td>Time until the access token expires.</td>\n</tr>\n<tr>\n<td>tokenType</td>\n<td>String</td>\n<td>Token type</td>\n</tr>\n<tr>\n<td>expiresAt</td>\n<td>Date</td>\n<td>Date and time when the access token will expire</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["auth","sdk","login"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"fe3dd195-80cc-4c02-8ff6-56d63d51e04a","name":"200 Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"keyId\": \"{{keyId}}\",\n    \"keySecret\": \"{{keySecret}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/auth/sdk/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 11:59:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"683"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-headers","value":"*"},{"key":"access-control-allow-methods","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 200,\n    \"data\": {\n        \"accessToken\": \"{{accessToken}}\",\n        \"expiresIn\": \"3600000\",\n        \"tokenType\": \"bearer\",\n        \"expiresAt\": \"2022-01-20T12:59:36.400Z\"\n    },\n    \"message\": \"Success\",\n    \"errors\": []\n}"},{"id":"c2f2e76f-3e51-4c5c-8062-18cc1c4b2cae","name":"403 Forbidden","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"keyId\": \"{{keyId}}\",\n    \"keySecret\": \"{{keySecret}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/auth/sdk/login"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 11:56:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"176"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 403,\n    \"error\": \"Forbidden\",\n    \"message\": \"Your credentials are incorrect. Please change your credentials and try again\",\n    \"data\": {},\n    \"serverStatusCode\": 1000403,\n    \"errors\": []\n}"},{"id":"49434e9e-19f3-4cd7-b639-0efcab361d8e","name":"400 Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"keyId\": \"{{keyId}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/auth/sdk/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Jan 2022 14:11:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"202"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"\\\"keySecret\\\" is required\",\n    \"errors\": [\n        {\n            \"key\": \"keySecret\",\n            \"message\": \"\\\"keySecret\\\" is required\",\n            \"type\": \"any.required\"\n        }\n    ],\n    \"data\": {},\n    \"serverStatusCode\": 400\n}"}],"_postman_id":"a34d0cd5-37cf-4dac-b596-35c7bcecabc7"}],"id":"1b8bd7ca-19d3-4c40-8f73-336e022783c5","description":"<p>Authentication API provides an <code>accessToken</code> which can be used to access Payments API.</p>\n","_postman_id":"1b8bd7ca-19d3-4c40-8f73-336e022783c5"},{"name":"Merchant Orders API","item":[{"name":"Create an Order","id":"76c1aa64-6379-4936-8b3b-4d89e0138fe2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 15000,\n    \"splitWith\": {\n        \"merchantId\": \"{{splitWithMerchantId}}\",\n        \"amount\": 1000\n    },\n    \"currencyCode\": \"ALL\",\n    \"autoCapture\": false,\n    \"shippingCost\": 0,\n    \"webhookUrl\": \"{{webhookUrl}}\",\n    \"redirectUrl\": \"{{redirectUrl}}\",\n    \"failRedirectUrl\": \"{{failRedirectUrl}}\",\n    \"deeplink\": \"{{deeplink}}\",\n    \"expiresAfterMinutes\": 1440\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/merchants/:merchantId/sdk-orders","description":"<p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>amount</td>\n<td>Positive number</td>\n<td>The total amount of the order.</td>\n<td>Required if <strong>products</strong> is not supplied.</td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>String</td>\n<td>The currency code of the order.</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>autoCapture</td>\n<td>Boolean</td>\n<td><code>true</code> if the order's payment should be captured automatically, <code>false</code> if the merchant wants to capture it manually via Capture the Payment for Order.</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>Description of the new order.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>shippingCost</td>\n<td>Non-negative number</td>\n<td>The shipping cost of the order.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>webhookUrl</td>\n<td>String</td>\n<td>Webhook URL</td>\n<td>No</td>\n</tr>\n<tr>\n<td>redirectUrl</td>\n<td>String</td>\n<td>URL to redirect after order is confirmed</td>\n<td>No</td>\n</tr>\n<tr>\n<td>failRedirectUrl</td>\n<td>String</td>\n<td>URL to redirect if order payment fails</td>\n<td>No</td>\n</tr>\n<tr>\n<td>deeplink</td>\n<td>String</td>\n<td>Deeplink URL</td>\n<td>No</td>\n</tr>\n<tr>\n<td>products</td>\n<td>Array of products</td>\n<td>The structure of a product is given below.</td>\n<td>Required if <strong><code>amount</code></strong> is not supplied.</td>\n</tr>\n<tr>\n<td>splitWith</td>\n<td>Object</td>\n<td>Parameters needed when the merchant is splitting the order's payment amount with another merchant.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>splitWith.merchantId</td>\n<td>String UUIDv4</td>\n<td>The ID of the merchant to split the order's payment with. This merchant must have an account with the order currency, otherwise the payments will fail.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>splitWith.amount</td>\n<td>Positive Number</td>\n<td>The amount of the payment to split with the specified merchant. It has to be less than <strong>amount.</strong></td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>splitWith.userPhoneNumber</td>\n<td>String (phone number of the format +355xxxxxxxxx)</td>\n<td>The phone number of the user to split the payment with</td>\n<td>Required if <code>splitWith.merchantId</code> is not supplied</td>\n</tr>\n<tr>\n<td>merchantCustomReference</td>\n<td>String</td>\n<td>Merchant-generated order reference. It is recommended that you send a unique value for each order so that you can perform meaningful searches for the order.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>selectedBranchId</td>\n<td>String UUIDv4</td>\n<td>The branch id where the order was created.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>expiresAfterMinutes</td>\n<td>Positive number</td>\n<td>Set the <code>expiresAt</code> field of the created sdk order. If the given amount of minutes passes the sdk order can no longer be paid.</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div><p>Product</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>Name of the product</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Positive number</td>\n<td>Quantity of the product</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Positive number</td>\n<td>Price per product</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<p>sdkOrder: The created order matching the supplied payload.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String UUIDv4</td>\n<td>Unique identifier for the order.</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Positive number</td>\n<td>Total amount of the products in the order. If the <code>currencyCode</code> used to process the payment is different from <code>originalCurrencyCode</code>, this is the total converted amount.</td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>String</td>\n<td>Currency code which will be used to process the payment.</td>\n</tr>\n<tr>\n<td>originalCurrencyCode</td>\n<td>String</td>\n<td>Currency code on which the order is requested to be created.</td>\n</tr>\n<tr>\n<td>originalAmount</td>\n<td>Positive number</td>\n<td>Original total amount paid in the original currency code.</td>\n</tr>\n<tr>\n<td>appliedExchangeRate</td>\n<td>Positive number</td>\n<td>Applied exchange rate to calculate <code>amount</code> from <code>originalAmount</code></td>\n</tr>\n<tr>\n<td>products</td>\n<td>Array</td>\n<td>Array of products that are contained in the order.</td>\n</tr>\n<tr>\n<td>shippingCost</td>\n<td>Non-negative number</td>\n<td>Cost for shipping the order.</td>\n</tr>\n<tr>\n<td>finalAmount</td>\n<td>Positive number</td>\n<td>Amount of the order including shipping cost.</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>Date</td>\n<td>Date of creation of order.</td>\n</tr>\n<tr>\n<td>expiresAt</td>\n<td>Date</td>\n<td>Date of expiration of order.</td>\n</tr>\n<tr>\n<td>redirectUrl</td>\n<td>String</td>\n<td>URL to redirect to after confirming the order.</td>\n</tr>\n<tr>\n<td>failRedirectUrl</td>\n<td>String</td>\n<td>URL to redirect if order payment fails.</td>\n</tr>\n<tr>\n<td>merchant</td>\n<td>Object</td>\n<td>Information about the merchant who created the order.</td>\n</tr>\n<tr>\n<td>__self.confirmUrl</td>\n<td>String</td>\n<td>Webpage URL to confirm the order.</td>\n</tr>\n<tr>\n<td>__self.confirmDeeplink</td>\n<td>String</td>\n<td>Deeplink to POK app to confirm the order.</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>Description of the order.</td>\n</tr>\n<tr>\n<td>isCompleted</td>\n<td>Boolean</td>\n<td><code>true</code> if the order is completed successfully, <code>false</code> otherwise.</td>\n</tr>\n<tr>\n<td>isRefunded</td>\n<td>Boolean</td>\n<td><code>true</code> if the order is refunded by the merchant, <code>false</code> otherwise.</td>\n</tr>\n<tr>\n<td>merchantCustomReference</td>\n<td>String</td>\n<td>Merchant-generated order reference, specified when creating the order.</td>\n</tr>\n<tr>\n<td>selectedBranchId</td>\n<td>String UUIDv4</td>\n<td>Branch id where the order is created.</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>String UUIDv4</td>\n<td>Transaction id of the order payment.</td>\n</tr>\n</tbody>\n</table>\n</div><p>commissions</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>netAmount</td>\n<td>Positive number</td>\n<td>Total amount of the order and shipping without including commission.</td>\n</tr>\n<tr>\n<td>totalCommissionAmount</td>\n<td>Positive number</td>\n<td>Total commissions for the order.</td>\n</tr>\n<tr>\n<td>grossAmount</td>\n<td>Positive number</td>\n<td>Total amount to be paid including commission.</td>\n</tr>\n</tbody>\n</table>\n</div><p>In order to prefill the client information in the order confirmation page, the following query parameters can be added to the <code>confirmUrl</code> obtained by the response of creating a new order:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>firstName</td>\n<td>Client's first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>Client's last name</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Client's email</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Client's phone number</td>\n</tr>\n<tr>\n<td>country</td>\n<td>Client's country ISO 3166-1 alpha-2 code</td>\n</tr>\n<tr>\n<td>state</td>\n<td>Client's state if applicable</td>\n</tr>\n<tr>\n<td>city</td>\n<td>Client's city</td>\n</tr>\n<tr>\n<td>address</td>\n<td>Client's address</td>\n</tr>\n<tr>\n<td>zip</td>\n<td>Client's postal code</td>\n</tr>\n<tr>\n<td>language</td>\n<td>The language of the payment page. It can be any of the following: AL, EN, IT. Page default is EN.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example url to redirect the client to:</p>\n<p><code>{confirmUrl}?firstName=Test&amp;lastName=Client&amp;email=testclient@email.com&amp;country=AL&amp;city=Tirana&amp;language=AL</code></p>\n","urlObject":{"path":["merchants",":merchantId","sdk-orders"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{merchantId}}","key":"merchantId"}]}},"response":[{"id":"2e0bb5e8-0a73-4285-a627-44ca29a472ee","name":"200 Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}","type":"default"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 100,\n    \"currencyCode\": \"EUR\",\n    \"autoCapture\": true,\n    \"shippingCost\": 0,\n    \"webhookUrl\": \"{{webhookUrl}}\",\n    \"redirectUrl\": \"{{redirectUrl}}\",\n    \"deeplink\": \"{{deeplink}}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders"],"variable":[{"key":"merchantId","value":"{{merchantId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 12:30:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"448"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-headers","value":"*"},{"key":"access-control-allow-methods","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 201,\n    \"data\": {\n        \"sdkOrder\": {\n            \"id\": \"{{sdkOrderId}}\",\n            \"amount\": 100,\n            \"currencyCode\": \"ALL\",\n            \"products\": [\n                {\n                    \"name\": \"testProduct\",\n                    \"quantity\": 1,\n                    \"price\": 100\n                }\n            ],\n            \"originalCurrencyCode\": \"ALL\",\n            \"originalAmount\": 110,\n            \"appliedExchangeRate\": 1,\n            \"shippingCost\": 10,\n            \"finalAmount\": 110,\n            \"createdAt\": \"2022-12-28T13:40:10.625Z\",\n            \"expiresAt\": \"2022-12-29T13:40:10.625Z\",\n            \"redirectUrl\": null,\n            \"failRedirectUrl\": null,\n            \"_self\": {\n                \"confirmUrl\": \"{{confirmUrl}}\",\n                \"confirmDeeplink\": \"\"\n            },\n            \"description\": \"testSdk\",\n            \"isCompleted\": false,\n            \"isRefunded\": false,\n            \"merchantCustomReference\": null,\n            \"selectedBranchId\": null,\n            \"transactionId\": null\n        }\n    },\n    \"message\": \"Order created\",\n    \"errors\": []\n}"},{"id":"d8aa0362-279e-4f39-a662-69b93c64b329","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 15000,\n    \"currencyCode\": \"ALL\",\n    \"shippingCost\": 0,\n    \"webhookUrl\": \"{{webhookUrl}}\",\n    \"redirectUrl\": \"{{redirectUrl}}\",\n    \"deeplink\": \"{{deeplink}}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders"],"query":[{"key":"","value":null,"type":"default","disabled":true}],"variable":[{"key":"merchantId","value":"{{merchantId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Jan 2022 14:14:59 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"112"},{"key":"Connection","value":"keep-alive"},{"key":"WWW-Authenticate","value":"Token error=\"Invalid token format\""},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Token expired\",\n    \"data\": {},\n    \"serverStatusCode\": 401,\n    \"errors\": []\n}"},{"id":"0226393c-240d-4f09-a54a-8bd9ac003e41","name":"400 Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 15000,\n    \"currencyCode\": \"ALL\",\n    \"shippingCost\": 0,\n    \"webhookUrl\": \"{{webhookUrl}}\",\n    \"redirectUrl\": \"{{redirectUrl}}\",\n    \"deeplink\": \"{{deeplink}}\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders"],"query":[{"key":"","value":null,"type":"default","disabled":true}],"variable":[{"key":"merchantId","value":"{{merchantId}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Jan 2022 14:23:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"577"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"\\\"autoCapture\\\" is required. \\\"webhookUrl\\\" must be a valid uri. \\\"redirectUrl\\\" must be a valid uri. \\\"deeplink\\\" must be a valid uri\",\n    \"errors\": [\n        {\n            \"key\": \"autoCapture\",\n            \"message\": \"\\\"autoCapture\\\" is required\",\n            \"type\": \"any.required\"\n        },\n        {\n            \"key\": \"webhookUrl\",\n            \"message\": \"\\\"webhookUrl\\\" must be a valid uri\",\n            \"type\": \"string.uri\"\n        },\n        {\n            \"key\": \"redirectUrl\",\n            \"message\": \"\\\"redirectUrl\\\" must be a valid uri\",\n            \"type\": \"string.uri\"\n        },\n        {\n            \"key\": \"deeplink\",\n            \"message\": \"\\\"deeplink\\\" must be a valid uri\",\n            \"type\": \"string.uri\"\n        }\n    ],\n    \"data\": {},\n    \"serverStatusCode\": 400\n}"}],"_postman_id":"76c1aa64-6379-4936-8b3b-4d89e0138fe2"},{"name":"Capture the Payment for Order","id":"a3a516f5-e069-4fa4-9a21-d2217484b63c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{merchantAccessToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 1000,\n    \"splitWith\": {\n        \"merchantId\": \"8ee5193a-7592-464d-91ba-dc2206edd133\",\n        \"amount\": 100\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/capture","description":"<p>Captures the payment of an order. When the client confirms the order and the order <code>autoCapture</code> is <code>false</code>, calling this endpoint will result on the capture of the payment.</p>\n<p><strong>RESPONSE</strong></p>\n<p>sdkOrder: The order whose payment was captured.</p>\n<p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>amount</td>\n<td>Positive Number</td>\n<td>Amount to capture from the sdk order. This amount should be less than or equal to the sdk order total amount.</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>splitWith</td>\n<td>Object. Structure given below</td>\n<td>Information regarding the splitting of the captured payment with another merchant</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>splitWith</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>merchantId</td>\n<td>String (uuidv4)</td>\n<td>ID of the merchant to split the payment with</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Positive Number</td>\n<td>Amount from the order payment capture to send to the merchant with whom the payment will be split.</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","capture"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{merchantId}}","key":"merchantId"},{"description":{"content":"<p>(Required) </p>\n","type":"text/plain"},"type":"any","value":"{{sdkOrderId}}","key":"sdkOrderId"}]}},"response":[{"id":"0e8d5cab-de62-4529-9b97-aa8d0cd0406e","name":"200 Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{accessToken}}","type":"default"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 100\n}"},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/capture","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","capture"],"variable":[{"key":"merchantId","value":"{{merchantId}}","description":"(Required) "},{"key":"sdkOrderId","value":"{{sdkOrderId}}","description":"(Required) "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 23:47:34 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"665"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-headers","value":"*"},{"key":"access-control-allow-methods","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 201,\n    \"data\": {\n        \"sdkOrder\": {\n            \"id\": \"{{sdkOrderId}}\",\n            \"amount\": 100,\n            \"currencyCode\": \"ALL\",\n            \"products\": [\n                {\n                    \"name\": \"testProduct\",\n                    \"quantity\": 1,\n                    \"price\": 100\n                }\n            ],\n            \"originalCurrencyCode\": \"ALL\",\n            \"originalAmount\": 110,\n            \"appliedExchangeRate\": 1,\n            \"shippingCost\": 10,\n            \"finalAmount\": 110,\n            \"createdAt\": \"2022-12-28T13:40:10.625Z\",\n            \"expiresAt\": \"2022-12-29T13:40:10.625Z\",\n            \"redirectUrl\": null,\n            \"failRedirectUrl\": null,\n            \"_self\": {\n                \"confirmUrl\": \"{{confirmUrl}}\",\n                \"confirmDeeplink\": \"\"\n            },\n            \"description\": \"testSdk\",\n            \"isCompleted\": false,\n            \"isCanceled\": false,\n            \"isRefunded\": false,\n            \"merchantCustomReference\": null,\n            \"selectedBranchId\": null,\n            \"transactionId\": null\n        }\n    },\n    \"message\": \"Order created\",\n    \"errors\": []\n}"},{"id":"fc9d429c-f391-4a18-82a2-a096e81ccbb3","name":"404 Not Found","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"default"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 100\n}"},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/capture","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","capture"],"variable":[{"key":"merchantId","value":"{{merchantId}}","description":"(Required) "},{"key":"sdkOrderId","value":"{{sdkOrderId}}","description":"(Required) "}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 23:45:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"120"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"SDK order not found\",\n    \"data\": {},\n    \"serverStatusCode\": 99900404,\n    \"errors\": []\n}"},{"id":"b444c989-7efb-4898-b15d-1254c8eb07ea","name":"402 Insufficient Balance","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"default"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 100\n}"},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/capture","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","capture"],"variable":[{"key":"merchantId","value":"{{merchantId}}","description":"(Required) "},{"key":"sdkOrderId","value":"{{sdkOrderId}}","description":"(Required) "}]}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 23:44:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"185"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 402,\n    \"error\": \"Payment Required\",\n    \"message\": \"You do not have sufficient funds. Please top up your account!\",\n    \"data\": {\n        \"knownError\": true\n    },\n    \"serverStatusCode\": 2000402,\n    \"errors\": []\n}"}],"_postman_id":"a3a516f5-e069-4fa4-9a21-d2217484b63c"},{"name":"Refund the Payment for Order","id":"7cbf745a-2360-47d3-8335-4b740fb85fa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"refundReason\": \"Example reason\",\n    \"refundAmount\": 1000\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/refund","description":"<p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>refundReason</td>\n<td>String</td>\n<td>The reason for refunding the order</td>\n<td>No</td>\n</tr>\n<tr>\n<td>refundAmount</td>\n<td>Positive number</td>\n<td>The amount to refund from the order payment. If not specified the order will be fully refunded.</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","refund"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{merchantId}}","key":"merchantId"},{"type":"any","value":"{{sdkOrderId}}","key":"sdkOrderId"}]}},"response":[{"id":"5a0d4b69-2ec6-43b8-a01e-ced31aa33e4a","name":"200  Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"refundReason\": \"Example reason\",\n    \"refundAmount\": 100\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api-staging.pokpay.io/merchants/:merchantId/sdk-orders/:sdkOrderId/refund","protocol":"https","host":["api-staging","pokpay","io"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","refund"],"variable":[{"key":"merchantId","value":""},{"key":"sdkOrderId","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 31 Jan 2022 11:05:40 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"105"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 201,\n    \"data\": {\n        \"sdkOrder\": {\n            \"id\": \"{{sdkOrderId}}\",\n            \"amount\": 100,\n            \"currencyCode\": \"ALL\",\n            \"products\": [\n                {\n                    \"name\": \"testProduct\",\n                    \"quantity\": 1,\n                    \"price\": 100\n                }\n            ],\n            \"originalCurrencyCode\": \"ALL\",\n            \"originalAmount\": 110,\n            \"appliedExchangeRate\": 1,\n            \"shippingCost\": 10,\n            \"finalAmount\": 110,\n            \"createdAt\": \"2022-12-28T13:40:10.625Z\",\n            \"expiresAt\": \"2022-12-29T13:40:10.625Z\",\n            \"redirectUrl\": null,\n            \"failRedirectUrl\": null,\n            \"_self\": {\n                \"confirmUrl\": \"{{confirmUrl}}\",\n                \"confirmDeeplink\": \"\"\n            },\n            \"description\": \"testSdk\",\n            \"isCompleted\": false,\n            \"isCanceled\": false,\n            \"isRefunded\": true,\n            \"merchantCustomReference\": null,\n            \"selectedBranchId\": null,\n            \"transactionId\": \"{{transactionId}}\"\n        }\n    },\n    \"message\": \"Order created\",\n    \"errors\": []\n}"},{"id":"3b4e355a-300c-4107-b607-cf2e1d07fd94","name":"404 Not Found","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"default"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"refundReason\": \"example reason\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/refund","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","refund"],"variable":[{"key":"merchantId","value":"{{merchantId}}","description":"(Required) "},{"key":"sdkOrderId","value":"{{sdkOrderId}}","description":"(Required) "}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 23:45:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"120"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"SDK order not found\",\n    \"data\": {},\n    \"serverStatusCode\": 99900404,\n    \"errors\": []\n}"},{"id":"ba6fa0b7-b2ed-4f57-8417-a46c1b67f022","name":"402 Insufficient Balance","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"default"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"refundReason\": \"example reason\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/refund","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","refund"],"variable":[{"key":"merchantId","value":"{{merchantId}}","description":"(Required) "},{"key":"sdkOrderId","value":"{{sdkOrderId}}","description":"(Required) "}]}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 23:44:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"185"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 402,\n    \"error\": \"Payment Required\",\n    \"message\": \"You do not have sufficient funds. Please top up your account!\",\n    \"data\": {\n        \"knownError\": true\n    },\n    \"serverStatusCode\": 2000402,\n    \"errors\": []\n}"},{"id":"619564b0-6330-4333-8542-2509dac9fec4","name":"400 Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{accessToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/refund","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","refund"],"variable":[{"key":"merchantId","value":"{{merchantId}}"},{"key":"sdkOrderId","value":"{{sdkOrderId}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 21 Jan 2022 14:11:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"202"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"\\\"refundReason\\\" is required\",\n    \"errors\": [\n        {\n            \"key\": \"refundReason\",\n            \"message\": \"\\\"refundReason\\\" is required\",\n            \"type\": \"any.required\"\n        }\n    ],\n    \"data\": {},\n    \"serverStatusCode\": 400\n}"}],"_postman_id":"7cbf745a-2360-47d3-8335-4b740fb85fa0"},{"name":"Retrieve an Order (Detailed)","id":"6ecf27df-3e7e-427b-b5f3-d593fe1eec52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId","description":"<p>Get order details, along with merchant details and payment trials.</p>\n<p>Query Params</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>loadTransaction</td>\n<td>Boolean(true, false)</td>\n<td>Retrieve transacion information in the response payload.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<p>sdkOrder</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String UUIDv4</td>\n<td>Unique identifier for the order.</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Positive number</td>\n<td>Total amount of the products in the order. If the <code>currencyCode</code> used to process the payment is different from <code>originalCurrencyCode</code>, this is the total converted amount.</td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>String</td>\n<td>Currency code which will be used to process the payment.</td>\n</tr>\n<tr>\n<td>originalCurrencyCode</td>\n<td>String</td>\n<td>Currency code on which the order is requested to be created.</td>\n</tr>\n<tr>\n<td>originalAmount</td>\n<td>Positive number</td>\n<td>Original total amount paid in the original currency code.</td>\n</tr>\n<tr>\n<td>appliedExchangeRate</td>\n<td>Positive number</td>\n<td>Applied exchange rate to calculate <code>amount</code> from <code>originalAmount</code></td>\n</tr>\n<tr>\n<td>products</td>\n<td>Array</td>\n<td>Array of products that are contained in the order.</td>\n</tr>\n<tr>\n<td>shippingCost</td>\n<td>Non-negative number</td>\n<td>Cost for shipping the order.</td>\n</tr>\n<tr>\n<td>finalAmount</td>\n<td>Positive number</td>\n<td>Amount of the order including shipping cost.</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>Date</td>\n<td>Date of creation of order.</td>\n</tr>\n<tr>\n<td>expiresAt</td>\n<td>Date</td>\n<td>Date of expiration of order.</td>\n</tr>\n<tr>\n<td>redirectUrl</td>\n<td>String</td>\n<td>URL to redirect to after confirming the order.</td>\n</tr>\n<tr>\n<td>failRedirectUrl</td>\n<td>String</td>\n<td>URL to redirect to after the order payment fails.</td>\n</tr>\n<tr>\n<td>paymentMethod</td>\n<td>String('rpay-credit' or 'credit-debit-card')</td>\n<td>Whether the order is paid by POK credit or credit card.</td>\n</tr>\n<tr>\n<td>cardType</td>\n<td>String</td>\n<td>The brand of the card if the payment is made by card i.e. VISA, MasterCard etc</td>\n</tr>\n<tr>\n<td>merchant</td>\n<td>Object</td>\n<td>Information about the merchant who created the order.</td>\n</tr>\n<tr>\n<td>__self.confirmUrl</td>\n<td>String</td>\n<td>Webpage URL to confirm the order.</td>\n</tr>\n<tr>\n<td>__self.confirmDeeplink</td>\n<td>String</td>\n<td>Deeplink to POK app to confirm the order.</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>Description of the order.</td>\n</tr>\n<tr>\n<td>isCompleted</td>\n<td>Boolean</td>\n<td><code>true</code> if the order is completed successfully, <code>false</code> otherwise.</td>\n</tr>\n<tr>\n<td>isRefunded</td>\n<td>Boolean</td>\n<td><code>true</code> if the order is refunded by the merchant, <code>false</code> otherwise.</td>\n</tr>\n<tr>\n<td>merchantCustomReference</td>\n<td>String</td>\n<td>Merchant-generated order reference, specified when creating the order.</td>\n</tr>\n<tr>\n<td>paymentMethod</td>\n<td>String</td>\n<td>Payment method used to pay the order.</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>String UUIDv4</td>\n<td>The id of the transaction when the order is paid.</td>\n</tr>\n<tr>\n<td>sdkOrderPaymentFlows</td>\n<td>Array</td>\n<td>An array of all payment flows that are executed when trying to make the payment of the order. Each flow has steps which can be successful or not.</td>\n</tr>\n<tr>\n<td>issuer</td>\n<td>String</td>\n<td>Employee who created the order.</td>\n</tr>\n<tr>\n<td>selectedBranchId</td>\n<td>String UUIDv4</td>\n<td>Id of the branch where the order was created.</td>\n</tr>\n<tr>\n<td>hasFailedPaymentFlow</td>\n<td>Boolean</td>\n<td>Indicates if one of the payment flows faced any errors.</td>\n</tr>\n</tbody>\n</table>\n</div><p>commissions</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>netAmount</td>\n<td>Positive number</td>\n<td>Total amount of the order and shipping without including commission.</td>\n</tr>\n<tr>\n<td>totalCommissionAmount</td>\n<td>Positive number</td>\n<td>Total commissions for the order.</td>\n</tr>\n<tr>\n<td>grossAmount</td>\n<td>Positive number</td>\n<td>Total amount to be paid including commission.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["merchants",":merchantId","sdk-orders",":sdkOrderId"],"host":["{{baseUrl}}"],"query":[{"disabled":true,"key":"loadTransaction","value":"true"}],"variable":[{"type":"any","value":"{{merchantId}}","key":"merchantId"},{"type":"any","value":"{{sdkOrderId}}","key":"sdkOrderId"}]}},"response":[{"id":"85d1b2fe-8af6-4ee4-8be5-08c92ccf2af4","name":"200 Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"text"}],"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId"],"variable":[{"key":"merchantId","value":"{{merchantId}}"},{"key":"sdkOrderId","value":"{{sdkOrderId}}"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 200,\n    \"data\": {\n        \"sdkOrder\": {\n            \"id\": \"{{sdkOrderId}}\",\n            \"amount\": 100,\n            \"currencyCode\": \"EUR\",\n            \"originalCurrencyCode\": \"EUR\",\n            \"originalAmount\": 110,\n            \"appliedExchangeRate\": 1,\n            \"products\": [\n                {\n                    \"name\": \"test\",\n                    \"quantity\": 1,\n                    \"price\": 100\n                }\n            ],\n            \"shippingCost\": 10,\n            \"finalAmount\": 110,\n            \"createdAt\": \"2022-12-27T14:20:42.101Z\",\n            \"expiresAt\": \"2022-12-28T14:20:42.101Z\",\n            \"webhookUrl\": \"{{webhookUrl}}\",\n            \"redirectUrl\": \"{{redirectUrl}}\",\n            \"merchant\": {\n                \"id\": \"{{merchantId}}\",\n                \"name\": \"RPay\",\n                \"tradeName\": \"RPay\",\n                \"description\": null,\n                \"address\": \"Tirana\",\n                \"fieldsOfOperation\": [],\n                \"nuis\": \"E45326798K\",\n                \"verificationStatus\": \"verified\",\n                \"isVerified\": true,\n                \"isActive\": true,\n                \"logoUri\": \"{{logoUri}}\",\n                \"logoUrl\": \"{{logoUrl}}\",\n                \"websiteUrl\": \"\",\n                \"mainPosId\": \"6a5c2b75-5e9f-451b-96dc-b99b77bb7714\",\n                \"canBeTipped\": true,\n                \"isAffiliate\": false\n            },\n            \"_self\": {\n                \"confirmUrl\": \"https://pay-staging.pokpay.io/sdk-orders/{{sdkOrderId}}\",\n                \"confirmDeeplink\": \"\"\n            },\n            \"description\": \"testDescription\",\n            \"isCompleted\": false,\n            \"isCanceled\": false,\n            \"isRefunded\": false,\n            \"merchantCustomReference\": null,\n            \"paymentMethod\": null,\n            \"transactionId\": null,\n            \"sdkOrderPaymentFlows\": [\n                {\n                    \"isGuest\": true,\n                    \"isSuccessful\": false,\n                    \"createdAt\": \"2022-12-27T14:25:12.722Z\",\n                    \"sdkOrderPaymentFlowSteps\": [\n                        {\n                            \"step\": \"3DS_SETUP\",\n                            \"createdAt\": \"2022-12-27T14:25:12.728Z\",\n                            \"isSuccessful\": true,\n                            \"errorMessage\": \"Unknown Error\"\n                        },\n                        {\n                            \"step\": \"3DS_CHECK\",\n                            \"createdAt\": \"2022-12-27T14:25:16.104Z\",\n                            \"isSuccessful\": true,\n                            \"errorMessage\": \"Unknown Error\"\n                        },\n                        {\n                            \"step\": \"3DS_VALIDATION\",\n                            \"createdAt\": \"2022-12-27T14:25:21.581Z\",\n                            \"isSuccessful\": false,\n                            \"errorMessage\": \"The maximum amount of 300 EUR per transaction was exceeded\"\n                        }\n                    ]\n                },\n                {\n                    \"isGuest\": true,\n                    \"isSuccessful\": false,\n                    \"createdAt\": \"2022-12-27T14:26:06.906Z\",\n                    \"sdkOrderPaymentFlowSteps\": [\n                        {\n                            \"step\": \"3DS_SETUP\",\n                            \"createdAt\": \"2022-12-27T14:26:06.915Z\",\n                            \"isSuccessful\": true,\n                            \"errorMessage\": \"Unknown Error\"\n                        },\n                        {\n                            \"step\": \"3DS_CHECK\",\n                            \"createdAt\": \"2022-12-27T14:26:09.798Z\",\n                            \"isSuccessful\": true,\n                            \"errorMessage\": \"Unknown Error\"\n                        },\n                        {\n                            \"step\": \"3DS_VALIDATION\",\n                            \"createdAt\": \"2022-12-27T14:26:14.995Z\",\n                            \"isSuccessful\": false,\n                            \"errorMessage\": \"The maximum amount of 300 EUR per transaction was exceeded\"\n                        }\n                    ]\n                }\n            ],\n            \"issuer\": \"John Doe\",\n            \"selectedBranchId\": null,\n            \"hasFailedPaymentFlow\": true\n        },\n        \"commissions\": {\n            \"netAmount\": 110,\n            \"totalCommissionAmount\": 0,\n            \"grossAmount\": 110\n        }\n    },\n    \"message\": \"Success\",\n    \"errors\": []\n}"},{"id":"f2ac7e24-cbc7-4a2f-8970-dbc1e41fb7c0","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId"],"variable":[{"key":"merchantId","value":"{{merchantId}}"},{"key":"sdkOrderId","value":"{{sdkOrderId}}"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Order not found\",\n    \"data\": {},\n    \"serverStatusCode\": 99900404,\n    \"errors\": []\n}"}],"_postman_id":"6ecf27df-3e7e-427b-b5f3-d593fe1eec52"},{"name":"Cancel the Payment for Order","id":"043e86ba-237a-4291-9209-93831420fbdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{merchantAccessToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cancellationReason\": \"sold out\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/cancel","description":"<p>Cancels the payment of an order. When the client confirms the order and the order <code>autoCapture</code> is <code>false</code>, calling this endpoint will cancel the payment and release the frozen funds from the client and the merchant.</p>\n<p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cancellationReason</td>\n<td>String</td>\n<td>Reason for cancelling the order.</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","cancel"],"host":["{{baseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>(Required)</p>\n","type":"text/plain"},"type":"any","value":"{{merchantId}}","key":"merchantId"},{"description":{"content":"<p>(Required)</p>\n","type":"text/plain"},"type":"any","value":"{{merchantId}}","key":"sdkOrderId"}]}},"response":[{"id":"5b62c5c4-0073-47fc-ba7d-49854ffcab0f","name":"200 Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{accessToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"cancellationReason\": \"sold out\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/cancel","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","cancel"],"variable":[{"key":"merchantId","value":"{{merchantId}}","description":"(Required)"},{"key":"sdkOrderId","value":"{{sdkOrderId}}","description":"(Required)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 201,\n    \"data\": {\n        \"sdkOrder\": {\n            \"id\": \"{{sdkOrderId}}\",\n            \"amount\": 100,\n            \"currencyCode\": \"ALL\",\n            \"products\": [\n                {\n                    \"name\": \"testProduct\",\n                    \"quantity\": 1,\n                    \"price\": 100\n                }\n            ],\n            \"originalCurrencyCode\": \"ALL\",\n            \"originalAmount\": 110,\n            \"appliedExchangeRate\": 1,\n            \"shippingCost\": 10,\n            \"finalAmount\": 110,\n            \"createdAt\": \"2022-12-28T13:40:10.625Z\",\n            \"expiresAt\": \"2022-12-29T13:40:10.625Z\",\n            \"redirectUrl\": null,\n            \"failRedirectUrl\": null,\n            \"_self\": {\n                \"confirmUrl\": \"{{confirmUrl}}\",\n                \"confirmDeeplink\": \"\"\n            },\n            \"description\": \"testSdk\",\n            \"isCompleted\": false,\n            \"isCanceled\": true,\n            \"isRefunded\": false,\n            \"merchantCustomReference\": null,\n            \"selectedBranchId\": null,\n            \"transactionId\": null\n        }\n    },\n    \"message\": \"Order created\",\n    \"errors\": []\n}"},{"id":"c2f5b1ac-0ba9-4386-8f47-428453235d24","name":"404 Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cancellationReason\": \"sold out\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/sdk-orders/:sdkOrderId/cancel","host":["{{baseUrl}}"],"path":["merchants",":merchantId","sdk-orders",":sdkOrderId","cancel"],"variable":[{"key":"merchantId","value":"{{merchantId}}","description":"(Required)"},{"key":"sdkOrderId","value":"{{merchantId}}","description":"(Required)"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"SDK order not found\",\n    \"data\": {},\n    \"serverStatusCode\": 99900404,\n    \"errors\": []\n}"}],"_postman_id":"043e86ba-237a-4291-9209-93831420fbdc"},{"name":"[Staging environment only] Perform MOTO transaction","id":"bf112300-39d1-4e41-a962-d2831ef69a53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"description\": \"Transaction Description\",\n  \"autoCapture\": true,\n  \"csFlexCard\": {\n    \"keyId\": \"{{keyId}}\",\n    \"encryptedCardNumber\": \"{{encryptedCardNumber}}\",\n    \"numericCardType\": \"{{numericCardType}}\",\n    \"expirationYear\": \"{{expirationYear}}\",\n    \"expirationMonth\": \"{{expirationMonth}}\",\n    \"jwe\": \"{{jwe}}\"\n  },\n  \"billingInfo\": {\n    \"name\": \"{{name}}\",\n    \"firstName\": \"{{firstName}}\",\n    \"lastName\": \"{{lastName}}\",\n    \"address1\": \"{{address1}}\",\n    \"address2\": \"{{address2}}\",\n    \"locality\": \"{{locality}}\",\n    \"administrativeArea\": \"{{administrativeArea}}\",\n    \"postalCode\": \"{{postalCode}}\",\n    \"countryCode\": \"{{countryCode}}\",\n    \"sameAsShipping\": true,\n    \"email\": \"{{email}}\",\n    \"phoneNumber\": \"{{phoneNumber}}\"\n  },\n  \"nickname\": \"{{nickname}}\",\n  \"securityCode\": \"{{securityCode}}\",\n  \"amount\": 1000,\n  \"currencyCode\": \"ALL\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/merchants/:merchantId/moto","description":"<p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>csFlexCard</td>\n<td>Structure given below</td>\n<td>Flex card information</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>billingInfo</td>\n<td>Structure given below</td>\n<td>Client billing address information</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>nickname</td>\n<td>string</td>\n<td>Card nickname</td>\n<td>No</td>\n</tr>\n<tr>\n<td>securityCode</td>\n<td>string</td>\n<td>Card security code</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Positive number</td>\n<td>The amount of the transaction</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>string</td>\n<td>Transaction currency code</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p>csFlexCard</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>keyId</td>\n<td>string</td>\n<td>Key ID</td>\n<td>No</td>\n</tr>\n<tr>\n<td>numericCardType</td>\n<td>string</td>\n<td>Numeric Card Type</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>expirationYear</td>\n<td>string (YYYY)</td>\n<td>Card expiration year</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>expirationMonth</td>\n<td>string (MM)</td>\n<td>Card expiration month</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>jwe</td>\n<td>string</td>\n<td>Encrypted Card Information</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p>billingInfo</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Billing info nickname</td>\n<td>No</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>string</td>\n<td>Client first name</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>string</td>\n<td>Client last name</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>address1</td>\n<td>string</td>\n<td>Client's address' first line</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>address2</td>\n<td>string</td>\n<td>Client's address' second line</td>\n<td>No</td>\n</tr>\n<tr>\n<td>locality</td>\n<td>string</td>\n<td></td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>administrativeArea</td>\n<td>string</td>\n<td>Client's administrative area (if applicable)</td>\n<td>No</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>string</td>\n<td>Client's postal code</td>\n<td>No</td>\n</tr>\n<tr>\n<td>countryCode</td>\n<td>string</td>\n<td>Client's country code</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>sameAsShipping</td>\n<td>boolean</td>\n<td><code>true</code> if clients billing address is same as shipping address, <code>false</code> otherwise</td>\n<td>No (default <code>false</code></td>\n</tr>\n<tr>\n<td>email</td>\n<td>string (email)</td>\n<td>Client's email address</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>string (phone number)</td>\n<td>Client's phone number</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sdkOrder</td>\n<td>Object</td>\n<td>Confirmed sdk order information</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["merchants",":merchantId","moto"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{merchantId}}","key":"merchantId"}]}},"response":[{"id":"2e9a4b29-4524-485f-9033-32e46c2f2c43","name":"200 Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"Transaction Description\",\n  \"autoCapture\": true,\n  \"csFlexCard\": {\n    \"keyId\": \"{{keyId}}\",\n    \"encryptedCardNumber\": \"{{encryptedCardNumber}}\",\n    \"numericCardType\": \"{{numericCardType}}\",\n    \"expirationYear\": \"{{expirationYear}}\",\n    \"expirationMonth\": \"{{expirationMonth}}\",\n    \"jwe\": \"{{jwe}}\"\n  },\n  \"billingInfo\": {\n    \"name\": \"{{name}}\",\n    \"firstName\": \"{{firstName}}\",\n    \"lastName\": \"{{lastName}}\",\n    \"address1\": \"{{address1}}\",\n    \"address2\": \"{{address2}}\",\n    \"locality\": \"{{locality}}\",\n    \"administrativeArea\": \"{{administrativeArea}}\",\n    \"postalCode\": \"{{postalCode}}\",\n    \"countryCode\": \"{{countryCode}}\",\n    \"sameAsShipping\": true,\n    \"email\": \"{{email}}\",\n    \"phoneNumber\": \"{{phoneNumber}}\"\n  },\n  \"nickname\": \"{{nickname}}\",\n  \"securityCode\": \"{{securityCode}}\",\n  \"amount\": 1000,\n  \"currencyCode\": \"ALL\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{baseUrl}}/merchants/:merchantId/moto","host":["{{baseUrl}}"],"path":["merchants",":merchantId","moto"],"variable":[{"key":"merchantId","value":"{{merchantId}}"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": 200,\n  \"serverStatusCode\": 99900202,\n  \"data\": {\n    \"sdkOrder\": {\n      \"id\": \"{{sdkOrderId}}\",\n      \"amount\": 1000,\n      \"capturedAmount\": 1000,\n      \"currencyCode\": \"ALL\",\n      \"products\": [],\n      \"originalCurrencyCode\": \"ALL\",\n      \"originalAmount\": 1000,\n      \"appliedExchangeRate\": 1,\n      \"shippingCost\": 0,\n      \"finalAmount\": 1000,\n      \"createdAt\": \"2026-04-07T13:43:04.924Z\",\n      \"expiresAt\": \"2026-04-08T13:43:04.924Z\",\n      \"redirectUrl\": \"https://www.pokpay.io/?orderId={{sdkOrderId}}\",\n      \"failRedirectUrl\": null,\n      \"merchant\": {\n        \"id\": \"{{creatorMerchantId}}\",\n        \"name\": \"{{creatorMerchantName}}\",\n        \"tradeName\": \"{{creatorMerchantTradeName}}\",\n        \"description\": null,\n        \"address\": \"{{creatorMerchantAddress}}\",\n        \"fieldsOfOperation\": [],\n        \"nuis\": \"{{creatorMerchantNuis}}\",\n        \"verificationStatus\": \"verified\",\n        \"isVerified\": true,\n        \"isActive\": true,\n        \"logoUri\": null,\n        \"logoUrl\": null,\n        \"websiteUrl\": null,\n        \"legalForm\": \"{{legalForm}}\",\n        \"mainPosId\": \"{{mainPosId}}\",\n        \"canBeTipped\": true,\n        \"isAffiliate\": false,\n        \"sdkOrdersEnabled\": true,\n        \"hasStagingAccount\": false\n      },\n      \"_self\": {\n        \"confirmUrl\": \"{{sdkOrderConfirmUrl}}\",\n        \"confirmDeeplink\": \"\"\n      },\n      \"description\": null,\n      \"isCompleted\": true,\n      \"isRefunded\": false,\n      \"isCanceled\": false,\n      \"merchantCustomReference\": null,\n      \"selectedBranchId\": null,\n      \"transactionId\": \"{{transactionId}}\",\n      \"canBeCaptured\": false,\n      \"autoCapture\": true,\n      \"supportedPaymentMethods\": [\n        \"rpay-credit\",\n        \"credit-debit-card\"\n      ]\n    }\n  },\n  \"message\": \"Payment completed\",\n  \"requestId\": \"{{requestId}}\",\n  \"errors\": []\n}\n"}],"_postman_id":"bf112300-39d1-4e41-a962-d2831ef69a53"}],"id":"baa89ff9-a910-4d4e-8e86-0f1383e8fa2a","description":"<p>An order is a payment made from the client to the merchant. Merchant Orders API is used to create, capture and refund orders.</p>\n","_postman_id":"baa89ff9-a910-4d4e-8e86-0f1383e8fa2a"},{"name":"Orders Retrieval API","item":[{"name":"Retrieve an Order","id":"0ef7b8f7-5294-4aba-a287-35683ee26549","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"{{baseUrl}}/sdk-orders/:sdkOrderId","description":"<p>Provides the order details, by ID.</p>\n<p><strong>RESPONSE</strong></p>\n<p>sdkOrder</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String UUIDv4</td>\n<td>Unique identifier for the order.</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Positive number</td>\n<td>Total amount of the products in the order. If the <code>currencyCode</code> used to process the payment is different from <code>originalCurrencyCode</code>, this is the total converted amount.</td>\n</tr>\n<tr>\n<td>currencyCode</td>\n<td>String</td>\n<td>Currency code which will be used to process the payment.</td>\n</tr>\n<tr>\n<td>originalCurrencyCode</td>\n<td>String</td>\n<td>Currency code on which the order is requested to be created.</td>\n</tr>\n<tr>\n<td>originalAmount</td>\n<td>Positive number</td>\n<td>Original total amount paid in the original currency code.</td>\n</tr>\n<tr>\n<td>appliedExchangeRate</td>\n<td>Positive number</td>\n<td>Applied exchange rate to calculate <code>amount</code> from <code>originalAmount</code></td>\n</tr>\n<tr>\n<td>products</td>\n<td>Array</td>\n<td>Array of products that are contained in the order.</td>\n</tr>\n<tr>\n<td>shippingCost</td>\n<td>Non-negative number</td>\n<td>Cost for shipping the order.</td>\n</tr>\n<tr>\n<td>finalAmount</td>\n<td>Positive number</td>\n<td>Amount of the order including shipping cost.</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>Date</td>\n<td>Date of creation of order.</td>\n</tr>\n<tr>\n<td>expiresAt</td>\n<td>Date</td>\n<td>Date of expiration of order.</td>\n</tr>\n<tr>\n<td>redirectUrl</td>\n<td>String</td>\n<td>URL to redirect to after confirming the order.</td>\n</tr>\n<tr>\n<td>failRedirectUrl</td>\n<td>String</td>\n<td>URL to redirect to after the order payment fails.</td>\n</tr>\n<tr>\n<td>paymentMethod</td>\n<td>String('rpay-credit' or 'credit-debit-card')</td>\n<td>Whether the order is paid by POK credit or credit card.</td>\n</tr>\n<tr>\n<td>cardType</td>\n<td>String</td>\n<td>The brand of the card if the payment is made by card i.e. VISA, MasterCard etc</td>\n</tr>\n<tr>\n<td>merchant</td>\n<td>Object</td>\n<td>Information about the merchant who created the order.</td>\n</tr>\n<tr>\n<td>__self.confirmUrl</td>\n<td>String</td>\n<td>Webpage URL to confirm the order.</td>\n</tr>\n<tr>\n<td>__self.confirmDeeplink</td>\n<td>String</td>\n<td>Deeplink to POK app to confirm the order.</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>Description of the order.</td>\n</tr>\n<tr>\n<td>isCompleted</td>\n<td>Boolean</td>\n<td><code>true</code> if the order is completed successfully, <code>false</code> otherwise.</td>\n</tr>\n<tr>\n<td>isRefunded</td>\n<td>Boolean</td>\n<td><code>true</code> if the order is refunded by the merchant, <code>false</code> otherwise.</td>\n</tr>\n<tr>\n<td>merchantCustomReference</td>\n<td>String</td>\n<td>Merchant-generated order reference, specified when creating the order.</td>\n</tr>\n</tbody>\n</table>\n</div><p>commissions</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>netAmount</td>\n<td>Positive number</td>\n<td>Total amount of the order and shipping without including commission.</td>\n</tr>\n<tr>\n<td>totalCommissionAmount</td>\n<td>Positive number</td>\n<td>Total commissions for the order.</td>\n</tr>\n<tr>\n<td>grossAmount</td>\n<td>Positive number</td>\n<td>Total amount to be paid including commission.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["sdk-orders",":sdkOrderId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"{{sdkOrderId}}","key":"sdkOrderId"}]}},"response":[{"id":"1454acab-15ac-4874-a3b3-e58c5f9a38fa","name":"200 Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/sdk-orders/:sdkOrderId","host":["{{baseUrl}}"],"path":["sdk-orders",":sdkOrderId"],"variable":[{"key":"sdkOrderId","value":"{{sdkOrderId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 12:33:57 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"741"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-headers","value":"*"},{"key":"access-control-allow-methods","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"accept-ranges","value":"bytes"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 200,\n    \"data\": {\n        \"sdkOrder\": {\n            \"id\": \"{{sdkOrderId}}\",\n            \"amount\": 100,\n            \"currencyCode\": \"EUR\",\n            \"originalCurrencyCode\": \"EUR\",\n            \"originalAmount\": 100,\n            \"appliedExchangeRate\": 1,\n            \"products\": [],\n            \"shippingCost\": 0,\n            \"finalAmount\": 100,\n            \"createdAt\": \"2022-01-20T12:30:19.299Z\",\n            \"expiresAt\": \"2022-01-20T12:45:19.299Z\",\n            \"redirectUrl\": null,\n            \"merchant\": {\n                \"id\": \"{{merchantId}}\",\n                \"name\": \"Rpay\",\n                \"address\": \"Tirana\",\n                \"fieldsOfOperation\": [],\n                \"nuis\": \"A88888888A\",\n                \"verificationStatus\": \"verified\",\n                \"isVerified\": true,\n                \"logoUri\": null,\n                \"logoUrl\": null\n            },\n            \"_self\": {\n                \"confirmUrl\": \"https://isdk-web-staging.pokpay.io/sdk-orders/{{sdkOrderId}}\",\n                \"confirmDeeplink\": \"\"\n            }\n        },\n        \"commissions\": {\n            \"netAmount\": 100,\n            \"totalCommissionAmount\": 0.2,\n            \"grossAmount\": 100.2\n        }\n    },\n    \"message\": \"Success\",\n    \"errors\": []\n}"},{"id":"14073ce5-c884-4818-a9de-14ba71ddbcbb","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/sdk-orders/:sdkOrderId","host":["{{baseUrl}}"],"path":["sdk-orders",":sdkOrderId"],"variable":[{"key":"sdkOrderId","value":"{{sdkOrderId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 12:36:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"120"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"SDK order not found\",\n    \"data\": {},\n    \"serverStatusCode\": 99900404,\n    \"errors\": []\n}"},{"id":"62d5f4f6-1063-41ee-bd43-a58e16a7f111","name":"410 Gone","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/sdk-orders/:sdkOrderId","host":["{{baseUrl}}"],"path":["sdk-orders",":sdkOrderId"],"variable":[{"key":"sdkOrderId","value":"{{sdkOrderId}}"}]}},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jan 2022 12:39:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"113"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 410,\n    \"error\": \"Gone\",\n    \"message\": \"SDK order expired\",\n    \"data\": {},\n    \"serverStatusCode\": 99900406,\n    \"errors\": []\n}"}],"_postman_id":"0ef7b8f7-5294-4aba-a287-35683ee26549"}],"id":"4d6152c7-380f-4da7-849d-9fd4a80d0979","description":"<p>Provides information about orders.</p>\n","_postman_id":"4d6152c7-380f-4da7-849d-9fd4a80d0979"},{"name":"Card Tokenization API","item":[{"name":"🛑 [DEPRECATED] Get flex card encryption key","id":"6dad865c-2e6a-4f09-8f7f-04bfdf69ae2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/credit-debit-cards/flex-card-encryption-key","description":"<p>⚠️ <strong>Deprecated</strong><br />This request is deprecated and will be removed in future versions. Use <code>{{baseUrl}}/v2/credit-debit-cards/flex-card-encryption-key</code> instead.</p>\n<p>This endpoint is used to generate the flex card encryption keys, which will be used to encrypt the card data.</p>\n<p><strong>RESPONSE</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>keyId</td>\n<td>string</td>\n<td>Key Identifier</td>\n</tr>\n<tr>\n<td>der</td>\n<td>Object</td>\n<td>Object including the format, algorithm and public key used for card data encryption</td>\n</tr>\n<tr>\n<td>jwk</td>\n<td>Object</td>\n<td>Object including the format, algorithm and public key used for card data encryption, using jwk</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["credit-debit-cards","flex-card-encryption-key"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6dad865c-2e6a-4f09-8f7f-04bfdf69ae2b"},{"name":"Get flex card encryption key","id":"cb916a4b-8be1-440e-b269-0bf8e40d33b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseUrl}}/v2/credit-debit-cards/flex-card-encryption-key","description":"<p>This endpoint is used to generate the flex card encryption keys, which will be used to encrypt the card data.</p>\n<p>Note: When using the <code>pok-payments-js</code> package the <code>encryptCard</code> function sends a request to this endpoint and encrypts the card using the response.</p>\n<p><strong>RESPONSE</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>context</td>\n<td>Object</td>\n</tr>\n<tr>\n<td>contextRaw</td>\n<td>string</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v2","credit-debit-cards","flex-card-encryption-key"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb916a4b-8be1-440e-b269-0bf8e40d33b8"},{"name":"Tokenize card","id":"741b843c-a3e9-4dc6-afad-e575e7ecc7b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"csFlexCard\": {\n        \"jwe\": \"{{jwe}}\",\n        \"expirationYear\": \"{{expirationYear}}\",\n        \"expirationMonth\": \"{{expirationMonth}}\"\n    },\n    \"billingInfo\": {\n        \"firstName\": \"{{firstName}}\",\n        \"lastName\": \"{{lastName}}\",\n        \"address1\": \"{{address1}}\",\n        \"locality\": \"{{locality}}\",\n        \"postalCode\": {{postalCode}},\n        \"countryCode\": \"{{countryCode}}\",\n        \"administrativeArea\": \"{{administrativeArea}}\",\n        \"sameAsShipping\": {{sameAsShipping}},\n        \"email\": \"{{email}}\"\n    },\n    \"securityCode\": \"{{securityCode}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/credit-debit-cards/tokenize-guest-card","description":"<p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>csFlexCard</td>\n<td>Structure given below</td>\n<td>Flex card information</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>billingInfo</td>\n<td>Structure given below</td>\n<td>Client billing address information</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>nickname</td>\n<td>string</td>\n<td>Card nickname</td>\n<td>No</td>\n</tr>\n<tr>\n<td>securityCode</td>\n<td>string</td>\n<td>Card security code</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p>csFlexCard</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>numericCardType</td>\n<td>string</td>\n<td>Numeric Card Type</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>expirationYear</td>\n<td>string (YYYY)</td>\n<td>Card expiration year</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>expirationMonth</td>\n<td>string (MM)</td>\n<td>Card expiration month</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>jwe</td>\n<td>string</td>\n<td>Encrypted Card Information</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p>billingInfo</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Billing info nickname</td>\n<td>No</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>string</td>\n<td>Client first name</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>string</td>\n<td>Client last name</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>address1</td>\n<td>string</td>\n<td>Client's address' first line</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>address2</td>\n<td>string</td>\n<td>Client's address' second line</td>\n<td>No</td>\n</tr>\n<tr>\n<td>locality</td>\n<td>string</td>\n<td></td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>administrativeArea</td>\n<td>string</td>\n<td>Client's administrative area (if applicable)</td>\n<td>No</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>string</td>\n<td>Client's postal code</td>\n<td>No</td>\n</tr>\n<tr>\n<td>countryCode</td>\n<td>string</td>\n<td>Client's country code</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>sameAsShipping</td>\n<td>boolean</td>\n<td><code>true</code> if clients billing address is same as shipping address, <code>false</code> otherwise</td>\n<td>No (default <code>false</code></td>\n</tr>\n<tr>\n<td>email</td>\n<td>string (email)</td>\n<td>Client's email address</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>string (phone number)</td>\n<td>Client's phone number</td>\n<td>No</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>creditDebitCard</td>\n<td>Object (structure below)</td>\n<td>Newly created tokenized credit debit card</td>\n</tr>\n</tbody>\n</table>\n</div><p>creditDebitCard</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>Unique identifier for this credit debit card. This id will be used when setting up 3ds.</td>\n</tr>\n<tr>\n<td>holderFirstName</td>\n<td>string</td>\n<td>Card holder's first name</td>\n</tr>\n<tr>\n<td>holderLastName</td>\n<td>string</td>\n<td>Card holder's last name</td>\n</tr>\n<tr>\n<td>hiddenNumber</td>\n<td>string</td>\n<td>Hidden card number</td>\n</tr>\n<tr>\n<td>billingInfo</td>\n<td>Object</td>\n<td>Client's billing information</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["credit-debit-cards","tokenize-guest-card"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"c49834b8-d459-42c1-85ab-f2fcbbb2d25b","name":"200 Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"csFlexCard\": {\n        \"jwe\": \"{{jwe}}\",\n        \"expirationYear\": \"2027\",\n        \"expirationMonth\": \"11\"\n    },\n    \"billingInfo\": {\n        \"firstName\": \"test\",\n        \"lastName\": \"test\",\n        \"address1\": \"test\",\n        \"locality\": \"Tirana\",\n        \"postalCode\": null,\n        \"countryCode\": \"AL\",\n        \"administrativeArea\": \"\",\n        \"sameAsShipping\": false,\n        \"email\": \"test@example.com\"\n    },\n    \"securityCode\": \"123\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/credit-debit-cards/tokenize-guest-card"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"access-control-allow-headers","value":"*"},{"key":"access-control-allow-methods","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"vary","value":"origin"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"content-length","value":"520"},{"key":"Date","value":"Fri, 07 Apr 2023 12:33:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 200,\n    \"data\": {\n        \"creditDebitCard\": {\n            \"id\": \"{{creditDebitCardId}}\",\n            \"holderFirstName\": \"test\",\n            \"holderLastName\": \"test\",\n            \"hiddenNumber\": \"400000XXXXXX1091\",\n            \"billingInfo\": {\n                \"firstName\": \"test\",\n                \"lastName\": \"test\",\n                \"address1\": \"test\",\n                \"locality\": \"Tirana\",\n                \"administrativeArea\": \"\",\n                \"postalCode\": null,\n                \"countryCode\": \"AL\",\n                \"sameAsShipping\": false,\n                \"email\": \"test@example.com\",\n                \"billableType\": \"guest\"\n            }\n        }\n    },\n    \"message\": \"Success\",\n    \"requestId\": \"1680870833573:adn20.icc-al.org:31689:lg6j3bs5:10000\",\n    \"errors\": []\n}"}],"_postman_id":"741b843c-a3e9-4dc6-afad-e575e7ecc7b4"},{"name":"Setup tokenized card 3ds","id":"c404dd0e-83b8-48ef-8712-f6b28e9268bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"sdkOrder\": {\n        \"id\": \"{{sdkOrderId}}\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/credit-debit-cards/{{creditDebitCardId}}/setup-tokenized-3ds","description":"<p><strong>PATH PARAMS</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>creditDebitCardId</td>\n<td>string</td>\n<td>Unique ID of credit debit card. This is returned as a response from the 'Create tokenized credit card' request.</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sdkOrder</td>\n<td>Object: { id: string }</td>\n<td>ID of the order that is going to be paid by the client.</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>payerAuthentication</td>\n<td>Object (structure below)</td>\n<td>Payer authentication</td>\n</tr>\n</tbody>\n</table>\n</div><p>payerAuthentication</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>deviceDataCollection</td>\n<td>Object { accessToken, url }</td>\n<td>Device data collection information</td>\n</tr>\n<tr>\n<td>creditDebitCard</td>\n<td>Object { id }</td>\n<td>Created credit debit card ID</td>\n</tr>\n<tr>\n<td>payerAuthSetupReferenceId</td>\n<td>string</td>\n<td>Payer authentication reference id</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["credit-debit-cards","{{creditDebitCardId}}","setup-tokenized-3ds"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"de0da6c4-416b-4fa0-ae4a-ea61d12b5f50","name":"200 Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"sdkOrder\": {\n        \"id\": \"{{sdkOrderId}}\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/credit-debit-cards/{{creditDebitCardId}}/setup-tokenized-3ds"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"access-control-allow-headers","value":"*"},{"key":"access-control-allow-methods","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"vary","value":"origin"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"content-length","value":"771"},{"key":"Date","value":"Fri, 07 Apr 2023 12:39:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 200,\n    \"data\": {\n        \"payerAuthentication\": {\n            \"deviceDataCollection\": {\n                \"accessToken\": \"{{accessToken}}\",\n                \"url\": \"{{dataCollectionUrl}}\"\n            },\n            \"creditDebitCard\": {\n                \"id\": \"{{creditDebitCardId}}\"\n            },\n            \"payerAuthSetupReferenceId\": \"{{payerAuthSetupReferenceId}}\"\n        }\n    },\n    \"message\": \"Success\",\n    \"requestId\": \"1680871146932:adn20.icc-al.org:31689:lg6j3bs5:10001\",\n    \"errors\": []\n}"}],"_postman_id":"c404dd0e-83b8-48ef-8712-f6b28e9268bc"},{"name":"Check 3ds enrollment","id":"fc42291d-ca7f-4b17-a21d-7003430931cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"csAuthentication\": {\n        \"amount\": {{sdkOrderAmount}},\n        \"currencyCode\": \"{{sdkOrderCurrencyCode}}\"\n    },\n    \"sdkOrderId\": \"{{sdkOrderId}}\",\n    \"payerAuthSetupReferenceId\": \"{{payerAuthSetupReferenceId}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/credit-debit-cards/{{creditDebitCardId}}/check-3ds-enrollment","description":"<p><strong>PATH PARAMS</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>creditDebitCardId</td>\n<td>string</td>\n<td>Unique ID of credit debit card. This is returned as a response from the 'Create tokenized credit card' request.</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>csAuthentication</td>\n<td>Object (structure below)</td>\n<td>Authentication</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>sdkOrderId</td>\n<td>string</td>\n<td>Sdk order id</td>\n<td>No</td>\n</tr>\n<tr>\n<td>payerAuthSetupReferenceId</td>\n<td>string</td>\n<td>Auth setup reference id</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>payerAuthenticationEnrollment</td>\n<td>Object (structure below)</td>\n<td>Payer authentication enrollment information</td>\n</tr>\n</tbody>\n</table>\n</div><p>payerAuthenticationEnrollment</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Auth enrollment status</td>\n</tr>\n<tr>\n<td>stepUp</td>\n<td>Object</td>\n<td></td>\n</tr>\n<tr>\n<td>stepUp.accessToken</td>\n<td>string</td>\n<td>3ds step up access token</td>\n</tr>\n<tr>\n<td>stepUp.url</td>\n<td>string</td>\n<td>3ds step up url</td>\n</tr>\n<tr>\n<td>MD</td>\n<td>string</td>\n<td>Credit debit card id</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["credit-debit-cards","{{creditDebitCardId}}","check-3ds-enrollment"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"7de1ae39-1154-49fa-9742-cfd936608eed","name":"200 Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"csAuthentication\": {\n        \"amount\": 100,\n        \"currencyCode\": \"EUR\"\n    },\n    \"sdkOrderId\": \"{{sdkOrderId}}\",\n    \"payerAuthSetupReferenceId\": \"{{payerAuthSetupReferenceId}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/credit-debit-cards/{{creditDebitCardId}}/check-3ds-enrollment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"access-control-allow-headers","value":"*"},{"key":"access-control-allow-methods","value":"*"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"vary","value":"origin,accept-encoding"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"content-encoding","value":"gzip"},{"key":"Date","value":"Fri, 07 Apr 2023 13:14:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 200,\n    \"data\": {\n        \"payerAuthenticationEnrollment\": {\n            \"status\": \"PENDING_AUTHENTICATION\",\n            \"stepUp\": {\n                \"accessToken\": \"{{acessToken}}\",\n                \"url\": \"{{stepUpUrl}}\"\n            },\n            \"MD\": \"{{creditDebitCardId}}\"\n        }\n    },\n    \"message\": \"Success\",\n    \"requestId\": \"1680873256167:adn20.icc-al.org:31689:lg6j3bs5:10002\",\n    \"errors\": []\n}"}],"_postman_id":"fc42291d-ca7f-4b17-a21d-7003430931cd"},{"name":"Guest confirm","id":"d4ff1f0b-a49c-4364-bf41-728dc32f99db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"creditCardId\": \"{{creditCardId}}\",\n    \"consumerAuthenticationInformation\": {{consumerAuthenticationInformation}}\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/sdk-orders/{{sdkOrderId}}/guest-confirm","description":"<p>This endpoint is used as the last step of the payment process to confirm the sdk order.</p>\n<p><strong>PATH PARAMS</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sdkOrderId</td>\n<td>string</td>\n<td>ID of order to be paid by the client</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>creditCardId</td>\n<td>string</td>\n<td>Credit card id</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>consumerAuthenticationInformation</td>\n<td>Object</td>\n<td>Consumer Authentication Information</td>\n<td>Retrieved from socket response</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>RESPONSE</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Key</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sdkOrder</td>\n<td>Object</td>\n<td>Confirmed sdk order information</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["sdk-orders","{{sdkOrderId}}","guest-confirm"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"9617bf0b-7ced-4efe-a319-9ab1bfa80f2f","name":"200 Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"creditCardId\": \"{{creditDebitCardId}}\",\n    \"consumerAuthenticationInformation\": {{consumerAuthenticationInformation}}\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/sdk-orders/{{sdkOrderId}}/guest-confirm"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"server-status-code","value":"7000402"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"vary","value":"origin"},{"key":"access-control-expose-headers","value":"WWW-Authenticate,Server-Authorization"},{"key":"cache-control","value":"no-cache"},{"key":"content-length","value":"226"},{"key":"Date","value":"Fri, 07 Apr 2023 13:41:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": 200,\n  \"serverStatusCode\": 99900202,\n  \"data\": {\n    \"sdkOrder\": {\n      \"id\": \"{{sdkOrderId}}\",\n      \"amount\": 10,\n      \"capturedAmount\": 10,\n      \"currencyCode\": \"EUR\",\n      \"products\": [],\n      \"originalCurrencyCode\": \"EUR\",\n      \"originalAmount\": 10,\n      \"appliedExchangeRate\": 1,\n      \"shippingCost\": 0,\n      \"finalAmount\": 10,\n      \"createdAt\": \"2023-04-07T13:43:04.924Z\",\n      \"expiresAt\": \"2023-04-08T13:43:04.924Z\",\n      \"redirectUrl\": \"https://www.pokpay.io/?orderId={{sdkOrderId}}\",\n      \"failRedirectUrl\": null,\n      \"merchant\": {\n        \"id\": \"{{creatorMerchantId}}\",\n        \"name\": \"{{creatorMerchantName}}\",\n        \"tradeName\": \"{{creatorMerchantTradeName}}\",\n        \"description\": null,\n        \"address\": \"{{creatorMerchantAddress}}\",\n        \"fieldsOfOperation\": [],\n        \"nuis\": \"{{creatorMerchantNuis}}\",\n        \"verificationStatus\": \"verified\",\n        \"isVerified\": true,\n        \"isActive\": true,\n        \"logoUri\": null,\n        \"logoUrl\": null,\n        \"websiteUrl\": null,\n        \"legalForm\": \"{{legalForm}}\",\n        \"mainPosId\": \"{{mainPosId}}\",\n        \"canBeTipped\": true,\n        \"isAffiliate\": false,\n        \"sdkOrdersEnabled\": true,\n        \"hasStagingAccount\": false\n      },\n      \"_self\": {\n        \"confirmUrl\": \"{{sdkOrderConfirmUrl}}\",\n        \"confirmDeeplink\": \"\"\n      },\n      \"description\": null,\n      \"isCompleted\": true,\n      \"isRefunded\": false,\n      \"isCanceled\": false,\n      \"merchantCustomReference\": null,\n      \"selectedBranchId\": null,\n      \"transactionId\": \"{{transactionId}}\",\n      \"canBeCaptured\": false,\n      \"autoCapture\": true,\n      \"supportedPaymentMethods\": [\n        \"rpay-credit\",\n        \"credit-debit-card\"\n      ]\n    }\n  },\n  \"message\": \"Payment completed\",\n  \"requestId\": \"1680875022115:adn20.icc-al.org:31689:lg6j3bs5:10021\",\n  \"errors\": []\n}\n"}],"_postman_id":"d4ff1f0b-a49c-4364-bf41-728dc32f99db"},{"name":"Get Guest Cards Information","id":"4fb0374b-6c4b-4370-ba68-7c5576ab2955","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accessToken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cardIds\": [\n        \"{{cardId1}}\",\n        \"{{cardId2}}\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/credit-debit-cards/get-guest-cards-information","description":"<p>Get information about specified guest cards.</p>\n<p><strong>PAYLOAD</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>cardIds</td>\n<td>Array of strings (uuids)</td>\n<td>IDs of cards to get information about.</td>\n<td>Yes.  <br />(Minimum array length is 1)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["credit-debit-cards","get-guest-cards-information"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"9109413c-d751-4aff-b9c2-5c69bee1152f","name":"200 Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{accessToken}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"cardIds\": [\n        \"7c592ad9-54c5-4f64-a9c0-452f6d37a5a2\",\n        \"482080c0-bcd4-47de-8e7c-601f27b824a9\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/credit-debit-cards/get-guest-cards-information"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"serverStatusCode\": 200,\n    \"data\": {\n        \"cards\": [\n            {\n                \"type\": null,\n                \"brand\": \"VISA\",\n                \"number\": \"**** **** **** 0023\",\n                \"label\": \"VISA - **** **** **** 0023\",\n                \"logo\": \"https://dibb9k7auw9pm.cloudfront.net/public/assets/img/creditCard/visa.svg\",\n                \"billingInfo\": {\n                    \"billableType\": \"guest\",\n                    \"firstName\": \"John\",\n                    \"lastName\": \"Doe\",\n                    \"address1\": \"Rr 233\",\n                    \"address2\": null,\n                    \"locality\": \"Tirana\",\n                    \"administrativeArea\": \"Tirana\",\n                    \"postalCode\": \"2222\",\n                    \"countryCode\": \"AL\",\n                    \"sameAsShipping\": false,\n                    \"email\": \"nikotili@live.com\",\n                    \"phoneNumber\": \"\"\n                }\n            },\n            {\n                \"type\": null,\n                \"brand\": \"VISA\",\n                \"number\": \"**** **** **** 1111\",\n                \"label\": \"VISA - **** **** **** 1111\",\n                \"logo\": \"https://dibb9k7auw9pm.cloudfront.net/public/assets/img/creditCard/visa.svg\",\n                \"billingInfo\": {\n                    \"billableType\": \"guest\",\n                    \"firstName\": \"sonila\",\n                    \"lastName\": \"allaraj\",\n                    \"address1\": \"mine peza\",\n                    \"address2\": null,\n                    \"locality\": \"new york\",\n                    \"administrativeArea\": \"new york\",\n                    \"postalCode\": \"12345\",\n                    \"countryCode\": \"AL\",\n                    \"sameAsShipping\": false,\n                    \"email\": \"sonila@example.com\",\n                    \"phoneNumber\": \"+355686700043\"\n                }\n            }\n        ]\n    },\n    \"message\": \"Success\",\n    \"requestId\": \"1712910726244:Marins-MacBook-Pro-2.local:4972:luwetfoq:10000\",\n    \"errors\": []\n}"}],"_postman_id":"4fb0374b-6c4b-4370-ba68-7c5576ab2955"}],"id":"6840eca5-d90a-46ce-b05c-1b6c25e176e3","description":"<p>Tokenized Cards API provides endpoints to use credit or debit cards for paying orders created by a merchant.</p>\n<p>For this API the following cards can be used for testing:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th>Card Number</th>\n<th><strong>Expiration Date</strong></th>\n<th><strong>Security Code</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Without 3DS</td>\n<td>4111 1111 1111 1111</td>\n<td>12/26</td>\n<td>111</td>\n</tr>\n<tr>\n<td>With 3DS</td>\n<td>4000 0000 0000 1091</td>\n<td>12/26</td>\n<td>111</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"6840eca5-d90a-46ce-b05c-1b6c25e176e3"}],"event":[{"listen":"prerequest","script":{"id":"6795628d-5594-4db0-b417-85232eea818d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3bdfbe74-cd5a-440b-9d91-bf8b66e7f101","type":"text/javascript","exec":[""]}}]}