Postman collection
You can test some of the moqpay API requests using Postman. To do this, follow the steps below:
1) Copy the collection code.
Postman collection for moqpay API
{
"info": {
"_postman_id": "e359d4d2-24cb-4680-bd26-a806a8aba17a",
"name": "moqpay API",
"description": "Before sending the requests set up the collection variables:\n\n1. Request the URLs (`checkout_url`, `gateway_url`, `api_url`, `backoffice_url`, `js_url`) from your manager and add them on the **Variables** tab in the **Current value** column.\n \n2. Request credentials (id and secret key) of the test shop from your manager and add these values as **Username** and **Password** on the **Authorization** tab. Alternatively, you can use the credentials of your shop.\n \n\nClick **Save** to apply the changes.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "CHECKOUT",
"item": [
{
"name": "Payment token",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);\r",
"var payment_token = jsonData.checkout.token;\r",
" \r",
"console.log(\"payment_token:\", payment_token);\r",
"//pm.globals.set(\"payment_token\", payment_token);\r",
"pm.collectionVariables.set(\"payment_token\", payment_token);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-API-Version",
"value": "2",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"checkout\": {\r\n \"test\": true,\r\n \"transaction_type\": \"payment\",// transaction type (authorization, payment, tokenization, charge)\r\n \"attempts\": 3,// max. payment attempts for the token\r\n \"iframe\": true,\r\n \"order\": {\r\n \"currency\": \"USD\",\r\n \"amount\": 7000, //transaction amount in minimal currency units\r\n \"description\": \"Test description\",\r\n \"tracking_id\": \"1396khl95\",//transaction idenitifier in the merchant's system\r\n \"additional_data\": {\r\n \"contract\": [\"recurring\"]\r\n }// send this parameter if you need to receive token in the webhook notification\r\n },\r\n \"settings\": {\r\n \"return_url\": \"http://example.com/return\",//URL to which the customer will be redirected upon the payment completion\r\n \"success_url\": \"http://example.com/success\",\r\n \"decline_url\": \"http://example.com/decline\",\r\n \"fail_url\": \"http://example.com/fail\",\r\n \"cancel_url\": \"http://example.com/cancel\",\r\n \"notification_url\": \"https://notification_url\",//server address of the merchant to which the webhook notification with the final transaction status will be sent\r\n \"button_next_text\": \"Continue\",\r\n \"auto_pay\": false,\r\n \"language\": \"en\",\r\n \"customer_fields\": {//array of additional fields displayed on the widget\r\n \"visible\": [\r\n \"first_name\",\r\n \"last_name\"\r\n ]\r\n },\r\n \"payment_method\": {//array of the available payment methods\r\n \"types\": [\r\n \"credit_card\"\r\n ],\r\n \"credit_card\": {\r\n \"token\": \"13dded21-ed69-4590-8bcb-db522a89735c\"\r\n }\r\n },//required if auto_pay is used\r\n \"customer\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"Baker street 221b\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\"\r\n }\r\n }\r\n }\r\n}"
},
"url": {
"raw": "{{checkout_url}}/ctp/api/checkouts",
"host": [
"{{checkout_url}}"
],
"path": [
"ctp",
"api",
"checkouts"
]
},
"description": "This method is used to generate a payment token."
},
"response": [
{
"name": "201 - Created",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-API-Version",
"value": "2.1",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"checkout\": {\r\n \"test\": true,\r\n \"transaction_type\": \"payment\",\r\n \"attempts\": 3,\r\n \"iframe\": true,\r\n \"settings\": {\r\n \"return_url\": \"http://127.0.0.1:4567/return\",\r\n \"success_url\": \"http://127.0.0.1:4567/success\",\r\n \"decline_url\": \"http://127.0.0.1:4567/decline\",\r\n \"fail_url\": \"http://127.0.0.1:4567/fail\",\r\n \"cancel_url\": \"http://127.0.0.1:4567/cancel\",\r\n \"notification_url\": \"https://webhook.site/7ccc20a8-0461-4e03-824d-4947d5fcf5bd\",\r\n \"button_next_text\": \"Continue\",\r\n \"auto_pay\": false,\r\n \"language\": \"en\"\r\n// \"save_card_toggle\": {\r\n// \"customer_contract\": true\r\n// \"text\": \"Затокенизируй карту\"\r\n// },\r\n/* \"customer_fields\": {\r\n \"visible\": [\"first_name\", \"last_name\",],\r\n \"read_only\": [\"email\"]\r\n }\r\n/* \"credit_card_fields\": {\r\n \"holder\": \"Rick Astley\",\r\n \"read_only\": [\"holder\"]\r\n }\r\n*/ },\r\n \"payment_method\": {\r\n \"types\": [\"credit_card\"]\r\n },\r\n \"credit_card\": {\r\n \"token\": \"13dded21-ed69-4590-8bcb-db522a89735c\"\r\n },\r\n \"order\": {\r\n \"currency\": \"USD\",\r\n \"amount\": 7000,\r\n \"description\": \"Test description\"\r\n/* \"additional_data\": {\r\n \"contract\": [\"recurring\"]\r\n }\r\n*/ },\r\n \"customer\": {\r\n \"first_name\":\"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"Baker street 221b\",\r\n \"country\": \"IN\",\r\n \"state\": \"MS\",\r\n \"city\": \"London\"\r\n// \"email\": \"jake@example.com\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{checkout_url}}/ctp/api/checkouts",
"host": [
"{{checkout_url}}"
],
"path": [
"ctp",
"api",
"checkouts"
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"checkout\": {\n \"token\": \"0e306f42a22c1a16699b225401fc8500ddfbb3de76da7657133a37bb264e86e1\",\n \"redirect_url\": \"{checkout_url}/widget/hpp.html?token=0e306f42a22c1a16699b225401fc8500ddfbb3de76da7657133a37bb264e86e1\"\n }\n}"
},
{
"name": "Webhook notification",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-API-Version",
"value": "2",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"checkout\": {\r\n \"test\": true,\r\n \"transaction_type\": \"payment\",\r\n \"attempts\": 3,\r\n \"iframe\": true,\r\n \"order\": {\r\n \"currency\": \"USD\",\r\n \"amount\": 7000,\r\n \"description\": \"Test description\",\r\n \"tracking_id\": \"1396khl95\"\r\n },\r\n \"settings\": {\r\n \"return_url\": \"http://example.com/return\",\r\n \"success_url\": \"http://example.com/success\",\r\n \"decline_url\": \"http://example.com/decline\",\r\n \"fail_url\": \"http://example.com/fail\",\r\n \"cancel_url\": \"http://example.com/cancel\",\r\n \"notification_url\": \"https://notification_url\",\r\n \"button_next_text\": \"Continue\",\r\n \"auto_pay\": false,\r\n \"language\": \"ru\",\r\n \"customer_fields\": {\r\n \"visible\": [\r\n \"first_name\",\r\n \"last_name\"\r\n ]\r\n },\r\n \"payment_method\": {\r\n \"types\": [\r\n \"credit_card\"\r\n ],\r\n \"credit_card\": {\r\n \"token\": \"13dded21-ed69-4590-8bcb-db522a89735c\"\r\n }\r\n },\r\n \"customer\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"Baker street 221b\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\"\r\n }\r\n }\r\n }\r\n}"
},
"url": {
"raw": "{{checkout_url}}/ctp/api/checkouts",
"host": [
"{{checkout_url}}"
],
"path": [
"ctp",
"api",
"checkouts"
]
}
},
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"7095adc0-3973-40ba-8040-6756dff1b59f\",\r\n \"status\": \"successful\",\r\n \"amount\": 7000,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test description\",\r\n \"type\": \"payment\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": null,\r\n \"message\": \"Successfully processed\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-08T10:56:53.766Z\",\r\n \"updated_at\": \"2024-08-08T10:56:56.807Z\",\r\n \"paid_at\": \"2024-08-08T10:56:56.742Z\",\r\n \"expired_at\": null,\r\n \"recurring_type\": \"initial\",\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": \"LL\",\r\n \"stamp\": \"a282993adc1299dacc79248e77e04c2995f79fcc9f82f408bec59ba20ff55739\",\r\n \"brand\": \"master\",\r\n \"last_4\": \"5003\",\r\n \"first_1\": \"5\",\r\n \"bin\": \"520424\",\r\n \"bin_8\": \"52042400\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 9,\r\n \"exp_year\": 2029,\r\n \"token_provider\": null,\r\n \"token\": \"126be0a4-7b9a-4bc0-a054-25801a4b3714\"\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/7095adc0-3973-40ba-8040-6756dff1b59f/dd3fe0c792b3c3b1696632cef113d2cdd170fa6eccedafd5c4a0991f11c7026b?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 5,\r\n \"id\": \"7095adc0-3973-40ba-8040-6756dff1b59f\",\r\n \"additional_data\": {\r\n \"contract\": [\r\n \"recurring\",\r\n \"oneclick\"\r\n ],\r\n \"request_id\": \"e86aedb5063d2df8f5a1d70ef9740a23\",\r\n \"vendor\": {\r\n \"name\": \"CTP\",\r\n \"token\": \"efbc610e68e6983d1d4825bef5f0e40abe84e3bcbaa397b69de025efd74649aa\"\r\n }\r\n },\r\n \"redirect_url\": \"{gateway_url}/process/7095adc0-3973-40ba-8040-6756dff1b59f\",\r\n \"code\": \"S.0000\",\r\n \"friendly_message\": \"The operation is successful.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"payment\": {\r\n \"auth_code\": \"654321\",\r\n \"bank_code\": \"05\",\r\n \"rrn\": \"999\",\r\n \"ref_id\": \"777888\",\r\n \"message\": \"Payment was approved\",\r\n \"amount\": 7000,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": \"test descriptor\",\r\n \"gateway_id\": 4318,\r\n \"status\": \"successful\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": \"1\"\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": \"1\"\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": \"10.0.178.1\",\r\n \"email\": null,\r\n \"device_id\": \"a965c38a13bb129a6ab48046e5acbd52\",\r\n \"birth_date\": null\r\n },\r\n \"billing_address\": {\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"address\": null,\r\n \"country\": null,\r\n \"city\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"phone\": null\r\n }\r\n }\r\n}"
}
]
},
{
"name": "Payment token + style customization",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);\r",
"var payment_token = jsonData.checkout.token;\r",
" \r",
"console.log(\"payment_token:\", payment_token);\r",
"//pm.globals.set(\"payment_token\", payment_token);\r",
"pm.collectionVariables.set(\"payment_token\", payment_token);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-API-Version",
"value": "2",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"checkout\": {\r\n \"test\": true,\r\n \"transaction_type\": \"payment\",\r\n \"attempts\": 3,\r\n \"iframe\": true,\r\n \"payment_method\": {\r\n \"types\": [\r\n \"credit_card\"\r\n ],\r\n \"credit_card\": {\r\n \"token\": \"13dded21-ed69-4590-8bcb-db522a89735c\"\r\n }\r\n },\r\n \"order\": {\r\n \"currency\": \"USD\",\r\n \"amount\": 7000,\r\n \"description\": \"Test description\"\r\n },\r\n \"customer\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"Baker street 221b\",\r\n \"country\": \"GB\"\r\n },\r\n \"settings\": {\r\n \"return_url\": \"http://example.com/return\",\r\n \"success_url\": \"http://example.com/success\",\r\n \"decline_url\": \"http://example.com/decline\",\r\n \"fail_url\": \"http://example.com/fail\",\r\n \"cancel_url\": \"http://example.com/cancel\",\r\n \"notification_url\": \"https://notification_url\",\r\n \"button_next_text\": \"Continue\",\r\n \"auto_pay\": false,\r\n \"language\": \"ru\",\r\n \"style\": {\r\n \"widget\": {\r\n \"backgroundColor\": \"\",\r\n \"buttonsColor\": \"\",\r\n \"backgroundType\": \"\",\r\n \"fontFamily\": \"\",\r\n \"color\": \"\",\r\n \"fontSize\": \"\",\r\n \"fontSmooth\": \"\",\r\n \"fontStyle\": \"\",\r\n \"fontVariant\": \"\",\r\n \"fontWeight\": \"\",\r\n \"lineHeight\": \"\",\r\n \"letterSpacing\": \"\",\r\n \"textAlign\": \"\",\r\n \"textDecoration\": \"\",\r\n \"textShadow\": \"\",\r\n \"textTransform\": \"\"\r\n },\r\n \"header\": {\r\n \"shop\": {\r\n \"margin\": \"0px 0px 0px 0px\"\r\n },\r\n \"close\": {\r\n \"margin\": \"0px 0px 0px 0px\"\r\n },\r\n \"secureInfo\": {\r\n \"margin\": \"0px 0px 0px 0px\",\r\n //\"display\": \"none\", //add to hide the element\r\n \"text\": \"Secure payment is provided by [Example PSP](https://www.example.com/)\"\r\n }//the object for modifying the secure payment text on the payment page. To modify the text on an iframe widget, edit the corresponding parameter value in the footer section\r\n },\r\n \"price\": {\r\n \"margin\": \"0px 0px 0px 0px\"\r\n },\r\n \"description\": {\r\n \"margin\": \"0px 0px 0px 0px\"\r\n },\r\n \"button\": {\r\n \"borderRadius\": \"22px\",\r\n //\"backgroundColor\": \"#03b3ff\",\r\n \"card\": {\r\n \"borderRadius\": \"22px\",\r\n \"backgroundColor\": \"\",\r\n \"text\": \"Pay with card {amount}\",\r\n \"fontFamily\": \"\",\r\n \"color\": \"\",\r\n \"fontSize\": \"\",\r\n \"fontSmooth\": \"\",\r\n \"fontStyle\": \"\",\r\n \"fontVariant\": \"\",\r\n \"fontWeight\": \"\",\r\n \"lineHeight\": \"\",\r\n \"letterSpacing\": \"\",\r\n \"textAlign\": \"\",\r\n \"textDecoration\": \"\",\r\n \"textShadow\": \"\",\r\n \"textTransform\": \"\"\r\n },\r\n \"brands\": {\r\n \"borderRadius\": \"22px\",\r\n \"backgroundColor\": \"\",\r\n \"text\": \"\",\r\n \"fontFamily\": \"\",\r\n \"color\": \"\",\r\n \"fontSize\": \"\",\r\n \"fontSmooth\": \"\",\r\n \"fontStyle\": \"\",\r\n \"fontVariant\": \"\",\r\n \"fontWeight\": \"\",\r\n \"lineHeight\": \"\",\r\n \"letterSpacing\": \"\",\r\n \"textAlign\": \"\",\r\n \"textDecoration\": \"\",\r\n \"textShadow\": \"\",\r\n \"textTransform\": \"\"\r\n },\r\n \"pay\": {\r\n \"borderRadius\": \"\",\r\n \"backgroundColor\": \"#24ff03\",\r\n \"text\": \"Pay {amount}\",\r\n \"fontFamily\": \"\",\r\n \"color\": \"\",\r\n \"fontSize\": \"\",\r\n \"fontSmooth\": \"\",\r\n \"fontStyle\": \"\",\r\n \"fontVariant\": \"\",\r\n \"fontWeight\": \"\",\r\n \"lineHeight\": \"\",\r\n \"letterSpacing\": \"\",\r\n \"textAlign\": \"\",\r\n \"textDecoration\": \"\",\r\n \"textShadow\": \"\",\r\n \"textTransform\": \"\"\r\n }\r\n },\r\n \"inputs\": {\r\n \"backgroundColor\": \"\",\r\n \"holder\": {\r\n \"backgroundColor\": \"\"\r\n },\r\n \"cvc\": {\r\n \"type\": \"password\",\r\n \"backgroundColor\": \"\"\r\n }\r\n },\r\n \"cardFace\": {\r\n \"backgroundColor\": \"\",\r\n \"backgroundImage\": \"\",\r\n \"backgroundPosition\": \"\",\r\n \"backgroundSize\": \"\",\r\n \"backgroundRepeat\": \"\"\r\n },\r\n \"footer\": {\r\n \"logo\": {\r\n \"display\": \"none\"\r\n },\r\n \"secureInfo\": {\r\n \"margin\": \"0px 0px 0px 0px\",\r\n //\"display\": \"none\", //add to hide the element\r\n \"text\": \"Secure payment is provided by [Example PSP](https://www.example.com/)\"\r\n },//the object for modifying the secure payment text on the iframe widget. To modify the text on the payment page, edit the corresponding parameter value in the header section\r\n \"additional_logos\": [\r\n \"PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMTk3IDQ4IiB3aWR0aD0iMTk3IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiMwYzExMWQiPjxwYXRoIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibTAgMjRjMTUuMjU0OCAwIDI0LTguNzQ1MiAyNC0yNCAwIDE1LjI1NDggOC43NDUyIDI0IDI0IDI0LTE1LjI1NDggMC0yNCA4Ljc0NTItMjQgMjQgMC0xNS4yNTQ4LTguNzQ1Mi0yNC0yNC0yNHoiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjxwYXRoIGQ9Im01NCAzMyA2LjU2MS0xOS42ODNoNS45NGw2LjU2MSAxOS42ODNoLTQuMzc0bC0xLjMyMy00LjA1aC03LjY2OGwtMS4zMjMgNC4wNXptNi42NjktNy4yNjNoNS43MjRsLTEuNjc0LTUuMDIyLTEuMTA3LTMuNTkxaC0uMTYybC0xLjEwNyAzLjU5MXoiLz48cGF0aCBkPSJtODAuMzgzNiAzMy4yNDNjLTEuNDQgMC0yLjctLjMwNi0zLjc4LS45MTgtMS4wOC0uNjMtMS45MTctMS41MDMtMi41MTEtMi42MTktLjU5NC0xLjEzNC0uODkxLTIuNDQ4LS44OTEtMy45NDIgMC0xLjUxMi4yOTctMi44MjYuODkxLTMuOTQyLjYxMi0xLjEzNCAxLjQ2Ny0yLjAwNyAyLjU2NS0yLjYxOSAxLjA5OC0uNjMgMi4zODUtLjk0NSAzLjg2MS0uOTQ1IDEuMjQyIDAgMi4zNDkuMjM0IDMuMzIxLjcwMnMxLjczNyAxLjExNiAyLjI5NSAxLjk0NGMuNTc2Lj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4yNy44NjQtLjI3aDIuMzQ5di0zLjI0aC0zLjEwNWMtMS4zODYgMC0yLjQzLjMzMy0zLjEzMi45OTktLjcwMi42NDgtMS4wNTMgMS41ODQtMS4wNTMgMi44MDh2MS4yMTVoLTIuMjk1djMuMjEzaDIuMjk1djEwLjY2NWgzLjgwN3YtMTAuNjY1aDYuMDE1djEwLjY2NWgzLjgwN3YtMTAuNjY1aDIuOTk3di0zLjIxM2gtMi45OTd2LTUuMDIyaC0zLjgwN3Y1LjAyMmgtNi4wMTV6Ii8+PHBhdGggZD0ibTEzMy4wNzIgMTkuMTIyaC0zLjgwN3YxMy44NzhoMy44MDd6Ii8+PHBhdGggZD0ibTczLjMzNDUgMTQuMWgtMy44MDd2MTguOWgzLjgwN3oiLz48cGF0aCBkPSJtNzYuMzM4NSAxOS4xMjJoLTIuMjk1djMuMjEzaDIuMjk1djEwLjY2NWgzLjgwN3YtMTAuNjY1aDIuOTk3di0zLjIxM2gtMi45OTd2LTUuMDIyaC0zLjgwN3oiLz48cGF0aCBkPSJtODguMDc2OCAzMS4yNzJoMy40NTZ2LTQuMjEyaDQuMjEwNXYtMy40NTZoLTQuMjEwNXYtNC4yMTJoLS4wMDE1LTMuNDU2djQuMjEyaC00LjIxMnYzLjQ1Nmg0LjIxMnY0LjIxMnoiLz48L2c+PC9zdmc+\"\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n}"
},
"url": {
"raw": "{{checkout_url}}/ctp/api/checkouts",
"host": [
"{{checkout_url}}"
],
"path": [
"ctp",
"api",
"checkouts"
]
},
"description": "This method is used to generate a payment token. The request contains an optional object `settings.style` for customizing the style of the payment page/widget. As a result of this request, the default PSP logo will be removed from the payment page/widget, two additional logos will be added instead and the data inserted into the CVC field will be masked. See more information in the API documentation."
},
"response": []
},
{
"name": "Status query",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{checkout_url}}/ctp/api/checkouts/:payment_token",
"host": [
"{{checkout_url}}"
],
"path": [
"ctp",
"api",
"checkouts",
":payment_token"
],
"variable": [
{
"key": "payment_token",
"value": "{{payment_token}}",
"description": "`checkout.token` parameter value from the response to the payment token request."
}
]
},
"description": "Send the payment token request from this collection and then send this status query. You will receive the status of the last sent request."
},
"response": [
{
"name": "Status query",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": ""
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"checkout\": {\n \"token\": \"9c174e8bb925a92c64d47372b2a3b611e520b27c86bc1c55591bfa3b319a8b55\",\n \"shop_id\": 160,\n \"transaction_type\": \"payment\",\n \"gateway_response\": {\n \"payment\": {\n \"uid\": \"82e076a4-345f-4faa-82fe-b4da9c6ced02\",\n \"type\": \"payment\",\n \"updated_at\": \"2024-09-02T16:36:40.163Z\",\n \"gateway\": {\n \"iframe\": true\n },\n \"avs_cvc_verification\": {\n \"avs_verification\": {\n \"result_code\": \"1\"\n },\n \"cvc_verification\": {\n \"result_code\": \"S\"\n }\n },\n \"auth_code\": \"654321\",\n \"bank_code\": \"05\",\n \"rrn\": \"999\",\n \"ref_id\": \"777888\",\n \"message\": \"Payment was approved\",\n \"amount\": 7000,\n \"currency\": \"USD\",\n \"billing_descriptor\": \"test descriptor\",\n \"gateway_id\": 645,\n \"status\": \"successful\",\n \"redirect_url\": \"{gateway_url}/process/82e076a4-345f-4faa-82fe-b4da9c6ced02\",\n \"receipt_url\": \"{backoffice_url}/customer/transactions/82e076a4-345f-4faa-82fe-b4da9c6ced02/7fe54d1e00274add15845351ca3bf4abdc7fe3f91ca0cbf19fd7b0730fc0913d?language=en\"\n }\n },\n \"order\": {\n \"currency\": \"USD\",\n \"amount\": 7000,\n \"description\": \"Test description\",\n \"tracking_id\": \"1396khl95\",\n \"additional_data\": {\n \"contract\": [\n \"recurring\"\n ],\n \"request_id\": \"fd7a221d6ec08e036cf243daea76f0aa\",\n \"browser\": {\n \"screen_width\": 1536,\n \"screen_height\": 864,\n \"screen_color_depth\": 24,\n \"language\": \"en\",\n \"java_enabled\": false,\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0\",\n \"time_zone\": -180,\n \"time_zone_name\": \"Europe/Helsinki\",\n \"window_height\": 909,\n \"window_width\": 600,\n \"accept_header\": \"application/json\"\n },\n \"vendor\": {\n \"name\": \"CTP\",\n \"token\": \"9c174e8bb925a92c64d47372b2a3b611e520b27c86bc1c55591bfa3b319a8b55\"\n }\n },\n \"expired_at\": null\n },\n \"settings\": {\n \"success_url\": \"http://example.com/success\",\n \"fail_url\": \"http://example.com/fail\",\n \"decline_url\": \"http://example.com/decline\",\n \"notification_url\": \"notification_url\",\n \"verification_url\": null,\n \"cancel_url\": \"http://example.com/cancel\",\n \"return_url\": \"http://example.com/return\",\n \"language\": \"en\",\n \"customer_fields\": {\n \"visible\": [\n \"first_name\",\n \"last_name\"\n ]\n },\n \"credit_card_fields\": {},\n \"auto_return\": null,\n \"button_text\": null,\n \"button_next_text\": \"Continue\",\n \"save_card_toggle\": {\n \"display\": true,\n \"customer_contract\": false\n },\n \"another_card_toggle\": {\n \"display\": true\n },\n \"auto_pay\": false,\n \"style\": {\n \"widget\": {\n \"buttonsColor\": \"#8f1985\",\n \"backgroundType\": 8\n }\n },\n \"widget_version\": 1\n },\n \"customer\": {\n \"first_name\": \"i\",\n \"last_name\": \"i\",\n \"address\": null,\n \"city\": null,\n \"country\": null,\n \"state\": null,\n \"phone\": null,\n \"zip\": null,\n \"email\": null,\n \"birth_date\": null,\n \"device_id\": \"c6ab24acb16dc3b626854e3eca0349e6\",\n \"taxpayer_id\": null\n },\n \"finished\": true,\n \"expired\": false,\n \"shop\": {\n \"id\": \"160\",\n \"name\": \"Demo Shop\",\n \"country\": \"AU\",\n \"url\": \"https://demo-shop.com\",\n \"contact_email\": \"test@demo-shop.com\",\n \"contact_phone\": \"+123456789\",\n \"brands\": [\n \"visa\",\n \"master\"\n ]\n },\n \"merchant\": {\n \"id\": \"60\",\n \"country\": \"GB\"\n },\n \"test\": true,\n \"status\": \"successful\",\n \"message\": \"Transaction is successful.\",\n \"version\": null,\n \"card_info\": {},\n \"job_id\": \"eff8e8a0-2eb8-40ef-a731-c37f0e5dc76f\",\n \"payment_method\": {\n \"types\": [],\n \"excluded_types\": [],\n \"data\": {},\n \"created_at\": \"2024-09-02T16:35:55Z\",\n \"updated_at\": \"2024-09-02T16:35:55Z\",\n \"id\": 72965,\n \"checkout_data_id\": 78695\n }\n }\n}"
}
]
}
],
"description": "The merchant needs to create a payment token in order to use the payment page or the payment widget.\n\nThe mostly used parameters are described in the table below. All parameters are described in the API documentation.\n\n| **Parameter** | **Required** | **Type** | **Description** |\n| --- | --- | --- | --- |\n| `checkout` | + | `object` | |\n\n`checkout`\n\n| | | | |\n| --- | --- | --- | --- |\n| `transaction_type` | + | `string` | `authorization` <br>`payment` <br>`tokenization` <br>`charge` |\n| `order` | + | `object` | |\n\n`order`\n\n| | | | |\n| --- | --- | --- | --- |\n| `amount` | + | `bigInteger` | Transaction amount in the minimal currency units. |\n| `currency` | + | `string` | A transaction currency in the ISO-4217 alpha-3 code format or a cryptocurrency code. For example, USD. |\n| `description` | + | `string` | The order description. |\n| `additional_data.contract` | - | `array` | An array of contract types. Depending on the submitted contract types, the system will return additional values in the webhook notification <br> <br>`recurring -` the system will return the card token value. If not submitted, the card token value will be `null`. |\n\n`settings`\n\n| | | | |\n| --- | --- | --- | --- |\n| `return_url` | \\- | `string` | URL where the customer will be redirected to once the payment is completed. |\n| `notification_url` | \\- | `string` | URL where the system will send the webhook notification with the final transaction status. |\n| `auto_pay` | \\- | `boolean` | If `true` and the request includes `payment_method.credit_card.token`, the request will return a link. Opening this link will automatically trigger the transaction that will run using the provided token. |\n\n`settings.payment_method`\n\n| | | | |\n| --- | --- | --- | --- |\n| `credit_card.token` | \\- | `string` | Card token. |\n\n**Autopay with the card token**\n\nIf the request contains `\"auto_pay\": true` and the token is sent in `settings.payment_method.credit_card.token,` clicking the link will automatically trigger the transaction, the customer will see the spinner and then the transaction result.",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
}
]
},
{
"name": "GATEWAY",
"item": [
{
"name": "Payment",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);\r",
"var tracking_id_payment = jsonData.transaction.tracking_id;\r",
" \r",
"console.log(\"tracking_id_payment:\", tracking_id_payment);\r",
"//pm.globals.set(\"tracking_id_payment\", tracking_id_payment);\r",
"pm.collectionVariables.set(\"tracking_id_payment\", tracking_id_payment);\r",
"\r",
"var jsonData = JSON.parse(responseBody);\r",
"var tracking_id_payment = jsonData.transaction.uid;\r",
" \r",
"console.log(\"uid_payment:\", tracking_id_payment);\r",
"//pm.globals.set(\"tracking_id_payment\", tracking_id_payment);\r",
"pm.collectionVariables.set(\"uid_payment\", tracking_id_payment);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": \"700\",\r\n \"currency\": \"USD\",\r\n \"test\": true,\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"notification_url\": \"https://notification_url\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"state\": \"\",\r\n \"zip\": \"\",\r\n \"address\": \"\",\r\n \"phone\": \"\"\r\n },\r\n \"credit_card\": {\r\n \"number\": \"4242424242424242\", \r\n \"verification_value\": \"123\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": 10,\r\n \"exp_year\": 2030 \r\n // \"token\": \"9392aacb-aafa-4776-90eb-3bb2cc8a880f\"\r\n },\r\n \"customer\": {\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"additional_data\": {\r\n \"browser\": {\r\n \"screen_width\": 1920,\r\n \"screen_height\": 1080,\r\n \"screen_color_depth\": 24,\r\n \"language\": \"en\",\r\n \"java_enabled\": false,\r\n \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36\",\r\n \"time_zone\": -180,\r\n \"time_zone_name\": \"Europe\",\r\n \"accept_header\": \"json\",\r\n \"window_height\": 667,\r\n \"window_width\": 600\r\n }\r\n /*\"contract\": [ \r\n \"recurring\",\r\n \"card_on_file\"\r\n ]*/ //array for card tokenization. If not sent, an empty token will be returned\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/payments",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"payments"
]
},
"description": "Instead of `credit_card` object you can send `encrypted_data` object. See more information about the data encryption in **JWE encryption form** folder."
},
"response": [
{
"name": "200 OK Successful",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": \"700\",\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"notification_url\": \"https://webhook.site/1123d8e6-6053-4a9a-b374-d6139d6639c7\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"state\": \"\",\r\n \"zip\": \"\",\r\n \"address\": \"\",\r\n \"phone\": \"\"\r\n },\r\n \"credit_card\": {\r\n \"number\": \"4242424242424242\",\r\n \"verification_value\": \"123\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": 10,\r\n \"exp_year\": 2029,\r\n \"save_card\": true,\r\n \"skip_three_d_secure_verification\":\"false\"\r\n// \"token\": \"9392aacb-aafa-4776-90eb-3bb2cc8a880f\"\r\n },\r\n \"customer\": {\r\n \"ip\": \"\",\r\n \"email\": \"\",\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"additional_data\": {\r\n \"browser\": {\r\n \"screen_width\": 1920,\r\n \"screen_height\": 1080,\r\n \"screen_color_depth\": 24,\r\n \"language\": \"en\",\r\n \"java_enabled\": false,\r\n \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36\",\r\n \"time_zone\": -180,\r\n \"time_zone_name\": \"Europe\",\r\n \"accept_header\": \"json\",\r\n \"window_height\": 667,\r\n \"window_width\": 600\r\n }\r\n// \"contract\": [\"recurring\"]\r\n },\r\n/* \"three_d_secure\": {\r\n \"advanced\": true\r\n },\r\n*/ \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "/transactions/payments",
"path": [
"transactions",
"payments"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"a0e28aa9-014d-4f08-8d86-848ba9073cb5\",\r\n \"status\": \"successful\",\r\n \"amount\": 700,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"payment\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"message\": \"Successfully processed\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T11:07:50.800Z\",\r\n \"updated_at\": \"2024-08-02T11:07:56.359Z\",\r\n \"paid_at\": \"2024-08-02T11:07:56.252Z\",\r\n \"expired_at\": null,\r\n \"recurring_type\": null,\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"4242\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"424242\",\r\n \"bin_8\": \"42424242\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 10,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/a0e28aa9-014d-4f08-8d86-848ba9073cb5/92678b75f76f94aa8bca66b45c5555bed57896c58d497b07444c534341434383?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 5,\r\n \"id\": \"a0e28aa9-014d-4f08-8d86-848ba9073cb5\",\r\n \"additional_data\": {},\r\n \"redirect_url\": \"{gateway_url}/process/a0e28aa9-014d-4f08-8d86-848ba9073cb5\",\r\n \"code\": \"S.0000\",\r\n \"friendly_message\": \"The operation is successful.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"payment\": {\r\n \"auth_code\": \"654321\",\r\n \"bank_code\": \"05\",\r\n \"rrn\": \"999\",\r\n \"ref_id\": \"777888\",\r\n \"message\": \"Payment was approved\",\r\n \"amount\": 700,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": \"test descriptor\",\r\n \"gateway_id\": 4318,\r\n \"status\": \"successful\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": \"1\"\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": \"1\"\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": null,\r\n \"email\": null,\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"zip\": \"\",\r\n \"state\": \"\",\r\n \"phone\": \"\"\r\n }\r\n }\r\n}"
},
{
"name": "200 OK Incomplete",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": \"700\",\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"notification_url\": \"https://webhook.site/1123d8e6-6053-4a9a-b374-d6139d6639c7\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"state\": \"\",\r\n \"zip\": \"\",\r\n \"address\": \"\",\r\n \"phone\": \"\"\r\n },\r\n \"credit_card\": {\r\n \"number\": \"4242424242424242\",\r\n \"verification_value\": \"123\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": 10,\r\n \"exp_year\": 2023,\r\n \"save_card\": true,\r\n \"skip_three_d_secure_verification\":\"false\"\r\n// \"token\": \"9392aacb-aafa-4776-90eb-3bb2cc8a880f\"\r\n },\r\n \"customer\": {\r\n \"ip\": \"\",\r\n \"email\": \"\",\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"additional_data\": {\r\n \"browser\": {\r\n \"screen_width\": 1920,\r\n \"screen_height\": 1080,\r\n \"screen_color_depth\": 24,\r\n \"language\": \"en\",\r\n \"java_enabled\": false,\r\n \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36\",\r\n \"time_zone\": -180,\r\n \"time_zone_name\": \"Europe\",\r\n \"accept_header\": \"json\",\r\n \"window_height\": 667,\r\n \"window_width\": 600\r\n }\r\n// \"contract\": [\"recurring\"]\r\n },\r\n/* \"three_d_secure\": {\r\n \"advanced\": true\r\n },\r\n*/ \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/payments",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"payments"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"6f2b611f-df1e-4b39-93bf-7feef85477e5\",\r\n \"status\": \"incomplete\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"authorization\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"your_uniq_number\",\r\n \"message\": null,\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T12:48:21.277Z\",\r\n \"updated_at\": \"2024-08-02T12:48:22.061Z\",\r\n \"paid_at\": null,\r\n \"expired_at\": null,\r\n \"recurring_type\": null,\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"4242\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"424242\",\r\n \"bin_8\": \"42424242\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 5,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/6f2b611f-df1e-4b39-93bf-7feef85477e5/5f5440a6d08eda076693cabca33ad2a0e57b879e787dd5e60c97606c03b8d4f4?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 3,\r\n \"id\": \"6f2b611f-df1e-4b39-93bf-7feef85477e5\",\r\n \"redirect_url\": \"{gateway_url}/process/6f2b611f-df1e-4b39-93bf-7feef85477e5\",\r\n \"code\": \"P.4012\",\r\n \"friendly_message\": \"Redirect to pass 3-D Secure verification.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"three_d_secure_verification\": {\r\n \"status\": \"incomplete\",\r\n \"message\": \"Authentication Available\",\r\n \"ve_status\": \"Y\",\r\n \"acs_url\": null,\r\n \"pa_req\": null,\r\n \"md\": null,\r\n \"pa_res_url\": \"{gateway_url}/process/6f2b611f-df1e-4b39-93bf-7feef85477e5\",\r\n \"eci\": null,\r\n \"pa_status\": null,\r\n \"xid\": null,\r\n \"fail_reason\": null,\r\n \"method_process_url\": null,\r\n \"creq\": null\r\n },\r\n \"authorization\": {\r\n \"auth_code\": null,\r\n \"bank_code\": null,\r\n \"rrn\": null,\r\n \"ref_id\": null,\r\n \"message\": null,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": null,\r\n \"gateway_id\": 4318,\r\n \"status\": \"incomplete\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": null\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": null\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"device_id\": null,\r\n \"birth_date\": null\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"1st Street\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"zip\": \"96002\",\r\n \"state\": \"CO\",\r\n \"phone\": null\r\n }\r\n }\r\n}"
},
{
"name": "200 OK Failed",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": \"700\",\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"notification_url\": \"https://webhook.site/1123d8e6-6053-4a9a-b374-d6139d6639c7\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"state\": \"\",\r\n \"zip\": \"\",\r\n \"address\": \"\",\r\n \"phone\": \"\"\r\n },\r\n \"credit_card\": {\r\n \"number\": \"4242424242424242\",\r\n \"verification_value\": \"123\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": 10,\r\n \"exp_year\": 2023,\r\n \"save_card\": true,\r\n \"skip_three_d_secure_verification\":\"false\"\r\n// \"token\": \"9392aacb-aafa-4776-90eb-3bb2cc8a880f\"\r\n },\r\n \"customer\": {\r\n \"ip\": \"\",\r\n \"email\": \"\",\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"additional_data\": {\r\n \"browser\": {\r\n \"screen_width\": 1920,\r\n \"screen_height\": 1080,\r\n \"screen_color_depth\": 24,\r\n \"language\": \"en\",\r\n \"java_enabled\": false,\r\n \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36\",\r\n \"time_zone\": -180,\r\n \"time_zone_name\": \"Europe\",\r\n \"accept_header\": \"json\",\r\n \"window_height\": 667,\r\n \"window_width\": 600\r\n }\r\n// \"contract\": [\"recurring\"]\r\n },\r\n/* \"three_d_secure\": {\r\n \"advanced\": true\r\n },\r\n*/ \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/payments",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"payments"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"f8c1898c-fb94-4928-ab4b-db036cf6e86c\",\r\n \"status\": \"failed\",\r\n \"amount\": 700,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"payment\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"message\": \"Payment was declined\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T13:00:35.326Z\",\r\n \"updated_at\": \"2024-08-02T13:00:39.055Z\",\r\n \"paid_at\": \"2024-08-02T13:00:39.002Z\",\r\n \"expired_at\": null,\r\n \"recurring_type\": null,\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"4242\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"424242\",\r\n \"bin_8\": \"42424242\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 10,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/f8c1898c-fb94-4928-ab4b-db036cf6e86c/e3ad4df24ce2b216373916e59587c16e672c32dbb9e27116d5676e10e9edee78?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 5,\r\n \"id\": \"f8c1898c-fb94-4928-ab4b-db036cf6e86c\",\r\n \"additional_data\": {},\r\n \"redirect_url\": \"{gateway_url}/process/f8c1898c-fb94-4928-ab4b-db036cf6e86c\",\r\n \"code\": \"F.0001\",\r\n \"friendly_message\": \"Failed to complete the transaction: Check the card details and, if they are correct, contact your bank to explain the reasons. The bank's phone number is indicated on the back of the card.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"payment\": {\r\n \"auth_code\": \"654321\",\r\n \"bank_code\": \"10\",\r\n \"rrn\": \"999\",\r\n \"ref_id\": \"777888\",\r\n \"message\": \"Payment was declined\",\r\n \"amount\": 700,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": \"test descriptor\",\r\n \"gateway_id\": 4318,\r\n \"status\": \"failed\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": null\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": null\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": null,\r\n \"email\": null,\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"zip\": \"\",\r\n \"state\": \"\",\r\n \"phone\": \"\"\r\n }\r\n }\r\n}"
}
]
},
{
"name": "Refund",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"parent_uid\": \"{{uid_payment}}\", //uid of the transaction of Payment or Capture type for which the refund is made\r\n \"amount\": 100, //refund amount in minimal currency units\r\n \"reason\": \"Client request\" //reason for the refund\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/refunds",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"refunds"
]
}
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"parent_uid\": \"{{uid_payment}}\", //uid of the transaction of Payment or Capture type for which the refund is made\r\n \"amount\": 100, //refund amount in minimal currency units\r\n \"reason\": \"Client request\" //reason for the refund\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/refunds",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"refunds"
]
}
},
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"transaction\": {\n \"uid\": \"91f4d8a7-e188-427c-8633-9350873ec039\",\n \"status\": \"successful\",\n \"amount\": 100,\n \"currency\": \"USD\",\n \"reason\": \"Client request\",\n \"type\": \"refund\",\n \"message\": \"Transaction is successful.\",\n \"test\": true,\n \"created_at\": \"2025-04-10T19:19:08.720Z\",\n \"updated_at\": \"2025-04-10T19:19:14.765Z\",\n \"paid_at\": \"2025-04-10T19:19:14.704Z\",\n \"closed_at\": null,\n \"settled_at\": null,\n \"manually_corrected_at\": null,\n \"parent_uid\": \"8bb0e818-3405-482d-93df-18902bdd7cb7\",\n \"receipt_url\": \"{backoffice_url}/customer/transactions/91f4d8a7-e188-427c-8633-9350873ec039/88c7d4ae9d89a09cf317ea94cd5812f375ec43c85ef879d0147769cb735b6f28?language=en\",\n \"status_code\": null,\n \"mute_notifications\": null,\n \"version\": 4,\n \"psp_settled_at\": null,\n \"registry_id\": null,\n \"id\": \"91f4d8a7-e188-427c-8633-9350873ec039\",\n \"code\": \"S.0000\",\n \"friendly_message\": \"The transaction is successfully processed.\",\n \"smart_routing_verification\": {\n \"status\": \"successful\"\n },\n \"refund\": {\n \"message\": \"Refund was approved\",\n \"ref_id\": \"8889999\",\n \"rrn\": null,\n \"auth_code\": null,\n \"bank_code\": \"05\",\n \"gateway_id\": 645,\n \"status\": \"successful\"\n }\n }\n}"
}
]
},
{
"name": "Payment + encrypted card data",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": \"700\",\r\n \"currency\": \"USD\",\r\n \"test\": true,\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"notification_url\": \"https://notification_url\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"state\": \"\",\r\n \"zip\": \"\",\r\n \"address\": \"\",\r\n \"phone\": \"\"\r\n },\r\n \"encrypted_data\": \"eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4R0NNIiwidHlwIjoiSldFIiwidmVyc2lvbiI6IjEuMC4wIn0.e-gopha4maPQ_t3li6Jrj1uTTCQx-1pZC3jJmuor0hm4azx5NVJz1IIoPWkyIR9-oP3KcdAeAIqaMy2ugJvlVnd5A3y63SDZv0Kswul2aJgp9UkvELm3PQCyIw0lUreLnIX8XTEr64Pv0Zd9C07yls8UsHT3mCsrhd2fJe8-AjXiSgDDzkCjm6OqrmgXjjORFOwE17P_xg5ut72gtJdQbiDgEGADYNr1kPrxdDQBkNVtmO7Qs0vM85qJP1trpKY4aLBTxpMH4VM6lmRprwXuHdi-QYrJeXe1PvLqJiaacffS1szRUBoXe4rzs-w_xXXM7aRO73zmoxe0lhzFrSt4ag.__rIdcgb0vY57rec.L-mRBlgVPz_OKpBpfFFr_YgO6xNTf6O-8ANyeTL7RF9ISh7rnNt9Fsmt1rlzTmJn4Fjqo35NNENBqOpXMMTSaxc1_40uTypXVFO3WWV7iNpSE40h97N4MCGgcsx3Y-TLhz9Aw11VoknrjG8.KCiwaHNFDxrWzWAE85_KpA\",\r\n \"customer\": {\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"additional_data\": {\r\n \"browser\": {\r\n \"screen_width\": 1920,\r\n \"screen_height\": 1080,\r\n \"screen_color_depth\": 24,\r\n \"language\": \"en\",\r\n \"java_enabled\": false,\r\n \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36\",\r\n \"time_zone\": -180,\r\n \"time_zone_name\": \"Europe\",\r\n \"accept_header\": \"json\",\r\n \"window_height\": 667,\r\n \"window_width\": 600\r\n }\r\n // \"contract\": [\"recurring\"]\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/payments",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"payments"
]
},
"description": "Instead of `credit_card` object you can send `encrypted_data` object. See more information about the data encryption in **JWE encryption form** folder."
},
"response": [
{
"name": "200 OK Successful",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": \"700\",\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"notification_url\": \"https://webhook.site/1123d8e6-6053-4a9a-b374-d6139d6639c7\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"state\": \"\",\r\n \"zip\": \"\",\r\n \"address\": \"\",\r\n \"phone\": \"\"\r\n },\r\n \"credit_card\": {\r\n \"number\": \"4242424242424242\",\r\n \"verification_value\": \"123\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": 10,\r\n \"exp_year\": 2029,\r\n \"save_card\": true,\r\n \"skip_three_d_secure_verification\":\"false\"\r\n// \"token\": \"9392aacb-aafa-4776-90eb-3bb2cc8a880f\"\r\n },\r\n \"customer\": {\r\n \"ip\": \"\",\r\n \"email\": \"\",\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"additional_data\": {\r\n \"browser\": {\r\n \"screen_width\": 1920,\r\n \"screen_height\": 1080,\r\n \"screen_color_depth\": 24,\r\n \"language\": \"en\",\r\n \"java_enabled\": false,\r\n \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36\",\r\n \"time_zone\": -180,\r\n \"time_zone_name\": \"Europe\",\r\n \"accept_header\": \"json\",\r\n \"window_height\": 667,\r\n \"window_width\": 600\r\n }\r\n// \"contract\": [\"recurring\"]\r\n },\r\n/* \"three_d_secure\": {\r\n \"advanced\": true\r\n },\r\n*/ \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "/transactions/payments",
"path": [
"transactions",
"payments"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"0e131ca9-5832-4b0a-8936-0e3caf297fe7\",\r\n \"status\": \"successful\",\r\n \"amount\": 700,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"payment\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"message\": \"Successfully processed\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-07T13:36:20.599Z\",\r\n \"updated_at\": \"2024-08-07T13:36:25.224Z\",\r\n \"paid_at\": \"2024-08-07T13:36:25.155Z\",\r\n \"expired_at\": null,\r\n \"recurring_type\": null,\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": null,\r\n \"stamp\": \"fdf187f6da86ed3b2d58916382fd213ee4608fffdb3e91eb8a083d1debf298d9\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"3010\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"401200\",\r\n \"bin_8\": \"40120000\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 8,\r\n \"exp_year\": 2027,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/0e131ca9-5832-4b0a-8936-0e3caf297fe7/148aff9f64e53d59261f7d87ba354e4a71ff8eee73f7b587b1b826291f2f7a64?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 5,\r\n \"id\": \"0e131ca9-5832-4b0a-8936-0e3caf297fe7\",\r\n \"additional_data\": {},\r\n \"redirect_url\": \"{gateway_url}/process/0e131ca9-5832-4b0a-8936-0e3caf297fe7\",\r\n \"code\": \"S.0000\",\r\n \"friendly_message\": \"The operation is successful.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"payment\": {\r\n \"auth_code\": \"654321\",\r\n \"bank_code\": \"05\",\r\n \"rrn\": \"999\",\r\n \"ref_id\": \"777888\",\r\n \"message\": \"Payment was approved\",\r\n \"amount\": 700,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": \"test descriptor\",\r\n \"gateway_id\": 4318,\r\n \"status\": \"successful\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": \"1\"\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": \"1\"\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": null,\r\n \"email\": null,\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"zip\": \"\",\r\n \"state\": \"\",\r\n \"phone\": \"\"\r\n }\r\n }\r\n}"
},
{
"name": "200 OK Incomplete",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": \"700\",\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"notification_url\": \"https://webhook.site/1123d8e6-6053-4a9a-b374-d6139d6639c7\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"state\": \"\",\r\n \"zip\": \"\",\r\n \"address\": \"\",\r\n \"phone\": \"\"\r\n },\r\n \"credit_card\": {\r\n \"number\": \"4242424242424242\",\r\n \"verification_value\": \"123\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": 10,\r\n \"exp_year\": 2023,\r\n \"save_card\": true,\r\n \"skip_three_d_secure_verification\":\"false\"\r\n// \"token\": \"9392aacb-aafa-4776-90eb-3bb2cc8a880f\"\r\n },\r\n \"customer\": {\r\n \"ip\": \"\",\r\n \"email\": \"\",\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"additional_data\": {\r\n \"browser\": {\r\n \"screen_width\": 1920,\r\n \"screen_height\": 1080,\r\n \"screen_color_depth\": 24,\r\n \"language\": \"en\",\r\n \"java_enabled\": false,\r\n \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36\",\r\n \"time_zone\": -180,\r\n \"time_zone_name\": \"Europe\",\r\n \"accept_header\": \"json\",\r\n \"window_height\": 667,\r\n \"window_width\": 600\r\n }\r\n// \"contract\": [\"recurring\"]\r\n },\r\n/* \"three_d_secure\": {\r\n \"advanced\": true\r\n },\r\n*/ \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/payments",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"payments"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"6f2b611f-df1e-4b39-93bf-7feef85477e5\",\r\n \"status\": \"incomplete\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"authorization\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"your_uniq_number\",\r\n \"message\": null,\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T12:48:21.277Z\",\r\n \"updated_at\": \"2024-08-02T12:48:22.061Z\",\r\n \"paid_at\": null,\r\n \"expired_at\": null,\r\n \"recurring_type\": null,\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"1097\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"401200\",\r\n \"bin_8\": \"40120000\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 5,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/6f2b611f-df1e-4b39-93bf-7feef85477e5/5f5440a6d08eda076693cabca33ad2a0e57b879e787dd5e60c97606c03b8d4f4?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 3,\r\n \"id\": \"6f2b611f-df1e-4b39-93bf-7feef85477e5\",\r\n \"redirect_url\": \"{gateway_url}/process/6f2b611f-df1e-4b39-93bf-7feef85477e5\",\r\n \"code\": \"P.4012\",\r\n \"friendly_message\": \"Redirect to pass 3-D Secure verification.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"three_d_secure_verification\": {\r\n \"status\": \"incomplete\",\r\n \"message\": \"Authentication Available\",\r\n \"ve_status\": \"Y\",\r\n \"acs_url\": null,\r\n \"pa_req\": null,\r\n \"md\": null,\r\n \"pa_res_url\": \"{gateway_url}/process/6f2b611f-df1e-4b39-93bf-7feef85477e5\",\r\n \"eci\": null,\r\n \"pa_status\": null,\r\n \"xid\": null,\r\n \"fail_reason\": null,\r\n \"method_process_url\": null,\r\n \"creq\": null\r\n },\r\n \"authorization\": {\r\n \"auth_code\": null,\r\n \"bank_code\": null,\r\n \"rrn\": null,\r\n \"ref_id\": null,\r\n \"message\": null,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": null,\r\n \"gateway_id\": 4318,\r\n \"status\": \"incomplete\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": null\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": null\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"device_id\": null,\r\n \"birth_date\": null\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"1st Street\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"zip\": \"96002\",\r\n \"state\": \"CO\",\r\n \"phone\": null\r\n }\r\n }\r\n}"
},
{
"name": "200 OK Failed",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": \"700\",\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"notification_url\": \"https://webhook.site/1123d8e6-6053-4a9a-b374-d6139d6639c7\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"state\": \"\",\r\n \"zip\": \"\",\r\n \"address\": \"\",\r\n \"phone\": \"\"\r\n },\r\n \"credit_card\": {\r\n \"number\": \"4242424242424242\",\r\n \"verification_value\": \"123\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": 10,\r\n \"exp_year\": 2023,\r\n \"save_card\": true,\r\n \"skip_three_d_secure_verification\":\"false\"\r\n// \"token\": \"9392aacb-aafa-4776-90eb-3bb2cc8a880f\"\r\n },\r\n \"customer\": {\r\n \"ip\": \"\",\r\n \"email\": \"\",\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"additional_data\": {\r\n \"browser\": {\r\n \"screen_width\": 1920,\r\n \"screen_height\": 1080,\r\n \"screen_color_depth\": 24,\r\n \"language\": \"en\",\r\n \"java_enabled\": false,\r\n \"user_agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36\",\r\n \"time_zone\": -180,\r\n \"time_zone_name\": \"Europe\",\r\n \"accept_header\": \"json\",\r\n \"window_height\": 667,\r\n \"window_width\": 600\r\n }\r\n// \"contract\": [\"recurring\"]\r\n },\r\n/* \"three_d_secure\": {\r\n \"advanced\": true\r\n },\r\n*/ \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/payments",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"payments"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"f8c1898c-fb94-4928-ab4b-db036cf6e86c\",\r\n \"status\": \"failed\",\r\n \"amount\": 700,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"payment\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"message\": \"Payment was declined\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T13:00:35.326Z\",\r\n \"updated_at\": \"2024-08-02T13:00:39.055Z\",\r\n \"paid_at\": \"2024-08-02T13:00:39.002Z\",\r\n \"expired_at\": null,\r\n \"recurring_type\": null,\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"1097\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"401200\",\r\n \"bin_8\": \"40120000\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 10,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/f8c1898c-fb94-4928-ab4b-db036cf6e86c/e3ad4df24ce2b216373916e59587c16e672c32dbb9e27116d5676e10e9edee78?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 5,\r\n \"id\": \"f8c1898c-fb94-4928-ab4b-db036cf6e86c\",\r\n \"additional_data\": {},\r\n \"redirect_url\": \"{gateway_url}/process/f8c1898c-fb94-4928-ab4b-db036cf6e86c\",\r\n \"code\": \"F.0001\",\r\n \"friendly_message\": \"Failed to complete the transaction: Check the card details and, if they are correct, contact your bank to explain the reasons. The bank's phone number is indicated on the back of the card.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"payment\": {\r\n \"auth_code\": \"654321\",\r\n \"bank_code\": \"10\",\r\n \"rrn\": \"999\",\r\n \"ref_id\": \"777888\",\r\n \"message\": \"Payment was declined\",\r\n \"amount\": 700,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": \"test descriptor\",\r\n \"gateway_id\": 4318,\r\n \"status\": \"failed\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": null\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": null\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": null,\r\n \"email\": null,\r\n \"device_id\": \"\",\r\n \"birth_date\": \"\"\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"\",\r\n \"country\": \"GB\",\r\n \"city\": \"London\",\r\n \"zip\": \"\",\r\n \"state\": \"\",\r\n \"phone\": \"\"\r\n }\r\n }\r\n}"
}
]
},
{
"name": "Authorization",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);\r",
"var parent_uid = jsonData.transaction.uid;\r",
" \r",
"console.log(\"parent_uid:\", parent_uid);\r",
"//pm.globals.set(\"parent_uid\", parent_uid);\r",
"pm.collectionVariables.set(\"parent_uid\", parent_uid);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-API-Version",
"value": "2.1",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"amount\":100,\r\n \"currency\":\"USD\",\r\n \"description\":\"Test transaction\",\r\n \"tracking_id\":\"2958305-19tujb89\",\r\n \"language\":\"en\",\r\n \"test\":true,\r\n \"billing_address\":{\r\n \"first_name\":\"John\",\r\n \"last_name\":\"Doe\",\r\n \"country\":\"US\",\r\n \"city\":\"Denver\",\r\n \"state\":\"CO\",\r\n \"zip\":\"96002\",\r\n \"address\":\"1st Street\"\r\n },\r\n \"credit_card\":{\r\n \"number\":\"4242424242424242\",\r\n \"verification_value\":\"123\",\r\n \"holder\":\"John Doe\",\r\n \"exp_month\":\"05\",\r\n \"exp_year\":\"2030\",\r\n \"skip_three_d_secure_verification\": true\r\n },\r\n \"customer\":{\r\n \"ip\":\"127.0.0.1\",\r\n \"email\":\"john@example.com\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/authorizations",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"authorizations"
]
}
},
"response": [
{
"name": "200 - OK Successful",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-API-Version",
"value": "2.1",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"amount\":100,\r\n \"currency\":\"USD\",\r\n \"description\":\"Test transaction\",\r\n \"tracking_id\":\"your_uniq_number\",\r\n \"language\":\"en\",\r\n \"test\":true,\r\n \"billing_address\":{\r\n \"first_name\":\"John\",\r\n \"last_name\":\"Doe\",\r\n \"country\":\"US\",\r\n \"city\":\"Denver\",\r\n \"state\":\"CO\",\r\n \"zip\":\"96002\",\r\n \"address\":\"1st Street\"\r\n },\r\n \"credit_card\":{\r\n \"number\":\"4242424242424242\",\r\n \"verification_value\":\"123\",\r\n \"holder\":\"John Doe\",\r\n \"exp_month\":\"05\",\r\n \"exp_year\":\"2030\"\r\n },\r\n \"customer\":{\r\n \"ip\":\"127.0.0.1\",\r\n \"email\":\"john@example.com\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/authorizations",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"authorizations"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"24ef375a-59dd-43a5-b939-7f01ed20024d\",\r\n \"status\": \"successful\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"authorization\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"your_uniq_number\",\r\n \"message\": \"Successfully processed\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T12:38:18.464Z\",\r\n \"updated_at\": \"2024-08-02T12:38:25.165Z\",\r\n \"paid_at\": \"2024-08-02T12:38:25.096Z\",\r\n \"expired_at\": null,\r\n \"recurring_type\": null,\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"b3839d334ba40e89168d60cd9f9d1390aee3fe67dd4d5c41adbf3998043eaef8\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"4242\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"424242\",\r\n \"bin_8\": \"42424242\",\r\n \"issuer_country\": \"US\",\r\n \"issuer_name\": \"VISA Demo Bank\",\r\n \"product\": \"F\",\r\n \"exp_month\": 5,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/24ef375a-59dd-43a5-b939-7f01ed20024d/5ceb642b2daff627bc815ab660db27fb214f757e2407d24f2e7fa557e21b5edb?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 5,\r\n \"id\": \"24ef375a-59dd-43a5-b939-7f01ed20024d\",\r\n \"redirect_url\": \"{gateway_url}/process/24ef375a-59dd-43a5-b939-7f01ed20024d\",\r\n \"code\": \"S.0000\",\r\n \"friendly_message\": \"The operation is successful.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"authorization\": {\r\n \"auth_code\": \"654321\",\r\n \"bank_code\": \"05\",\r\n \"rrn\": \"999\",\r\n \"ref_id\": \"777888\",\r\n \"message\": \"Authorization was approved\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": \"test descriptor\",\r\n \"gateway_id\": 4318,\r\n \"status\": \"successful\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": \"1\"\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": \"1\"\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"device_id\": null,\r\n \"birth_date\": null\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"1st Street\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"zip\": \"96002\",\r\n \"state\": \"CO\",\r\n \"phone\": null\r\n }\r\n }\r\n}"
},
{
"name": "200 OK Incomplete",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-API-Version",
"value": "2.1",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"amount\":100,\r\n \"currency\":\"USD\",\r\n \"description\":\"Test transaction\",\r\n \"tracking_id\":\"your_uniq_number\",\r\n \"language\":\"en\",\r\n \"test\":true,\r\n \"billing_address\":{\r\n \"first_name\":\"John\",\r\n \"last_name\":\"Doe\",\r\n \"country\":\"US\",\r\n \"city\":\"Denver\",\r\n \"state\":\"CO\",\r\n \"zip\":\"96002\",\r\n \"address\":\"1st Street\"\r\n },\r\n \"credit_card\":{\r\n \"number\":\"4242424242424242\",\r\n \"verification_value\":\"123\",\r\n \"holder\":\"John Doe\",\r\n \"exp_month\":\"05\",\r\n \"exp_year\":\"2030\"\r\n },\r\n \"customer\":{\r\n \"ip\":\"127.0.0.1\",\r\n \"email\":\"john@example.com\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/authorizations",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"authorizations"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"b6c446e4-b8a8-496f-bbc8-497d34644c7b\",\r\n \"status\": \"incomplete\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"authorization\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"your_uniq_number\",\r\n \"message\": null,\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T13:41:13.649Z\",\r\n \"updated_at\": \"2024-08-02T13:41:14.501Z\",\r\n \"paid_at\": null,\r\n \"expired_at\": null,\r\n \"recurring_type\": null,\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"4242\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"424242\",\r\n \"bin_8\": \"42424242\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 5,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/b6c446e4-b8a8-496f-bbc8-497d34644c7b/00111bbc0046232167bb15d1f4b80e6baf07d27abdf1f82aa55f71ce40333718?language=en\",\r\n \"status_code\": null,\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"mute_notifications\": null,\r\n \"version\": 3,\r\n \"id\": \"b6c446e4-b8a8-496f-bbc8-497d34644c7b\",\r\n \"redirect_url\": \"{gateway_url}/process/b6c446e4-b8a8-496f-bbc8-497d34644c7b\",\r\n \"code\": \"P.4012\",\r\n \"friendly_message\": \"Redirect to pass 3-D Secure verification.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"three_d_secure_verification\": {\r\n \"status\": \"incomplete\",\r\n \"message\": \"Authentication Available\",\r\n \"ve_status\": \"Y\",\r\n \"acs_url\": null,\r\n \"pa_req\": null,\r\n \"md\": null,\r\n \"pa_res_url\": \"{gateway_url}/process/b6c446e4-b8a8-496f-bbc8-497d34644c7b\",\r\n \"eci\": null,\r\n \"pa_status\": null,\r\n \"xid\": null,\r\n \"fail_reason\": null,\r\n \"method_process_url\": null,\r\n \"creq\": null\r\n },\r\n \"authorization\": {\r\n \"auth_code\": null,\r\n \"bank_code\": null,\r\n \"rrn\": null,\r\n \"ref_id\": null,\r\n \"message\": null,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": null,\r\n \"gateway_id\": 4318,\r\n \"status\": \"incomplete\"\r\n },\r\n \"avs_cvc_verification\": {\r\n \"avs_verification\": {\r\n \"result_code\": null\r\n },\r\n \"cvc_verification\": {\r\n \"result_code\": null\r\n }\r\n },\r\n \"customer\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"device_id\": null,\r\n \"birth_date\": null\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"1st Street\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"zip\": \"96002\",\r\n \"state\": \"CO\",\r\n \"phone\": null\r\n }\r\n }\r\n}"
},
{
"name": "400 OK Bad Request",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "X-API-Version",
"value": "2.1",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"amount\":100,\r\n \"currency\":\"USD\",\r\n \"description\":\"Test transaction\",\r\n \"tracking_id\":\"your_uniq_number\",\r\n \"language\":\"en\",\r\n \"test\":true,\r\n \"billing_address\":{\r\n \"first_name\":\"John\",\r\n \"last_name\":\"Doe\",\r\n \"country\":\"US\",\r\n \"city\":\"Denver\",\r\n \"state\":\"CO\",\r\n \"zip\":\"96002\",\r\n \"address\":\"1st Street\"\r\n },\r\n \"credit_card\":{\r\n \"number\":\"4242424242424242\",\r\n \"verification_value\":\"123\",\r\n \"holder\":\"John Doe\",\r\n \"exp_month\":\"05\",\r\n \"exp_year\":\"2030\"\r\n },\r\n \"customer\":{\r\n \"ip\":\"127.0.0.1\",\r\n \"email\":\"john@example.com\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/authorizations",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"authorizations"
]
}
},
"status": "OK Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"response\": {\r\n \"message\": \"Number is invalid,Unable to detect card type. Either the card number is incorrectly entered, or the card type is not supported.\",\r\n \"errors\": {\r\n \"credit_card\": {\r\n \"number\": [\r\n \"is invalid\",\r\n \"Unable to detect card type. Either the card number is incorrectly entered, or the card type is not supported\"\r\n ]\r\n }\r\n }\r\n }\r\n}"
}
]
},
{
"name": "Capture",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"parent_uid\":\"{{parent_uid}}\",\r\n \"amount\":100\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/captures",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"captures"
]
},
"description": "Send authorization request in this collection. The uid of this transaction will be used as the `parent_uid` parameter value in this capture request."
},
"response": [
{
"name": "200 OK Successful",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": ""
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"c46469ec-862d-4cd4-bfd4-9e02028cbbe2\",\r\n \"status\": \"successful\",\r\n \"amount\": 50,\r\n \"currency\": \"USD\",\r\n \"type\": \"capture\",\r\n \"message\": \"Successfully processed\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T13:20:18.650Z\",\r\n \"updated_at\": \"2024-08-02T13:20:20.890Z\",\r\n \"paid_at\": \"2024-08-02T13:20:20.843Z\",\r\n \"closed_at\": null,\r\n \"settled_at\": null,\r\n \"manually_corrected_at\": null,\r\n \"parent_uid\": \"8c26e2d7-396f-4283-99f7-5d647dd60d9d\",\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/c46469ec-862d-4cd4-bfd4-9e02028cbbe2/984a6c401dbcb268f2fee32332a174db9594a48f8a8e9b98f2aadf87919d125f?language=en\",\r\n \"status_code\": null,\r\n \"mute_notifications\": null,\r\n \"version\": 4,\r\n \"id\": \"c46469ec-862d-4cd4-bfd4-9e02028cbbe2\",\r\n \"code\": \"S.0000\",\r\n \"friendly_message\": \"The operation is successful.\",\r\n \"capture\": {\r\n \"message\": \"Capture was approved\",\r\n \"ref_id\": \"8889912\",\r\n \"rrn\": null,\r\n \"auth_code\": null,\r\n \"bank_code\": \"05\",\r\n \"gateway_id\": 4318,\r\n \"status\": \"successful\"\r\n }\r\n }\r\n}"
},
{
"name": "400 Bad Request",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"parent_uid\":\"8c26e2d7-396f-4283-99f7-5d647dd60d9d\",\r\n \"amount\":50\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/captures",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"captures"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"response\": {\r\n \"message\": \"Amount can't be greater than 100.\",\r\n \"errors\": {\r\n \"amount\": [\r\n \"can't be greater than 100\"\r\n ]\r\n }\r\n }\r\n}"
}
]
},
{
"name": "Void",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"parent_uid\":\"{{parent_uid}}\",\r\n \"amount\":50\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/voids",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"voids"
]
},
"description": "Send authorization request in this collection. The uid of this transaction will be used as the `parent_uid` parameter value in this void request."
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"parent_uid\":\"c649fb21-99ae-433d-a9bb-9e7a12908bcc\",\r\n \"amount\":50\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/voids",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"voids"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"684f1a5e-a55f-4328-a177-8c6367551fa0\",\r\n \"status\": \"successful\",\r\n \"amount\": 50,\r\n \"currency\": \"USD\",\r\n \"type\": \"void\",\r\n \"message\": \"Successfully processed\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T14:05:20.806Z\",\r\n \"updated_at\": \"2024-08-02T14:05:25.071Z\",\r\n \"paid_at\": \"2024-08-02T14:05:24.961Z\",\r\n \"manually_corrected_at\": null,\r\n \"parent_uid\": \"c649fb21-99ae-433d-a9bb-9e7a12908bcc\",\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/684f1a5e-a55f-4328-a177-8c6367551fa0/b16b289f4ac7ad972ff37533145b89254d5a33d0fd70de125fe34f51f2dcc7a0?language=en\",\r\n \"status_code\": null,\r\n \"mute_notifications\": null,\r\n \"version\": 4,\r\n \"id\": \"684f1a5e-a55f-4328-a177-8c6367551fa0\",\r\n \"code\": \"S.0000\",\r\n \"friendly_message\": \"The operation is successful.\",\r\n \"void\": {\r\n \"message\": \"Void was approved\",\r\n \"ref_id\": \"8889913\",\r\n \"rrn\": null,\r\n \"auth_code\": null,\r\n \"bank_code\": null,\r\n \"gateway_id\": 4318,\r\n \"status\": \"successful\"\r\n }\r\n }\r\n}"
}
]
},
{
"name": "P2P",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"description\": \"P2P transfer\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"credit_card\": {\r\n \"number\": \"4005550000000019\",\r\n \"exp_month\": \"08\",\r\n \"exp_year\": \"2033\",\r\n \"verification_value\": \"123\",\r\n \"skip_three_d_secure_verification\": true\r\n },\r\n \"recipient_card\": {\r\n \"number\": \"4012000000003101\"\r\n },\r\n \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/p2ps",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"p2ps"
]
},
"description": "## Testing P2P transfers\n\nThese card numbers can used for P2P transfer testing. Depending on the combination of cards, the request for P2P transfer can require the cardholder's name of the sender or the recipient. Submit any name in the `holder` parameter in the request.\n\n| Sender's card | **Recipient's card** | **Sender's name / Recipient's name** | **Transaction status** |\n| --- | --- | --- | --- |\n| 4012000000003010 | 4012000000003101 | Optional/Optional | `successful` |\n| 4005550000000019 | 4012000000003101 | Optional/ Optional | `failed` <br>`\"message\": \"Forbidden by bank\"` |\n| 4012000000001006 | 4012001037484447 | Optional/Mandatory | If recipient's cardholder name is not submitted <br>`failed\"message\": \"Missed recipient card fields: holder.\"` |"
},
"response": [
{
"name": "P2P",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"description\": \"P2P перевод\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"credit_card\": {\r\n \"number\": \"4012000000003010\",\r\n \"exp_month\": \"08\",\r\n \"exp_year\": \"2033\",\r\n \"verification_value\": \"123\"\r\n },\r\n \"recipient_card\": {\r\n \"number\": \"4012000000003101\"\r\n },\r\n \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/p2ps",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"p2ps"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"transaction\": {\n \"uid\": \"20d75362-8b5b-4bde-babe-c98509b172d9\",\n \"status\": \"successful\",\n \"amount\": 100,\n \"currency\": \"USD\",\n \"description\": \"P2P transfer\",\n \"type\": \"p2p\",\n \"payment_method_type\": \"credit_card\",\n \"tracking_id\": null,\n \"message\": \"Successfully processed\",\n \"test\": true,\n \"created_at\": \"2024-08-06T20:07:42.803Z\",\n \"updated_at\": \"2024-08-06T20:07:43.449Z\",\n \"paid_at\": \"2024-08-06T20:07:43.381Z\",\n \"language\": \"en\",\n \"redirect_url\": \"{gateway_url}/process/20d75362-8b5b-4bde-babe-c98509b172d9\",\n \"credit_card\": {\n \"holder\": null,\n \"stamp\": \"fdf187f6da86ed3b2d58916382fd213ee4608fffdb3e91eb8a083d1debf298d9\",\n \"brand\": \"visa\",\n \"last_4\": \"3010\",\n \"first_1\": \"4\",\n \"bin\": \"401200\",\n \"bin_8\": \"40120000\",\n \"issuer_country\": null,\n \"issuer_name\": null,\n \"product\": null,\n \"exp_month\": 8,\n \"exp_year\": 2033,\n \"token_provider\": null,\n \"token\": null\n },\n \"recipient_card\": {\n \"holder\": null,\n \"stamp\": \"ac1742a384d264d2885cd15671c40be033ca28109a1aeea59719570e42b18ad0\",\n \"brand\": \"visa\",\n \"last_4\": \"3101\",\n \"first_1\": \"4\",\n \"bin\": \"401200\",\n \"bin_8\": \"40120000\",\n \"issuer_country\": null,\n \"issuer_name\": null,\n \"product\": null,\n \"exp_month\": null,\n \"exp_year\": null,\n \"token_provider\": null,\n \"token\": null\n },\n \"receipt_url\": \"{backoffice_url}/customer/transactions/20d75362-8b5b-4bde-babe-c98509b172d9/61616ca843ad3124e53ee282ccb33485ba2cb3278519daf32e7b4ddcd2b7e128?language=en\",\n \"recipient_billing_address\": {\n \"first_name\": null,\n \"last_name\": null,\n \"address\": null,\n \"country\": null,\n \"city\": null,\n \"zip\": null,\n \"state\": null,\n \"phone\": null\n },\n \"sender_billing_address\": {\n \"first_name\": null,\n \"last_name\": null,\n \"address\": null,\n \"country\": null,\n \"city\": null,\n \"zip\": null,\n \"state\": null,\n \"phone\": null\n },\n \"status_code\": null,\n \"gateway\": {\n \"iframe\": true\n },\n \"version\": 5,\n \"id\": \"20d75362-8b5b-4bde-babe-c98509b172d9\",\n \"code\": \"S.0000\",\n \"friendly_message\": \"The operation is successful.\",\n \"smart_routing_verification\": {\n \"status\": \"successful\"\n },\n \"verify_p2p\": {\n \"status\": \"successful\",\n \"message\": \"p2p is allowed\",\n \"amount\": 100,\n \"currency\": \"USD\",\n \"bank_fee\": 0.45,\n \"required_fields\": null\n },\n \"p2p\": {\n \"ref_id\": \"51906\",\n \"message\": \"Successfully processed\",\n \"amount\": 100,\n \"currency\": \"USD\",\n \"billing_descriptor\": \"test descriptor\",\n \"gateway_id\": 4318,\n \"status\": \"successful\",\n \"auth_code\": \"000\",\n \"rrn\": \"423121\",\n \"bank_code\": \"000\"\n },\n \"customer\": {\n \"ip\": null,\n \"email\": null,\n \"device_id\": null,\n \"birth_date\": null\n }\n }\n}"
},
{
"name": "Forbidden by bank",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"description\": \"P2P перевод\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"credit_card\": {\r\n \"number\": \"4012000000003010\",\r\n \"exp_month\": \"08\",\r\n \"exp_year\": \"2033\",\r\n \"verification_value\": \"123\"\r\n },\r\n \"recipient_card\": {\r\n \"number\": \"4012000000003101\"\r\n },\r\n \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/p2ps",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"p2ps"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"uid\": \"bed22e55-999d-44f0-83cf-0d73be4433cd\",\r\n \"code\": \"F.8001\",\r\n \"friendly_message\": \"The p2p transaction was not verified\",\r\n \"status\": \"failed\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"P2P transfer\",\r\n \"type\": \"p2p\",\r\n \"tracking_id\": null,\r\n \"message\": \"Forbidden by bank\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-09T15:57:14.611Z\",\r\n \"updated_at\": \"2024-08-09T15:57:15.057Z\",\r\n \"paid_at\": null,\r\n \"language\": \"en\",\r\n \"redirect_url\": \"{gateway_url}/process/bed22e55-999d-44f0-83cf-0d73be4433cd\",\r\n \"links\": {\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/bed22e55-999d-44f0-83cf-0d73be4433cd/957abe1e7ffa74fcbd651679f5c70bf3dfc4f2ad8a93247b68a2a84e8c57536f?language=en\"\r\n },\r\n \"status_code\": null,\r\n \"payment_method\": {\r\n \"payment_method_type\": \"credit_card\",\r\n \"holder\": null,\r\n \"stamp\": \"80b274398e413d7bddd4d7df8c9b8aa1f9b0a9233bfb7b9cb6de16d06ea31144\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"0019\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"400555\",\r\n \"bin_8\": \"40055500\",\r\n \"issuer_country\": \"US\",\r\n \"issuer_name\": \"VISA Demo Bank\",\r\n \"product\": \"F\",\r\n \"exp_month\": 8,\r\n \"exp_year\": 2033,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"customer\": {\r\n \"ip\": null,\r\n \"email\": null,\r\n \"device_id\": null,\r\n \"birth_date\": null,\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"address\": null,\r\n \"country\": null,\r\n \"city\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"phone\": null\r\n },\r\n \"recipient\": {\r\n \"customer\": {\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"address\": null,\r\n \"country\": null,\r\n \"city\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"phone\": null\r\n },\r\n \"payment_method\": {\r\n \"holder\": null,\r\n \"stamp\": \"ac1742a384d264d2885cd15671c40be033ca28109a1aeea59719570e42b18ad0\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"3101\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"401200\",\r\n \"bin_8\": \"40120000\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": null,\r\n \"exp_year\": null,\r\n \"token_provider\": null,\r\n \"token\": null,\r\n \"payment_method_type\": \"credit_card\"\r\n }\r\n },\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"version\": 3,\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"verify_p2p\": {\r\n \"status\": \"failed\",\r\n \"message\": \"Forbidden by bank\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"bank_fee\": 0.1,\r\n \"required_fields\": null\r\n },\r\n \"transaction\": {\r\n \"ref_id\": null,\r\n \"message\": null,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": null,\r\n \"gateway_id\": 4318,\r\n \"status\": \"incomplete\",\r\n \"auth_code\": null,\r\n \"rrn\": null,\r\n \"bank_code\": null\r\n }\r\n}"
},
{
"name": "P2P",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"description\": \"P2P перевод\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"credit_card\": {\r\n \"number\": \"4012000000003010\",\r\n \"exp_month\": \"08\",\r\n \"exp_year\": \"2033\",\r\n \"verification_value\": \"123\"\r\n },\r\n \"recipient_card\": {\r\n \"number\": \"4012000000003101\"\r\n },\r\n \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/p2ps",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"p2ps"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"uid\": \"687e07fb-1466-4249-9083-e2f07c05d8d2\",\r\n \"code\": \"F.8001\",\r\n \"friendly_message\": \"The p2p transaction was not verified\",\r\n \"status\": \"failed\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"P2P перевод\",\r\n \"type\": \"p2p\",\r\n \"tracking_id\": null,\r\n \"message\": \"Missed recipient card fields: holder.\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-09T16:00:27.292Z\",\r\n \"updated_at\": \"2024-08-09T16:00:27.979Z\",\r\n \"paid_at\": null,\r\n \"language\": \"en\",\r\n \"redirect_url\": \"{psp.gateway_url}/process/687e07fb-1466-4249-9083-e2f07c05d8d2\",\r\n \"links\": {\r\n \"receipt_url\": \"{psp.backoffice_url}/customer/transactions/687e07fb-1466-4249-9083-e2f07c05d8d2/211f8fdb716b7b0e332fb1b552da079e1029222fbb19009fb06876ac80f71646?language=en\"\r\n },\r\n \"status_code\": null,\r\n \"payment_method\": {\r\n \"payment_method_type\": \"credit_card\",\r\n \"holder\": null,\r\n \"stamp\": \"d9a78f040a8427c65da2c5569e6411c3641a5537fcfd2d2bf9f866abf3611c7d\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"1006\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"401200\",\r\n \"bin_8\": \"40120000\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 8,\r\n \"exp_year\": 2033,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"customer\": {\r\n \"ip\": null,\r\n \"email\": null,\r\n \"device_id\": null,\r\n \"birth_date\": null,\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"address\": null,\r\n \"country\": null,\r\n \"city\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"phone\": null\r\n },\r\n \"recipient\": {\r\n \"customer\": {\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"address\": null,\r\n \"country\": null,\r\n \"city\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"phone\": null\r\n },\r\n \"payment_method\": {\r\n \"holder\": null,\r\n \"stamp\": \"8d7d2c05eca42b679c4242735ad66e5beed07890633e9e89382a5559b72a1536\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"4447\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"401200\",\r\n \"bin_8\": \"40120010\",\r\n \"issuer_country\": \"US\",\r\n \"issuer_name\": \"VISA Demo Bank\",\r\n \"product\": \"F\",\r\n \"exp_month\": null,\r\n \"exp_year\": null,\r\n \"token_provider\": null,\r\n \"token\": null,\r\n \"payment_method_type\": \"credit_card\"\r\n }\r\n },\r\n \"gateway\": {\r\n \"iframe\": true\r\n },\r\n \"version\": 3,\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"verify_p2p\": {\r\n \"status\": \"failed\",\r\n \"message\": \"Missed recipient card fields: holder.\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"bank_fee\": null,\r\n \"required_fields\": {\r\n \"credit_card\": [],\r\n \"recipient_card\": [\r\n \"holder\"\r\n ]\r\n }\r\n },\r\n \"transaction\": {\r\n \"ref_id\": null,\r\n \"message\": null,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": null,\r\n \"gateway_id\": 4318,\r\n \"status\": \"incomplete\",\r\n \"auth_code\": null,\r\n \"rrn\": null,\r\n \"bank_code\": null\r\n }\r\n}"
}
]
},
{
"name": "P2P + encryption",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"description\": \"P2P transfer\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"encrypted_data\": \"eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4R0NNIiwidHlwIjoiSldFIiwidmVyc2lvbiI6IjEuMC4wIn0.NT0QVbH-1CYO6-JLwkhbr_5ScJLbkICb9qSK_DNBKzYB9yBuLLFQz1zsZct4p4xdJpudjMi474b2MU9d1_zZIU4iIMGkT0a0XCf7SS37JOYDKE998bA5GNZ7jhHw_WmdF8POyhu7W2GHbYdLjDzZsCmwtv9TDSG0kqoMnySLugDn6T6TSnzSJabm9QrLzhbOjkaruG01_-ZihYKLkuaapwQ3xP-9k0AiXTbXDgat3EulpVaRbn4nQap6aH8JfWWiYjcBcNfLwBF64oQyM7M2y5iAk9IsN0CuJGoz-FaFg0YLhgRptNqxe7r9h3cLhYVhAJvmBRonWH9geaCsjuce_A.uW96ZYYPOKoJqwUw.XjTV0pwu6oEhWFociQcJhj1uoFGZz7FQHTXluPoks7NOXm_g6Uw4gngOlo1VMUbPs1zxXFPVV-NFXTnSXaUJujCqb0fObkmGjH7XIf5CWeYrMs_rgrOZMgoI-hKXi67uo62XRYxzbNKpxtfpmwv3J4eoQj0dmKvr3m89WGB_9Ywc1xYMVpdzZ77ittaFxVUsFF2YS1PLi8HXgw.ia1Nbj4v_7j34pZVyiH0BA\",\r\n \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/p2ps",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"p2ps"
]
},
"description": "You can send `encrypted_data` object instead of sending `credit_card` and `recipient_card` . See more information about the data encryption in **JWE encryption form** folder."
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"description\": \"P2P перевод\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"credit_card\": {\r\n \"number\": \"4012000000003010\",\r\n \"exp_month\": \"08\",\r\n \"exp_year\": \"2033\",\r\n \"verification_value\": \"123\"\r\n },\r\n \"recipient_card\": {\r\n \"number\": \"4012000000003101\"\r\n },\r\n \"test\": true\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/p2ps",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"p2ps"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"transaction\": {\n \"uid\": \"ab6ae249-29a8-438e-9151-a520ef40e59b\",\n \"status\": \"successful\",\n \"amount\": 100,\n \"currency\": \"USD\",\n \"description\": \"P2P transfer\",\n \"type\": \"p2p\",\n \"payment_method_type\": \"credit_card\",\n \"tracking_id\": null,\n \"message\": \"Successfully processed\",\n \"test\": true,\n \"created_at\": \"2024-08-07T13:44:16.089Z\",\n \"updated_at\": \"2024-08-07T13:44:16.747Z\",\n \"paid_at\": \"2024-08-07T13:44:16.693Z\",\n \"language\": \"en\",\n \"redirect_url\": \"{gateway_url}/process/ab6ae249-29a8-438e-9151-a520ef40e59b\",\n \"credit_card\": {\n \"holder\": null,\n \"stamp\": \"fdf187f6da86ed3b2d58916382fd213ee4608fffdb3e91eb8a083d1debf298d9\",\n \"brand\": \"visa\",\n \"last_4\": \"3010\",\n \"first_1\": \"4\",\n \"bin\": \"401200\",\n \"bin_8\": \"40120000\",\n \"issuer_country\": null,\n \"issuer_name\": null,\n \"product\": null,\n \"exp_month\": 8,\n \"exp_year\": 2027,\n \"token_provider\": null,\n \"token\": null\n },\n \"recipient_card\": {\n \"holder\": null,\n \"stamp\": \"ac1742a384d264d2885cd15671c40be033ca28109a1aeea59719570e42b18ad0\",\n \"brand\": \"visa\",\n \"last_4\": \"3101\",\n \"first_1\": \"4\",\n \"bin\": \"401200\",\n \"bin_8\": \"40120000\",\n \"issuer_country\": null,\n \"issuer_name\": null,\n \"product\": null,\n \"exp_month\": null,\n \"exp_year\": null,\n \"token_provider\": null,\n \"token\": null\n },\n \"receipt_url\": \"{backoffice_url}/customer/transactions/ab6ae249-29a8-438e-9151-a520ef40e59b/c83eb592ade9be2a54e4718d0dc676088b61975542b9dfd52b500e14ce615f83?language=en\",\n \"recipient_billing_address\": {\n \"first_name\": null,\n \"last_name\": null,\n \"address\": null,\n \"country\": null,\n \"city\": null,\n \"zip\": null,\n \"state\": null,\n \"phone\": null\n },\n \"sender_billing_address\": {\n \"first_name\": null,\n \"last_name\": null,\n \"address\": null,\n \"country\": null,\n \"city\": null,\n \"zip\": null,\n \"state\": null,\n \"phone\": null\n },\n \"status_code\": null,\n \"gateway\": {\n \"iframe\": true\n },\n \"version\": 5,\n \"id\": \"ab6ae249-29a8-438e-9151-a520ef40e59b\",\n \"code\": \"S.0000\",\n \"friendly_message\": \"The operation is successful.\",\n \"smart_routing_verification\": {\n \"status\": \"successful\"\n },\n \"verify_p2p\": {\n \"status\": \"successful\",\n \"message\": \"p2p is allowed\",\n \"amount\": 100,\n \"currency\": \"USD\",\n \"bank_fee\": 0.45,\n \"required_fields\": null\n },\n \"p2p\": {\n \"ref_id\": \"57202\",\n \"message\": \"Successfully processed\",\n \"amount\": 100,\n \"currency\": \"USD\",\n \"billing_descriptor\": \"test descriptor\",\n \"gateway_id\": 4318,\n \"status\": \"successful\",\n \"auth_code\": \"000\",\n \"rrn\": \"9935933\",\n \"bank_code\": \"000\"\n },\n \"customer\": {\n \"ip\": null,\n \"email\": null,\n \"device_id\": null,\n \"birth_date\": null\n }\n }\n}"
}
]
},
{
"name": "Payout",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);\r",
"var payout_uid = jsonData.transaction.uid;\r",
" \r",
"console.log(\"payout_uid:\", payout_uid);\r",
"//pm.globals.set(\"payout_uid\", payout_uid);\r",
"pm.collectionVariables.set(\"payout_uid\", payout_uid);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"test\": true,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction ütf\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"recipient\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"birth_date\": \"1990-10-20\"\r\n },\r\n \"sender\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"birth_date\": \"1990-10-20\"\r\n },\r\n \"recipient_billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"state\": \"CO\",\r\n \"zip\": \"96002\",\r\n \"address\": \"1st Street\",\r\n \"phone\": \"375444444444\"\r\n },\r\n \"sender_billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"state\": \"CO\",\r\n \"zip\": \"96002\",\r\n \"address\": \"1st Street\",\r\n \"phone\": \"375444444444\"\r\n },\r\n \"recipient_credit_card\": {\r\n \"number\": \"5204240000015003\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": \"12\",\r\n \"exp_year\": \"2030\"\r\n },\r\n \"additional_data\": {\r\n \"document\": {\r\n \"type\": \"PASSPORT\",\r\n \"issuer\": \"Organization name\",\r\n \"series\": \"MP\",\r\n \"number\": \"1234567890\",\r\n \"issued_at\": \"2024-03-12\",\r\n \"valid_until\": \"2035-03-12\"\r\n }\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/payouts",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"payouts"
]
}
},
"response": [
{
"name": "200 OK Successful",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"test\": true,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction ütf\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"recipient\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"birth_date\": \"1990-10-20\"\r\n },\r\n \"sender\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"birth_date\": \"1990-10-20\"\r\n },\r\n \"recipient_billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"state\": \"CO\",\r\n \"zip\": \"96002\",\r\n \"address\": \"1st Street\",\r\n \"phone\": \"375444444444\"\r\n },\r\n \"sender_billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"state\": \"CO\",\r\n \"zip\": \"96002\",\r\n \"address\": \"1st Street\",\r\n \"phone\": \"375444444444\"\r\n },\r\n \"recipient_credit_card\": {\r\n \"number\": \"4200000000000000\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": \"12\",\r\n \"exp_year\": \"2030\"\r\n },\r\n \"additional_data\": {\r\n \"document\": {\r\n \"type\": \"PASSPORT\",\r\n \"issuer\": \"Organization name\",\r\n \"series\": \"MP\",\r\n \"number\": \"1234567890\",\r\n \"issued_at\": \"2024-03-12\",\r\n \"valid_until\": \"2035-03-12\"\r\n }\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "/transactions/payouts",
"path": [
"transactions",
"payouts"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"829e62a9-bcd1-41d4-95d5-969b8c15f248\",\r\n \"status\": \"successful\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction ütf\",\r\n \"type\": \"payout\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"tracking_id_000\",\r\n \"message\": \"Successfully processed\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T14:39:12.814Z\",\r\n \"updated_at\": \"2024-08-02T14:39:15.573Z\",\r\n \"paid_at\": \"2024-08-02T14:39:15.490Z\",\r\n \"manually_corrected_at\": null,\r\n \"language\": \"en\",\r\n \"redirect_url\": \"{gateway_url}/process/829e62a9-bcd1-41d4-95d5-969b8c15f248\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"b3839d334ba40e89168d60cd9f9d1390aee3fe67dd4d5c41adbf3998043eaef8\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"0000\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"420000\",\r\n \"bin_8\": \"42000000\",\r\n \"issuer_country\": \"US\",\r\n \"issuer_name\": \"VISA Demo Bank\",\r\n \"product\": \"F\",\r\n \"exp_month\": 12,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"status_code\": null,\r\n \"recipient\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"device_id\": null,\r\n \"birth_date\": \"1990-10-20\"\r\n },\r\n \"recipient_credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"b3839d334ba40e89168d60cd9f9d1390aee3fe67dd4d5c41adbf3998043eaef8\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"0000\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"420000\",\r\n \"bin_8\": \"42000000\",\r\n \"issuer_country\": \"US\",\r\n \"issuer_name\": \"VISA Demo Bank\",\r\n \"product\": \"F\",\r\n \"exp_month\": 12,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": null\r\n },\r\n \"recipient_billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"1st Street\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"zip\": \"96002\",\r\n \"state\": \"CO\",\r\n \"phone\": \"375444444444\"\r\n },\r\n \"receipt_url\": \"{backoffice_url}/customer/transactions/829e62a9-bcd1-41d4-95d5-969b8c15f248/ac2d2eee847ee6d6014a3845060bb0316b88819bc4c0c393466bf965c855a253?language=en\",\r\n \"sender\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"created_at\": \"2024-08-02T14:39:12.808Z\",\r\n \"updated_at\": \"2024-08-02T14:39:12.808Z\",\r\n \"device_id\": null,\r\n \"birth_date\": \"1990-10-20\",\r\n \"id\": \"07bac214-d515-48b0-8aed-59b8cb553696\",\r\n \"additional_info\": {}\r\n },\r\n \"sender_billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"1st Street\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"zip\": \"96002\",\r\n \"state\": \"CO\",\r\n \"phone\": \"375444444444\"\r\n },\r\n \"version\": 5,\r\n \"id\": \"829e62a9-bcd1-41d4-95d5-969b8c15f248\",\r\n \"additional_data\": {\r\n \"document\": {\r\n \"type\": \"PASSPORT\",\r\n \"issuer\": \"Organization name\",\r\n \"series\": \"MP\",\r\n \"number\": \"1234567890\",\r\n \"issued_at\": \"2024-03-12\",\r\n \"valid_until\": \"2035-03-12\"\r\n }\r\n },\r\n \"code\": \"S.0000\",\r\n \"friendly_message\": \"The operation is successful.\",\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"payout\": {\r\n \"auth_code\": \"654321\",\r\n \"bank_code\": \"00\",\r\n \"rrn\": \"123456789102\",\r\n \"ref_id\": \"777888\",\r\n \"message\": \"Payout was approved\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"billing_descriptor\": \"test descriptor\",\r\n \"gateway_id\": 4318,\r\n \"status\": \"successful\"\r\n }\r\n }\r\n}"
}
]
},
{
"name": "Tokenization",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\": {\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"test\": true,\r\n \"description\": \"Test transaction\",\r\n \"tracking_id\": \"your_uniq_number\",\r\n \"language\": \"en\",\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"state\": \"CO\",\r\n \"zip\": \"96002\",\r\n \"address\": \"1st Street\"\r\n },\r\n \"credit_card\": {\r\n \"number\": \"4242424242424242\",\r\n \"verification_value\": \"123\",\r\n \"holder\": \"John Doe\",\r\n \"exp_month\": \"05\",\r\n \"exp_year\": \"2030\"\r\n },\r\n \"customer\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/tokenizations",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"tokenizations"
]
}
},
"response": [
{
"name": "200 OK Successful",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"request\":{\r\n \"amount\":100,\r\n \"currency\":\"USD\",\r\n \"test\": true,\r\n \"description\":\"Test transaction\",\r\n \"tracking_id\":\"your_uniq_number\",\r\n \"language\":\"en\",\r\n \"billing_address\":{\r\n \"first_name\":\"John\",\r\n \"last_name\":\"Doe\",\r\n \"country\":\"US\",\r\n \"city\":\"Denver\",\r\n \"state\":\"CO\",\r\n \"zip\":\"96002\",\r\n \"address\":\"1st Street\"\r\n },\r\n \"credit_card\":{\r\n \"number\":\"4012000000001006\",\r\n \"verification_value\":\"123\",\r\n \"holder\":\"John Doe\",\r\n \"exp_month\":\"05\",\r\n \"exp_year\":\"2030\"\r\n },\r\n \"customer\":{\r\n \"ip\":\"127.0.0.1\",\r\n \"email\":\"john@example.com\"\r\n }\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{gateway_url}}/transactions/tokenizations",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
"tokenizations"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"transaction\": {\r\n \"uid\": \"6e22d1fc-1c32-40e7-80f7-fba493cc25b8\",\r\n \"status\": \"successful\",\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"description\": \"Test transaction\",\r\n \"type\": \"tokenization\",\r\n \"payment_method_type\": \"credit_card\",\r\n \"tracking_id\": \"your_uniq_number\",\r\n \"message\": \"Successfully processed\",\r\n \"test\": true,\r\n \"created_at\": \"2024-08-02T14:51:27.371Z\",\r\n \"updated_at\": \"2024-08-02T14:51:27.899Z\",\r\n \"paid_at\": null,\r\n \"language\": \"en\",\r\n \"redirect_url\": \"{gateway_url}/process/6e22d1fc-1c32-40e7-80f7-fba493cc25b8\",\r\n \"status_code\": null,\r\n \"version\": 3,\r\n \"id\": \"6e22d1fc-1c32-40e7-80f7-fba493cc25b8\",\r\n \"credit_card\": {\r\n \"holder\": \"John Doe\",\r\n \"stamp\": \"d9a78f040a8427c65da2c5569e6411c3641a5537fcfd2d2bf9f866abf3611c7d\",\r\n \"brand\": \"visa\",\r\n \"last_4\": \"1006\",\r\n \"first_1\": \"4\",\r\n \"bin\": \"401200\",\r\n \"bin_8\": \"40120000\",\r\n \"issuer_country\": null,\r\n \"issuer_name\": null,\r\n \"product\": null,\r\n \"exp_month\": 5,\r\n \"exp_year\": 2030,\r\n \"token_provider\": null,\r\n \"token\": \"ea358484-cb00-45f2-8509-fb0da0816d0e\"\r\n },\r\n \"smart_routing_verification\": {\r\n \"status\": \"successful\"\r\n },\r\n \"tokenization\": {\r\n \"message\": null,\r\n \"gateway_id\": 4318,\r\n \"status\": \"successful\"\r\n },\r\n \"customer\": {\r\n \"ip\": \"127.0.0.1\",\r\n \"email\": \"john@example.com\",\r\n \"device_id\": null,\r\n \"birth_date\": null\r\n },\r\n \"billing_address\": {\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"address\": \"1st Street\",\r\n \"country\": \"US\",\r\n \"city\": \"Denver\",\r\n \"zip\": \"96002\",\r\n \"state\": \"CO\",\r\n \"phone\": null\r\n }\r\n }\r\n}"
}
]
},
{
"name": "Status query",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{gateway_url}}/transactions/:uid",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
":uid"
],
"variable": [
{
"key": "uid",
"value": "{{payout_uid}}",
"description": "Unique transaction identifeir assigned to the transaction and sent in the response to the transaction request. "
}
]
},
"description": "To test this request start by sending a payout request in this collection. The `uid` from the response will be sent in the status query."
},
"response": [
{
"name": "200 ОК",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{gateway_url}}/transactions/:uid",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
":uid"
],
"variable": [
{
"key": "uid",
"value": "54c70f9b-e6e5-4b5a-bda2-fe6980e44bf0",
"description": "Unique transaction identifeir assigned to the transaction and sent in the response to the transaction request."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"transaction\": {\n \"uid\": \"2f4d67ff-3513-4268-afe8-dc5299023a44\",\n \"status\": \"successful\",\n \"amount\": 104,\n \"currency\": \"EUR\",\n \"description\": \"Test transaction\",\n \"type\": \"payment\",\n \"payment_method_type\": \"credit_card\",\n \"tracking_id\": \"tracking_id_000\",\n \"message\": \"Successfully processed\",\n \"test\": true,\n \"created_at\": \"2024-08-08T19:27:24.644Z\",\n \"updated_at\": \"2024-08-08T19:27:27.156Z\",\n \"paid_at\": \"2024-08-08T19:27:27.105Z\",\n \"expired_at\": null,\n \"recurring_type\": null,\n \"closed_at\": null,\n \"settled_at\": null,\n \"manually_corrected_at\": null,\n \"language\": \"en\",\n \"credit_card\": {\n \"holder\": \"John Doe\",\n \"stamp\": \"bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a\",\n \"brand\": \"visa\",\n \"last_4\": \"1097\",\n \"first_1\": \"4\",\n \"bin\": \"401200\",\n \"bin_8\": \"40120000\",\n \"issuer_country\": null,\n \"issuer_name\": null,\n \"product\": null,\n \"exp_month\": 10,\n \"exp_year\": 2025,\n \"token_provider\": null,\n \"token\": null\n },\n \"receipt_url\": \"{backoffice_url}/customer/transactions/2f4d67ff-3513-4268-afe8-dc5299023a44/cc75047b75ec39f4ef420ae8d1b7f04f9aae0b416e048d5050af50d03e9f6dae?language=en\",\n \"status_code\": null,\n \"gateway\": {\n \"iframe\": true\n },\n \"mute_notifications\": null,\n \"version\": 5,\n \"id\": \"2f4d67ff-3513-4268-afe8-dc5299023a44\",\n \"redirect_url\": \"{gateway_url}/process/2f4d67ff-3513-4268-afe8-dc5299023a44\",\n \"code\": \"S.0000\",\n \"friendly_message\": \"The operation is successful.\",\n \"smart_routing_verification\": {\n \"status\": \"successful\"\n },\n \"payment\": {\n \"auth_code\": \"654321\",\n \"bank_code\": \"05\",\n \"rrn\": \"999\",\n \"ref_id\": \"777888\",\n \"message\": \"Payment was approved\",\n \"amount\": 104,\n \"currency\": \"EUR\",\n \"billing_descriptor\": \"test descriptor\",\n \"gateway_id\": 4318,\n \"status\": \"successful\"\n },\n \"avs_cvc_verification\": {\n \"avs_verification\": {\n \"result_code\": \"1\"\n },\n \"cvc_verification\": {\n \"result_code\": \"1\"\n }\n },\n \"customer\": {\n \"ip\": null,\n \"email\": null,\n \"device_id\": null,\n \"birth_date\": null\n },\n \"billing_address\": {\n \"first_name\": \"John 1\",\n \"last_name\": \"Doe\",\n \"address\": \"1st Street\",\n \"country\": \"UA\",\n \"city\": \"Denver\",\n \"zip\": \"96002\",\n \"state\": \"12\",\n \"phone\": \"4567898765467\"\n }\n }\n}"
}
]
},
{
"name": "Transaction query + tracking_id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{gateway_url}}/v2/transactions/tracking_id/:tracking_id",
"host": [
"{{gateway_url}}"
],
"path": [
"v2",
"transactions",
"tracking_id",
":tracking_id"
],
"variable": [
{
"key": "tracking_id",
"value": "{{tracking_id_payment}}",
"description": "Transaction identifier assigned by the merchant and sent in the transaction request. "
}
]
},
"description": "To test this request, start by sending the payment request from this collection. The `tracking_id` of the transaction will be used in this status query request."
},
"response": [
{
"name": "200 ОК",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{gateway_url}}/transactions/:uid",
"host": [
"{{gateway_url}}"
],
"path": [
"transactions",
":uid"
],
"variable": [
{
"key": "uid",
"value": "54c70f9b-e6e5-4b5a-bda2-fe6980e44bf0",
"description": "Unique transaction identifier assigned to the transaction by PSP and sent in the response to the transaction request."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\n \"transaction\": {\n \"uid\": \"2f4d67ff-3513-4268-afe8-dc5299023a44\",\n \"status\": \"successful\",\n \"amount\": 104,\n \"currency\": \"EUR\",\n \"description\": \"Test transaction\",\n \"type\": \"payment\",\n \"payment_method_type\": \"credit_card\",\n \"tracking_id\": \"tracking_id_000\",\n \"message\": \"Successfully processed\",\n \"test\": true,\n \"created_at\": \"2024-08-08T19:27:24.644Z\",\n \"updated_at\": \"2024-08-08T19:27:27.156Z\",\n \"paid_at\": \"2024-08-08T19:27:27.105Z\",\n \"expired_at\": null,\n \"recurring_type\": null,\n \"closed_at\": null,\n \"settled_at\": null,\n \"manually_corrected_at\": null,\n \"language\": \"en\",\n \"credit_card\": {\n \"holder\": \"John Doe\",\n \"stamp\": \"bb58cad9c1204ca2287b3e1006cc1a2c0fb8f062dde9e5232c8be5498bd0e62a\",\n \"brand\": \"visa\",\n \"last_4\": \"1097\",\n \"first_1\": \"4\",\n \"bin\": \"401200\",\n \"bin_8\": \"40120000\",\n \"issuer_country\": null,\n \"issuer_name\": null,\n \"product\": null,\n \"exp_month\": 10,\n \"exp_year\": 2025,\n \"token_provider\": null,\n \"token\": null\n },\n \"receipt_url\": \"{backoffice_url}/customer/transactions/2f4d67ff-3513-4268-afe8-dc5299023a44/cc75047b75ec39f4ef420ae8d1b7f04f9aae0b416e048d5050af50d03e9f6dae?language=en\",\n \"status_code\": null,\n \"gateway\": {\n \"iframe\": true\n },\n \"mute_notifications\": null,\n \"version\": 5,\n \"id\": \"2f4d67ff-3513-4268-afe8-dc5299023a44\",\n \"redirect_url\": \"{gateway_url}/process/2f4d67ff-3513-4268-afe8-dc5299023a44\",\n \"code\": \"S.0000\",\n \"friendly_message\": \"The operation is successful.\",\n \"smart_routing_verification\": {\n \"status\": \"successful\"\n },\n \"payment\": {\n \"auth_code\": \"654321\",\n \"bank_code\": \"05\",\n \"rrn\": \"999\",\n \"ref_id\": \"777888\",\n \"message\": \"Payment was approved\",\n \"amount\": 104,\n \"currency\": \"EUR\",\n \"billing_descriptor\": \"test descriptor\",\n \"gateway_id\": 4318,\n \"status\": \"successful\"\n },\n \"avs_cvc_verification\": {\n \"avs_verification\": {\n \"result_code\": \"1\"\n },\n \"cvc_verification\": {\n \"result_code\": \"1\"\n }\n },\n \"customer\": {\n \"ip\": null,\n \"email\": null,\n \"device_id\": null,\n \"birth_date\": null\n },\n \"billing_address\": {\n \"first_name\": \"John 1\",\n \"last_name\": \"Doe\",\n \"address\": \"1st Street\",\n \"country\": \"US\",\n \"city\": \"Denver\",\n \"zip\": \"96002\",\n \"state\": \"12\",\n \"phone\": \"4567898765467\"\n }\n }\n}"
}
]
}
],
"description": "The merchant needs to create a payment token in order to use the payment page or the payment widget.\n\nThe mostly used parameters are described in the table below. All parameters are described in the API documentation.\n\n| Parameter | Required | **Type** | **Description** |\n| --- | --- | --- | --- |\n| `request` | + | `object` | |\n\n`request`\n\n| | | | |\n| --- | --- | --- | --- |\n| `amount` | + | `bigInteger` | Transaction amount in the minimal currency units. |\n| `currency` | + | `string` | A transaction currency in the ISO-4217 alpha-3 code format or a cryptocurrency code. For example, `USD`. |\n| `description` | + | `string` | The order description. |\n| `tracking_id` | \\- | `string` | Unique transaction identifier in the merchant's system. Can include multiple values separated with `;` Example: `\"cbe59142-90af-4aea-b5a5-5bf3f66cf3da;f7883cb9-0e26-43a7-beb7-4027cb55d1a6;4a6a89d5-6950-400f\"`. |\n| `return_url` | +/- | `string` | The URL on the merchant's website where the system will redirect the customer once they complete 3-D verification. Required if 3-D Secure is enabled. |\n| `notification_url` | \\- | `string` | URL where the system will send the webhook notification. |\n| `customer` | \\- | `object` | Object with the customer information. |\n| `billing_address` | \\- | `object` | The section of the customer's address details. |\n| `credit_card` | +/- | `object` | This object is required if `encrypted_data` isn't sent. See more information about the data encryption in the **JWE encryption form** folder. |\n| `additional_data.contract` | \\- | `array` | An array of contract types. Depending on the submitted contract type, the system will return additional parameters in the webhook notification or the status query response. <br> <br>`recurring -` the system will return the card token to enable payments without the need to resubmit the card data. |\n| `recipient_card` | +/- | `object` | Recipient card information. The object is required for _/p2ps_ request. `encrypted_data` can be sent instead. |\n| `recipient_credit_card` | +/- | `object` | Recipient card information. The object is required for _/payouts_ request. `encrypted_data` can be sent instead. |\n\n`credit_card`\n\n| | | | |\n| --- | --- | --- | --- |\n| `number` | +/- | `string` | Card number. 12—19 digits. Required if `token` or `encrypted data a`re not sent. |\n| `verification_value` | +/- | `string` | 3- or 4-digit security code (CVC2, CVV2 or CID, depending on the card brand). Required if `token` or `encrypted data a`re not sent. |\n| `exp_month` | +/- | `string (2)` | Card expiration month. 1 or 2 digits. Required if `token` or `encrypted data` are not sent. |\n| `exp_year` | +/- | `string (4)` | Card expiration year. 4 digits. Required if `token` or `encrypted data` are not sent. |\n| `holder` | +/- | `string(35)` | The cardholder name as it appears on the card. The parameter is optional in the PSP system but can be required by the acquirer. |\n| `token` | +/- | `string` | Instead of the 5 parameters above you can send the card token. |\n| `force_three_d_secure_verification` | \\- | `boolean` | If true, beGateway forces the 3-D Secure verification for payment transactions. By default, `false`. <br>The `force_three_d_secure_verification` parameter overrides the `skip_three_d_secure_verification` parameter, if both are set to `true`. <br>Overridden by Smart Routing rules with Skip 3ds or Force 3ds actions. |\n\n`recipient_card`\n\n| | | | |\n| --- | --- | --- | --- |\n| `number` | +/- | `string` | Recipient card number. 12—19 digits. Required if `token` or `encrypted data` are not sent. |\n| `exp_month` | \\- | `string (2)` | Card expiration month. 1 or 2 digits. Required if `token` or `encrypted data` are not sent. |\n| `exp_year` | \\- | `string (4)` | Card expiration year. 4 digits. Required if `token` or `encrypted data` are not sent. |\n| `token` | +/- | `string` | Instead of the card parameters you can send the card token. |\n\n`recipient_credit_card`\n\n| | | | |\n| --- | --- | --- | --- |\n| `number` | +/- | `string` | Recipient card number. 12—19 digits. Required if `token` or `encrypted data` are not sent. |\n| `exp_month` | \\- | `string (2)` | Card expiration month. 1 or 2 digits. Required if `token` or `encrypted data` are not sent. |\n| `exp_year` | \\- | `string (4)` | Card expiration year. 4 digits. Required if `token` or `encrypted data` are not sent. |\n| `token` | +/- | `string` | Instead of the card parameters you can send the card token. |\n\n**Card data encryption**\n\nYou can send the `encrypted_data` object instead of sending `credit_card, recipient_credit_card` and `recipient_card` . See more information about the data encryption in the **JWE encryption form** folder.",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
}
]
},
{
"name": "JWE encryption form",
"item": [
{
"name": "Encryption form",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "<!doctype html>\r\n<html lang=\"en\">\r\n <head>\r\n <meta charset=\"UTF-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\n <title>JWE Encryption Example</title>\r\n <script src=\"{{js_url}}/jwe/begateway-jwe.js\"></script>\r\n </head>\r\n <body>\r\n <form id=\"credit_card\">\r\n <input\r\n type=\"text\"\r\n data-encrypted-name=\"number\"\r\n value=\"4012000000003010\"\r\n />\r\n <input\r\n type=\"text\"\r\n data-encrypted-name=\"exp_year\"\r\n value=\"2027\"\r\n />\r\n <input\r\n type=\"text\"\r\n data-encrypted-name=\"exp_month\"\r\n value=\"08\"\r\n />\r\n <input type=\"text\" data-encrypted-name=\"verification_value\" value=\"123\" />\r\n </form>\r\n \r\n <button type=\"button\" onclick=\"encryptForm()\">Encrypt (see console)</button>\r\n <script>\r\n async function encryptForm() {\r\n const cse = new BeGatewayCSE(\r\n '{{ public_key }}',\r\n );\r\n\r\n const formJWE = await cse.encryptForms([\r\n 'credit_card',\r\n 'recipient_card',\r\n ]);\r\n const objectJWE = await cse.encrypt({\r\n number: '1234 1234 1234 1234',\r\n cvv: '111',\r\n });\r\n\r\n console.log('formJWE', formJWE);\r\n console.log('objectJWE', objectJWE);\r\n }\r\n </script>\r\n </body>\r\n</html>\r\n\r\n\r\n",
"options": {
"raw": {
"language": "html"
}
}
},
"url": {
"raw": "postman",
"host": [
"postman"
]
}
},
"response": []
}
],
"description": "To encrypt the card data prior to sending it to the payment system, make the adjustments to the page where the card data is submitted according to the example. Pay attention to the following points:\n\n- Your page should contain a link to the JS library of your PSP.\n \n- Create a new `begateway` object with the public key of your shop\n \n\nconst cse = new BeGatewayCSE('{{ public_key }}',);\n\n- The value of the `data-encrypted-name` attribute must match the parameter name in `credit_card`, `recipient_card` and `recipient_credit_card` objects.\n \n\nSubmit `encrypted_data` parameter in the transaction request instead of the `credit_card` object.The `encrypted_data` parameter value is the encrypted card data received in console on form submission."
},
{
"name": "PRODUCTS",
"item": [
{
"name": "Create a product",
"event": [
{
"listen": "test",
"script": {
"exec": [
"var jsonData = JSON.parse(responseBody);\r",
"var product_id = jsonData.id;\r",
" \r",
"console.log(\"product_id:\", product_id);\r",
"//pm.globals.set(\"product_id\", product_id);\r",
"pm.collectionVariables.set(\"product_id\", product_id);"
],
"type": "text/javascript",
"packages": {}
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"product\",\r\n \"description\": \"description\",\r\n \"currency\": \"USD\",\r\n \"amount\": \"990\",\r\n \"infinite\": true,\r\n \"test\": true,\r\n \"immortal\": true,\r\n \"return_url\": \"http://return-url.com\",\r\n \"shop_id\": \"1\",\r\n \"language\": \"en\",\r\n \"transaction_type\": \"payment\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{api_url}}/products",
"host": [
"{{api_url}}"
],
"path": [
"products"
]
},
"description": "| **Parameter** | **Required** | **Type** | **Description** |\n| --- | --- | --- | --- |\n| `name` | + | `string` | Product name. |\n| `description` | + | `string` | Product description. |\n| `amount` | + | `bigInteger` | Product price amount in minimal currency units, for example, in cents or kopecks. |\n| `language` | + | `string(2)` | The payment page language. For example, `en`. |\n| `quantity` | \\- | `string` | The available quantity of products. |\n| `infinite` | \\- | `boolean` | If `true`, the number of available products is unlimited. |\n| `visible_fields` | \\- | `array` | An array of fields that will be displayed on the payment page for the customer to fill in. Possible values: `first_name`, `last_name`, `country`, `state`, `city`, `address`, `zip`, `phone`, `birth_date`, `email`, `taxpayer_id`. |\n| `test` | \\- | `boolean` | If `true`, the product will be a test one. |"
},
"response": [
{
"name": "201 Created",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"product\",\r\n \"description\": \"description\",\r\n \"currency\": \"USD\",\r\n \"amount\": \"990\",\r\n \"infinite\": true,\r\n \"test\": false,\r\n \"immortal\": true,\r\n \"return_url\": \"http://return-url.com\",\r\n \"shop_id\": \"1\",\r\n \"language\": \"en\",\r\n \"transaction_type\": \"payment\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{api_url}}/products",
"host": [
"{{api_url}}"
],
"path": [
"products"
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"id\": \"prd_0298737551cbf02c\",\r\n \"name\": \"product\",\r\n \"description\": \"description\",\r\n \"amount\": 990,\r\n \"currency\": \"USD\",\r\n \"language\": \"ru\",\r\n \"infinite\": true,\r\n \"quantity\": null,\r\n \"transaction_type\": \"payment\",\r\n \"created_at\": \"2024-08-08T20:08:19Z\",\r\n \"updated_at\": \"2024-08-08T20:08:19Z\",\r\n \"additional_data\": {},\r\n \"test\": true,\r\n \"pay_url\": \"{psp.api_url}/products/prd_0298737551cbf02c/pay\",\r\n \"payment_url\": \"{psp.api_url}/products/prd_0298737551cbf02c/pay\",\r\n \"confirm_url\": \"{psp.checkout_url}/v2/confirm_order/prd_0298737551cbf02c/1925\"\r\n}"
}
]
},
{
"name": "Get a payment link",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{api_url}}/products/:product_id",
"host": [
"{{api_url}}"
],
"path": [
"products",
":product_id"
],
"variable": [
{
"key": "product_id",
"value": "{{product_id}}",
"description": "The product identifier. The value of the `product_id` parameter from the response to the product creation request."
}
]
},
"description": "To test this request, start by sending the product creation request from this collection. The received `product_id` will be used in this request."
},
"response": [
{
"name": "Response with a payment link",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{api_url}}/products/:product_id",
"host": [
"{{api_url}}"
],
"path": [
"products",
":product_id"
],
"variable": [
{
"key": "product_id",
"value": "prd_0298737551cbf02c",
"description": "Product identifier. The value of the `product_id` parameter from the product creation request. "
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "{\r\n \"id\": \"prd_0298737551cbf02c\",\r\n \"name\": \"product\",\r\n \"description\": \"description\",\r\n \"amount\": 990,\r\n \"currency\": \"USD\",\r\n \"language\": \"en\",\r\n \"infinite\": true,\r\n \"quantity\": null,\r\n \"transaction_type\": \"payment\",\r\n \"created_at\": \"2024-08-08T20:08:19Z\",\r\n \"updated_at\": \"2024-08-08T20:08:19Z\",\r\n \"additional_data\": {},\r\n \"test\": true,\r\n \"pay_url\": \"{api_url}/products/prd_0298737551cbf02c/pay\",\r\n \"payment_url\": \"{api_url}/products/prd_0298737551cbf02c/pay\",\r\n \"confirm_url\": \"{checkout_url}/v2/confirm_order/prd_0298737551cbf02c/1925\"\r\n}"
}
]
},
{
"name": "Retrieve all products",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{api_url}}/products/",
"host": [
"{{api_url}}"
],
"path": [
"products",
""
]
}
},
"response": [
{
"name": "Получение параметров всех продуктов",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{api_url}}/products/",
"host": [
"{{api_url}}"
],
"path": [
"products",
""
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "[\r\n {\r\n \"id\": \"prd_0298737551cbf02c\",\r\n \"name\": \"product\",\r\n \"description\": \"description\",\r\n \"amount\": 990,\r\n \"currency\": \"USD\",\r\n \"language\": \"ru\",\r\n \"infinite\": true,\r\n \"quantity\": null,\r\n \"transaction_type\": \"payment\",\r\n \"created_at\": \"2024-08-08T20:08:19Z\",\r\n \"updated_at\": \"2024-08-08T20:08:19Z\",\r\n \"additional_data\": {},\r\n \"test\": true,\r\n \"pay_url\": \"{psp.api_url}/products/prd_0298737551cbf02c/pay\",\r\n \"payment_url\": \"{psp.api_url}/products/prd_0298737551cbf02c/pay\",\r\n \"confirm_url\": \"{psp.checkout_url}/v2/confirm_order/prd_0298737551cbf02c/1925\"\r\n }\r\n]"
}
]
},
{
"name": "Update a product",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"amount\": \"999\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{api_url}}/products/:product_id",
"host": [
"{{api_url}}"
],
"path": [
"products",
":product_id"
],
"variable": [
{
"key": "product_id",
"value": "{{product_id}}",
"description": "The product identifier. The value of the `product_id` parameter from the response to the product creation request."
}
]
},
"description": "| **Параметр** | **Обязательность** | **Тип** | **Описание** |\n| --- | --- | --- | --- |\n| `name` | \\- | `string` | Product name. |\n| `description` | \\- | `string` | Product description. |\n| `amount` | \\- | `bigInteger` | Product price amount in minimal currency units, for example, in cents or kopecks. |\n| `language` | \\- | `string(2)` | The payment page language. For example, `en`. |\n| `quantity` | \\- | `string` | The available quantity of products. |\n| `infinite` | \\- | `boolean` | If `true`, the number of available products is unlimited. |\n| `visible_fields` | \\- | `array` | An array of fields that will be displayed on the payment page for the customer to fill in. Possible values: `first_name`, `last_name`, `country`, `state`, `city`, `address`, `zip`, `phone`, `birth_date`, `email`, `taxpayer_id`. |\n| `test` | \\- | `boolean` | If `true`, the product will be a test one. |"
},
"response": [
{
"name": "204 No content",
"originalRequest": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"amount\": \"999\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{api_url}}/products/:product_id",
"host": [
"{{api_url}}"
],
"path": [
"products",
":product_id"
],
"variable": [
{
"key": "product_id",
"value": ""
}
]
}
},
"status": "No Content",
"code": 204,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
}
],
"description": "Product is an entry of a product or service. The response to the product creation request will contain 3 types of links:\n\n- The link to the payment page that can be shared with the customer (`pay_url`);\n \n- The link to the payment page for internal system requests (`payment_url`);\n \n- The link to the order confirmation page (`confirm_url`).\n \n\nIf you send a payment link to the customer in a messenger or in an email, use the `confirm_url`. Once the customer confirms the order they will be redirected to the `pay_url`. \n\nIn all other cases, use `pay_url` for pages with the in-built payment widget on your website or in your application.",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
}
]
}
],
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "",
"type": "string"
},
{
"key": "username",
"value": "",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"packages": {},
"exec": [
""
]
}
}
],
"variable": [
{
"key": "gateway_url",
"value": "",
"type": "string"
},
{
"key": "backoffice_url",
"value": "",
"type": "string"
},
{
"key": "checkout_url",
"value": ""
},
{
"key": "js_url",
"value": "",
"type": "string"
},
{
"key": "public_key",
"value": "",
"type": "string"
},
{
"key": "api_url",
"value": "",
"type": "string"
},
{
"key": "id",
"value": "",
"type": "string"
},
{
"key": "secret_key",
"value": "",
"type": "string"
},
{
"key": "payment_token",
"value": "",
"type": "string"
},
{
"key": "payout_uid",
"value": "",
"type": "string"
},
{
"key": "tracking_id_payment",
"value": "",
"type": "string"
},
{
"key": "product_id",
"value": "",
"type": "string"
}
]
}
2) Select Import in the sidebar in your workspace in Postman and paste the copied code fragment into the import bar.
3) Request the URLs (checkout_url
, gateway_url
, api_url
, js_url
) from your manager and add them on the Variables tab in the Current value column. Click Save to apply the changes.
4) Add your shop's id
and secret_key
as the values of Username and Password fields on the Authorization tab. Alternatively, you can request the credentials of the demo shop from your manager. Click Save to apply the changes.