{ "info": { "_postman_id": "a5a94ebe-5ddd-404b-a9d1-adddee8dc4ff", "name": "sanctum_client", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "User Flows", "item": [ { "name": "Create", "item": [ { "name": "Offline Generic Vault", "item": [ { "name": "Expiry", "item": [ { "name": "Create expiry generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "d38971e5-dc49-4acd-98d4-4c5b273d10b2", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "var today = new Date();", "var tomorrow = new Date();", "tomorrow.setDate(today.getDate() + 1);", "", "postman.setEnvironmentVariable('expiry-date', tomorrow.toISOString());", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "2bcaa915-4d78-4b45-9389-acd5e3373691", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered vault\");", "});", "", "postman.setEnvironmentVariable(\"expiry-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"expiry-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"expiry-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Create expiry generic offline - Postman\",\n \"username\": \"postman\",\n \"vault\": {\n \"content\": \"Expiry generic offline vault from postman\",\n \"expiryDate\": \"{{expiry-date}}\",\n \"name\": \"EGO-postman-{{timestamp}}\",\n \"type\": \"EXPIRY\",\n \"metadata\":{\n \t\"key\":\"value\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Limited", "item": [ { "name": "Create limited generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "56790bbe-f6a8-4445-973f-a42e7782159c", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered vault\");", "});", "", "postman.setEnvironmentVariable(\"limited-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"limited-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"limited-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Create limited generic offline - Postman\",\n \"username\": \"postman\",\n \"vault\": {\n \"content\": \"Limited generic offline vault from postman\",\n \"maxUsage\": 5,\n \"name\": \"LGO-postman-{{timestamp}}\",\n \"type\": \"LIMITED\",\n \"metadata\":{\n \t\"key\":\"value\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Perpetual", "item": [ { "name": "Create perpetual generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "513429c2-a4e9-4ab8-b381-c4d981b5d64e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered vault\");", "});", "", "postman.setEnvironmentVariable(\"perpetual-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"perpetual-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"perpetual-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Create perpetual generic offline - Postman\",\n \"username\": \"postman\",\n \"vault\": {\n \"content\": \"Vivamus porttitor porttitor est et cursus. Curabitur ipsum justo, convallis ut maximus eget, finibus auctor tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In id vehicula libero. Donec sagittis tortor mauris, a tempor leo volutpat vel. Ut ornare aliquam purus sit amet iaculis. Morbi a sagittis elit. Aenean non diam condimentum nibh vestibulum commodo id quis velit. Duis orci ante, sollicitudin eget venenatis ac, rhoncus eu metus. Aenean in commodo lectus. Nam vehicula vel dui eu mattis. Etiam volutpat tempor urna, vel rhoncus justo vehicula in. Duis commodo pellentesque dui ac sagittis. Aenean felis enim, tristique vitae ornare eget, lacinia et turpis. Duis lobortis erat eu risus posuere finibus. Pellentesque suscipit sit amet erat a pellentesque.\",\n \"name\": \"PGO-postman-{{timestamp}}\",\n \"type\": \"PERPETUAL\",\n \"metadata\": {\n \t\"key\":\"value\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Offline Credit Card Vault", "item": [ { "name": "Perpetual", "item": [ { "name": "Create offline credit card vault", "event": [ { "listen": "test", "script": { "id": "4e7c3464-d8e2-4f13-adac-93afc97a0d2c", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered credit card vault\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-encrypted-data\", data.vault.credentials.encryptedData); ", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-payload\", data.vault.credentials.payload); " ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "870d5a14-81ab-4a51-ab46-6901b7f786ff", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "var today = new Date();", "var tomorrow = new Date();", "tomorrow.setDate(today.getDate() + 1);", "", "postman.setEnvironmentVariable('expiry-date', tomorrow.toISOString());", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"user\",\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"123ABC\",\n \"vault\": {\n \"name\": \"offlineCCVault\",\n \"creditCard\": {\n \"number\": \"123456899\",\n \"expiryYear\": 2019,\n \"expiryMonth\": 1,\n \"name\": \"name\"\n },\n \"metadata\":{\n \"key\":\"value\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Expiry", "item": [ { "name": "Create offline credit card vault", "event": [ { "listen": "test", "script": { "id": "51d41775-4486-48f7-a738-d7a14f0a52c2", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered credit card vault\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-encrypted-data\", data.vault.credentials.encryptedData); ", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-payload\", data.vault.credentials.payload); " ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "870d5a14-81ab-4a51-ab46-6901b7f786ff", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "var today = new Date();", "var tomorrow = new Date();", "tomorrow.setDate(today.getDate() + 1);", "", "postman.setEnvironmentVariable('expiry-date', tomorrow.toISOString());", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"user\",\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"123ABC\",\n \"vault\": {\n \t\"expiryDate\": \"{{expiry-date}}\",\n \"name\": \"offlineCCVault\",\n \"creditCard\": {\n \"number\": \"123456899\",\n \"expiryYear\": 2019,\n \"expiryMonth\": 1,\n \"name\": \"name\"\n },\n \t\"metadata\":{\n \t\"key\":\"value\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Limited", "item": [ { "name": "Create offline credit card vault", "event": [ { "listen": "test", "script": { "id": "b433257d-1aa5-4a9a-a51f-228253b9b422", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered credit card vault\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-limited-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"offline-credit-card-limited-encrypted-data\", data.vault.credentials.encryptedData); ", "postman.setEnvironmentVariable(\"offline-credit-card-limited-payload\", data.vault.credentials.payload); " ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "870d5a14-81ab-4a51-ab46-6901b7f786ff", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "var today = new Date();", "var tomorrow = new Date();", "tomorrow.setDate(today.getDate() + 1);", "", "postman.setEnvironmentVariable('expiry-date', tomorrow.toISOString());", "", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"user\",\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"123ABC\",\n \"vault\": {\n \"name\": \"offlineCCVault\",\n \"maxUsage\": 3,\n \"creditCard\": {\n \"number\": \"123456899\",\n \"expiryYear\": 2019,\n \"expiryMonth\": 1,\n \"name\": \"name\"\n },\n \"metadata\": {\n \t\"key\":\"value\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Online Generic Vault", "item": [ { "name": "pin", "item": [ { "name": "Create generic online pin vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "e745aeb3-b8bf-46ce-8abe-579023a9848a", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered vault\");", "});", "", "postman.setEnvironmentVariable(\"online-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"online-generic-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"online-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"user\",\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"123ABC\",\n \"vault\": {\n \"name\": \"onlineVault\",\n\t\"content\": \"Some content of an online generic vault\",\n \"hashedPin\": \"{{hashedPin}}\",\n \"metadata\":{\n \t\"key\":\"value\"\n }\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "nopin", "item": [ { "name": "Create generic online non-pin vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "d1c258dc-0435-49c6-baba-00c0d438cb5b", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered vault\");", "});", "", "postman.setEnvironmentVariable(\"online-generic-nopin-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"online-generic-nopin-encrypted-data\", data.vault.credentials.encryptedData);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"user\",\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"123ABC\",\n \"vault\": {\n \"name\": \"online-generc-no-pin-Vault\",\n\t\"content\": \"Some content of an online generic vault\",\n\t\"metadata\": {\n\t\t\"key\":\"value\"\n\t}\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Online Credit Card Vault", "item": [ { "name": "pin", "item": [ { "name": "Create online pin credit card", "event": [ { "listen": "test", "script": { "id": "eef75a14-616f-4043-8d6b-95c368b1448f", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered credit card vault\");", "});", "", "postman.setEnvironmentVariable(\"online-credit-card-pin-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"online-credit-card-pin-encrypted-data\", data.vault.credentials.encryptedData); ", "postman.setEnvironmentVariable(\"online-credit-card-pin-payload\", data.vault.credentials.payload); " ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"user\",\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"123ABC\",\n \"vault\": {\n \"name\": \"onlineVault\",\n \"creditCard\": {\n \"number\": \"123456899\",\n \"expiryYear\": 2019,\n \"expiryMonth\": 1,\n \"name\": \"name\"\n },\n \"metadata\":{\n \t\"key\":\"value\"\n },\n \"hashedPin\": \"{{hashedPin}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "nopin", "item": [ { "name": "Create no-pin credit card", "event": [ { "listen": "test", "script": { "id": "bbbc72bd-fef3-4e5c-93bb-a32eef6836fa", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully registered credit card vault\");", "});", "", "postman.setEnvironmentVariable(\"online-credit-card-nopin-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"online-credit-card-nopin-encrypted-data\", data.vault.credentials.encryptedData); ", "postman.setEnvironmentVariable(\"online-credit-card-nopin-payload\", data.vault.credentials.payload); " ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"user\",\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"123ABC\",\n \"vault\": {\n \"name\": \"onlineVault\",\n \"creditCard\": {\n \"number\": \"123456899\",\n \"expiryYear\": 2019,\n \"expiryMonth\": 1,\n \"name\": \"name\"\n },\n \t\"metadata\":{\n \t\"key\":\"value\"\n }\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Read and update", "item": [ { "name": "Offline Generic Vault", "item": [ { "name": "Perpetual", "item": [ { "name": "Get perpetual generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "55136e98-d7bb-48aa-ae33-ae473dc6fd68", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"perpetual-generic-token\", data.transactionToken.token);", "", "postman.setEnvironmentVariable(\"perpetual-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"perpetual-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"perpetual-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync perpetual generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"payload\": \"{{perpetual-generic-payload}}\",\n \"encryptedData\": \"{{perpetual-generic-publicKey}}\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{perpetual-generic-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{perpetual-generic-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Confirm get perpetual generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "09732ef0-d975-4465-bc57-aab468bde45f", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{perpetual-generic-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{perpetual-generic-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{perpetual-generic-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "Update perpetual generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "2fce22d4-1fa9-4684-8a8a-295f510b0766", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully started update\");", "});", "", "postman.setEnvironmentVariable(\"perpetual-generic-token\", data.transactionToken.token);", "", "postman.setEnvironmentVariable(\"perpetual-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"perpetual-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"perpetual-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync perpetual generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{perpetual-generic-publicKey}}\",\n \"payload\": \"{{perpetual-generic-payload}}\"\n }\n },\n \"newVault\": {\n \t\"content\": \"some updated vault content\"\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{perpetual-generic-vaultId}}/update-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{perpetual-generic-vaultId}}", "update-start" ] } }, "response": [] }, { "name": "Confirm update perpetual generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "5198fb72-ee86-49de-97c0-9b7a0c9c3564", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed update\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{perpetual-generic-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{perpetual-generic-vaultId}}/update-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{perpetual-generic-vaultId}}", "update-end" ] } }, "response": [] }, { "name": "Get perpetual generic offline vault information", "event": [ { "listen": "test", "script": { "id": "58e26a37-4441-403a-aab9-4ea6ea1a3db0", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{perpetual-generic-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{perpetual-generic-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Limited", "item": [ { "name": "Get limited generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "573f206b-744a-4a06-9c84-918523c1cc20", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"limited-generic-token\", data.transactionToken.token);", "", "postman.setEnvironmentVariable(\"limited-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"limited-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"limited-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync limited generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"payload\": \"{{limited-generic-payload}}\",\n \"encryptedData\": \"{{limited-generic-publicKey}}\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{limited-generic-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{limited-generic-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Confirm get limited generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "b9591067-a25b-4c99-afe5-198010711f74", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{limited-generic-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{limited-generic-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{limited-generic-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "Update limited generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "74c0c983-9481-4684-886a-938ae8bf7a0e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully started update\");", "});", "", "postman.setEnvironmentVariable(\"limited-generic-token\", data.transactionToken.token);", "", "postman.setEnvironmentVariable(\"limited-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"limited-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"limited-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync limited generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"payload\": \"{{limited-generic-payload}}\",\n \"encryptedData\": \"{{limited-generic-publicKey}}\"\n }\n },\n \"newVault\": {\n \t\"content\": \"some updated vault content\"\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{limited-generic-vaultId}}/update-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{limited-generic-vaultId}}", "update-start" ] } }, "response": [] }, { "name": "Confirm update limited generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "b27a7980-966c-428e-a72e-5aaa2fc7f20f", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed update\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{limited-generic-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{limited-generic-vaultId}}/update-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{limited-generic-vaultId}}", "update-end" ] } }, "response": [] }, { "name": "Get limited generic offline vault information", "event": [ { "listen": "test", "script": { "id": "58e26a37-4441-403a-aab9-4ea6ea1a3db0", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{limited-generic-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{limited-generic-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Expiry", "item": [ { "name": "Get expiry generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "53604952-8907-408d-ba48-8666a5ef770c", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"expiry-generic-token\", data.transactionToken.token);", "", "postman.setEnvironmentVariable(\"expiry-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"expiry-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"expiry-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync expiry generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"payload\": \"{{expiry-generic-payload}}\",\n \"encryptedData\": \"{{expiry-generic-publicKey}}\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{expiry-generic-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{expiry-generic-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Confirm get expiry generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "87a1dfea-b46b-47c9-aee0-fa088d6f7342", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{expiry-generic-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{expiry-generic-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{expiry-generic-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "Update expiry generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "8a71465e-9cef-4851-8cee-313539fde494", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully started update\");", "});", "", "postman.setEnvironmentVariable(\"expiry-generic-token\", data.transactionToken.token);", "", "postman.setEnvironmentVariable(\"expiry-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"expiry-generic-publicKey\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"expiry-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync expiry generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"payload\": \"{{expiry-generic-payload}}\",\n \"encryptedData\": \"{{expiry-generic-publicKey}}\"\n }\n },\n \"newVault\": {\n \t\"content\": \"some updated vault content\"\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{expiry-generic-vaultId}}/update-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{expiry-generic-vaultId}}", "update-start" ] } }, "response": [] }, { "name": "Confirm update expiry generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "f7cec4ca-ea69-43fa-b7c5-3741239e45e3", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed update\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{expiry-generic-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{expiry-generic-vaultId}}/update-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{expiry-generic-vaultId}}", "update-end" ] } }, "response": [] }, { "name": "Get expiry generic offline vault information", "event": [ { "listen": "test", "script": { "id": "58e26a37-4441-403a-aab9-4ea6ea1a3db0", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{expiry-generic-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{expiry-generic-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Offline Credit Card Vault", "item": [ { "name": "Limited", "item": [ { "name": "Get offline credit card", "event": [ { "listen": "test", "script": { "id": "d3514ae2-1950-46fa-bcd9-a8a513a950ff", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-limited-payload\", data.vault.credentials.payload);", "postman.setEnvironmentVariable(\"offline-credit-card-limited-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"offline-credit-card-limited-token\", data.transactionToken.token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync offline creditcard limited vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n \t\t\"encryptedData\": \"{{offline-credit-card-limited-encrypted-data}}\",\n \t\"payload\": \"{{offline-credit-card-limited-payload}}\"\t\n \t}\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-limited-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-limited-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Confirm get offline credit card", "event": [ { "listen": "test", "script": { "id": "76cc9ebc-3b63-4af8-bfcd-b26a0d16637e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{offline-credit-card-limited-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-limited-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-limited-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "Update offline credit card", "event": [ { "listen": "test", "script": { "id": "dfd0a285-9221-4fe8-ba10-772006ff9e42", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully started update\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-limited-payload\", data.vault.credentials.payload);", "postman.setEnvironmentVariable(\"offline-credit-card-limited-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"offline-credit-card-limited-token\", data.transactionToken.token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync offline creditcard limited vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n \t\t\"encryptedData\": \"{{offline-credit-card-limited-encrypted-data}}\",\n \t\"payload\": \"{{offline-credit-card-limited-payload}}\"\t\n \t}\n },\n \"newVault\": {\n \t\"creditCard\": {\n \"number\": \"000000000\",\n \"expiryYear\": 2021,\n \"expiryMonth\": 9,\n \"name\": \"updated credit card\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-limited-vaultId}}/update-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-limited-vaultId}}", "update-start" ] } }, "response": [] }, { "name": "Confirm update offline credit card", "event": [ { "listen": "test", "script": { "id": "97f390a9-a05b-4891-8b31-bff29b5036d6", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed update\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{offline-credit-card-limited-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-limited-vaultId}}/update-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-limited-vaultId}}", "update-end" ] } }, "response": [] }, { "name": "Get offline credit card metadata", "event": [ { "listen": "test", "script": { "id": "35218405-c5c1-4782-b27e-751d5dab40e1", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-limited-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-limited-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Perpetual", "item": [ { "name": "Get offline credit card", "event": [ { "listen": "test", "script": { "id": "ac606b62-d22b-4ffc-8c2e-475cf554e4cb", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-payload\", data.vault.credentials.payload);", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-token\", data.transactionToken.token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync offline creditcard perpetual vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n \t\t\"encryptedData\": \"{{offline-credit-card-perpetual-encrypted-data}}\",\n \t\"payload\": \"{{offline-credit-card-perpetual-payload}}\"\t\n \t}\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-perpetual-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-perpetual-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Confirm get offline credit card", "event": [ { "listen": "test", "script": { "id": "76cc9ebc-3b63-4af8-bfcd-b26a0d16637e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{offline-credit-card-perpetual-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-perpetual-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-perpetual-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "Update offline credit card", "event": [ { "listen": "test", "script": { "id": "e5ea1c9c-408a-4678-a920-6c8f77ce569b", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully started update\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-payload\", data.vault.credentials.payload);", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"offline-credit-card-perpetual-token\", data.transactionToken.token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync offline creditcard perpetual vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n \t\t\"encryptedData\": \"{{offline-credit-card-perpetual-encrypted-data}}\",\n \t\"payload\": \"{{offline-credit-card-perpetual-payload}}\"\t\n \t}\n },\n \"newVault\": {\n \t\"creditCard\": {\n \"number\": \"000000000\",\n \"expiryYear\": 2021,\n \"expiryMonth\": 9,\n \"name\": \"updated credit card\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-perpetual-vaultId}}/update-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-perpetual-vaultId}}", "update-start" ] } }, "response": [] }, { "name": "Confirm update offline credit card", "event": [ { "listen": "test", "script": { "id": "31443601-947f-4566-805f-96c532c9eb86", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed update\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{offline-credit-card-perpetual-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-perpetual-vaultId}}/update-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-perpetual-vaultId}}", "update-end" ] } }, "response": [] }, { "name": "Get offline credit card metadata", "event": [ { "listen": "test", "script": { "id": "35218405-c5c1-4782-b27e-751d5dab40e1", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-perpetual-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-perpetual-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Expiry", "item": [ { "name": "Get offline credit card", "event": [ { "listen": "test", "script": { "id": "a2022a7a-6a81-4cc9-997b-063bbbc07cde", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-payload\", data.vault.credentials.payload);", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-token\", data.transactionToken.token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync offline creditcard expiry vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n \t\t\"encryptedData\": \"{{offline-credit-card-expiry-encrypted-data}}\",\n \t\"payload\": \"{{offline-credit-card-expiry-payload}}\"\t\n \t}\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-expiry-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-expiry-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Confirm get offline credit card", "event": [ { "listen": "test", "script": { "id": "76cc9ebc-3b63-4af8-bfcd-b26a0d16637e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{offline-credit-card-expiry-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-expiry-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-expiry-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "Update offline credit card", "event": [ { "listen": "test", "script": { "id": "a9463dae-0b1d-4b1b-a816-341e087412f7", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully started update\");", "});", "", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-payload\", data.vault.credentials.payload);", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"offline-credit-card-expiry-token\", data.transactionToken.token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Start sync offline creditcard expiry vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n \t\t\"encryptedData\": \"{{offline-credit-card-expiry-encrypted-data}}\",\n \t\"payload\": \"{{offline-credit-card-expiry-payload}}\"\t\n \t}\n },\n \"newVault\": {\n \t\"creditCard\": {\n \"number\": \"000000000\",\n \"expiryYear\": 2021,\n \"expiryMonth\": 9,\n \"name\": \"updated credit card\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-expiry-vaultId}}/update-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-expiry-vaultId}}", "update-start" ] } }, "response": [] }, { "name": "Confirm update offline credit card", "event": [ { "listen": "test", "script": { "id": "1f62ce3c-ce98-4d75-965e-3be482709074", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed update\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{offline-credit-card-expiry-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-expiry-vaultId}}/update-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-expiry-vaultId}}", "update-end" ] } }, "response": [] }, { "name": "Get offline credit card metadata", "event": [ { "listen": "test", "script": { "id": "35218405-c5c1-4782-b27e-751d5dab40e1", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-expiry-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-expiry-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Online Generic Vault", "item": [ { "name": "pin", "item": [ { "name": "Get generic online pin vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "e5cfac17-f65c-4e87-9518-0b9d2531782c", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"online-generic-token\", data.transactionToken.token);", "", "postman.setEnvironmentVariable(\"online-generic-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"online-generic-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"online-generic-payload\", data.vault.credentials.payload);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n },\n \"externalRef\": \"Start sync online creditcard pin vault - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{online-generic-encrypted-data}}\",\n \"hashedPin\": \"{{hashedPin}}\",\n \"payload\": \"{{online-generic-payload}}\"\n }\t\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online/{{online-generic-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online", "{{online-generic-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Confirm get generic online pin vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "09732ef0-d975-4465-bc57-aab468bde45f", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{online-generic-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online/{{online-generic-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online", "{{online-generic-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "Get generic online pin vault information", "event": [ { "listen": "test", "script": { "id": "58e26a37-4441-403a-aab9-4ea6ea1a3db0", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online/{{online-generic-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online", "{{online-generic-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "nopin", "item": [ { "name": "Get generic online non-pin vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "655cdaa4-119d-4907-b2fa-e45f7f6dcc95", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"online-generic-nopin-token\", data.transactionToken.token);", "", "postman.setEnvironmentVariable(\"online-generic-nopin-vaultId\", data.vault.uuid);", "postman.setEnvironmentVariable(\"online-generic-nopin-encrypted-data\", data.vault.credentials.encryptedData);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n },\n \"externalRef\": \"Start sync online creditcard pin vault - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{online-generic-nopin-encrypted-data}}\"\n }\t\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online/{{online-generic-nopin-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online", "{{online-generic-nopin-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Confirm get generic online non-pin vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "09732ef0-d975-4465-bc57-aab468bde45f", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{online-generic-nopin-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online/{{online-generic-nopin-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online", "{{online-generic-nopin-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "Get generic online non-pin vault information", "event": [ { "listen": "test", "script": { "id": "58e26a37-4441-403a-aab9-4ea6ea1a3db0", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online/{{online-generic-nopin-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online", "{{online-generic-nopin-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Online Credit Card Vault", "item": [ { "name": "pin", "item": [ { "name": "Pin credit card - get start", "event": [ { "listen": "test", "script": { "id": "bf7f0f21-0503-48e1-a581-cb4322594bc7", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"online-credit-card-pin-payload\", data.vault.credentials.payload);", "postman.setEnvironmentVariable(\"online-credit-card-pin-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"online-credit-card-pin-token\", data.transactionToken.token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n },\n \"externalRef\": \"Start sync online creditcard pin vault - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{online-credit-card-pin-encrypted-data}}\",\n \"hashedPin\": \"{{hashedPin}}\",\n \"payload\": \"{{online-credit-card-pin-payload}}\"\n }\t\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online/{{online-credit-card-pin-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online", "{{online-credit-card-pin-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "Pin credit card - get end", "event": [ { "listen": "test", "script": { "id": "76cc9ebc-3b63-4af8-bfcd-b26a0d16637e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{online-credit-card-pin-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online/{{online-credit-card-pin-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online", "{{online-credit-card-pin-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "pin credit card Get meta data", "event": [ { "listen": "test", "script": { "id": "995fb21e-cc06-46ac-83ed-a14ff71e92e9", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online/{{online-credit-card-pin-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online", "{{online-credit-card-pin-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "nopin", "item": [ { "name": "no-pin credit-card - get-start", "event": [ { "listen": "test", "script": { "id": "46489d05-405b-4550-b4d0-c581bd56570e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully created transaction\");", "});", "", "postman.setEnvironmentVariable(\"online-credit-card-nopin-encrypted-data\", data.vault.credentials.encryptedData);", "postman.setEnvironmentVariable(\"online-credit-card-nopin-token\", data.transactionToken.token);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n },\n \"externalRef\": \"Start sync online creditcard no-pin vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n \t\t\"encryptedData\": \"{{online-credit-card-nopin-encrypted-data}}\"\t\n \t}\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online/{{online-credit-card-nopin-vaultId}}/get-start", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online", "{{online-credit-card-nopin-vaultId}}", "get-start" ] } }, "response": [] }, { "name": "No-pin credit card - get-end", "event": [ { "listen": "test", "script": { "id": "76cc9ebc-3b63-4af8-bfcd-b26a0d16637e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully completed transaction\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"{{online-credit-card-nopin-token}}\"\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online/{{online-credit-card-nopin-vaultId}}/get-end", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online", "{{online-credit-card-nopin-vaultId}}", "get-end" ] } }, "response": [] }, { "name": "non pin credit card - get meta data", "event": [ { "listen": "test", "script": { "id": "26b7b114-4577-4d0a-b582-be99af811959", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Vault information successfully retrieved\");", "});", "", "pm.test(\"check metadata has come through\", function() {", " pm.expect(data.metadata.key).to.equal(\"value\"); ", "}) ;" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "x-api-key", "value": "{{apiKey}}" }, { "key": "x-application-uuid", "value": "{{applicationUuid}}" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online/{{online-credit-card-nopin-vaultId}}/info", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online", "{{online-credit-card-nopin-vaultId}}", "info" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Delete", "item": [ { "name": "Offline Generic Vault", "item": [ { "name": "Expiry", "item": [ { "name": "Delete expiry generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "206bd71c-a132-41e6-a6bd-ffb4b2d247fd", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Delete expiry generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{expiry-generic-publicKey}}\",\n \"payload\": \"{{expiry-generic-payload}}\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{expiry-generic-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{expiry-generic-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Limited", "item": [ { "name": "Delete limited generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "fd5b47a9-c71f-4346-afdc-78c6d8bd4773", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Delete limited generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{limited-generic-publicKey}}\",\n \"payload\": \"{{limited-generic-payload}}\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{limited-generic-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{limited-generic-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Perpetual", "item": [ { "name": "Delete perpetual generic offline vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "bd40056d-22f8-4162-adf0-504c6d858515", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Delete perpetual generic offline - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{perpetual-generic-publicKey}}\",\n \"payload\": \"{{perpetual-generic-payload}}\"\n }\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/offline/{{perpetual-generic-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "offline", "{{perpetual-generic-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Offline Credit Card Vault", "item": [ { "name": "Expiry", "item": [ { "name": "Delete offline credit card vault", "event": [ { "listen": "test", "script": { "id": "9e8b7dab-d7d1-4163-9e37-cfe737a7ef6e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Delete offline creditcard expiry vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n\t \t\"encryptedData\": \"{{offline-credit-card-expiry-encrypted-data}}\",\n\t \"hashedPin\": \"{{hashedPin}}\",\n\t \"payload\": \"{{offline-credit-card-expiry-payload}}\"\t\n \t}\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-expiry-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-expiry-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Limited", "item": [ { "name": "Delete offline credit card vault", "event": [ { "listen": "test", "script": { "id": "9e8b7dab-d7d1-4163-9e37-cfe737a7ef6e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Delete offline creditcard limited vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n\t \t\"encryptedData\": \"{{offline-credit-card-limited-encrypted-data}}\",\n\t \"hashedPin\": \"{{hashedPin}}\",\n\t \"payload\": \"{{offline-credit-card-limited-payload}}\"\t\n \t}\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-limited-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-limited-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "Perpetual", "item": [ { "name": "Delete offline credit card vault", "event": [ { "listen": "test", "script": { "id": "9e8b7dab-d7d1-4163-9e37-cfe737a7ef6e", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"externalRef\": \"Delete offline creditcard perpetual vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n\t \t\"encryptedData\": \"{{offline-credit-card-perpetual-encrypted-data}}\",\n\t \"hashedPin\": \"{{hashedPin}}\",\n\t \"payload\": \"{{offline-credit-card-perpetual-payload}}\"\t\n \t}\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/offline/{{offline-credit-card-perpetual-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "offline", "{{offline-credit-card-perpetual-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Online Generic Vault", "item": [ { "name": "pin", "item": [ { "name": "Delete generic online pin vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "bd40056d-22f8-4162-adf0-504c6d858515", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n },\n \"externalRef\": \"Start sync online creditcard pin vault - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{online-generic-encrypted-data}}\",\n \"hashedPin\": \"{{hashedPin}}\",\n \"payload\": \"{{online-generic-payload}}\"\n }\t\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online/{{online-generic-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online", "{{online-generic-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "nopin", "item": [ { "name": "Delete generic online non-pin vault", "event": [ { "listen": "prerequest", "script": { "id": "3ab76adf-b2a3-4096-9722-6f087030855a", "exec": [ "postman.setEnvironmentVariable('timestamp',(new Date()).format('DDMMYYY'));", "", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "bd40056d-22f8-4162-adf0-504c6d858515", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n },\n \"externalRef\": \"Start sync online creditcard pin vault - Postman\",\n \"vault\": {\n \"credentials\": {\n \"encryptedData\": \"{{online-generic-nopin-encrypted-data}}\"\n }\t\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/generic/online/{{online-generic-nopin-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "generic", "online", "{{online-generic-nopin-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true }, { "name": "Online Credit Card Vault", "item": [ { "name": "pin", "item": [ { "name": "Delete pin credit card", "event": [ { "listen": "test", "script": { "id": "f8eec2b8-9d37-4e45-a6b9-e80db72f80a1", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n },\n \"externalRef\": \"Delete online creditcard no-pin vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n\t \t\"encryptedData\": \"{{online-credit-card-pin-encrypted-data}}\",\n\t \"hashedPin\": \"{{hashedPin}}\",\n\t \"payload\": \"{{online-credit-card-pin-payload}}\"\t\n \t}\n }\n}" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online/{{online-credit-card-pin-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online", "{{online-credit-card-pin-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true }, { "name": "nopin", "item": [ { "name": "Delete non pin credit card", "event": [ { "listen": "test", "script": { "id": "1d0577cd-7e34-497f-9a7c-c2756472d88c", "exec": [ "var data = JSON.parse(responseBody);", "", "pm.test(\"Status code is 200\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.test(\"Check response\", function () {", " pm.expect(data.responseStatus.status).to.equal(\"SUCCESS\");", " pm.expect(data.responseStatus.message).to.equal(\"Successfully deleted vault\");", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Authorization", "value": "Bearer {{zeke}}", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"application\": {\n \"apiKey\": \"{{apiKey}}\",\n \"uuid\": \"{{applicationUuid}}\"\n },\n \"device\": {\n \"fonts\": [\n \"fontB\",\n \"fontA\"\n ],\n \"osType\": \"Linux\",\n \"browserType\": \"Firefox\",\n \"browserVersion\": \"15\"\n },\n \"externalRef\": \"Delete online creditcard no-pin vault - Postman\",\n \"vault\": {\n \t\"credentials\": {\n\t\t\"encryptedData\": \"{{online-credit-card-nopin-encrypted-data}}\",\n\t\t\"payload\": null \t\t\n \t}\n }\n}\n" }, "url": { "raw": "{{release-url}}/sanctum/v1-2/vault/credit-card/online/{{online-credit-card-nopin-vaultId}}/delete", "host": [ "{{release-url}}" ], "path": [ "sanctum", "v1-2", "vault", "credit-card", "online", "{{online-credit-card-nopin-vaultId}}", "delete" ] } }, "response": [] } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true } ], "_postman_isSubFolder": true } ] } ], "event": [ { "listen": "prerequest", "script": { "id": "f1230790-cdf9-44ed-bc25-4b03b884c13e", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "d7eeca39-2d1c-4d95-8121-60ed42398bae", "type": "text/javascript", "exec": [ "" ] } } ] }
Comments
0 comments
Please sign in to leave a comment.