Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
3 contributors

Users who have contributed to this file

@sri-miriyala @mdebarros @elnyry
6717 lines (6717 sloc) 196 KB
{
"info": {
"_postman_id": "11219ff7-896d-4ab0-b7b8-167bbe4cd798",
"name": "OSS-New-Deployment-FSP-Setup",
"description": "Author: Sridevi Miriyala\nPurpose: Used to add new FSP and relevant Callback Information",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Hub Account",
"item": [
{
"name": "Add Hub Account-HUB_MULTILATERAL_SETTLEMENT",
"event": [
{
"listen": "test",
"script": {
"id": "27fc2302-421b-432a-87eb-ebe28a2ce136",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "FSPIOP-Source",
"type": "text",
"value": "{{payerfsp}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"HUB_MULTILATERAL_SETTLEMENT\",\n \"currency\": \"{{currency}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/Hub/accounts",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"Hub",
"accounts"
]
}
},
"response": []
},
{
"name": "Add Hub Account-HUB_RECONCILIATION",
"event": [
{
"listen": "test",
"script": {
"id": "9658dc2b-cf6c-41d2-b437-216bd105eb07",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "FSPIOP-Source",
"value": "{{payerfsp}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"HUB_RECONCILIATION\",\n \"currency\": \"{{currency}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/Hub/accounts",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"Hub",
"accounts"
]
}
},
"response": []
},
{
"name": "Hub Set Endpoint-SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL Copy",
"event": [
{
"listen": "test",
"script": {
"id": "f9837f03-80a7-46be-9276-e98d6925709e",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/hub/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"hub",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/admin/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"admin",
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Hub Set Endpoint-NET_DEBIT_CAP_ADJUSTMENT_EMAIL Copy",
"event": [
{
"listen": "test",
"script": {
"id": "837c7a84-ce18-4a96-b686-b2d6150a02ed",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"NET_DEBIT_CAP_ADJUSTMENT_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/hub/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"hub",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/admin/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"admin",
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Hub Endpoint-NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL Copy",
"event": [
{
"listen": "test",
"script": {
"id": "f2c3621b-1a07-4c48-89c7-9587e9c03267",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/Hub/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"Hub",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
}
]
},
{
"name": "FSP Onboarding",
"item": [
{
"name": "payerfsp (p2p transfers)",
"item": [
{
"name": "Add payerfsp - TRANSFERS",
"event": [
{
"listen": "test",
"script": {
"id": "76c222f4-969b-4081-b4d7-133ebe48f50f",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\"name\": \"payerfsp\",\"currency\": \"{{currency}}\"}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants"
]
}
},
"response": []
},
{
"name": "Add initial position and limits - payerfsp",
"event": [
{
"listen": "test",
"script": {
"id": "d767079d-a9dd-401a-8d6a-5f94654c4259",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"currency\": \"{{currency}}\",\n\t\"limit\": {\n\t \"type\": \"NET_DEBIT_CAP\",\n\t \"value\": 1000000\n\t},\n\t\"initialPosition\": 0\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/initialPositionAndLimits",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"initialPositionAndLimits"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTICIPANT PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTICIPANT_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/participants/{{partyIdType}}/{{partyIdentifier}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTICIPANT PUT Error",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTICIPANT_PUT_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/participants/{{partyIdType}}/{{partyIdentifier}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTICIPANT PUT Batch",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTICIPANT_BATCH_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/participants/{{requestId}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTICIPANT PUT Batch Error",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTICIPANT_BATCH_PUT_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/participants/{{requestId}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTIES GET",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTIES_GET\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/parties/{{partyIdType}}/{{partyIdentifier}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTIES PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTIES_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/parties/{{partyIdType}}/{{partyIdentifier}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTIES PUT Error",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTIES_PUT_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/parties/{{partyIdType}}/{{partyIdentifier}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - QUOTES PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_QUOTES\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - TRANSFER POST",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_POST\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/transfers\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - TRANSFER PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/transfers/{{transferId}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - TRANSFER ERROR",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payerfsp/transfers/{{transferId}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "9. Set Endpoint-NET_DEBIT_CAP_ADJUSTMENT_EMAIL Copy",
"event": [
{
"listen": "test",
"script": {
"id": "83984619-0430-4a4c-87ec-671bf97894de",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"NET_DEBIT_CAP_ADJUSTMENT_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Set Endpoint-SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL Copy",
"event": [
{
"listen": "test",
"script": {
"id": "16f8d261-3f2d-470b-986b-c8e23602605b",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/{{payerfsp}}/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"{{payerfsp}}",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "DFSP Endpoint-NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL Copy",
"event": [
{
"listen": "test",
"script": {
"id": "67082524-b658-4f1c-90c4-af6fc24adb3e",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payerfsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payerfsp",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Record Funds In - payerfsp ",
"event": [
{
"listen": "test",
"script": {
"id": "802139ed-ec95-40f8-99a7-d88f0e77e49d",
"exec": [
"pm.test(\"Status code is 202\", function () {",
" pm.response.to.have.status(202);",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "prerequest",
"script": {
"id": "461d34bc-33f6-4031-bbc4-b26489ff1953",
"exec": [
"var uuid = require('uuid');",
"var generatedUUID = uuid.v4();",
"pm.environment.set('fundsInPrepareTransferId', generatedUUID);",
"pm.environment.set('fundsInPrepareAmount', 5000);",
"",
"",
"const payerfspGetStatusRequest = {",
" url: pm.environment.get(\"HOST_CENTRAL_LEDGER\")+pm.environment.get(\"BASE_CENTRAL_LEDGER_ADMIN\")+'/participants/'+pm.environment.get(\"payerfsp\")+'/accounts',",
" method: 'GET',",
" header: {",
" \"Authorization\":\"Bearer \"+pm.environment.get(\"HUB_OPERATOR_BEARER_TOKEN\"),",
" \"FSPIOP-Source\": pm.environment.get(\"hub_operator\"),",
" \"Content-Type\": \"application/json\"",
" }",
"};",
"pm.sendRequest(payerfspGetStatusRequest, function (err, response) {",
" console.log(response.json())",
" var jsonData = response.json()",
" for(var i in jsonData) {",
" if((jsonData[i].ledgerAccountType === 'SETTLEMENT') && (jsonData[i].currency === pm.environment.get(\"currency\"))) {",
" pm.environment.set(\"payerfspSettlementAccountId\",jsonData[i].id)",
" pm.environment.set(\"payerfspSettlementAccountBalanceBeforeFundsIn\",jsonData[i].value)",
" }",
" }",
"});",
"",
"const hubGetStatusRequest = {",
" url: pm.environment.get(\"HOST_CENTRAL_LEDGER\")+pm.environment.get(\"BASE_CENTRAL_LEDGER_ADMIN\")+'/participants/hub/accounts',",
" method: 'GET',",
" header: {",
" \"Authorization\":\"Bearer \"+pm.environment.get(\"BEARER_TOKEN\"),",
" \"FSPIOP-Source\": pm.environment.get(\"payerfsp\"),",
" \"Content-Type\": \"application/json\"",
" }",
"};",
"pm.sendRequest(hubGetStatusRequest, function (err, response) {",
" console.log(response.json())",
" var jsonData = response.json()",
" for(var i in jsonData) {",
" if((jsonData[i].ledgerAccountType === 'HUB_RECONCILIATION') && (jsonData[i].currency === pm.environment.get(\"currency\"))) {",
" pm.environment.set(\"hubReconAccountBalanceBeforeFundsIn\",jsonData[i].value)",
" }",
" }",
"});",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "FSPIOP-Source",
"value": "{{payerfsp}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"transferId\": \"{{fundsInPrepareTransferId}}\",\n \"externalReference\": \"string\",\n \"action\": \"recordFundsIn\",\n \"reason\": \"string\",\n \"amount\": {\n \"amount\":\"{{fundsInPrepareAmount}}\" ,\n \"currency\": \"{{currency}}\"\n },\n \"extensionList\": {\n \"extension\": [\n {\n \"key\": \"string\",\n \"value\": \"string\"\n }\n ]\n }\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/{{payerfsp}}/accounts/{{payerfspSettlementAccountId}}",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"{{payerfsp}}",
"accounts",
"{{payerfspSettlementAccountId}}"
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "payeefsp (p2p transfers)",
"item": [
{
"name": "Add payeefsp - TRANSFERS",
"event": [
{
"listen": "test",
"script": {
"id": "76c222f4-969b-4081-b4d7-133ebe48f50f",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"name\": \"payeefsp\",\"currency\": \"{{currency}}\"}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants"
]
}
},
"response": []
},
{
"name": "Add initial position and limits - payeefsp",
"event": [
{
"listen": "test",
"script": {
"id": "d767079d-a9dd-401a-8d6a-5f94654c4259",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"currency\": \"{{currency}}\",\n\t\"limit\": {\n\t \"type\": \"NET_DEBIT_CAP\",\n\t \"value\": 1000000\n\t},\n\t\"initialPosition\": 0\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/initialPositionAndLimits",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"initialPositionAndLimits"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTICIPANT PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTICIPANT_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/participants/{{partyIdType}}/{{partyIdentifier}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTICIPANT PUT Error",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTICIPANT_PUT_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/participants/{{partyIdType}}/{{partyIdentifier}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTICIPANT PUT Batch",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTICIPANT_BATCH_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/participants/{{requestId}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTICIPANT PUT Batch Error",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTICIPANT_BATCH_PUT_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/participants/{{requestId}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTIES GET",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTIES_GET\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/parties/{{partyIdType}}/{{partyIdentifier}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTIES PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTIES_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/parties/{{partyIdType}}/{{partyIdentifier}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - PARTIES PUT Error",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_PARTIES_PUT_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/parties/{{partyIdType}}/{{partyIdentifier}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payerfsp callback - QUOTES PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_QUOTES\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payeefsp callback - TRANSFER POST",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_POST\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/transfers\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payeefsp callback - TRANSFER PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/transfers/{{transferId}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add payeefsp callback - TRANSFER ERROR",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/payeefsp/transfers/{{transferId}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
}
},
"response": []
},
{
"name": "9. Set Endpoint-NET_DEBIT_CAP_ADJUSTMENT_EMAIL Copy Copy",
"event": [
{
"listen": "test",
"script": {
"id": "83984619-0430-4a4c-87ec-671bf97894de",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"NET_DEBIT_CAP_ADJUSTMENT_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "DFSP Endpoint-NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL Copy Copy",
"event": [
{
"listen": "test",
"script": {
"id": "67082524-b658-4f1c-90c4-af6fc24adb3e",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/payeefsp/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"payeefsp",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Set Endpoint-SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL Copy Copy",
"event": [
{
"listen": "test",
"script": {
"id": "16f8d261-3f2d-470b-986b-c8e23602605b",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/{{payeefsp}}/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"{{payeefsp}}",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Record Funds In - payeefsp ",
"event": [
{
"listen": "prerequest",
"script": {
"id": "5858c228-7870-48e4-ad2f-8c9a78bef057",
"exec": [
"var uuid = require('uuid');",
"var generatedUUID = uuid.v4();",
"pm.environment.set('fundsInPrepareTransferId', generatedUUID);",
"pm.environment.set('fundsInPrepareAmount', 5000);",
"",
"",
"const payerfspGetStatusRequest = {",
" url: pm.environment.get(\"HOST_CENTRAL_LEDGER\")+pm.environment.get(\"BASE_CENTRAL_LEDGER_ADMIN\")+'/participants/'+pm.environment.get(\"payeefsp\")+'/accounts',",
" method: 'GET',",
" header: {",
" \"Authorization\":\"Bearer \"+pm.environment.get(\"HUB_OPERATOR_BEARER_TOKEN\"),",
" \"FSPIOP-Source\": pm.environment.get(\"hub_operator\"),",
" \"Content-Type\": \"application/json\"",
" }",
"};",
"pm.sendRequest(payerfspGetStatusRequest, function (err, response) {",
" console.log(response.json())",
" var jsonData = response.json()",
" for(var i in jsonData) {",
" if((jsonData[i].ledgerAccountType === 'SETTLEMENT') && (jsonData[i].currency === pm.environment.get(\"currency\"))) {",
" pm.environment.set(\"payeefspSettlementAccountId\",jsonData[i].id)",
" pm.environment.set(\"payeefspSettlementAccountBalanceBeforeFundsIn\",jsonData[i].value)",
" }",
" }",
"});",
"",
"const hubGetStatusRequest = {",
" url: pm.environment.get(\"HOST_CENTRAL_LEDGER\")+pm.environment.get(\"BASE_CENTRAL_LEDGER_ADMIN\")+'/participants/hub/accounts',",
" method: 'GET',",
" header: {",
" \"Authorization\":\"Bearer \"+pm.environment.get(\"BEARER_TOKEN\"),",
" \"FSPIOP-Source\": pm.environment.get(\"payerfsp\"),",
" \"Content-Type\": \"application/json\"",
" }",
"};",
"pm.sendRequest(hubGetStatusRequest, function (err, response) {",
" console.log(response.json())",
" var jsonData = response.json()",
" for(var i in jsonData) {",
" if((jsonData[i].ledgerAccountType === 'HUB_RECONCILIATION') && (jsonData[i].currency === pm.environment.get(\"currency\"))) {",
" pm.environment.set(\"hubReconAccountBalanceBeforeFundsIn\",jsonData[i].value)",
" }",
" }",
"});",
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "15f4e96a-4f84-42f9-b81b-e7de0763d874",
"exec": [
"pm.test(\"Status code is 202\", function () {",
" pm.response.to.have.status(202);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{HUBOPERATOR_BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "FSPIOP-Source",
"type": "text",
"value": "{{hub_operator}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"transferId\": \"{{fundsInPrepareTransferId}}\",\n \"externalReference\": \"string\",\n \"action\": \"recordFundsIn\",\n \"reason\": \"string\",\n \"amount\": {\n \"amount\":\"{{fundsInPrepareAmount}}\" ,\n \"currency\": \"{{currency}}\"\n },\n \"extensionList\": {\n \"extension\": [\n {\n \"key\": \"string\",\n \"value\": \"string\"\n }\n ]\n }\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/{{payeefsp}}/accounts/{{payeefspSettlementAccountId}}",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"{{payeefsp}}",
"accounts",
"{{payeefspSettlementAccountId}}"
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "testfsp1 (Only for Settlements testing)",
"item": [
{
"name": "Add testfsp1 - TRANSFERS",
"event": [
{
"listen": "test",
"script": {
"id": "76c222f4-969b-4081-b4d7-133ebe48f50f",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"name\": \"testfsp1\",\"currency\": \"{{currency}}\"}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants"
]
}
},
"response": []
},
{
"name": "Add initial position and limits - testfsp1",
"event": [
{
"listen": "test",
"script": {
"id": "d767079d-a9dd-401a-8d6a-5f94654c4259",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"currency\": \"{{currency}}\",\n\t\"limit\": {\n\t \"type\": \"NET_DEBIT_CAP\",\n\t \"value\": 1000000\n\t},\n\t\"initialPosition\": 0\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}/participants/testfsp1/initialPositionAndLimits",
"host": [
"{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}"
],
"path": [
"participants",
"testfsp1",
"initialPositionAndLimits"
]
}
},
"response": []
},
{
"name": "Testfsp1 callback - Transfer POST",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_POST\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/testfsp1/transfers\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}/participants/testfsp1/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}"
],
"path": [
"participants",
"testfsp1",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add testfsp1 callback - TRANSFER PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_PUT\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/testfsp1/transfers/{{transferId}}\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}/participants/testfsp1/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}"
],
"path": [
"participants",
"testfsp1",
"endpoints"
]
}
},
"response": []
},
{
"name": "Testfsp1 callback - Tranfers Error",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_ERROR\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/testfsp1/transfers/{{transferId}}/error\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}/participants/testfsp1/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}"
],
"path": [
"participants",
"testfsp1",
"endpoints"
]
}
},
"response": []
},
{
"name": "9. Set Endpoint-NET_DEBIT_CAP_ADJUSTMENT_EMAIL",
"event": [
{
"listen": "test",
"script": {
"id": "83984619-0430-4a4c-87ec-671bf97894de",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"NET_DEBIT_CAP_ADJUSTMENT_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/testfsp1/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp1",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "DFSP Endpoint-NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL",
"event": [
{
"listen": "test",
"script": {
"id": "67082524-b658-4f1c-90c4-af6fc24adb3e",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/testfsp1/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp1",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Set Endpoint-SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL",
"event": [
{
"listen": "test",
"script": {
"id": "16f8d261-3f2d-470b-986b-c8e23602605b",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL\",\n \"value\": \"sridevi.miriyala@modusbox.com\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/testfsp1/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp1",
"endpoints"
]
},
"description": "Generated from a curl request: \ncurl -i -X POST {{HOST_CENTRAL_LEDGER}}/participants/testfsp2/initialPositionAndLimits -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '{\n \\\"currency\\\": \\\"USD\\\",\n \\\"limit\\\": {\n \\\"type\\\": \\\"NET_DEBIT_CAP\\\",\n \\\"value\\\": 1000\n },\n \\\"initialPosition\\\": 0\n }'"
},
"response": [
{
"name": "2. Create Initial Position and Limits",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Cache-Control",
"value": "no-cache"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"currency\": \"USD\",\n \"limit\": {\n \"type\": \"NET_DEBIT_CAP\",\n \"value\": 1000\n },\n \"initialPosition\": 0\n }"
},
"url": {
"raw": "http://{{HOST_CENTRAL_LEDGER}}/participants/testfsp/initialPositionAndLimits",
"protocol": "http",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"testfsp",
"initialPositionAndLimits"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "Text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Record Funds In - testfsp1",
"event": [
{
"listen": "prerequest",
"script": {
"id": "586c0595-cc84-4e7e-879f-e670aba8afdd",
"exec": [
"var uuid = require('uuid');",
"var generatedUUID = uuid.v4();",
"pm.environment.set('fundsInPrepareTransferId', generatedUUID);",
"pm.environment.set('fundsInPrepareAmount', 5000);",
"",
"",
"const payerfspGetStatusRequest = {",
" url: pm.environment.get(\"HOST_CENTRAL_LEDGER\")+pm.environment.get(\"BASE_CENTRAL_LEDGER_ADMIN\")+'/participants/'+pm.environment.get(\"testfsp1\")+'/accounts',",
" method: 'GET',",
" header: {",
" \"Authorization\":\"Bearer \"+pm.environment.get(\"HUB_OPERATOR_BEARER_TOKEN\"),",
" \"FSPIOP-Source\": pm.environment.get(\"hub_operator\"),",
" \"Content-Type\": \"application/json\"",
" }",
"};",
"pm.sendRequest(payerfspGetStatusRequest, function (err, response) {",
" console.log(response.json())",
" var jsonData = response.json()",
" for(var i in jsonData) {",
" if((jsonData[i].ledgerAccountType === 'SETTLEMENT') && (jsonData[i].currency === pm.environment.get(\"currency\"))) {",
"",
" pm.environment.set(\"testfsp1SettlementAccountId\",jsonData[i].id)",
" pm.environment.set(\"testfsp1SettlementAccountBalanceBeforeFundsIn\",jsonData[i].value)",
" }",
" }",
"});",
"",
"const hubGetStatusRequest = {",
" url: pm.environment.get(\"HOST_CENTRAL_LEDGER\")+pm.environment.get(\"BASE_CENTRAL_LEDGER_ADMIN\")+'/participants/hub/accounts',",
" method: 'GET',",
" header: {",
" \"Authorization\":\"Bearer \"+pm.environment.get(\"HUB_OPERATOR_BEARER_TOKEN\"),",
" \"FSPIOP-Source\": pm.environment.get(\"hub_operator\"),",
" \"Content-Type\": \"application/json\"",
" }",
"};",
"pm.sendRequest(hubGetStatusRequest, function (err, response) {",
" console.log(response.json())",
" var jsonData = response.json()",
" for(var i in jsonData) {",
" if((jsonData[i].ledgerAccountType === 'HUB_RECONCILIATION') && (jsonData[i].currency === pm.environment.get(\"currency\"))) {",
" pm.environment.set(\"hubReconAccountBalanceBeforeFundsIn\",jsonData[i].value)",
" }",
" }",
"});"
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"id": "bdd65ddc-1613-473d-bb6b-67b38464a77d",
"exec": [
"pm.test(\"Status code is 202\", function () {",
" pm.response.to.have.status(202);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{HUBOPERATOR_BEARER_TOKEN}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "FSPIOP-Source",
"type": "text",
"value": "{{hub_operator}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"transferId\": \"{{fundsInPrepareTransferId}}\",\n \"externalReference\": \"string\",\n \"action\": \"recordFundsIn\",\n \"reason\": \"string\",\n \"amount\": {\n \"amount\": \"{{fundsInPrepareAmount}}\",\n \"currency\": \"{{currency}}\"\n },\n \"extensionList\": {\n \"extension\": [\n {\n \"key\": \"string\",\n \"value\": \"string\"\n }\n ]\n }\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants/{{testfsp1}}/accounts/{{testfsp1SettlementAccountId}}",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants",
"{{testfsp1}}",
"accounts",
"{{testfsp1SettlementAccountId}}"
]
}
},
"response": []
}
],
"_postman_isSubFolder": true
},
{
"name": "testfsp2 (Only for Settlements testing)",
"item": [
{
"name": "Add testfsp2 - TRANSFERS",
"event": [
{
"listen": "test",
"script": {
"id": "76c222f4-969b-4081-b4d7-133ebe48f50f",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"name\": \"testfsp2\",\"currency\": \"{{currency}}\"}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}/participants",
"host": [
"{{HOST_CENTRAL_LEDGER}}"
],
"path": [
"participants"
]
}
},
"response": []
},
{
"name": "Add initial position and limits - testfsp2",
"event": [
{
"listen": "test",
"script": {
"id": "d767079d-a9dd-401a-8d6a-5f94654c4259",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"currency\": \"{{currency}}\",\n\t\"limit\": {\n\t \"type\": \"NET_DEBIT_CAP\",\n\t \"value\": 1000000\n\t},\n\t\"initialPosition\": 0\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}/participants/testfsp2/initialPositionAndLimits",
"host": [
"{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}"
],
"path": [
"participants",
"testfsp2",
"initialPositionAndLimits"
]
}
},
"response": []
},
{
"name": "Testfsp2 callback - Transfer POST",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"FSPIOP_CALLBACK_URL_TRANSFER_POST\",\n \"value\": \"{{HOST_SIMULATOR_K8S_CLUSTER}}/testfsp2/transfers\"\n}"
},
"url": {
"raw": "{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}/participants/testfsp2/endpoints",
"host": [
"{{HOST_CENTRAL_LEDGER}}{{BASE_CENTRAL_LEDGER_ADMIN}}"
],
"path": [
"participants",
"testfsp2",
"endpoints"
]
}
},
"response": []
},
{
"name": "Add testfsp2 callback - TRANSFER PUT",
"event": [
{
"listen": "test",
"script": {
"id": "bb928ca3-8904-4cff-94fa-9629ccf2418d",
"exec": [
"pm.test(\"Status code is 201\", function () {",
" pm.response.to.have.status(201);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"