Guest User

Untitled

a guest
Jan 31st, 2022
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 37.49 KB | None | 0 0
  1. {
  2.     "info": {
  3.         "_postman_id": "cecc4be4-a926-4c6d-b6e2-954f45c06ea5",
  4.         "name": "KB API - Sandbox - Direct access to account ",
  5.         "description": "More info about service https://www.kb.cz/en/kb-api/kb-api-services/direct-access-to-account\n\nGeneral info www.kb.cz/api",
  6.         "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  7.     },
  8.     "item": [
  9.         {
  10.             "name": "software statements",
  11.             "item": [
  12.                 {
  13.                     "name": "API to register new software",
  14.                     "request": {
  15.                         "auth": {
  16.                             "type": "noauth"
  17.                         },
  18.                         "method": "POST",
  19.                         "header": [
  20.                             {
  21.                                 "key": "x-correlation-id",
  22.                                 "value": "{{$guid}}",
  23.                                 "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.\n\nThis value is automatically generated for every request. To use user-defined correlation ID, replace variable {{v4uuid}} with actual value."
  24.                             },
  25.                             {
  26.                                 "key": "x-client-cert",
  27.                                 "value": "valid-certificate",
  28.                                 "description": "Qualified certificate for digital signature. This header is automatically filled from TLS handshake."
  29.                             },
  30.                             {
  31.                                 "key": "x-api-key",
  32.                                 "value": "Bearer {{apiKey}}",
  33.                                 "type": "text"
  34.                             },
  35.                             {
  36.                                 "key": "Content-Type",
  37.                                 "value": "application/json"
  38.                             }
  39.                         ],
  40.                         "body": {
  41.                             "mode": "raw",
  42.                             "raw": "{\n  \"softwareName\": \"Nejlepší produkt\",\n  \"softwareNameEn\": \"Best product\",\n  \"softwareId\": \"f64bf2e447e545228c78e07b081a82ee\",\n  \"softwareVersion\": \"1.0\",\n  \"softwareUri\": \"https://client.example.org\",\n  \"redirectUris\": [\n    \"https://client.example.org/callback\",\n    \"https://client.example.org/callback-backup\"\n  ],\n  \"tokenEndpointAuthMethod\": \"client_secret_post\",\n  \"grantTypes\": [\n    \"authorization_code\"\n  ],\n  \"responseTypes\": [\n    \"code\"\n  ],\n  \"registrationBackUri\": \"https://client.example.org/backuri\",\n  \"contacts\": [\n    \"email: [email protected]\"\n  ],\n  \"logoUri\": \"https://client.example.org/logo.png\",\n  \"tosUri\": \"https://client.example.org/tos\",\n  \"policyUri\": \"https://client.example.org/policy\"\n}"
  43.                         },
  44.                         "url": {
  45.                             "raw": "https://gw.kbcloud.cz/sandbox/oauth2-software-statements/v1/software-statements",
  46.                             "protocol": "https",
  47.                             "host": [
  48.                                 "gw",
  49.                                 "kbcloud",
  50.                                 "cz"
  51.                             ],
  52.                             "path": [
  53.                                 "sandbox",
  54.                                 "oauth2-software-statements",
  55.                                 "v1",
  56.                                 "software-statements"
  57.                             ]
  58.                         }
  59.                     },
  60.                     "response": [
  61.                         {
  62.                             "name": "The request could not be understood by the server due to malformed syntax.",
  63.                             "originalRequest": {
  64.                                 "method": "POST",
  65.                                 "header": [
  66.                                     {
  67.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  68.                                         "key": "x-correlation-id",
  69.                                         "value": "<string>"
  70.                                     },
  71.                                     {
  72.                                         "description": "Qualified certificate for digital signature. This header is automatically filled from TLS handshake.",
  73.                                         "key": "x-client-cert",
  74.                                         "value": "<string>"
  75.                                     },
  76.                                     {
  77.                                         "key": "Content-Type",
  78.                                         "value": "application/json"
  79.                                     }
  80.                                 ],
  81.                                 "body": {
  82.                                     "mode": "raw",
  83.                                     "raw": "{\n    \"redirectUris\": [\n        \"<uri>\",\n        \"<uri>\"\n    ],\n    \"registrationBackUri\": \"<uri>\",\n    \"softwareId\": \"<string>\",\n    \"softwareName\": \"<string>\",\n    \"softwareVersion\": \"<string>\",\n    \"softwareNameEn\": \"<string>\",\n    \"softwareUri\": \"<uri>\",\n    \"tokenEndpointAuthMethod\": \"<string>\",\n    \"grantTypes\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"responseTypes\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"contacts\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"logoUri\": \"<uri>\",\n    \"tosUri\": \"<uri>\",\n    \"policyUri\": \"<uri>\"\n}"
  84.                                 },
  85.                                 "url": {
  86.                                     "raw": "{{baseUrl}}/software-statements",
  87.                                     "host": [
  88.                                         "{{baseUrl}}"
  89.                                     ],
  90.                                     "path": [
  91.                                         "software-statements"
  92.                                     ]
  93.                                 }
  94.                             },
  95.                             "status": "Bad Request",
  96.                             "code": 400,
  97.                             "_postman_previewlanguage": "json",
  98.                             "header": [
  99.                                 {
  100.                                     "key": "Content-Type",
  101.                                     "value": "application/json"
  102.                                 }
  103.                             ],
  104.                             "cookie": [],
  105.                             "body": "{\n \"errors\": [\n  {\n   \"errorCode\": \"<string>\",\n   \"scope\": \"<string>\",\n   \"description\": \"<string>\"\n  },\n  {\n   \"errorCode\": \"<string>\",\n   \"scope\": \"<string>\",\n   \"description\": \"<string>\"\n  }\n ]\n}"
  106.                         },
  107.                         {
  108.                             "name": "SoftwareStatement in form of JWT created.",
  109.                             "originalRequest": {
  110.                                 "method": "POST",
  111.                                 "header": [
  112.                                     {
  113.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  114.                                         "key": "x-correlation-id",
  115.                                         "value": "<string>"
  116.                                     },
  117.                                     {
  118.                                         "description": "Qualified certificate for digital signature. This header is automatically filled from TLS handshake.",
  119.                                         "key": "x-client-cert",
  120.                                         "value": "<string>"
  121.                                     },
  122.                                     {
  123.                                         "key": "Content-Type",
  124.                                         "value": "application/json"
  125.                                     }
  126.                                 ],
  127.                                 "body": {
  128.                                     "mode": "raw",
  129.                                     "raw": "{\n    \"redirectUris\": [\n        \"<uri>\",\n        \"<uri>\"\n    ],\n    \"registrationBackUri\": \"<uri>\",\n    \"softwareId\": \"<string>\",\n    \"softwareName\": \"<string>\",\n    \"softwareVersion\": \"<string>\",\n    \"softwareNameEn\": \"<string>\",\n    \"softwareUri\": \"<uri>\",\n    \"tokenEndpointAuthMethod\": \"<string>\",\n    \"grantTypes\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"responseTypes\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"contacts\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"logoUri\": \"<uri>\",\n    \"tosUri\": \"<uri>\",\n    \"policyUri\": \"<uri>\"\n}"
  130.                                 },
  131.                                 "url": {
  132.                                     "raw": "{{baseUrl}}/software-statements",
  133.                                     "host": [
  134.                                         "{{baseUrl}}"
  135.                                     ],
  136.                                     "path": [
  137.                                         "software-statements"
  138.                                     ]
  139.                                 }
  140.                             },
  141.                             "status": "Created",
  142.                             "code": 201,
  143.                             "_postman_previewlanguage": "text",
  144.                             "header": [
  145.                                 {
  146.                                     "key": "Content-Type",
  147.                                     "value": "text/plain; charset=utf-8"
  148.                                 }
  149.                             ],
  150.                             "cookie": [],
  151.                             "body": "<string>"
  152.                         },
  153.                         {
  154.                             "name": "Syntax of the request is correct but the input is invalid. Please check input parameters.",
  155.                             "originalRequest": {
  156.                                 "method": "POST",
  157.                                 "header": [
  158.                                     {
  159.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  160.                                         "key": "x-correlation-id",
  161.                                         "value": "<string>"
  162.                                     },
  163.                                     {
  164.                                         "description": "Qualified certificate for digital signature. This header is automatically filled from TLS handshake.",
  165.                                         "key": "x-client-cert",
  166.                                         "value": "<string>"
  167.                                     },
  168.                                     {
  169.                                         "key": "Content-Type",
  170.                                         "value": "application/json"
  171.                                     }
  172.                                 ],
  173.                                 "body": {
  174.                                     "mode": "raw",
  175.                                     "raw": "{\n    \"redirectUris\": [\n        \"<uri>\",\n        \"<uri>\"\n    ],\n    \"registrationBackUri\": \"<uri>\",\n    \"softwareId\": \"<string>\",\n    \"softwareName\": \"<string>\",\n    \"softwareVersion\": \"<string>\",\n    \"softwareNameEn\": \"<string>\",\n    \"softwareUri\": \"<uri>\",\n    \"tokenEndpointAuthMethod\": \"<string>\",\n    \"grantTypes\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"responseTypes\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"contacts\": [\n        \"<string>\",\n        \"<string>\"\n    ],\n    \"logoUri\": \"<uri>\",\n    \"tosUri\": \"<uri>\",\n    \"policyUri\": \"<uri>\"\n}"
  176.                                 },
  177.                                 "url": {
  178.                                     "raw": "{{baseUrl}}/software-statements",
  179.                                     "host": [
  180.                                         "{{baseUrl}}"
  181.                                     ],
  182.                                     "path": [
  183.                                         "software-statements"
  184.                                     ]
  185.                                 }
  186.                             },
  187.                             "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
  188.                             "code": 422,
  189.                             "_postman_previewlanguage": "json",
  190.                             "header": [
  191.                                 {
  192.                                     "key": "Content-Type",
  193.                                     "value": "application/json"
  194.                                 }
  195.                             ],
  196.                             "cookie": [],
  197.                             "body": "{\n \"errors\": [\n  {\n   \"errorCode\": \"<string>\",\n   \"scope\": \"<string>\",\n   \"description\": \"<string>\"\n  },\n  {\n   \"errorCode\": \"<string>\",\n   \"scope\": \"<string>\",\n   \"description\": \"<string>\"\n  }\n ]\n}"
  198.                         }
  199.                     ]
  200.                 }
  201.             ]
  202.         },
  203.         {
  204.             "name": "oauth2",
  205.             "item": [
  206.                 {
  207.                     "name": "Obtain access token based on selected grant type.",
  208.                     "event": [
  209.                         {
  210.                             "listen": "test",
  211.                             "script": {
  212.                                 "exec": [
  213.                                     "var jsonData = pm.response.json();",
  214.                                     "pm.collectionVariables.set(\"accessToken\", jsonData.access_token);"
  215.                                 ],
  216.                                 "type": "text/javascript"
  217.                             }
  218.                         }
  219.                     ],
  220.                     "request": {
  221.                         "auth": {
  222.                             "type": "noauth"
  223.                         },
  224.                         "method": "POST",
  225.                         "header": [
  226.                             {
  227.                                 "key": "x-correlation-id",
  228.                                 "value": "{{$guid}}",
  229.                                 "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.\n\nThis value is automatically generated for every request. To use user-defined correlation ID, replace variable {{v4uuid}} with actual value."
  230.                             },
  231.                             {
  232.                                 "key": "x-api-key",
  233.                                 "value": "Bearer {{apiKey}}",
  234.                                 "type": "text"
  235.                             },
  236.                             {
  237.                                 "key": "Content-Type",
  238.                                 "name": "Content-Type",
  239.                                 "value": "application/x-www-form-urlencoded",
  240.                                 "type": "text"
  241.                             }
  242.                         ],
  243.                         "body": {
  244.                             "mode": "urlencoded",
  245.                             "urlencoded": [
  246.                                 {
  247.                                     "key": "grant_type",
  248.                                     "value": "authorization_code"
  249.                                 },
  250.                                 {
  251.                                     "key": "redirect_uri",
  252.                                     "value": "www.kb.cz"
  253.                                 },
  254.                                 {
  255.                                     "key": "code",
  256.                                     "value": "eyJ1c2VySWQiOiJ0ZXN0Iiwic2NvcGVzIjpbImFkYWEiXX0"
  257.                                 },
  258.                                 {
  259.                                     "key": "client_id",
  260.                                     "value": "kbSandboxUser"
  261.                                 },
  262.                                 {
  263.                                     "key": "client_secret",
  264.                                     "value": "password"
  265.                                 }
  266.                             ]
  267.                         },
  268.                         "url": {
  269.                             "raw": "https://gw.kbcloud.cz/sandbox/oauth2/v1/access_token",
  270.                             "protocol": "https",
  271.                             "host": [
  272.                                 "gw",
  273.                                 "kbcloud",
  274.                                 "cz"
  275.                             ],
  276.                             "path": [
  277.                                 "sandbox",
  278.                                 "oauth2",
  279.                                 "v1",
  280.                                 "access_token"
  281.                             ]
  282.                         },
  283.                         "description": "Access token can be obtained either by using grand type of *authorization_code* and providing authorization *code*, *client_id* and *client_secret* or by providing *refresh_token* for grant type of *refresh_token*."
  284.                     },
  285.                     "response": [
  286.                         {
  287.                             "name": "Invalid request parameter (missing parameter or wrong parameter value). For more details about possible error types, see 'https://tools.ietf.org/html/rfc6749#section-5.2'",
  288.                             "originalRequest": {
  289.                                 "method": "POST",
  290.                                 "header": [
  291.                                     {
  292.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/applications involved.",
  293.                                         "key": "x-correlation-id",
  294.                                         "value": "<string>"
  295.                                     },
  296.                                     {
  297.                                         "key": "Content-Type",
  298.                                         "value": "application/x-www-form-urlencoded"
  299.                                     }
  300.                                 ],
  301.                                 "body": {
  302.                                     "mode": "urlencoded",
  303.                                     "urlencoded": [
  304.                                         {
  305.                                             "key": "grant_type",
  306.                                             "value": "<string>"
  307.                                         },
  308.                                         {
  309.                                             "key": "redirect_uri",
  310.                                             "value": "<string>"
  311.                                         },
  312.                                         {
  313.                                             "key": "code",
  314.                                             "value": "<string>"
  315.                                         },
  316.                                         {
  317.                                             "key": "refresh_token",
  318.                                             "value": "<string>"
  319.                                         },
  320.                                         {
  321.                                             "key": "client_id",
  322.                                             "value": "<string>"
  323.                                         },
  324.                                         {
  325.                                             "key": "client_secret",
  326.                                             "value": "<string>"
  327.                                         }
  328.                                     ]
  329.                                 },
  330.                                 "url": {
  331.                                     "raw": "{{baseUrl}}/access_token",
  332.                                     "host": [
  333.                                         "{{baseUrl}}"
  334.                                     ],
  335.                                     "path": [
  336.                                         "access_token"
  337.                                     ]
  338.                                 }
  339.                             },
  340.                             "status": "Bad Request",
  341.                             "code": 400,
  342.                             "_postman_previewlanguage": "json",
  343.                             "header": [
  344.                                 {
  345.                                     "key": "Content-Type",
  346.                                     "value": "application/json"
  347.                                 }
  348.                             ],
  349.                             "cookie": [],
  350.                             "body": "{\n \"error\": \"<string>\",\n \"error_description\": \"<string>\"\n}"
  351.                         },
  352.                         {
  353.                             "name": "OK",
  354.                             "originalRequest": {
  355.                                 "method": "POST",
  356.                                 "header": [
  357.                                     {
  358.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/applications involved.",
  359.                                         "key": "x-correlation-id",
  360.                                         "value": "<string>"
  361.                                     },
  362.                                     {
  363.                                         "key": "Content-Type",
  364.                                         "value": "application/x-www-form-urlencoded"
  365.                                     }
  366.                                 ],
  367.                                 "body": {
  368.                                     "mode": "urlencoded",
  369.                                     "urlencoded": [
  370.                                         {
  371.                                             "key": "grant_type",
  372.                                             "value": "<string>"
  373.                                         },
  374.                                         {
  375.                                             "key": "redirect_uri",
  376.                                             "value": "<string>"
  377.                                         },
  378.                                         {
  379.                                             "key": "code",
  380.                                             "value": "<string>"
  381.                                         },
  382.                                         {
  383.                                             "key": "refresh_token",
  384.                                             "value": "<string>"
  385.                                         },
  386.                                         {
  387.                                             "key": "client_id",
  388.                                             "value": "<string>"
  389.                                         },
  390.                                         {
  391.                                             "key": "client_secret",
  392.                                             "value": "<string>"
  393.                                         }
  394.                                     ]
  395.                                 },
  396.                                 "url": {
  397.                                     "raw": "{{baseUrl}}/access_token",
  398.                                     "host": [
  399.                                         "{{baseUrl}}"
  400.                                     ],
  401.                                     "path": [
  402.                                         "access_token"
  403.                                     ]
  404.                                 }
  405.                             },
  406.                             "status": "OK",
  407.                             "code": 200,
  408.                             "_postman_previewlanguage": "json",
  409.                             "header": [
  410.                                 {
  411.                                     "key": "Content-Type",
  412.                                     "value": "application/json"
  413.                                 }
  414.                             ],
  415.                             "cookie": [],
  416.                             "body": "{\n \"access_token\": \"<string>\",\n \"token_type\": \"<string>\",\n \"expires_in\": \"<long>\",\n \"refresh_token\": \"<string>\",\n \"acr\": \"<long>\"\n}"
  417.                         }
  418.                     ]
  419.                 }
  420.             ]
  421.         },
  422.         {
  423.             "name": "accounts",
  424.             "item": [
  425.                 {
  426.                     "name": "Account identification number",
  427.                     "event": [
  428.                         {
  429.                             "listen": "test",
  430.                             "script": {
  431.                                 "exec": [
  432.                                     "var jsonData = pm.response.json();",
  433.                                     "pm.collectionVariables.set(\"accountId\", jsonData.accountId);"
  434.                                 ],
  435.                                 "type": "text/javascript"
  436.                             }
  437.                         }
  438.                     ],
  439.                     "request": {
  440.                         "auth": {
  441.                             "type": "bearer",
  442.                             "bearer": [
  443.                                 {
  444.                                     "key": "token",
  445.                                     "value": "{{accessToken}}",
  446.                                     "type": "string"
  447.                                 }
  448.                             ]
  449.                         },
  450.                         "method": "POST",
  451.                         "header": [
  452.                             {
  453.                                 "key": "x-correlation-id",
  454.                                 "value": "{{$guid}}",
  455.                                 "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.\n\nThis value is automatically generated for every request. To use user-defined correlation ID, replace variable {{v4uuid}} with actual value."
  456.                             },
  457.                             {
  458.                                 "key": "x-api-key",
  459.                                 "value": "Bearer {{apiKey}}",
  460.                                 "type": "text"
  461.                             },
  462.                             {
  463.                                 "key": "Content-Type",
  464.                                 "value": "application/json"
  465.                             }
  466.                         ],
  467.                         "body": {
  468.                             "mode": "raw",
  469.                             "raw": "{\n    \"iban\": \"CZ1301000901147771800227\",\n    \"currency\": \"CZK\"\n}"
  470.                         },
  471.                         "url": {
  472.                             "raw": "https://gw.kbcloud.cz/sandbox/adaa/v1/accounts/account-ids",
  473.                             "protocol": "https",
  474.                             "host": [
  475.                                 "gw",
  476.                                 "kbcloud",
  477.                                 "cz"
  478.                             ],
  479.                             "path": [
  480.                                 "sandbox",
  481.                                 "adaa",
  482.                                 "v1",
  483.                                 "accounts",
  484.                                 "account-ids"
  485.                             ]
  486.                         },
  487.                         "description": "Returns unique ID for IBAN, which will be used as a parameter called `accountId`.\n"
  488.                     },
  489.                     "response": [
  490.                         {
  491.                             "name": "Invalid request header/parameter (missing header/parameter or wrong header/parameter value).",
  492.                             "originalRequest": {
  493.                                 "method": "POST",
  494.                                 "header": [
  495.                                     {
  496.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  497.                                         "key": "x-correlation-id",
  498.                                         "value": "<string>"
  499.                                     },
  500.                                     {
  501.                                         "key": "Content-Type",
  502.                                         "value": "application/json"
  503.                                     }
  504.                                 ],
  505.                                 "body": {
  506.                                     "mode": "raw",
  507.                                     "raw": "{\n    \"iban\": \"<string>\",\n    \"currency\": \"<string>\"\n}"
  508.                                 },
  509.                                 "url": {
  510.                                     "raw": "{{baseUrl}}/accounts/account-ids",
  511.                                     "host": [
  512.                                         "{{baseUrl}}"
  513.                                     ],
  514.                                     "path": [
  515.                                         "accounts",
  516.                                         "account-ids"
  517.                                     ]
  518.                                 }
  519.                             },
  520.                             "status": "Bad Request",
  521.                             "code": 400,
  522.                             "_postman_previewlanguage": "json",
  523.                             "header": [
  524.                                 {
  525.                                     "key": "Content-Type",
  526.                                     "value": "application/json"
  527.                                 }
  528.                             ],
  529.                             "cookie": [],
  530.                             "body": "{\n \"errors\": [\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  },\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  }\n ]\n}"
  531.                         },
  532.                         {
  533.                             "name": "Successful operation",
  534.                             "originalRequest": {
  535.                                 "method": "POST",
  536.                                 "header": [
  537.                                     {
  538.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  539.                                         "key": "x-correlation-id",
  540.                                         "value": "<string>"
  541.                                     },
  542.                                     {
  543.                                         "key": "Content-Type",
  544.                                         "value": "application/json"
  545.                                     }
  546.                                 ],
  547.                                 "body": {
  548.                                     "mode": "raw",
  549.                                     "raw": "{\n    \"iban\": \"<string>\",\n    \"currency\": \"<string>\"\n}"
  550.                                 },
  551.                                 "url": {
  552.                                     "raw": "{{baseUrl}}/accounts/account-ids",
  553.                                     "host": [
  554.                                         "{{baseUrl}}"
  555.                                     ],
  556.                                     "path": [
  557.                                         "accounts",
  558.                                         "account-ids"
  559.                                     ]
  560.                                 }
  561.                             },
  562.                             "status": "OK",
  563.                             "code": 200,
  564.                             "_postman_previewlanguage": "json",
  565.                             "header": [
  566.                                 {
  567.                                     "key": "Content-Type",
  568.                                     "value": "application/json"
  569.                                 }
  570.                             ],
  571.                             "cookie": [],
  572.                             "body": "{\n \"accountId\": \"<string>\"\n}"
  573.                         },
  574.                         {
  575.                             "name": "Invalid request body.",
  576.                             "originalRequest": {
  577.                                 "method": "POST",
  578.                                 "header": [
  579.                                     {
  580.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  581.                                         "key": "x-correlation-id",
  582.                                         "value": "<string>"
  583.                                     },
  584.                                     {
  585.                                         "key": "Content-Type",
  586.                                         "value": "application/json"
  587.                                     }
  588.                                 ],
  589.                                 "body": {
  590.                                     "mode": "raw",
  591.                                     "raw": "{\n    \"iban\": \"<string>\",\n    \"currency\": \"<string>\"\n}"
  592.                                 },
  593.                                 "url": {
  594.                                     "raw": "{{baseUrl}}/accounts/account-ids",
  595.                                     "host": [
  596.                                         "{{baseUrl}}"
  597.                                     ],
  598.                                     "path": [
  599.                                         "accounts",
  600.                                         "account-ids"
  601.                                     ]
  602.                                 }
  603.                             },
  604.                             "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
  605.                             "code": 422,
  606.                             "_postman_previewlanguage": "json",
  607.                             "header": [
  608.                                 {
  609.                                     "key": "Content-Type",
  610.                                     "value": "application/json"
  611.                                 }
  612.                             ],
  613.                             "cookie": [],
  614.                             "body": "{\n \"errors\": [\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  },\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  }\n ]\n}"
  615.                         }
  616.                     ]
  617.                 },
  618.                 {
  619.                     "name": "Transaction history",
  620.                     "request": {
  621.                         "auth": {
  622.                             "type": "bearer",
  623.                             "bearer": [
  624.                                 {
  625.                                     "key": "token",
  626.                                     "value": "{{accessToken}}",
  627.                                     "type": "string"
  628.                                 }
  629.                             ]
  630.                         },
  631.                         "method": "GET",
  632.                         "header": [
  633.                             {
  634.                                 "key": "x-correlation-id",
  635.                                 "value": "{{$guid}}",
  636.                                 "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.\n\nThis value is automatically generated for every request. To use user-defined correlation ID, replace variable {{v4uuid}} with actual value."
  637.                             },
  638.                             {
  639.                                 "key": "x-api-key",
  640.                                 "value": "Bearer {{apiKey}}",
  641.                                 "type": "text"
  642.                             }
  643.                         ],
  644.                         "url": {
  645.                             "raw": "https://gw.kbcloud.cz/sandbox/adaa/v1/accounts/:accountId/transactions?fromDate=2019-05-01&toDate=2019-07-01&page=0&size=10",
  646.                             "protocol": "https",
  647.                             "host": [
  648.                                 "gw",
  649.                                 "kbcloud",
  650.                                 "cz"
  651.                             ],
  652.                             "path": [
  653.                                 "sandbox",
  654.                                 "adaa",
  655.                                 "v1",
  656.                                 "accounts",
  657.                                 ":accountId",
  658.                                 "transactions"
  659.                             ],
  660.                             "query": [
  661.                                 {
  662.                                     "key": "fromDate",
  663.                                     "value": "2019-05-01",
  664.                                     "description": "Start date of returned transaction history (YYYY-MM-DD)."
  665.                                 },
  666.                                 {
  667.                                     "key": "toDate",
  668.                                     "value": "2019-07-01",
  669.                                     "description": "End date of returned transaction history (YYYY-MM-DD)."
  670.                                 },
  671.                                 {
  672.                                     "key": "page",
  673.                                     "value": "0",
  674.                                     "description": "Current transaction history page. Page starts with 0 (first page)."
  675.                                 },
  676.                                 {
  677.                                     "key": "size",
  678.                                     "value": "10",
  679.                                     "description": "Number of transactions per page. Default value is 10 transactions per page."
  680.                                 }
  681.                             ],
  682.                             "variable": [
  683.                                 {
  684.                                     "key": "accountId",
  685.                                     "value": "{{accountId}}",
  686.                                     "description": "IBAN represented as unique ID, which is returned from resource account-ids."
  687.                                 }
  688.                             ]
  689.                         },
  690.                         "description": "Returns transaction history based on input parameters. Sorting is based on transaction date, from older to newer transactions."
  691.                     },
  692.                     "response": [
  693.                         {
  694.                             "name": "Client has no access to account or account is in blacklist.",
  695.                             "originalRequest": {
  696.                                 "method": "GET",
  697.                                 "header": [
  698.                                     {
  699.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  700.                                         "key": "x-correlation-id",
  701.                                         "value": "<string>"
  702.                                     }
  703.                                 ],
  704.                                 "url": {
  705.                                     "raw": "{{baseUrl}}/accounts/<string>/transactions?fromDate=<date>&toDate=<date>&page=<integer>&size=10",
  706.                                     "host": [
  707.                                         "{{baseUrl}}"
  708.                                     ],
  709.                                     "path": [
  710.                                         "accounts",
  711.                                         "<string>",
  712.                                         "transactions"
  713.                                     ],
  714.                                     "query": [
  715.                                         {
  716.                                             "key": "fromDate",
  717.                                             "value": "<date>"
  718.                                         },
  719.                                         {
  720.                                             "key": "toDate",
  721.                                             "value": "<date>"
  722.                                         },
  723.                                         {
  724.                                             "key": "page",
  725.                                             "value": "<integer>"
  726.                                         },
  727.                                         {
  728.                                             "key": "size",
  729.                                             "value": "10"
  730.                                         }
  731.                                     ]
  732.                                 }
  733.                             },
  734.                             "status": "Forbidden",
  735.                             "code": 403,
  736.                             "_postman_previewlanguage": "json",
  737.                             "header": [
  738.                                 {
  739.                                     "key": "Content-Type",
  740.                                     "value": "application/json"
  741.                                 }
  742.                             ],
  743.                             "cookie": [],
  744.                             "body": "{\n \"errors\": [\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  },\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  }\n ]\n}"
  745.                         },
  746.                         {
  747.                             "name": "Invalid request header/parameter (missing header/parameter or wrong header/parameter value).",
  748.                             "originalRequest": {
  749.                                 "method": "GET",
  750.                                 "header": [
  751.                                     {
  752.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  753.                                         "key": "x-correlation-id",
  754.                                         "value": "<string>"
  755.                                     }
  756.                                 ],
  757.                                 "url": {
  758.                                     "raw": "{{baseUrl}}/accounts/<string>/transactions?fromDate=<date>&toDate=<date>&page=<integer>&size=10",
  759.                                     "host": [
  760.                                         "{{baseUrl}}"
  761.                                     ],
  762.                                     "path": [
  763.                                         "accounts",
  764.                                         "<string>",
  765.                                         "transactions"
  766.                                     ],
  767.                                     "query": [
  768.                                         {
  769.                                             "key": "fromDate",
  770.                                             "value": "<date>"
  771.                                         },
  772.                                         {
  773.                                             "key": "toDate",
  774.                                             "value": "<date>"
  775.                                         },
  776.                                         {
  777.                                             "key": "page",
  778.                                             "value": "<integer>"
  779.                                         },
  780.                                         {
  781.                                             "key": "size",
  782.                                             "value": "10"
  783.                                         }
  784.                                     ]
  785.                                 }
  786.                             },
  787.                             "status": "Bad Request",
  788.                             "code": 400,
  789.                             "_postman_previewlanguage": "json",
  790.                             "header": [
  791.                                 {
  792.                                     "key": "Content-Type",
  793.                                     "value": "application/json"
  794.                                 }
  795.                             ],
  796.                             "cookie": [],
  797.                             "body": "{\n \"errors\": [\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  },\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  }\n ]\n}"
  798.                         },
  799.                         {
  800.                             "name": "OK.",
  801.                             "originalRequest": {
  802.                                 "method": "GET",
  803.                                 "header": [
  804.                                     {
  805.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  806.                                         "key": "x-correlation-id",
  807.                                         "value": "<string>"
  808.                                     }
  809.                                 ],
  810.                                 "url": {
  811.                                     "raw": "{{baseUrl}}/accounts/<string>/transactions?fromDate=<date>&toDate=<date>&page=<integer>&size=10",
  812.                                     "host": [
  813.                                         "{{baseUrl}}"
  814.                                     ],
  815.                                     "path": [
  816.                                         "accounts",
  817.                                         "<string>",
  818.                                         "transactions"
  819.                                     ],
  820.                                     "query": [
  821.                                         {
  822.                                             "key": "fromDate",
  823.                                             "value": "<date>"
  824.                                         },
  825.                                         {
  826.                                             "key": "toDate",
  827.                                             "value": "<date>"
  828.                                         },
  829.                                         {
  830.                                             "key": "page",
  831.                                             "value": "<integer>"
  832.                                         },
  833.                                         {
  834.                                             "key": "size",
  835.                                             "value": "10"
  836.                                         }
  837.                                     ]
  838.                                 }
  839.                             },
  840.                             "status": "OK",
  841.                             "code": 200,
  842.                             "_postman_previewlanguage": "json",
  843.                             "header": [
  844.                                 {
  845.                                     "key": "Content-Type",
  846.                                     "value": "application/json"
  847.                                 }
  848.                             ],
  849.                             "cookie": [],
  850.                             "body": "{\n \"content\": [\n  {\n   \"lastUpdated\": \"<dateTime>\",\n   \"accountType\": \"<string>\",\n   \"iban\": \"<string>\",\n   \"amount\": {\n    \"value\": \"<double>\",\n    \"currency\": \"<string>\"\n   },\n   \"creditDebitIndicator\": \"<string>\",\n   \"transactionType\": \"<string>\",\n   \"bookingDate\": \"<date>\",\n   \"valueDate\": \"<date>\",\n   \"entryReference\": \"<string>\",\n   \"instructed\": {\n    \"value\": \"<double>\",\n    \"currency\": \"<string>\"\n   },\n   \"reversalIndicator\": \"<boolean>\",\n   \"status\": \"<string>\",\n   \"counterParty\": {\n    \"iban\": \"<string>\",\n    \"name\": \"<string>\",\n    \"accountNo\": \"<string>\",\n    \"bankBic\": \"<string>\",\n    \"bankCode\": \"<string>\",\n    \"bankName\": \"<string>\"\n   },\n   \"references\": {\n    \"variable\": \"<string>\",\n    \"constant\": \"<string>\",\n    \"specific\": \"<string>\",\n    \"receiver\": \"<string>\"\n   },\n   \"additionalTransactionInformation\": \"<string>\"\n  },\n  {\n   \"lastUpdated\": \"<dateTime>\",\n   \"accountType\": \"<string>\",\n   \"iban\": \"<string>\",\n   \"amount\": {\n    \"value\": \"<double>\",\n    \"currency\": \"<string>\"\n   },\n   \"creditDebitIndicator\": \"<string>\",\n   \"transactionType\": \"<string>\",\n   \"bookingDate\": \"<date>\",\n   \"valueDate\": \"<date>\",\n   \"entryReference\": \"<string>\",\n   \"instructed\": {\n    \"value\": \"<double>\",\n    \"currency\": \"<string>\"\n   },\n   \"reversalIndicator\": \"<boolean>\",\n   \"status\": \"<string>\",\n   \"counterParty\": {\n    \"iban\": \"<string>\",\n    \"name\": \"<string>\",\n    \"accountNo\": \"<string>\",\n    \"bankBic\": \"<string>\",\n    \"bankCode\": \"<string>\",\n    \"bankName\": \"<string>\"\n   },\n   \"references\": {\n    \"variable\": \"<string>\",\n    \"constant\": \"<string>\",\n    \"specific\": \"<string>\",\n    \"receiver\": \"<string>\"\n   },\n   \"additionalTransactionInformation\": \"<string>\"\n  }\n ],\n \"totalPages\": \"<integer>\",\n \"pageNumber\": \"<integer>\",\n \"pageSize\": \"<integer>\",\n \"numberOfElements\": \"<integer>\",\n \"first\": \"<boolean>\",\n \"last\": \"<boolean>\",\n \"empty\": \"<boolean>\"\n}"
  851.                         }
  852.                     ]
  853.                 },
  854.                 {
  855.                     "name": "Actual balance",
  856.                     "request": {
  857.                         "auth": {
  858.                             "type": "bearer",
  859.                             "bearer": [
  860.                                 {
  861.                                     "key": "token",
  862.                                     "value": "{{accessToken}}",
  863.                                     "type": "string"
  864.                                 }
  865.                             ]
  866.                         },
  867.                         "method": "GET",
  868.                         "header": [
  869.                             {
  870.                                 "key": "x-correlation-id",
  871.                                 "value": "{{$guid}}",
  872.                                 "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.\n\nThis value is automatically generated for every request. To use user-defined correlation ID, replace variable {{v4uuid}} with actual value."
  873.                             },
  874.                             {
  875.                                 "key": "x-api-key",
  876.                                 "value": "Bearer {{apiKey}}",
  877.                                 "type": "text"
  878.                             }
  879.                         ],
  880.                         "url": {
  881.                             "raw": "https://gw.kbcloud.cz/sandbox/adaa/v1/accounts/:accountIds/balances",
  882.                             "protocol": "https",
  883.                             "host": [
  884.                                 "gw",
  885.                                 "kbcloud",
  886.                                 "cz"
  887.                             ],
  888.                             "path": [
  889.                                 "sandbox",
  890.                                 "adaa",
  891.                                 "v1",
  892.                                 "accounts",
  893.                                 ":accountIds",
  894.                                 "balances"
  895.                             ],
  896.                             "variable": [
  897.                                 {
  898.                                     "key": "accountIds",
  899.                                     "value": "{{accountId}}",
  900.                                     "description": "IBAN represented as unique ID, which is returned from resource account-ids."
  901.                                 }
  902.                             ]
  903.                         },
  904.                         "description": "Returns the current account balance of the client’s account."
  905.                     },
  906.                     "response": [
  907.                         {
  908.                             "name": "Invalid request header/parameter (missing header/parameter or wrong header/parameter value).",
  909.                             "originalRequest": {
  910.                                 "method": "GET",
  911.                                 "header": [
  912.                                     {
  913.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  914.                                         "key": "x-correlation-id",
  915.                                         "value": "<string>"
  916.                                     }
  917.                                 ],
  918.                                 "url": {
  919.                                     "raw": "{{baseUrl}}/accounts/<string>/balances",
  920.                                     "host": [
  921.                                         "{{baseUrl}}"
  922.                                     ],
  923.                                     "path": [
  924.                                         "accounts",
  925.                                         "<string>",
  926.                                         "balances"
  927.                                     ]
  928.                                 }
  929.                             },
  930.                             "status": "Bad Request",
  931.                             "code": 400,
  932.                             "_postman_previewlanguage": "json",
  933.                             "header": [
  934.                                 {
  935.                                     "key": "Content-Type",
  936.                                     "value": "application/json"
  937.                                 }
  938.                             ],
  939.                             "cookie": [],
  940.                             "body": "{\n \"errors\": [\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  },\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  }\n ]\n}"
  941.                         },
  942.                         {
  943.                             "name": "Client has no access to account or account is in blacklist.",
  944.                             "originalRequest": {
  945.                                 "method": "GET",
  946.                                 "header": [
  947.                                     {
  948.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  949.                                         "key": "x-correlation-id",
  950.                                         "value": "<string>"
  951.                                     }
  952.                                 ],
  953.                                 "url": {
  954.                                     "raw": "{{baseUrl}}/accounts/<string>/balances",
  955.                                     "host": [
  956.                                         "{{baseUrl}}"
  957.                                     ],
  958.                                     "path": [
  959.                                         "accounts",
  960.                                         "<string>",
  961.                                         "balances"
  962.                                     ]
  963.                                 }
  964.                             },
  965.                             "status": "Forbidden",
  966.                             "code": 403,
  967.                             "_postman_previewlanguage": "json",
  968.                             "header": [
  969.                                 {
  970.                                     "key": "Content-Type",
  971.                                     "value": "application/json"
  972.                                 }
  973.                             ],
  974.                             "cookie": [],
  975.                             "body": "{\n \"errors\": [\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  },\n  {\n   \"message\": \"<string>\",\n   \"code\": \"<string>\",\n   \"additionalInfo\": {\n    \"parameterName\": \"<string>\",\n    \"rejectedValue\": \"<string>\"\n   }\n  }\n ]\n}"
  976.                         },
  977.                         {
  978.                             "name": "Successful operation",
  979.                             "originalRequest": {
  980.                                 "method": "GET",
  981.                                 "header": [
  982.                                     {
  983.                                         "description": "Correlation ID (GUID 128-bit: 8-4-4-4-12) is the generated unique identifier of the initial request, which stays the same through all the systems/application involved.",
  984.                                         "key": "x-correlation-id",
  985.                                         "value": "<string>"
  986.                                     }
  987.                                 ],
  988.                                 "url": {
  989.                                     "raw": "{{baseUrl}}/accounts/<string>/balances",
  990.                                     "host": [
  991.                                         "{{baseUrl}}"
  992.                                     ],
  993.                                     "path": [
  994.                                         "accounts",
  995.                                         "<string>",
  996.                                         "balances"
  997.                                     ]
  998.                                 }
  999.                             },
  1000.                             "status": "OK",
  1001.                             "code": 200,
  1002.                             "_postman_previewlanguage": "json",
  1003.                             "header": [
  1004.                                 {
  1005.                                     "key": "Content-Type",
  1006.                                     "value": "application/json"
  1007.                                 }
  1008.                             ],
  1009.                             "cookie": [],
  1010.                             "body": "[\n {\n  \"type\": \"<string>\",\n  \"creditDebitIndicator\": \"<string>\",\n  \"amount\": {\n   \"value\": \"<double>\",\n   \"currency\": \"<string>\"\n  },\n  \"validAt\": \"<dateTime>\",\n  \"creditLine\": {\n   \"value\": \"<double>\",\n   \"currency\": \"<string>\"\n  }\n },\n {\n  \"type\": \"<string>\",\n  \"creditDebitIndicator\": \"<string>\",\n  \"amount\": {\n   \"value\": \"<double>\",\n   \"currency\": \"<string>\"\n  },\n  \"validAt\": \"<dateTime>\",\n  \"creditLine\": {\n   \"value\": \"<double>\",\n   \"currency\": \"<string>\"\n  }\n }\n]"
  1011.                         }
  1012.                     ]
  1013.                 }
  1014.             ]
  1015.         }
  1016.     ],
  1017.     "event": [
  1018.         {
  1019.             "listen": "prerequest",
  1020.             "script": {
  1021.                 "type": "text/javascript",
  1022.                 "exec": [
  1023.                     ""
  1024.                 ]
  1025.             }
  1026.         },
  1027.         {
  1028.             "listen": "test",
  1029.             "script": {
  1030.                 "type": "text/javascript",
  1031.                 "exec": [
  1032.                     ""
  1033.                 ]
  1034.             }
  1035.         }
  1036.     ],
  1037.     "variable": [
  1038.         {
  1039.             "key": "baseUrl",
  1040.             "value": "https://gw.kbcloud.cz/sandbox"
  1041.         },
  1042.         {
  1043.             "key": "apiKey",
  1044.             "value": "5481c4da-1125-3c52-ae24-149cc6c3e3e5"
  1045.         },
  1046.         {
  1047.             "key": "accessToken",
  1048.             "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJLQklEPXRlc3QiLCJhdWRpdFRyYWNraW5nSWQiOiJkNzQxMmZlNS1mZTczLTQ5NDUtYjc5Yy0wYmFmMDEyNzEyNWQiLCJpc3MiOiJodHRwczovL2xvZ2luLmtiLmN6L29wZW5hbS9vYXV0aDIiLCJ0b2tlbk5hbWUiOiJhY2Nlc3NfdG9rZW4iLCJ0b2tlbl90eXBlIjoiQmVhcmVyIiwiYXV0aEdyYW50SWQiOiI2YWNjNzYxZS1hODZlLTRkYjUtODU4YS1kZTBmZmIzNDIzNDEiLCJhdWQiOiIxMjM1NDYiLCJuYmYiOjE2MzY2MjMyNTgsInNjb3BlIjpbImFkYWEiXSwicmVhbG0iOiIvIiwiZXhwIjoxNjM2NjI2ODU4LCJpYXQiOjE2MzY2MjMyNTgsImV4cGlyZXNfaW4iOjM2MDAwMDAsImp0aSI6IjE2NGNmZWE4LTQ2MGYtNDBjYS1hMTRjLWJlNTZjNmY1YjBjNiJ9.a2rWL7J904BU0mE3gzZm20xAmbe8ass3kh2xt3W-AKU"
  1049.         },
  1050.         {
  1051.             "key": "accountId",
  1052.             "value": "Q1oxMzAxMDAwOTAxMTQ3NzcxODAwMjI3OkNaSw"
  1053.         }
  1054.     ]
  1055. }
Advertisement
Add Comment
Please, Sign In to add comment