Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "info": {
- "_postman_id": "cecc4be4-a926-4c6d-b6e2-954f45c06ea5",
- "name": "KB API - Sandbox - Direct access to account ",
- "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",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
- },
- "item": [
- {
- "name": "software statements",
- "item": [
- {
- "name": "API to register new software",
- "request": {
- "auth": {
- "type": "noauth"
- },
- "method": "POST",
- "header": [
- {
- "key": "x-correlation-id",
- "value": "{{$guid}}",
- "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."
- },
- {
- "key": "x-client-cert",
- "value": "valid-certificate",
- "description": "Qualified certificate for digital signature. This header is automatically filled from TLS handshake."
- },
- {
- "key": "x-api-key",
- "value": "Bearer {{apiKey}}",
- "type": "text"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "https://gw.kbcloud.cz/sandbox/oauth2-software-statements/v1/software-statements",
- "protocol": "https",
- "host": [
- "gw",
- "kbcloud",
- "cz"
- ],
- "path": [
- "sandbox",
- "oauth2-software-statements",
- "v1",
- "software-statements"
- ]
- }
- },
- "response": [
- {
- "name": "The request could not be understood by the server due to malformed syntax.",
- "originalRequest": {
- "method": "POST",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- },
- {
- "description": "Qualified certificate for digital signature. This header is automatically filled from TLS handshake.",
- "key": "x-client-cert",
- "value": "<string>"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "{{baseUrl}}/software-statements",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "software-statements"
- ]
- }
- },
- "status": "Bad Request",
- "code": 400,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- },
- {
- "name": "SoftwareStatement in form of JWT created.",
- "originalRequest": {
- "method": "POST",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- },
- {
- "description": "Qualified certificate for digital signature. This header is automatically filled from TLS handshake.",
- "key": "x-client-cert",
- "value": "<string>"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "{{baseUrl}}/software-statements",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "software-statements"
- ]
- }
- },
- "status": "Created",
- "code": 201,
- "_postman_previewlanguage": "text",
- "header": [
- {
- "key": "Content-Type",
- "value": "text/plain; charset=utf-8"
- }
- ],
- "cookie": [],
- "body": "<string>"
- },
- {
- "name": "Syntax of the request is correct but the input is invalid. Please check input parameters.",
- "originalRequest": {
- "method": "POST",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- },
- {
- "description": "Qualified certificate for digital signature. This header is automatically filled from TLS handshake.",
- "key": "x-client-cert",
- "value": "<string>"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "{{baseUrl}}/software-statements",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "software-statements"
- ]
- }
- },
- "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
- "code": 422,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- }
- ]
- }
- ]
- },
- {
- "name": "oauth2",
- "item": [
- {
- "name": "Obtain access token based on selected grant type.",
- "event": [
- {
- "listen": "test",
- "script": {
- "exec": [
- "var jsonData = pm.response.json();",
- "pm.collectionVariables.set(\"accessToken\", jsonData.access_token);"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "auth": {
- "type": "noauth"
- },
- "method": "POST",
- "header": [
- {
- "key": "x-correlation-id",
- "value": "{{$guid}}",
- "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."
- },
- {
- "key": "x-api-key",
- "value": "Bearer {{apiKey}}",
- "type": "text"
- },
- {
- "key": "Content-Type",
- "name": "Content-Type",
- "value": "application/x-www-form-urlencoded",
- "type": "text"
- }
- ],
- "body": {
- "mode": "urlencoded",
- "urlencoded": [
- {
- "key": "grant_type",
- "value": "authorization_code"
- },
- {
- "key": "redirect_uri",
- "value": "www.kb.cz"
- },
- {
- "key": "code",
- "value": "eyJ1c2VySWQiOiJ0ZXN0Iiwic2NvcGVzIjpbImFkYWEiXX0"
- },
- {
- "key": "client_id",
- "value": "kbSandboxUser"
- },
- {
- "key": "client_secret",
- "value": "password"
- }
- ]
- },
- "url": {
- "raw": "https://gw.kbcloud.cz/sandbox/oauth2/v1/access_token",
- "protocol": "https",
- "host": [
- "gw",
- "kbcloud",
- "cz"
- ],
- "path": [
- "sandbox",
- "oauth2",
- "v1",
- "access_token"
- ]
- },
- "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*."
- },
- "response": [
- {
- "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'",
- "originalRequest": {
- "method": "POST",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- },
- {
- "key": "Content-Type",
- "value": "application/x-www-form-urlencoded"
- }
- ],
- "body": {
- "mode": "urlencoded",
- "urlencoded": [
- {
- "key": "grant_type",
- "value": "<string>"
- },
- {
- "key": "redirect_uri",
- "value": "<string>"
- },
- {
- "key": "code",
- "value": "<string>"
- },
- {
- "key": "refresh_token",
- "value": "<string>"
- },
- {
- "key": "client_id",
- "value": "<string>"
- },
- {
- "key": "client_secret",
- "value": "<string>"
- }
- ]
- },
- "url": {
- "raw": "{{baseUrl}}/access_token",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "access_token"
- ]
- }
- },
- "status": "Bad Request",
- "code": 400,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "body": "{\n \"error\": \"<string>\",\n \"error_description\": \"<string>\"\n}"
- },
- {
- "name": "OK",
- "originalRequest": {
- "method": "POST",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- },
- {
- "key": "Content-Type",
- "value": "application/x-www-form-urlencoded"
- }
- ],
- "body": {
- "mode": "urlencoded",
- "urlencoded": [
- {
- "key": "grant_type",
- "value": "<string>"
- },
- {
- "key": "redirect_uri",
- "value": "<string>"
- },
- {
- "key": "code",
- "value": "<string>"
- },
- {
- "key": "refresh_token",
- "value": "<string>"
- },
- {
- "key": "client_id",
- "value": "<string>"
- },
- {
- "key": "client_secret",
- "value": "<string>"
- }
- ]
- },
- "url": {
- "raw": "{{baseUrl}}/access_token",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "access_token"
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "body": "{\n \"access_token\": \"<string>\",\n \"token_type\": \"<string>\",\n \"expires_in\": \"<long>\",\n \"refresh_token\": \"<string>\",\n \"acr\": \"<long>\"\n}"
- }
- ]
- }
- ]
- },
- {
- "name": "accounts",
- "item": [
- {
- "name": "Account identification number",
- "event": [
- {
- "listen": "test",
- "script": {
- "exec": [
- "var jsonData = pm.response.json();",
- "pm.collectionVariables.set(\"accountId\", jsonData.accountId);"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "auth": {
- "type": "bearer",
- "bearer": [
- {
- "key": "token",
- "value": "{{accessToken}}",
- "type": "string"
- }
- ]
- },
- "method": "POST",
- "header": [
- {
- "key": "x-correlation-id",
- "value": "{{$guid}}",
- "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."
- },
- {
- "key": "x-api-key",
- "value": "Bearer {{apiKey}}",
- "type": "text"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"iban\": \"CZ1301000901147771800227\",\n \"currency\": \"CZK\"\n}"
- },
- "url": {
- "raw": "https://gw.kbcloud.cz/sandbox/adaa/v1/accounts/account-ids",
- "protocol": "https",
- "host": [
- "gw",
- "kbcloud",
- "cz"
- ],
- "path": [
- "sandbox",
- "adaa",
- "v1",
- "accounts",
- "account-ids"
- ]
- },
- "description": "Returns unique ID for IBAN, which will be used as a parameter called `accountId`.\n"
- },
- "response": [
- {
- "name": "Invalid request header/parameter (missing header/parameter or wrong header/parameter value).",
- "originalRequest": {
- "method": "POST",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"iban\": \"<string>\",\n \"currency\": \"<string>\"\n}"
- },
- "url": {
- "raw": "{{baseUrl}}/accounts/account-ids",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "account-ids"
- ]
- }
- },
- "status": "Bad Request",
- "code": 400,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- },
- {
- "name": "Successful operation",
- "originalRequest": {
- "method": "POST",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"iban\": \"<string>\",\n \"currency\": \"<string>\"\n}"
- },
- "url": {
- "raw": "{{baseUrl}}/accounts/account-ids",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "account-ids"
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "body": "{\n \"accountId\": \"<string>\"\n}"
- },
- {
- "name": "Invalid request body.",
- "originalRequest": {
- "method": "POST",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- },
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"iban\": \"<string>\",\n \"currency\": \"<string>\"\n}"
- },
- "url": {
- "raw": "{{baseUrl}}/accounts/account-ids",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "account-ids"
- ]
- }
- },
- "status": "Unprocessable Entity (WebDAV) (RFC 4918)",
- "code": 422,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- }
- ]
- },
- {
- "name": "Transaction history",
- "request": {
- "auth": {
- "type": "bearer",
- "bearer": [
- {
- "key": "token",
- "value": "{{accessToken}}",
- "type": "string"
- }
- ]
- },
- "method": "GET",
- "header": [
- {
- "key": "x-correlation-id",
- "value": "{{$guid}}",
- "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."
- },
- {
- "key": "x-api-key",
- "value": "Bearer {{apiKey}}",
- "type": "text"
- }
- ],
- "url": {
- "raw": "https://gw.kbcloud.cz/sandbox/adaa/v1/accounts/:accountId/transactions?fromDate=2019-05-01&toDate=2019-07-01&page=0&size=10",
- "protocol": "https",
- "host": [
- "gw",
- "kbcloud",
- "cz"
- ],
- "path": [
- "sandbox",
- "adaa",
- "v1",
- "accounts",
- ":accountId",
- "transactions"
- ],
- "query": [
- {
- "key": "fromDate",
- "value": "2019-05-01",
- "description": "Start date of returned transaction history (YYYY-MM-DD)."
- },
- {
- "key": "toDate",
- "value": "2019-07-01",
- "description": "End date of returned transaction history (YYYY-MM-DD)."
- },
- {
- "key": "page",
- "value": "0",
- "description": "Current transaction history page. Page starts with 0 (first page)."
- },
- {
- "key": "size",
- "value": "10",
- "description": "Number of transactions per page. Default value is 10 transactions per page."
- }
- ],
- "variable": [
- {
- "key": "accountId",
- "value": "{{accountId}}",
- "description": "IBAN represented as unique ID, which is returned from resource account-ids."
- }
- ]
- },
- "description": "Returns transaction history based on input parameters. Sorting is based on transaction date, from older to newer transactions."
- },
- "response": [
- {
- "name": "Client has no access to account or account is in blacklist.",
- "originalRequest": {
- "method": "GET",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- }
- ],
- "url": {
- "raw": "{{baseUrl}}/accounts/<string>/transactions?fromDate=<date>&toDate=<date>&page=<integer>&size=10",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "<string>",
- "transactions"
- ],
- "query": [
- {
- "key": "fromDate",
- "value": "<date>"
- },
- {
- "key": "toDate",
- "value": "<date>"
- },
- {
- "key": "page",
- "value": "<integer>"
- },
- {
- "key": "size",
- "value": "10"
- }
- ]
- }
- },
- "status": "Forbidden",
- "code": 403,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- },
- {
- "name": "Invalid request header/parameter (missing header/parameter or wrong header/parameter value).",
- "originalRequest": {
- "method": "GET",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- }
- ],
- "url": {
- "raw": "{{baseUrl}}/accounts/<string>/transactions?fromDate=<date>&toDate=<date>&page=<integer>&size=10",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "<string>",
- "transactions"
- ],
- "query": [
- {
- "key": "fromDate",
- "value": "<date>"
- },
- {
- "key": "toDate",
- "value": "<date>"
- },
- {
- "key": "page",
- "value": "<integer>"
- },
- {
- "key": "size",
- "value": "10"
- }
- ]
- }
- },
- "status": "Bad Request",
- "code": 400,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- },
- {
- "name": "OK.",
- "originalRequest": {
- "method": "GET",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- }
- ],
- "url": {
- "raw": "{{baseUrl}}/accounts/<string>/transactions?fromDate=<date>&toDate=<date>&page=<integer>&size=10",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "<string>",
- "transactions"
- ],
- "query": [
- {
- "key": "fromDate",
- "value": "<date>"
- },
- {
- "key": "toDate",
- "value": "<date>"
- },
- {
- "key": "page",
- "value": "<integer>"
- },
- {
- "key": "size",
- "value": "10"
- }
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- }
- ]
- },
- {
- "name": "Actual balance",
- "request": {
- "auth": {
- "type": "bearer",
- "bearer": [
- {
- "key": "token",
- "value": "{{accessToken}}",
- "type": "string"
- }
- ]
- },
- "method": "GET",
- "header": [
- {
- "key": "x-correlation-id",
- "value": "{{$guid}}",
- "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."
- },
- {
- "key": "x-api-key",
- "value": "Bearer {{apiKey}}",
- "type": "text"
- }
- ],
- "url": {
- "raw": "https://gw.kbcloud.cz/sandbox/adaa/v1/accounts/:accountIds/balances",
- "protocol": "https",
- "host": [
- "gw",
- "kbcloud",
- "cz"
- ],
- "path": [
- "sandbox",
- "adaa",
- "v1",
- "accounts",
- ":accountIds",
- "balances"
- ],
- "variable": [
- {
- "key": "accountIds",
- "value": "{{accountId}}",
- "description": "IBAN represented as unique ID, which is returned from resource account-ids."
- }
- ]
- },
- "description": "Returns the current account balance of the client’s account."
- },
- "response": [
- {
- "name": "Invalid request header/parameter (missing header/parameter or wrong header/parameter value).",
- "originalRequest": {
- "method": "GET",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- }
- ],
- "url": {
- "raw": "{{baseUrl}}/accounts/<string>/balances",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "<string>",
- "balances"
- ]
- }
- },
- "status": "Bad Request",
- "code": 400,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- },
- {
- "name": "Client has no access to account or account is in blacklist.",
- "originalRequest": {
- "method": "GET",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- }
- ],
- "url": {
- "raw": "{{baseUrl}}/accounts/<string>/balances",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "<string>",
- "balances"
- ]
- }
- },
- "status": "Forbidden",
- "code": 403,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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}"
- },
- {
- "name": "Successful operation",
- "originalRequest": {
- "method": "GET",
- "header": [
- {
- "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.",
- "key": "x-correlation-id",
- "value": "<string>"
- }
- ],
- "url": {
- "raw": "{{baseUrl}}/accounts/<string>/balances",
- "host": [
- "{{baseUrl}}"
- ],
- "path": [
- "accounts",
- "<string>",
- "balances"
- ]
- }
- },
- "status": "OK",
- "code": 200,
- "_postman_previewlanguage": "json",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "cookie": [],
- "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]"
- }
- ]
- }
- ]
- }
- ],
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- }
- ],
- "variable": [
- {
- "key": "baseUrl",
- "value": "https://gw.kbcloud.cz/sandbox"
- },
- {
- "key": "apiKey",
- "value": "5481c4da-1125-3c52-ae24-149cc6c3e3e5"
- },
- {
- "key": "accessToken",
- "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJLQklEPXRlc3QiLCJhdWRpdFRyYWNraW5nSWQiOiJkNzQxMmZlNS1mZTczLTQ5NDUtYjc5Yy0wYmFmMDEyNzEyNWQiLCJpc3MiOiJodHRwczovL2xvZ2luLmtiLmN6L29wZW5hbS9vYXV0aDIiLCJ0b2tlbk5hbWUiOiJhY2Nlc3NfdG9rZW4iLCJ0b2tlbl90eXBlIjoiQmVhcmVyIiwiYXV0aEdyYW50SWQiOiI2YWNjNzYxZS1hODZlLTRkYjUtODU4YS1kZTBmZmIzNDIzNDEiLCJhdWQiOiIxMjM1NDYiLCJuYmYiOjE2MzY2MjMyNTgsInNjb3BlIjpbImFkYWEiXSwicmVhbG0iOiIvIiwiZXhwIjoxNjM2NjI2ODU4LCJpYXQiOjE2MzY2MjMyNTgsImV4cGlyZXNfaW4iOjM2MDAwMDAsImp0aSI6IjE2NGNmZWE4LTQ2MGYtNDBjYS1hMTRjLWJlNTZjNmY1YjBjNiJ9.a2rWL7J904BU0mE3gzZm20xAmbe8ass3kh2xt3W-AKU"
- },
- {
- "key": "accountId",
- "value": "Q1oxMzAxMDAwOTAxMTQ3NzcxODAwMjI3OkNaSw"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment