{ "uuid": "6a17be4b-2d28-4430-9eab-4cef5b03d96f", "lastMigration": 29, "name": "Accounts API", "endpointPrefix": "v2/accounts", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "e4d4df40-d5b5-49f7-a822-91ba99bb045d", "documentation": "Retrieves details of a customers account", "method": "get", "endpoint": "account", "responses": [ { "uuid": "c5e5d47b-6f2c-4855-9301-22da48ebc486", "body": "{\n \"accountId\": \"\",\n \"accountNum\": \"\",\n \"additionalSystemStatuses\": \"\",\n \"birthPlace\": \"\",\n \"city\": \"\",\n \"contactable\": {{faker 'datatype.boolean'}},\n \"country\": \"\",\n \"countryCode\": \"\",\n \"county\": \"\",\n \"currencyCode\": \"\",\n \"customerId\": \"\",\n \"email\": \"\",\n \"fax\": \"\",\n \"firstName\": \"\",\n \"flags\": [\n {\n \"flagName\": \"\",\n \"flagReason\": \"\",\n \"flagValue\": \"\"\n }\n ],\n \"ipAddress\": \"\",\n \"language\": \"\",\n \"lastLogin\": \"\",\n \"lastName\": \"\",\n \"mobile\": \"\",\n \"nif\": \"\",\n \"office\": \"\",\n \"partnerContactable\": {{faker 'datatype.boolean'}},\n \"postcode\": \"\",\n \"secondLastName\": \"\",\n \"status\": \"\",\n \"street1\": \"\",\n \"street2\": \"\",\n \"street3\": \"\",\n \"terms and conditions\": \"\",\n \"timeZone\": \"\",\n \"title\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "df6b2b46-40c4-4552-a75e-1ae9755d10d9", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 401, "label": "Not Authorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "0521c1c2-7189-44df-89ab-f3955296c850", "documentation": "Get a customers account balance", "method": "get", "endpoint": "account/balance", "responses": [ { "uuid": "c4639724-01a4-4c66-8832-a9f98726a152", "body": "{\n \"availableFunds\": {{faker 'number.int' max=99999}},\n \"balance\": {{faker 'number.int' max=99999}},\n \"currencyCode\": \"\",\n \"withdrawableFunds\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "61dcd3d6-4d18-480b-bef6-2d19f9b1c598", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 401, "label": "Not Authorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d7ade081-5e66-4530-9bf4-af7835cb5b37", "documentation": "Sets a flag based on name to value provided for the user.", "method": "post", "endpoint": "account/flags", "responses": [ { "uuid": "e8903c86-6615-4b79-a814-0c59a89084c3", "body": "{\n \"token\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "609b630d-2d0a-427b-9f7b-34e3d80ea5aa", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "No such customer", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "92cb7ced-641f-4228-ab91-d6bc68544711", "documentation": "Gets a customer's account payments", "method": "get", "endpoint": "account/payments", "responses": [ { "uuid": "635a7928-4334-4cf0-84d7-054015a8e46f", "body": "{\n \"payments\": [\n {\n \"action\": \"\",\n \"amount\": {{faker 'number.int' max=99999}},\n \"channel\": \"\",\n \"commision\": {{faker 'number.int' max=99999}},\n \"id\": \"\",\n \"ipAddress\": \"\",\n \"methodId\": \"\",\n \"paymentDateTime\": \"\",\n \"status\": \"\",\n \"type\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success - Payments obtained", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f3312e0b-8eb3-42c0-af31-ae918f8d491f", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 400, "label": "Errors", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8ead7f00-d61e-4ac3-a376-7a40a10901f2", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "No such customer", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "fca2b37d-89fa-4fb1-99ba-b4c519ba4f43", "documentation": "Gets a customer's plus card details if they exist.", "method": "get", "endpoint": "account/plusCard", "responses": [ { "uuid": "8c28ccf5-a99a-4014-b18f-5207606cd048", "body": "{\n \"card\": {\n \"blocked\": {{faker 'datatype.boolean'}},\n \"cardNumber\": \"\"\n },\n \"onlineAccount\": {\n \"name\": \"\",\n \"onlineAccountNumber\": \"\"\n },\n \"phone\": {\n \"phoneNumber\": \"\"\n },\n \"pin\": {\n \"attemptsRemaining\": {{faker 'number.int' max=99999}},\n \"blocked\": {{faker 'datatype.boolean'}}\n },\n \"retailAccount\": {\n \"selfExcluded\": {{faker 'datatype.boolean'}}\n }\n}", "latency": 0, "statusCode": 200, "label": "Success - Plus Card Details", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1d2269c9-9fc2-49c6-b656-7da501103948", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "75ac954d-b0e5-460b-b38f-6c2987d459ae", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "ff85afe0-058d-45fa-8e2f-09ae3f4c3d5b", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "No such plus card customer", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "2c2eb442-069e-49c7-813d-478785824a1e", "documentation": "Sets a customer's plus card as Lost/Stolen", "method": "post", "endpoint": "account/plusCard/lostStolen", "responses": [ { "uuid": "aad26be7-c2f2-43d7-ba00-90382159a676", "body": "", "latency": 0, "statusCode": 204, "label": "Success - Card Reported Lost / Stolen", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "c2df813d-bbdb-4ead-9cc0-fb38243a1788", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 401, "label": "Errors", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "04cbf8bc-731c-4611-88d5-55381071919b", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "No such plus card customer", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "10335927-9a20-4312-a5a7-4238dd3a7ecd", "documentation": "Sets a customer's plus card phone number", "method": "post", "endpoint": "account/plusCard/phone/:oldPhoneNumber", "responses": [ { "uuid": "8a92675a-7b7f-439d-8670-42cd4f76946c", "body": "", "latency": 0, "statusCode": 201, "label": "Success - New Phone number Created", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "462283ee-792b-41cc-b6ce-c66e477b59bc", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 401, "label": "Unauthorized", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "cf2b5750-a2ad-4d7f-96a4-fa3855a009fe", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 403, "label": "Forbidden", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "f8ad97ae-f0e8-4afe-8fb9-d472903ec78b", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "No such plus card customer", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "b51e2dfc-bebd-4d29-bed3-5317c2029104", "documentation": "Sets a customer's plus card pin", "method": "post", "endpoint": "account/plusCard/pin", "responses": [ { "uuid": "075eb99a-3c63-4583-9211-33c12abe921b", "body": "", "latency": 0, "statusCode": 201, "label": "Success - PIN Created", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "ac2d4ad0-942f-4c4f-946f-08d49e1ec584", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 400, "label": "Errors", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "043dbf85-41ba-434b-a7ef-9fb3d617ef98", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "No such plus card customer", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "bfa8f9a5-729f-4e82-8138-13739ee65599", "documentation": "Updates a customer's plus card pin", "method": "put", "endpoint": "account/plusCard/pin", "responses": [ { "uuid": "9b055386-a9c8-4d82-a697-d6769a3cf196", "body": "", "latency": 0, "statusCode": 204, "label": "Success - PIN Updated", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "b1264596-325b-47a7-8b6d-47e38e9aa64f", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 400, "label": "Errors", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "8ee03479-3c53-48f1-bf52-ecb08b6791aa", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "No such plus card customer", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "e4d4df40-d5b5-49f7-a822-91ba99bb045d" }, { "type": "route", "uuid": "0521c1c2-7189-44df-89ab-f3955296c850" }, { "type": "route", "uuid": "d7ade081-5e66-4530-9bf4-af7835cb5b37" }, { "type": "route", "uuid": "92cb7ced-641f-4228-ab91-d6bc68544711" }, { "type": "route", "uuid": "fca2b37d-89fa-4fb1-99ba-b4c519ba4f43" }, { "type": "route", "uuid": "2c2eb442-069e-49c7-813d-478785824a1e" }, { "type": "route", "uuid": "10335927-9a20-4312-a5a7-4238dd3a7ecd" }, { "type": "route", "uuid": "b51e2dfc-bebd-4d29-bed3-5317c2029104" }, { "type": "route", "uuid": "bfa8f9a5-729f-4e82-8138-13739ee65599" } ] }