-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCustomer Dev Tools (Play Only).postman_collection.json
234 lines (234 loc) · 6.1 KB
/
Customer Dev Tools (Play Only).postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
"info": {
"_postman_id": "39bc22a6-d020-4523-8201-bc12d24a90eb",
"name": "Customer Dev Tools (For Play Only)",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "1. Add iban for specific ledger",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
},
{
"key": "Authorization",
"value": "{{customer_api_key}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"bic_swift\": \"{{bic_swift}}\",\n \"iban\": \"{{iban}}\"\n}"
},
"url": {
"raw": "{{baseurl}}/dev/customer/ledgers/{{ledger_id}}/iban",
"host": [
"{{baseurl}}"
],
"path": [
"dev",
"customer",
"ledgers",
"{{ledger_id}}",
"iban"
]
}
},
"response": []
},
{
"name": "2a. Simulate crediting a GBP ledger with funds (minimal ver.)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Authorization",
"type": "text",
"value": "{{customer_api_key}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"uk_sort_code\": \"009975\",\n \"uk_account_number\": \"45564658\",\n \"amount\": \"0\"\n}"
},
"url": {
"raw": "{{baseurl}}/dev/customer/transactions/receive",
"host": [
"{{baseurl}}"
],
"path": [
"dev",
"customer",
"transactions",
"receive"
]
}
},
"response": []
},
{
"name": "2b. Simulate crediting a EUR ledger with funds (minimal ver.)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Authorization",
"type": "text",
"value": "{{customer_api_key}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"bic_swift\": \"SPSRSKBAXXX\",\n \"iban\": \"SK4402005678901234567890\",\n \"amount\": \"0\"\n}"
},
"url": {
"raw": "{{baseurl}}/dev/customer/transactions/receive",
"host": [
"{{baseurl}}"
],
"path": [
"dev",
"customer",
"transactions",
"receive"
]
}
},
"response": []
},
{
"name": "3. Simulate creating a ledger with funds (full ver.)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "Accept",
"type": "text",
"value": "application/json"
},
{
"key": "Authorization",
"type": "text",
"value": "{{customer_api_key}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"settlement_date\": \"2017-03-01\",\n \"end_to_end_id\": \"NOTPROVIDED\",\n \"instructed_agent\": {\n \"bic\": \"random sequence of characters0\"\n },\n \"purpose_category\": \"SALA\",\n \"receiver_account\": {\n \"iban\": \"SK4402005678901234567890\"\n },\n \"receiver_agent\": {\n \"bic\": \"random sequence of characters0\"\n },\n \"receiver\": {\n \"issuer\": \"string\",\n \"birth_country\": \"abcdefghijklmnopqrstuvwxyz\",\n \"bic\": \"random sequence of characters\",\n \"id\": \"random sequence of characters\",\n \"name\": \"John Doe\",\n \"address\": {\n \"country\": \"GB\",\n \"lines\": \"27 Old Gloucester Street\\nLondon\"\n },\n \"birth_date\": \"random sequence of characters\",\n \"scheme_proprietary\": \"string\",\n \"birth_city\": \"string\",\n \"scheme\": \"string\",\n \"birth_province\": \"abcdefghijklmnopqrstuvwxyz\"\n },\n \"sender_account\": {\n \"iban\": \"SK4402005678901234567890\"\n },\n \"amount\": \"1.00\",\n \"transaction_id\": \"TEST-001-TX\",\n \"remittance_information_unstructured\": \"this is a test payment\",\n \"partner_product\": \"ExampleBank-EUR-1\",\n \"sender_agent\": {\n \"bic\": \"SPSRSKBAXXX\"\n },\n \"asset_type\": \"eur\",\n \"asset_class\": \"currency\",\n \"message_schema\": \"pacs.008.001.02\",\n \"sender\": {\n \"name\": \"Sandy Sender\",\n \"address\": {\n \"country\": \"GB\",\n \"lines\": \"Staveley Road\\nLondon\"\n }\n },\n \"instructing_agent\": {\n \"bic\": \"SPSRSKBAXXX\"\n },\n \"purpose\": \"SALA\",\n \"message_id\": \"TEST-001-MSG\"\n}"
},
"url": {
"raw": "{{baseurl}}/dev/customer/transactions/receive/fullsimulation",
"host": [
"{{baseurl}}"
],
"path": [
"dev",
"customer",
"transactions",
"receive",
"fullsimulation"
]
},
"description": "Please make changes accordingly to your discretion"
},
"response": []
},
{
"name": "4. Send event over webhook (providing a ledger id)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
},
{
"key": "Authorization",
"value": "{{customer_api_key}}",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"ledger_id\": \"{{ledger_id}}\"\n}\n"
},
"url": {
"raw": "{{baseurl}}/dev/customer/webhook/test",
"host": [
"{{baseurl}}"
],
"path": [
"dev",
"customer",
"webhook",
"test"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "d2a85b15-b60b-4f5a-8640-c4f496810758",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "088535e9-5da4-4416-bcfc-97cabe855f73",
"type": "text/javascript",
"exec": [
""
]
}
}
]
}