{ "uuid": "6d3a1d1b-cc2a-4964-a923-c4d4a24bd9ce", "lastMigration": 19, "name": "PocketSmith", "endpointPrefix": "v2", "latency": 0, "port": 3000, "hostname": "0.0.0.0", "routes": [ { "uuid": "125306d8-c5a1-44c5-9322-6fc859485767", "documentation": "Delete account", "method": "delete", "endpoint": "accounts/:id", "responses": [ { "uuid": "0682f62f-63c8-4aef-96b2-c71eacf771cc", "body": "", "latency": 0, "statusCode": 204, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "38555eee-7803-45e0-a9aa-1b3eccc167a0", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "06fa5726-dca5-496f-b7d6-7582fbb937af", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "b920f71a-8c2c-46d7-ba9d-4d88aab9be41", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "31cdc90e-f1e0-4f77-a26f-a1e83f169054", "documentation": "Get account", "method": "get", "endpoint": "accounts/:id", "responses": [ { "uuid": "c67e65cf-658f-4d17-91f4-177e0e6acb07", "body": "{\n \"created_at\": \"2018-02-27\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 42,\n \"is_net_worth\": {{faker 'random.boolean'}},\n \"primary_scenario\": {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"primary_transaction_account\": {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n },\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"scenarios\": [\n {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n }\n ],\n \"title\": \"Bank of Foo\",\n \"transaction_accounts\": [\n {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n }\n ],\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2018-02-27\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "3e960ff2-ceaa-43b1-8335-f10fd8c86680", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "6acce348-6c4d-467a-8ca2-c23592525aa7", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "d7c2cec4-b794-4e7b-96b8-4bc4035ba906", "documentation": "Update account", "method": "put", "endpoint": "accounts/:id", "responses": [ { "uuid": "d674240d-c28a-4e24-9293-4a6960352f12", "body": "{\n \"created_at\": \"2018-02-27\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 42,\n \"is_net_worth\": {{faker 'random.boolean'}},\n \"primary_scenario\": {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"primary_transaction_account\": {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n },\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"scenarios\": [\n {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n }\n ],\n \"title\": \"Bank of Foo\",\n \"transaction_accounts\": [\n {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n }\n ],\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2018-02-27\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "287dbf28-7a4a-4fad-a6eb-95f050cc857a", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "01438439-e0d6-49b8-be4e-8752684054cb", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "5f6b6b46-8508-45b5-abbd-83fa4f5afc5c", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "7d7054f2-9ec0-475e-95af-4c44bca7c953", "documentation": "List transactions in account", "method": "get", "endpoint": "accounts/:id/transactions", "responses": [ { "uuid": "62e35e1d-16aa-43e9-b55b-ccabd8fe5acd", "body": "[\n \"\"\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "3e9693cd-6276-4bba-99a1-b89db16b9de8", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "e698c7e9-6929-4ccd-95cc-6c5a8c21f838", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "3001f2a7-990e-40de-9e4c-e06da2d720a7", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "d8fb867c-f0cf-482c-a39a-40deaf1a5d26", "documentation": "Delete attachment", "method": "delete", "endpoint": "attachments/:id", "responses": [ { "uuid": "dfcc78d1-435f-4d05-9aed-724189f1d3b7", "body": "", "latency": 0, "statusCode": 204, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "0c3b3591-bd7c-4007-a0d8-d156656de6fb", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "2b7be2ef-24a9-4955-88bf-127b7b9b80a3", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "2b722664-c3c5-4756-b9ae-0df61412ccf1", "documentation": "Get attachment", "method": "get", "endpoint": "attachments/:id", "responses": [ { "uuid": "58e9e9b9-f6b9-4d8b-bc7a-4b7c0905240a", "body": "{\n \"content_type\": \"image/png\",\n \"content_type_meta\": {\n \"description\": \"PNG image\",\n \"extension\": \"png\",\n \"title\": \"PNG\"\n },\n \"created_at\": \"2015-08-16T02:17:02Z\",\n \"file_name\": \"taxi.png\",\n \"id\": 1438154,\n \"original_url\": \"https://image.com/image.png\",\n \"title\": \"Invoice for taxi\",\n \"type\": \"image\",\n \"updated_at\": \"2015-08-16T02:17:02Z\",\n \"variants\": {\n \"large_url\": \"https://image.com/image.png\",\n \"thumb_url\": \"https://image.com/image.png\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "6018e71d-21e4-4465-a3d8-09f739de7f38", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "ff646fd7-8fbc-4e48-b3b0-a4ffa0598392", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "be738391-7a03-4d85-8430-fda35f1f2348", "documentation": "Update attachment", "method": "put", "endpoint": "attachments/:id", "responses": [ { "uuid": "6a639976-4472-4021-9781-26695702a115", "body": "{\n \"content_type\": \"image/png\",\n \"content_type_meta\": {\n \"description\": \"PNG image\",\n \"extension\": \"png\",\n \"title\": \"PNG\"\n },\n \"created_at\": \"2015-08-16T02:17:02Z\",\n \"file_name\": \"taxi.png\",\n \"id\": 1438154,\n \"original_url\": \"https://image.com/image.png\",\n \"title\": \"Invoice for taxi\",\n \"type\": \"image\",\n \"updated_at\": \"2015-08-16T02:17:02Z\",\n \"variants\": {\n \"large_url\": \"https://image.com/image.png\",\n \"thumb_url\": \"https://image.com/image.png\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "f862c692-0e09-4616-8cbd-ecb502162930", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "9310a880-522d-4720-9002-336306d97857", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "c0ed0b7c-4185-42ec-a91c-18c1ca3fbdf5", "documentation": "Delete category", "method": "delete", "endpoint": "categories/:id", "responses": [ { "uuid": "6411fb3e-0da2-4f7e-8ccf-d488f60e3736", "body": "", "latency": 0, "statusCode": 204, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "c74a4261-2007-41cd-9cc5-4f3a4516f70c", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "abd9e08d-68c6-4a49-be6b-82874df7de6a", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "37193135-9b86-4acb-8995-86e5350736f8", "documentation": "Get category", "method": "get", "endpoint": "categories/:id", "responses": [ { "uuid": "4936219f-20f9-46fd-8011-9600f9b44053", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "e4127a8a-82e7-474c-ad26-e5e936b2c31a", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "a27f5f13-5167-4f80-8370-a7bec18b16cb", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "316d5f1d-393e-49dc-8e33-132ad4e644d8", "documentation": "Update category", "method": "put", "endpoint": "categories/:id", "responses": [ { "uuid": "e2911104-4b79-4ee7-832b-079310c3ea30", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "68734179-302b-475a-8777-c50c10fbcbd7", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "00183613-5750-4944-bd05-a7a3410e4bbd", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "6ebd890b-f076-4863-979b-7d16fd35737f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "5b739173-01e1-4ea5-b741-545380487487", "documentation": "Create category rule in category", "method": "post", "endpoint": "categories/:id/category_rules", "responses": [ { "uuid": "963e9284-39ff-4e62-a195-ad94171b49c8", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "77096062-934a-45ce-8459-6cb0e47edd28", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "e3c73d9c-74b4-4a70-8653-2ff73aabfb38", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "9b9a42cc-6dec-4e6c-b601-ce1398c23fbe", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "b324cd7e-3ca4-45c6-af98-2a8fddc09581", "documentation": "Delete institution", "method": "delete", "endpoint": "institutions/:id", "responses": [ { "uuid": "67c3ecfe-9a57-4b3c-b806-0b310ae62b0f", "body": "", "latency": 0, "statusCode": 204, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "c04a7ca4-fd41-4097-ab34-6dedd4d29b97", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "bf1d228e-0b02-454d-8458-c517879bf285", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "6817dd66-011a-4069-abc3-9d9bba64da31", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "07c41f5e-57d4-464e-8092-6502cf65c67f", "documentation": "Get institution", "method": "get", "endpoint": "institutions/:id", "responses": [ { "uuid": "44547b4c-956b-4ee4-87fb-ba027bca7866", "body": "{\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "d2fb415c-cc19-43a1-9e91-ce79b0f87985", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "366fedbb-1f98-4c5e-a842-7f0c99f6ca4d", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "3d3a28f1-194f-4ca9-a98d-6117a2cae46e", "documentation": "Update institution", "method": "put", "endpoint": "institutions/:id", "responses": [ { "uuid": "396d9629-8f5a-408b-8ac6-10eaf17a96aa", "body": "{\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "90b4f4f5-0de3-4c2f-8b90-4030424f2ec9", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "c242187b-53fa-4384-8173-ff4211534855", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "a2b97685-9024-41ec-b62a-3f468c6e0a04", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "6d6100e1-d9b0-4112-a18a-f3962628fe02", "documentation": "List accounts in institution", "method": "get", "endpoint": "institutions/:id/accounts", "responses": [ { "uuid": "469dfcd6-5e9f-417d-a723-86626c8ea52f", "body": "[\n {\n \"created_at\": \"2018-02-27\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 42,\n \"is_net_worth\": {{faker 'random.boolean'}},\n \"primary_scenario\": {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"primary_transaction_account\": {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n },\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"scenarios\": [\n {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n }\n ],\n \"title\": \"Bank of Foo\",\n \"transaction_accounts\": [\n {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n }\n ],\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2018-02-27\"\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "f190c7a8-24f9-491a-81d5-e7e5f386e8f8", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "ce913678-1262-49f2-bdc6-6930cb235e58", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "dc1fbf95-d771-4cfc-a4ca-c251b45d00b0", "documentation": "Get the authorised user", "method": "get", "endpoint": "me", "responses": [ { "uuid": "55caaec2-43e9-43ec-8513-81f1150af4fd", "body": "{\n \"always_show_base_currency\": {{faker 'random.boolean'}},\n \"avatar_url\": \"https://image.com/image.png\",\n \"base_currency_code\": \"NZD\",\n \"beta_user\": true,\n \"created_at\": \"2015-07-02T22:14:49Z\",\n \"email\": \"user69@sample.com\",\n \"id\": 42,\n \"last_activity_at\": \"2015-07-02T22:14:49Z\",\n \"last_logged_in_at\": \"2015-07-02T22:14:49Z\",\n \"login\": \"sampleuser69\",\n \"name\": \"Foo Barrington\",\n \"time_zone\": \"Auckland\",\n \"updated_at\": \"2015-07-02T22:14:49Z\",\n \"using_multiple_currencies\": true,\n \"week_start_day\": 1\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "f08abb90-3116-4259-bdf3-483c1bfc452b", "documentation": "Get transaction account", "method": "get", "endpoint": "transaction_accounts/:id", "responses": [ { "uuid": "c023b98b-ed53-4cf0-a8f0-2cf039588521", "body": "{\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "163fadf5-918e-4b2d-b6f5-c025169f6547", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "ca100854-45b0-469a-a23f-28428e61d98e", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "a111aca6-c20e-40fa-8df3-10e6d9f9c58a", "documentation": "Update transaction account", "method": "put", "endpoint": "transaction_accounts/:id", "responses": [ { "uuid": "70dc84bc-4a03-4364-8df2-b6cf5904ad7c", "body": "{\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "80c18f49-f798-4dfb-aafe-d8ad2f4a803c", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "0d2b71c9-1244-4984-b5ca-b6feaffe0a27", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "00d09e94-4a77-4f65-b3e0-c83c8da7a78b", "documentation": "List transactions in transaction account", "method": "get", "endpoint": "transaction_accounts/:id/transactions", "responses": [ { "uuid": "f735737d-5233-47ac-9517-d3578b4953a1", "body": "[\n \"\"\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "8ba1c4a7-d549-4556-a809-0582ff7defa3", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "75a9fd69-d509-4df3-9c25-2c4078c24496", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "5ea60291-9caf-4c89-a663-91bd78307be6", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "239451b0-0256-4b7e-800f-2ef51ebbeb3e", "documentation": "Create a transaction in transaction account", "method": "post", "endpoint": "transaction_accounts/:id/transactions", "responses": [ { "uuid": "1a672fc4-0bde-48d2-8b2f-eeca92a30ba2", "body": "\"\"", "latency": 0, "statusCode": 201, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "f40b7ba2-5bcb-4a27-ae43-73cd8ce312ae", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "b2819e67-a421-4554-a4dc-86a881e0f54f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "5ff6ca1b-634c-4687-a119-ffb387634239", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "e0641a14-25d0-43c2-b8b6-ffcf65f903b5", "documentation": "Get a transaction", "method": "get", "endpoint": "transactions/:id", "responses": [ { "uuid": "efb909d9-11cd-46d8-a8a3-a403e28ee431", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "9b4508fd-ee9f-4143-bf99-50963fd06fd9", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "36621d45-2552-435a-8ec3-c5d4f8b05a0e", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "c53abc90-a680-44a0-b580-a6e616388682", "documentation": "Update a transaction", "method": "put", "endpoint": "transactions/:id", "responses": [ { "uuid": "b9313eca-9161-4421-aa42-39afcdc28839", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "756d26c6-5a70-44f6-bda8-262082066b4f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "3b66485e-749a-4d4f-8fbd-f784d1bdb82f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "8f393821-7cb2-4aaa-aeb6-b9263a9f3f90", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "eded78c4-51b9-47dc-9f65-2fe471131b49", "documentation": "List attachments in transaction", "method": "get", "endpoint": "transactions/:id/attachments", "responses": [ { "uuid": "d093ff94-6f3c-4347-8ab4-e90b93967ded", "body": "[\n {\n \"content_type\": \"image/png\",\n \"content_type_meta\": {\n \"description\": \"PNG image\",\n \"extension\": \"png\",\n \"title\": \"PNG\"\n },\n \"created_at\": \"2015-08-16T02:17:02Z\",\n \"file_name\": \"taxi.png\",\n \"id\": 1438154,\n \"original_url\": \"https://image.com/image.png\",\n \"title\": \"Invoice for taxi\",\n \"type\": \"image\",\n \"updated_at\": \"2015-08-16T02:17:02Z\",\n \"variants\": {\n \"large_url\": \"https://image.com/image.png\",\n \"thumb_url\": \"https://image.com/image.png\"\n }\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "787f5b17-9376-4dd5-a50e-6e48c7debe58", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "41c98700-fa76-447b-be72-82399dfd121f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "bc8e8323-6408-4d26-b38c-6822400c1cdd", "documentation": "Assigns attachment to transaction", "method": "post", "endpoint": "transactions/:id/attachments", "responses": [ { "uuid": "01aae9a6-d537-40ee-a792-2a6d385d262c", "body": "{\n \"content_type\": \"image/png\",\n \"content_type_meta\": {\n \"description\": \"PNG image\",\n \"extension\": \"png\",\n \"title\": \"PNG\"\n },\n \"created_at\": \"2015-08-16T02:17:02Z\",\n \"file_name\": \"taxi.png\",\n \"id\": 1438154,\n \"original_url\": \"https://image.com/image.png\",\n \"title\": \"Invoice for taxi\",\n \"type\": \"image\",\n \"updated_at\": \"2015-08-16T02:17:02Z\",\n \"variants\": {\n \"large_url\": \"https://image.com/image.png\",\n \"thumb_url\": \"https://image.com/image.png\"\n }\n}", "latency": 0, "statusCode": 201, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "e97f8b56-8f38-4a7c-92b9-0e73700659c3", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "83b30c50-a431-42a6-915e-b6cdce5ce637", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "bc52e481-8755-4ce0-b080-aac148244b5f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "5faac2c0-19ba-466a-b7b4-e6464d9d03d7", "documentation": "Unassigns attachment in transaction", "method": "delete", "endpoint": "transactions/:transaction_id/attachments/:attachment_id", "responses": [ { "uuid": "f859bea6-d1b6-495d-8b53-da5ff30081ff", "body": "", "latency": 0, "statusCode": 204, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "11772435-d199-460d-8516-5d36ae702613", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "fd2998ed-4010-46a6-8be0-5da0f763be7d", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "8e841eab-e777-4894-bba5-738b75c57863", "documentation": "Get user", "method": "get", "endpoint": "users/:id", "responses": [ { "uuid": "87bed813-fca0-450e-bb90-f0f14df4910c", "body": "{\n \"always_show_base_currency\": {{faker 'random.boolean'}},\n \"avatar_url\": \"https://image.com/image.png\",\n \"base_currency_code\": \"NZD\",\n \"beta_user\": true,\n \"created_at\": \"2015-07-02T22:14:49Z\",\n \"email\": \"user69@sample.com\",\n \"id\": 42,\n \"last_activity_at\": \"2015-07-02T22:14:49Z\",\n \"last_logged_in_at\": \"2015-07-02T22:14:49Z\",\n \"login\": \"sampleuser69\",\n \"name\": \"Foo Barrington\",\n \"time_zone\": \"Auckland\",\n \"updated_at\": \"2015-07-02T22:14:49Z\",\n \"using_multiple_currencies\": true,\n \"week_start_day\": 1\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "a0d97c45-8d1d-4580-bf6f-52183fb9f751", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "d9f396e2-62ad-40fd-b0a3-f2fa6d7c9852", "documentation": "Update user", "method": "put", "endpoint": "users/:id", "responses": [ { "uuid": "fdb3573c-89a1-481a-a040-bf34a815b60b", "body": "{\n \"always_show_base_currency\": {{faker 'random.boolean'}},\n \"avatar_url\": \"https://image.com/image.png\",\n \"base_currency_code\": \"NZD\",\n \"beta_user\": true,\n \"created_at\": \"2015-07-02T22:14:49Z\",\n \"email\": \"user69@sample.com\",\n \"id\": 42,\n \"last_activity_at\": \"2015-07-02T22:14:49Z\",\n \"last_logged_in_at\": \"2015-07-02T22:14:49Z\",\n \"login\": \"sampleuser69\",\n \"name\": \"Foo Barrington\",\n \"time_zone\": \"Auckland\",\n \"updated_at\": \"2015-07-02T22:14:49Z\",\n \"using_multiple_currencies\": true,\n \"week_start_day\": 1\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "e0966050-16c4-44c9-bdbe-36087d95746d", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "8bbdf905-640c-4cd2-a317-3c22da0e4e36", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "c693c808-b18e-4b31-87ca-b7a6757fdca5", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "2e821880-01b3-41c3-9b00-b1601ce71a97", "documentation": "List accounts in user", "method": "get", "endpoint": "users/:id/accounts", "responses": [ { "uuid": "8fa4ab47-e225-420a-820d-5bfb291d32c7", "body": "[\n {\n \"created_at\": \"2018-02-27\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 42,\n \"is_net_worth\": {{faker 'random.boolean'}},\n \"primary_scenario\": {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"primary_transaction_account\": {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n },\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"scenarios\": [\n {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n }\n ],\n \"title\": \"Bank of Foo\",\n \"transaction_accounts\": [\n {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n }\n ],\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2018-02-27\"\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "22a0f0fb-d622-447d-abb8-7c6cc1199616", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "5fbadaad-63cc-4d8f-b511-7ffc705c8f67", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "ee261ce1-6a2c-4d88-8faf-c88695abc51d", "documentation": "Create an account in user", "method": "post", "endpoint": "users/:id/accounts", "responses": [ { "uuid": "e64b2a4d-6451-4b54-b222-c3194657e203", "body": "{\n \"created_at\": \"2018-02-27\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 42,\n \"is_net_worth\": {{faker 'random.boolean'}},\n \"primary_scenario\": {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"primary_transaction_account\": {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n },\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"scenarios\": [\n {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n }\n ],\n \"title\": \"Bank of Foo\",\n \"transaction_accounts\": [\n {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n }\n ],\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2018-02-27\"\n}", "latency": 0, "statusCode": 201, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "2f2d1d23-fc12-4f32-a4ea-8bbed281336a", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "ec4cb907-ef1d-4622-8b61-ecb1186e52f6", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "10627d31-2a35-4de6-b5a6-5bd5b1aa9857", "documentation": "Update the display order of accounts in user", "method": "put", "endpoint": "users/:id/accounts", "responses": [ { "uuid": "e711faa4-b51e-4d5f-b9f6-22f5f3c3bb0f", "body": "[\n {\n \"created_at\": \"2018-02-27\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 42,\n \"is_net_worth\": {{faker 'random.boolean'}},\n \"primary_scenario\": {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"primary_transaction_account\": {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n },\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"scenarios\": [\n {\n \"achieve_date\": \"\",\n \"closing_balance\": 5431.2,\n \"closing_balance_date\": \"2018-02-27\",\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"current_balance\": 5431.2,\n \"current_balance_date\": \"2018-02-27\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 8146.8,\n \"description\": \"\",\n \"id\": 42,\n \"interest_rate\": 2.4,\n \"interest_rate_repeat_id\": 4,\n \"maximum-value\": 42,\n \"minimum-value\": 4000,\n \"safe_balance\": 5431.2,\n \"safe_balance_in_base_currency\": 8146.8,\n \"starting_balance\": 2450,\n \"starting_balance_date\": \"2018-02-27\",\n \"title\": \"Wedding\",\n \"type\": \"{{oneOf (array 'no-interest' 'savings' 'debt')}}\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n }\n ],\n \"title\": \"Bank of Foo\",\n \"transaction_accounts\": [\n {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n }\n ],\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2018-02-27\"\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "0124250f-25d0-4e31-a136-cd9679b69913", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "331ddde5-edb4-4693-89d8-83a96461df5e", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "ba4d97df-14be-432c-bb64-88242d9ce58e", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "63984c08-3c74-4e3c-b094-b0c2649ee8f6", "documentation": "Lists attachments in user", "method": "get", "endpoint": "users/:id/attachments", "responses": [ { "uuid": "62a6b73d-9fbd-4b0c-9b78-85d22b6a0600", "body": "[\n {\n \"content_type\": \"image/png\",\n \"content_type_meta\": {\n \"description\": \"PNG image\",\n \"extension\": \"png\",\n \"title\": \"PNG\"\n },\n \"created_at\": \"2015-08-16T02:17:02Z\",\n \"file_name\": \"taxi.png\",\n \"id\": 1438154,\n \"original_url\": \"https://image.com/image.png\",\n \"title\": \"Invoice for taxi\",\n \"type\": \"image\",\n \"updated_at\": \"2015-08-16T02:17:02Z\",\n \"variants\": {\n \"large_url\": \"https://image.com/image.png\",\n \"thumb_url\": \"https://image.com/image.png\"\n }\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "4d0ee6ae-1aa9-41fe-bd21-8f229a4e4662", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "22821027-873e-4f04-987f-32227e5c59d9", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "b8553fa0-45e3-4dc6-a975-955157be3cd3", "documentation": "Create attachment in user", "method": "post", "endpoint": "users/:id/attachments", "responses": [ { "uuid": "16f30dd0-c5ef-4700-9a92-b7438a286cb9", "body": "{\n \"content_type\": \"image/png\",\n \"content_type_meta\": {\n \"description\": \"PNG image\",\n \"extension\": \"png\",\n \"title\": \"PNG\"\n },\n \"created_at\": \"2015-08-16T02:17:02Z\",\n \"file_name\": \"taxi.png\",\n \"id\": 1438154,\n \"original_url\": \"https://image.com/image.png\",\n \"title\": \"Invoice for taxi\",\n \"type\": \"image\",\n \"updated_at\": \"2015-08-16T02:17:02Z\",\n \"variants\": {\n \"large_url\": \"https://image.com/image.png\",\n \"thumb_url\": \"https://image.com/image.png\"\n }\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "1500a2b2-fd23-4d52-b36f-d381eed36fda", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "be031919-245a-461e-822a-7493b1fb814c", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "e43a0804-6e61-43e8-b1c1-ac7a1c3d5a1d", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "52e19f58-73af-47eb-a212-92dc45e41670", "documentation": "List budget for user", "method": "get", "endpoint": "users/:id/budget", "responses": [ { "uuid": "a6f12b2e-fe21-4d01-b1ee-db5ba9915772", "body": "[\n \"\"\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "73f50f73-3078-4746-af34-5074b0d03b5f", "documentation": "Get budget summary for user", "method": "get", "endpoint": "users/:id/budget_summary", "responses": [ { "uuid": "0cc7925b-d782-4e37-879b-3c77bfc69d9f", "body": "[\n \"\"\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "19b6b104-1d50-4c74-a062-3eb31937086d", "documentation": "List categories in user", "method": "get", "endpoint": "users/:id/categories", "responses": [ { "uuid": "699fa488-a1a1-4346-b139-419ca709431b", "body": "[\n \"\"\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "19b4ad8a-2b95-4737-a506-cd1326613d8a", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "a511cf07-cd17-4b6c-8679-deb106fbea26", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "578ea952-5e8c-451b-9198-d0f7efe7ecfd", "documentation": "Create category in user", "method": "post", "endpoint": "users/:id/categories", "responses": [ { "uuid": "bb7a2b10-ad14-4c86-a0d9-dc9627cf2089", "body": "\"\"", "latency": 0, "statusCode": 201, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "4a38c160-e07b-49cd-bbe1-fefba91086c1", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "8ff6654a-7d0f-455d-90b7-60d67f73256f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "ef08bf99-fb79-4414-9095-cc4a7c27e071", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "9a3553a2-5e6a-476b-97e9-d32ee8ce43d1", "documentation": "List category rules in user", "method": "get", "endpoint": "users/:id/category_rules", "responses": [ { "uuid": "62c9ccd1-1025-41ab-81e2-bdd8a08976e5", "body": "[\n \"\"\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "d953dae3-0c94-4d2a-8ca1-d03bc2219a39", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "b3b66731-1193-4003-9bdf-53bf8ce2debb", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "7f1b02ea-dfde-4e17-96e9-020e9f0defac", "documentation": "List institutions in user", "method": "get", "endpoint": "users/:id/institutions", "responses": [ { "uuid": "b2f8bac9-a713-4352-b691-968817a4dd50", "body": "[\n {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "41b6cbec-2a99-4de2-a025-e69873b86b56", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "2d1d9246-3755-40c1-834a-59ec6ded529c", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "e968c7a3-0079-4a1b-a8e0-4ebf33ba9bea", "documentation": "Create institution in user", "method": "post", "endpoint": "users/:id/institutions", "responses": [ { "uuid": "968dc57a-c416-4f89-9631-e32ff859147d", "body": "{\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n}", "latency": 0, "statusCode": 201, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "bcd7e1fa-f182-4447-80ca-5c8d4b27c6a6", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "426cf721-032a-4218-9236-0b4193054baa", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "c06f5096-a98a-4845-90da-47a3f4d0be2f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 422, "label": "Validation Error", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "b487ef3a-0bad-4e02-bbc6-6504782e6246", "documentation": "List transaction accounts in user", "method": "get", "endpoint": "users/:id/transaction_accounts", "responses": [ { "uuid": "c4bb505e-7acb-4cfd-b56d-0db95cf23ba3", "body": "[\n {\n \"created_at\": \"2015-03-17T02:42:10Z\",\n \"currency_code\": \"NZD\",\n \"current_balance\": 2694.39,\n \"current_balance_date\": \"2015-07-03\",\n \"current_balance_exchange_rate\": 1.5,\n \"current_balance_in_base_currency\": 4041.59,\n \"id\": 96027,\n \"institution\": {\n \"created_at\": \"2015-04-21T22:42:22Z\",\n \"currency_code\": \"NZD\",\n \"id\": 57,\n \"title\": \"Bank of Foo\",\n \"updated_at\": \"2015-04-21T22:42:22Z\"\n },\n \"name\": \"Sample Credit\",\n \"number\": \"ASBCRD44554\",\n \"safe_balance\": 2694.39,\n \"safe_balance_in_base_currency\": 4041.59,\n \"starting_balance\": 3547.45,\n \"starting_balance_date\": \"2015-03-15\",\n \"type\": \"{{oneOf (array 'bank' 'credits' 'cash' 'stocks' 'mortgage' 'loans' 'vehicle' 'property' 'insurance' 'other_liability')}}\",\n \"updated_at\": \"2015-07-02T22:14:49Z\"\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "6ebfef41-9378-4b06-bb84-1fc2eed08ebd", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "6d3476d8-aaf5-42ec-8f52-1770f5b079a7", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "7d2d2f26-b190-4392-bdf4-65de43557d3b", "documentation": "List transactions in user", "method": "get", "endpoint": "users/:id/transactions", "responses": [ { "uuid": "9eb55ce2-e5f4-4c17-9c1c-305b920de2c8", "body": "[\n \"\"\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "d595182b-8220-4980-ab9f-2bf945b4e6c5", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "c526d6df-bccb-4728-a70b-ca8b9067c304", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 403, "label": "Not Allowed", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "7722d614-6a4a-4e94-8ce3-1752bec1901f", "body": "{\n \"error\": \"A message describing the error that occurred.\"\n}", "latency": 0, "statusCode": 404, "label": "Not Found", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "b7202586-d63a-4f8b-9e2e-861e10562ba6", "documentation": "Get trend analysis for user", "method": "get", "endpoint": "users/:id/trend_analysis", "responses": [ { "uuid": "9f575ba0-e4a9-4ff7-b51b-710beb1d9018", "body": "[\n \"\"\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [ { "key": "", "value": "" } ], "proxyResHeaders": [ { "key": "", "value": "" } ] }