Skip to content

Commit 4ba939d

Browse files
committed
finished recipient account spec
1 parent 5a71ca8 commit 4ba939d

File tree

3 files changed

+449
-180
lines changed

3 files changed

+449
-180
lines changed
Lines changed: 372 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,372 @@
1+
[
2+
{
3+
"scope": "https://api.railz.io:443",
4+
"method": "POST",
5+
"path": "/v1/recipients",
6+
"body": {
7+
"type": "individual",
8+
"firstName": "Tom",
9+
"lastName": "Jones",
10+
"email": "[email protected]",
11+
"address": {
12+
"street1": "123 Wolfstrasse",
13+
"city": "Berlin",
14+
"country": "DE",
15+
"postalCode": "123123"
16+
}
17+
},
18+
"status": 200,
19+
"response": {
20+
"ok": true,
21+
"recipient": {
22+
"id": "R-2kaPsv85SAHkdFfCHMP8wa",
23+
"referenceId": "R-2kaPsv85SAHkdFfCHMP8wa",
24+
"email": "[email protected]",
25+
"name": "Tom Jones",
26+
"lastName": "Jones",
27+
"firstName": "Tom",
28+
"legalName": "",
29+
"type": "individual",
30+
"status": "incomplete",
31+
"language": "en",
32+
"complianceStatus": "pending",
33+
"dob": null,
34+
"passport": "",
35+
"placeOfBirth": null,
36+
"updatedAt": "2022-10-18T03:43:35.884Z",
37+
"createdAt": "2022-10-18T03:43:35.884Z",
38+
"tags": [],
39+
"isPortalUser": false,
40+
"taxDeliveryType": "mail",
41+
"contactEmails": [],
42+
"occupation": "",
43+
"address": {
44+
"street1": "123 Wolfstrasse",
45+
"street2": "",
46+
"city": "Berlin",
47+
"postalCode": "123123",
48+
"country": "DE",
49+
"region": null,
50+
"phone": "",
51+
"phoneValidated": false
52+
},
53+
"compliance": {
54+
"status": "pending",
55+
"checkedAt": null
56+
},
57+
"gravatarUrl": "https://www.gravatar.com/avatar/47891e3b30e9fe3c5355801d4cbd5896?d=404",
58+
"governmentId": null,
59+
"ssn": null,
60+
"governmentIds": [],
61+
"birthplace": {
62+
"country": null,
63+
"region": null,
64+
"city": null
65+
},
66+
"citizenships": [],
67+
"routeType": "sepa",
68+
"routeMinimum": "0",
69+
"estimatedFees": "4",
70+
"accounts": [],
71+
"payoutMethod": null,
72+
"primaryCurrency": null,
73+
"riskScore": null,
74+
"merchantId": "M-W3mQuLjDafUGietRUqmeRz",
75+
"inactiveReasons": {
76+
"primaryAccount": "missing"
77+
},
78+
"taxWithholdingPercentage": null,
79+
"taxForm": null,
80+
"taxFormStatus": null
81+
}
82+
},
83+
"rawHeaders": [
84+
"Date",
85+
"Tue, 18 Oct 2022 03:43:35 GMT",
86+
"Content-Type",
87+
"application/json; charset=utf-8",
88+
"Content-Length",
89+
"1595",
90+
"Connection",
91+
"close",
92+
"Cache-Control",
93+
"no-store, no-cache",
94+
"Content-Security-Policy",
95+
"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests",
96+
"X-DNS-Prefetch-Control",
97+
"off",
98+
"Expect-CT",
99+
"max-age=0",
100+
"Strict-Transport-Security",
101+
"max-age=15552000; includeSubDomains",
102+
"X-Download-Options",
103+
"noopen",
104+
"X-Content-Type-Options",
105+
"nosniff",
106+
"X-Permitted-Cross-Domain-Policies",
107+
"none",
108+
"Referrer-Policy",
109+
"no-referrer",
110+
"X-XSS-Protection",
111+
"0",
112+
"Access-Control-Allow-Origin",
113+
"*",
114+
"X-Rate-Limit-Limit",
115+
"75",
116+
"X-Rate-Limit-Remaining",
117+
"64",
118+
"X-Rate-Limit-Reset",
119+
"1666064616",
120+
"Vary",
121+
"Origin",
122+
"ETag",
123+
"W/\"63b-m8s2b6tfz57gjfQs3yJTPwhbEf8\""
124+
],
125+
"responseIsBinary": false
126+
},
127+
{
128+
"scope": "https://api.railz.io:443",
129+
"method": "POST",
130+
"path": "/v1/recipients/R-2kaPsv85SAHkdFfCHMP8wa/accounts",
131+
"body": {
132+
"type": "bank-transfer",
133+
"currency": "EUR",
134+
"iban": "DE89 3704 0044 0532 0130 00",
135+
"recipient": {
136+
"id": "R-2kaPsv85SAHkdFfCHMP8wa"
137+
}
138+
},
139+
"status": 200,
140+
"response": {
141+
"ok": true,
142+
"account": {
143+
"status": "primary",
144+
"type": "bank-transfer",
145+
"primary": true,
146+
"currency": "EUR",
147+
"id": "A-KzFNYA8r7J1Ny95rPvkyQb",
148+
"recipientId": "R-2kaPsv85SAHkdFfCHMP8wa",
149+
"recipientAccountId": "A-KzFNYA8r7J1Ny95rPvkyQb",
150+
"disabledAt": null,
151+
"country": "DE",
152+
"iban": "********************00",
153+
"accountNum": "",
154+
"bankAccountType": null,
155+
"accountHolderName": "Tom Jones",
156+
"swiftBic": "COBADEFFXXX",
157+
"branchId": "",
158+
"bankId": "",
159+
"bankName": "Commerzbank AG",
160+
"bankAddress": "Unter Sachsenhausen 21-27",
161+
"bankCity": "Cologne",
162+
"bankRegionCode": "Nordrhein-Westfalen",
163+
"bankPostalCode": "50667",
164+
"routeType": "sepa",
165+
"recipientFees": "1"
166+
}
167+
},
168+
"rawHeaders": [
169+
"Date",
170+
"Tue, 18 Oct 2022 03:43:36 GMT",
171+
"Content-Type",
172+
"application/json; charset=utf-8",
173+
"Content-Length",
174+
"749",
175+
"Connection",
176+
"close",
177+
"Cache-Control",
178+
"no-store, no-cache",
179+
"Content-Security-Policy",
180+
"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests",
181+
"X-DNS-Prefetch-Control",
182+
"off",
183+
"Expect-CT",
184+
"max-age=0",
185+
"Strict-Transport-Security",
186+
"max-age=15552000; includeSubDomains",
187+
"X-Download-Options",
188+
"noopen",
189+
"X-Content-Type-Options",
190+
"nosniff",
191+
"X-Permitted-Cross-Domain-Policies",
192+
"none",
193+
"Referrer-Policy",
194+
"no-referrer",
195+
"X-XSS-Protection",
196+
"0",
197+
"Access-Control-Allow-Origin",
198+
"*",
199+
"X-Rate-Limit-Limit",
200+
"75",
201+
"X-Rate-Limit-Remaining",
202+
"64",
203+
"X-Rate-Limit-Reset",
204+
"1666064616",
205+
"Vary",
206+
"Origin",
207+
"ETag",
208+
"W/\"2ed-gFU+Klk0OfKZIuqR3YjYCjCO6ZI\""
209+
],
210+
"responseIsBinary": false
211+
},
212+
{
213+
"scope": "https://api.railz.io:443",
214+
"method": "PATCH",
215+
"path": "/v1/recipients/R-2kaPsv85SAHkdFfCHMP8wa/accounts/A-KzFNYA8r7J1Ny95rPvkyQb",
216+
"body": {
217+
"iban": "DE91 1000 0000 0123 4567 89"
218+
},
219+
"status": 200,
220+
"response": {
221+
"ok": true,
222+
"account": {
223+
"status": "primary",
224+
"type": "bank-transfer",
225+
"primary": true,
226+
"currency": "EUR",
227+
"id": "A-46VTaZdyu3GYQkX7NQmdcZ",
228+
"recipientId": "R-2kaPsv85SAHkdFfCHMP8wa",
229+
"recipientAccountId": "A-46VTaZdyu3GYQkX7NQmdcZ",
230+
"disabledAt": null,
231+
"country": "DE",
232+
"iban": "********************89",
233+
"accountNum": "",
234+
"bankAccountType": null,
235+
"accountHolderName": "Tom Jones",
236+
"swiftBic": "MARKDEF1100",
237+
"branchId": "",
238+
"bankId": "",
239+
"bankName": "Deutsche Bundesbank",
240+
"bankAddress": "Leibnizstrasse 10",
241+
"bankCity": "Berlin",
242+
"bankRegionCode": "Berlin",
243+
"bankPostalCode": "10625",
244+
"routeType": "sepa",
245+
"recipientFees": "1"
246+
}
247+
},
248+
"rawHeaders": [
249+
"Date",
250+
"Tue, 18 Oct 2022 03:43:37 GMT",
251+
"Content-Type",
252+
"application/json; charset=utf-8",
253+
"Content-Length",
254+
"732",
255+
"Connection",
256+
"close",
257+
"Cache-Control",
258+
"no-store, no-cache",
259+
"Content-Security-Policy",
260+
"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests",
261+
"X-DNS-Prefetch-Control",
262+
"off",
263+
"Expect-CT",
264+
"max-age=0",
265+
"Strict-Transport-Security",
266+
"max-age=15552000; includeSubDomains",
267+
"X-Download-Options",
268+
"noopen",
269+
"X-Content-Type-Options",
270+
"nosniff",
271+
"X-Permitted-Cross-Domain-Policies",
272+
"none",
273+
"Referrer-Policy",
274+
"no-referrer",
275+
"X-XSS-Protection",
276+
"0",
277+
"Access-Control-Allow-Origin",
278+
"*",
279+
"X-Rate-Limit-Limit",
280+
"75",
281+
"X-Rate-Limit-Remaining",
282+
"64",
283+
"X-Rate-Limit-Reset",
284+
"1666064637",
285+
"Vary",
286+
"Origin",
287+
"ETag",
288+
"W/\"2dc-aavyKU47nS5E6T7T2LETOO0es3c\""
289+
],
290+
"responseIsBinary": false
291+
},
292+
{
293+
"scope": "https://api.railz.io:443",
294+
"method": "GET",
295+
"path": "/v1/recipients/R-2kaPsv85SAHkdFfCHMP8wa/accounts",
296+
"body": "",
297+
"status": 200,
298+
"response": {
299+
"ok": true,
300+
"accounts": [
301+
{
302+
"status": "primary",
303+
"type": "bank-transfer",
304+
"primary": true,
305+
"currency": "EUR",
306+
"id": "A-46VTaZdyu3GYQkX7NQmdcZ",
307+
"recipientId": "R-2kaPsv85SAHkdFfCHMP8wa",
308+
"recipientAccountId": "A-46VTaZdyu3GYQkX7NQmdcZ",
309+
"disabledAt": null,
310+
"country": "DE",
311+
"iban": "********************89",
312+
"accountNum": "",
313+
"bankAccountType": null,
314+
"accountHolderName": "Tom Jones",
315+
"swiftBic": "MARKDEF1100",
316+
"branchId": "",
317+
"bankId": "",
318+
"bankName": "Deutsche Bundesbank",
319+
"bankAddress": "Leibnizstrasse 10",
320+
"bankCity": "Berlin",
321+
"bankRegionCode": "Berlin",
322+
"bankPostalCode": "10625",
323+
"routeType": "sepa",
324+
"recipientFees": "1"
325+
}
326+
]
327+
},
328+
"rawHeaders": [
329+
"Date",
330+
"Tue, 18 Oct 2022 03:43:37 GMT",
331+
"Content-Type",
332+
"application/json; charset=utf-8",
333+
"Content-Length",
334+
"791",
335+
"Connection",
336+
"close",
337+
"Cache-Control",
338+
"no-store, no-cache",
339+
"Content-Security-Policy",
340+
"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests",
341+
"X-DNS-Prefetch-Control",
342+
"off",
343+
"Expect-CT",
344+
"max-age=0",
345+
"Strict-Transport-Security",
346+
"max-age=15552000; includeSubDomains",
347+
"X-Download-Options",
348+
"noopen",
349+
"X-Content-Type-Options",
350+
"nosniff",
351+
"X-Permitted-Cross-Domain-Policies",
352+
"none",
353+
"Referrer-Policy",
354+
"no-referrer",
355+
"X-XSS-Protection",
356+
"0",
357+
"Access-Control-Allow-Origin",
358+
"*",
359+
"X-Rate-Limit-Limit",
360+
"75",
361+
"X-Rate-Limit-Remaining",
362+
"63",
363+
"X-Rate-Limit-Reset",
364+
"1666064637",
365+
"Vary",
366+
"Origin",
367+
"ETag",
368+
"W/\"317-Hj+LSK77vhr7mzvLqyGdesAubRI\""
369+
],
370+
"responseIsBinary": false
371+
}
372+
]

0 commit comments

Comments
 (0)