-
Notifications
You must be signed in to change notification settings - Fork 0
/
rapyd-openapi.yaml
14286 lines (14286 loc) · 509 KB
/
rapyd-openapi.yaml
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: Rapyd API
description: "This is a Beta release of the OpenAPI specification for Rapyd's API\
\ methods. It is recommended to initially run the methods in the sandbox environment.\
\ For the most uptodate documentation of Rapyd's methods, see the [online API\
\ Reference](https://docs.rapyd.net/en/index-en.html)."
contact:
email: rapyd_support@rapyd.com
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.9
servers:
- url: https://sandboxapi.rapyd.net/
description: Sandbox server
- url: https://api.rapyd.net/
description: Production server
paths:
/v1/account/transfer:
post:
tags:
- eWallets
summary: Transfer Funds Between Wallets
description: Transfer funds between Rapyd Wallets.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/transfer-funds-between-wallets.html
operationId: fundsTransfer
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/account_transfer_body'
required: true
responses:
"200":
description: Transaction properties
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200'
/v1/account/transfer/response:
post:
tags:
- eWallets
summary: Set Transfer Response
description: Respond to a funds transfer between wallets. The transferee uses
this method to accept or decline the transfer.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/set-transfer-response.html
operationId: setFundsTransferResponse
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/transfer_response_body'
required: true
responses:
"200":
description: Transaction properties
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200'
/v1/ewallets/{ewalletId}/contacts:
get:
tags:
- eWallets
summary: List Contacts for a Rapyd Wallet
description: Retrieve all contacts for a wallet.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/list-contacts-for-a-rapyd-wallet.html
operationId: getEwalletContacts
parameters:
- name: ewalletId
in: path
description: ID of the Rapyd Wallet that this contact is associated with.
String starting with **ewallet_**.
required: true
style: simple
explode: false
schema:
type: string
example: ewallet_16feaaa27c852f30214dd7b3b359e88c
responses:
"200":
description: "List Contacts for a Rapyd Wallet,"
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_1'
"400":
description: Bad Request. Customer was not found for given ID
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_400'
post:
tags:
- eWallets
summary: Add Contact to Wallet
description: Add a personal contact to a company wallet or client wallet.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/add-contact-to-wallet.html
operationId: createEwalletContact
parameters:
- name: ewalletId
in: path
description: ID of the Rapyd Wallet that this contact is associated with.
String starting with **ewallet_**.
required: true
style: simple
explode: false
schema:
type: string
example: ewallet_16feaaa27c852f30214dd7b3b359e88c
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ewalletId_contacts_body'
required: true
responses:
"200":
description: "List Contacts for a Rapyd Wallet,"
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_2'
"400":
description: Bad Request. Customer was not found for given ID
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_400_1'
/v1/ewallets/{ewalletId}/contacts/{contactId}:
get:
tags:
- eWallets
summary: Retrieve Wallet Contact.
description: Retrieve a contact for an existing Rapyd Wallet.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/retrieve-wallet-contact.html
operationId: getEwalletContact
parameters:
- name: ewalletId
in: path
description: ID of the Rapyd Wallet that this contact is associated with.
String starting with **ewallet_**.
required: true
style: simple
explode: false
schema:
type: string
example: ewallet_16feaaa27c852f30214dd7b3b359e88c
- name: contactId
in: path
description: One of two values. either ID of the contact - String starting
with the prefix **cont_** or Contact reference ID.
required: true
style: simple
explode: false
schema:
type: string
responses:
"200":
description: Retrieve a contact for an existing Rapyd Wallet.
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_2'
"400":
description: Bad Request. Customer was not found for given ID
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_400_2'
post:
tags:
- eWallets
summary: Update Wallet Contact
description: Update a contact for a Rapyd Wallet.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/update-wallet-contact.html#update-wallet-contact
operationId: updateEwalletContact
parameters:
- name: ewalletId
in: path
description: ID of the Rapyd Wallet that this contact is associated with.
String starting with **ewallet_**.
required: true
style: simple
explode: false
schema:
type: string
example: ewallet_16feaaa27c852f30214dd7b3b359e88c
- name: contactId
in: path
description: ID of the contact. String starting with the prefix **cont_**.
required: true
style: simple
explode: false
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Contact'
required: true
responses:
"200":
description: Retrieve a contact for an existing Rapyd Wallet.
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_2'
"400":
description: Bad Request. Customer was not found for given ID
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_400_3'
delete:
tags:
- eWallets
summary: Delete Wallet Contact
description: Delete a personal contact from a company wallet or client wallet.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/delete-wallet-contact.html
operationId: deleteEwalletContact
parameters:
- name: ewalletId
in: path
description: ID of the Rapyd Wallet that this contact is associated with.
String starting with **ewallet_**.
required: true
style: simple
explode: false
schema:
type: string
example: ewallet_16feaaa27c852f30214dd7b3b359e88c
- name: contactId
in: path
description: ID of the contact. String starting with the prefix **cont_**.
required: true
style: simple
explode: false
schema:
type: string
responses:
"200":
description: Retrieve a contact for an existing Rapyd Wallet.
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_3'
"400":
description: Bad Request. Customer was not found for given ID
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_400_4'
/v1/ewallets/{ewalletId}/contacts/{contactId}/compliance_levels:
get:
tags:
- eWallets
summary: Get the compliance status of a personal contact.
description: Verify the compliance status of a personal contact.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/update-wallet-contact.html#update-wallet-contact
operationId: getEwalletContactComplianceLevels
parameters:
- name: ewalletId
in: path
description: ID of the Rapyd Wallet that this contact is associated with.
String starting with **ewallet_**.
required: true
style: simple
explode: false
schema:
type: string
example: ewallet_16feaaa27c852f30214dd7b3b359e88c
- name: contactId
in: path
description: ID of the contact. String starting with **cont_**.
required: true
style: simple
explode: false
schema:
type: string
responses:
"200":
description: Verify the compliance status of a personal contact.
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_4'
"400":
description: Bad Request. Customer was not found for given ID
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_400_5'
/v1/virtual_accounts:
post:
tags:
- Virtual Accounts
summary: Issue Virtual Account Number to Wallet
description: Issue a virtual account number to an existing wallet.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/issue-virtual-account-to-wallet.html
operationId: createVirtualAccount
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/v1_virtual_accounts_body'
required: true
responses:
"200":
description: Virtual Accounts
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_5'
/v1/virtual_accounts/transactions:
post:
tags:
- Virtual Accounts
summary: Simulate a Bank Transfer to a Wallet
description: Simulate a deposit to a virtual account number that was issued
to a wallet. This method is relevant only for testing in the sandbox. The
currency of the transfer must be supported by the specific virtual account.
This method triggers the Deposit Completed webhook.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/simulate-a-bank-transfer-to-a-virtual-account.html
operationId: simulateBankTransferToVirtualAccount
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/virtual_accounts_transactions_body'
required: true
responses:
"200":
description: "List Contacts for a Rapyd Wallet,"
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_6'
/v1/virtual_accounts/{virtualAccountId}:
get:
tags:
- Virtual Accounts
summary: Retrieve Virtual Account History
description: Retrieve a Virtual Account Number object for a wallet.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/retrieve-virtual-account-history.html
operationId: retrieveVirtualAccount
parameters:
- name: virtualAccountId
in: path
description: ID of the Virtual Account Number object. String starting with
issuing_.
required: true
style: simple
explode: false
schema:
type: string
example: issuing_16feaaa27c852f30214dd7b3b359e88c
responses:
"200":
description: Virtual Accounts
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_7'
post:
tags:
- Virtual Accounts
description: Update Receiving Currency
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/update-requested-currency.html
operationId: updateIssuingByRapydToken
parameters:
- name: virtualAccountId
in: path
description: ID of the Virtual Account Number object. String starting with
issuing_.
required: true
style: simple
explode: false
schema:
type: string
example: issuing_16feaaa27c852f30214dd7b3b359e88c
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/virtual_accounts_virtualAccountId_body'
required: true
responses:
"200":
description: "List Contacts for a Rapyd Wallet,"
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_7'
delete:
tags:
- Virtual Accounts
summary: Close VA
description: Delete a virtual account number of an existing wallet. In order
to close a virtual account its status must be ACT.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/retrieve-virtual-account-history.html
operationId: closeIssuing
parameters:
- name: virtualAccountId
in: path
description: ID of the virtual account. String starting with issuing_.
required: true
style: simple
explode: false
schema:
type: string
example: issuing_16feaaa27c852f30214dd7b3b359e88c
responses:
"200":
description: Virtual Account
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_8'
/v1/virtual_accounts/{virtualAccountId}/transactions/{transactionId}:
get:
tags:
- Virtual Accounts
summary: Retrieve Virtual Account Transaction
description: Retrieve a virtual account transaction.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/retrieve-virtual-account-transaction.html
operationId: retrieveVirtualAccountTransaction
parameters:
- name: virtualAccountId
in: path
description: ID of the Virtual Account Number object. String starting with
issuing_.
required: true
style: simple
explode: false
schema:
type: string
example: issuing_16feaaa27c852f30214dd7b3b359e88c
- name: transactionId
in: path
description: "ID of the transaction, as appears in the array of transactions\
\ in the response to 'Retrieve Virtual Account History'."
required: true
style: simple
explode: false
schema:
type: string
example: isutran_59599bcba9ab9c79113f88cade1ed655
responses:
"200":
description: List Contacts for a Rapyd Wallet
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_9'
/v1/payout_methods/{pomt}/required_fields:
get:
tags:
- Disburse
summary: Get Payout Required Fields
description: |-
Retrieve the fields required to use a payout method type. The fields are returned as an array of objects. The name of each field appears in the name field of each object. Use this information for Create Payout, Create Beneficiary and Create Sender.
Note: The fields returned by this method are required when you create a payout. If you create a payout with a sender or beneficiary that was created previously, you are responsible for choosing a sender and beneficiary that have all the fields required by the payout method.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/payout-method-type.html
operationId: getPayoutMethodTypesDetails
parameters:
- name: pomt
in: path
description: The type of the payout method. Set to the name of a payout method
listed in the response to List Payout Method Types. The two-letter prefix
must match the beneficiary country code.
required: true
style: simple
explode: true
schema:
type: string
example: us_visa_card
- name: beneficiary_country
in: query
description: Country of the beneficiary. Two-letter ISO 3166-1 ALPHA-2 code.
Uppercase.
required: true
style: form
explode: true
schema:
type: string
example: US
- name: beneficiary_entity_type
in: query
description: "Type of entity for the beneficiary. One of the following, **individual**\
\ | **company**"
required: true
style: form
explode: true
schema:
type: string
example: company
- name: payout_amount
in: query
description: "Amount of the payout, in units of the currency that the beneficiary\
\ is receiving. Decimal."
required: true
style: form
explode: true
schema:
type: number
- name: payout_currency
in: query
description: Currency received by the beneficiary. Three-letter ISO 4217 code.
Uppercase.
required: true
style: form
explode: true
schema:
type: string
example: USD
- name: sender_country
in: query
description: Country of the sender. Two-letter ISO 3166-1 ALPHA-2 code. Uppercase.
required: true
style: form
explode: true
schema:
type: string
example: US
- name: sender_currency
in: query
description: Currency that the sender is paying with. Three-letter ISO 4217
code. Uppercase.
required: true
style: form
explode: true
schema:
type: string
example: USD
- name: sender_entity_type
in: query
description: "Type of entity for the sender. One of the following: **individual**\
\ | **company**"
required: true
style: form
explode: true
schema:
type: string
example: company
responses:
"200":
description: payout method types details fetched successfuly
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_10'
"500":
description: Internal server error.
/v1/payouts:
get:
tags:
- Disburse
summary: List Payouts
description: Retrieve a list of payouts that you created.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/list-payouts.html
operationId: listPayouts
parameters:
- name: beneficiary
in: query
description: Filters according to the beneficiary ID. String starting with
**beneficiary_**.
required: false
style: form
explode: true
schema:
type: string
example: beneficiary_504f2e8d5618dfaa4a6e73c632f3029b
- name: created_after
in: query
description: The ID of the payout created before the first payout you want
to retrieve. String starting with **payout_**.
required: false
style: form
explode: true
schema:
type: string
example: ""
- name: created_before
in: query
description: The ID of the payout created after the last payout you want to
retrieve. String starting with **payout_**.
required: false
style: form
explode: true
schema:
type: string
example: ""
- name: ending_before
in: query
description: The ID of a payout in the list. The list ends with the payout
that was created before the payout with this ID. Use this filter to get
the previous page of results. String starting with **payout_**. Deprecated.
required: false
style: form
explode: true
schema:
type: string
example: ""
- name: ewallet
in: query
description: Filters according to the wallet ID. String starting with **ewallet_**.
required: false
style: form
explode: true
schema:
type: string
example: ewallet_61be0e6ad9f57121cff47a63902282ac
- name: limit
in: query
description: "The maximum number of payouts to return. Range: 1-100. Default\
\ is 10."
required: false
style: form
explode: true
schema:
type: string
example: "2"
- name: merchant_reference_id
in: query
description: Filters according to the merchant reference ID.
required: false
style: form
explode: true
schema:
type: string
example: ""
- name: payout_method_type
in: query
description: Filters according to the type of payout method. The two-letter
prefix must match the beneficiary country code.
required: false
style: form
explode: true
schema:
type: string
example: ph_cebuana_lhuillier_cash
- name: sender
in: query
description: Filters according to the sender ID. String starting with **sender_**.
required: false
style: form
explode: true
schema:
type: string
example: sender_ba47352b13411b7fc9d6654b953de832
- name: sender_country
in: query
description: Filters according to the country of the sender. Two-letter ISO
3166-1 ALPHA-2 code.
required: false
style: form
explode: true
schema:
$ref: '#/components/schemas/Country'
example: PH
- name: sender_currency
in: query
description: Filters according to the currency that the sender is paying with.
Three-letter ISO 4217 code.
required: false
style: form
explode: true
schema:
$ref: '#/components/schemas/Currency'
example: PHP
- name: starting_after
in: query
description: The ID of a payout in the list. The list begins with the payout
that was created next after the payout with this ID. Use this filter to
get the next page of results. Relevant when ending_before is not used. String
starting **payout_**. Deprecated
required: false
style: form
explode: true
schema:
type: string
example: ""
responses:
"200":
description: Payouts Fetched Successfuly
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_11'
"500":
description: Internal server error
post:
tags:
- Disburse
summary: Create Payout
description: |-
Create a payout (disbursement).
This method triggers the Payout Created webhook. This webhook contains the same information as the response. If the action of a third party is not required, the Payout Completed webhook is also triggered.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/create-payout.html
operationId: createPayout
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/v1_payouts_body'
required: true
responses:
"200":
description: payout created successfuly
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_12'
"500":
description: Internal server error
/v1/payouts/beneficiary:
post:
tags:
- Disburse
summary: Create Beneficiary
description: |-
Create a beneficiary for use in payouts.
The response provides a unique beneficiary ID, which you can use in place of the Beneficiary object for Create Payout.
This method triggers the Beneficiary Created webhook. This webhook contains the same information as the response.
Note: In addition to the required fields documented below, you must include all other beneficiary fields listed in the response to Get Payout Required Fields, and you must conform to the regex provided.
To create a beneficiary that you can use with multiple payout methods, include all fields that are required by each payout method.
The client is responsible for including all required fields.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/create-beneficiary.html#create-beneficiary
operationId: createBeneficiary
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/payouts_beneficiary_body'
required: true
responses:
"200":
description: Beneficiary Created Successfully
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_13'
"500":
description: Internal server error
/v1/payouts/extended_beneficiary:
post:
tags:
- Disburse
summary: Create Extended Beneficiary
description: "Create a beneficiary that includes all compliance related data\
\ for payouts. The response provides a unique beneficiary ID, which you can\
\ use in place of the beneficiary object for Create Payout"
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/create-extended-beneficiary.html
operationId: createExtendedBeneficiary
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/payouts_extended_beneficiary_body'
required: true
responses:
"200":
description: Beneficiary Created Successfully
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_13'
"500":
description: Internal server error
/v1/payouts/beneficiary/validate:
post:
tags:
- Disburse
summary: Validate Beneficiary
description: "Validate the format of the details for a payout beneficiary. You\
\ can validate a beneficiary multiple times for different payout methods.\
\ You can enter a Beneficiary object or a previously created beneficiary ID.\
\ \n Note: In addition to the required fields for Create Beneficiary, the\
\ Beneficiary object must include all required fields for the beneficiary\
\ listed in the response to Get Payout Required Fields. The examples include\
\ additional fields for the 'us_ach_bank' payout method."
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/validate-beneficiary.html#validate-beneficiary
operationId: validateBeneficiary
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/beneficiary_validate_body'
required: true
responses:
"200":
description: Beneficiary validated successfuly
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_14'
"500":
description: Internal server error.
/v1/payouts/beneficiary/{beneficiaryId}:
get:
tags:
- Disburse
summary: Retrieve Beneficiary
description: "Retrieve details of a payout beneficiary. \n Note: The 'Retrieve\
\ Beneficiary - individual' response includes additional fields for the 'ca_general_bank'\
\ payout method. The 'Retrieve Beneficiary - company' response includes additional\
\ fields for the 'us_ach_bank' payout method."
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/delete-beneficiary.html
operationId: getBeneficiary
parameters:
- name: beneficiaryId
in: path
description: ID of the 'beneficiary' object. String starting with **beneficiary_**.
required: true
style: simple
explode: true
schema:
type: string
example: beneficiary_008d839a9d5726ba014c3ccb21c59920
responses:
"200":
description: Beneficiary retrieved successfuly
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_13'
"500":
description: Internal server error.
delete:
tags:
- Disburse
summary: Delete Beneficiary
description: Delete a payout beneficiary from the Rapyd platform.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/delete-beneficiary.html
operationId: deleteBeneficiary
parameters:
- name: beneficiaryId
in: path
description: ID of the 'beneficiary' object. String starting with **beneficiary_**.
required: true
style: simple
explode: true
schema:
type: string
example: beneficiary_008d839a9d5726ba014c3ccb21c59920
responses:
"200":
description: Beneficiary deleted successfuly
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_15'
"500":
description: Internal server error.
/v1/payouts/complete/{payoutToken}/{amount}:
post:
tags:
- Disburse
summary: Complete the Payout
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/complete-payout.html#complete-payout
operationId: simulateCompletePayout
parameters:
- name: payoutToken
in: path
description: ID of the payout. String starting with **payout_**.
required: true
style: simple
explode: true
schema:
type: string
example: payout_548969fc5a0bf89da3cec70a1529338c
- name: amount
in: path
description: "The payout amount. Decimal, including the correct number of\
\ decimal places for the currency exponent, as defined in ISO 2417:2015."
required: true
style: simple
explode: true
schema:
type: string
example: 10
responses:
"200":
description: The `Retrieve Sender - individual` response includes additional
fields for the `ca_general_bank` payout method. The `Retrieve Sender -
company` response includes an additional field for the `us_ach_bank` payout
method.
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_12'
"500":
description: Internal server error.
/v1/payouts/confirm/{payoutToken}:
post:
tags:
- Disburse
summary: Confirm Payout that involves foreign exchange
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/confirm-payout-with-fx.html
operationId: confirmPayout
parameters:
- name: payoutToken
in: path
description: ID of the payout. String starting with **payout_**.
required: true
style: simple
explode: true
schema:
type: string
example: payout_548969fc5a0bf89da3cec70a1529338c
responses:
"200":
description: The `Retrieve Sender - individual` response includes additional
fields for the `ca_general_bank` payout method. The `Retrieve Sender -
company` response includes an additional field for the `us_ach_bank` payout
method.
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_200_12'
"400":
description: Bad Request. Payout not found for given ID
content:
application/json:
schema:
$ref: '#/components/schemas/inline_response_400_6'
"500":
description: Internal server error.
/v1/payouts/sender:
post:
tags:
- Disburse
summary: Create Sender
description: |-
Create a sender for use in payouts.
The response provides a unique sender ID, which you can use in place of the sender object for Create Payout.
Note: In addition to the required fields documented below, you must include all other sender fields listed in the response to Get Payout Required Fields, and you must conform to the regex provided.
To create a sender that you can use with multiple payout methods, include all fields that are required by each payout method.
The client is responsible for including all required fields.
externalDocs:
description: Learn more about details provided by this API
url: https://docs.rapyd.net/en/create-sender.html
operationId: createSender
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/payouts_sender_body'