This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathswagger.yaml
More file actions
8874 lines (8873 loc) · 324 KB
/
swagger.yaml
File metadata and controls
8874 lines (8873 loc) · 324 KB
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: Assembly API
description: Assembly (formely PromisePay) is a powerful payments engine custom-built for platforms and marketplaces.
version: '2.0'
contact:
email: support@assemblypayments.com
url: 'http://docs.assemblypayments.com/'
servers:
- url: 'https://test.api.promisepay.com'
description: Pre-live environment
- url: 'https://secure.api.promisepay.com'
description: Production environment
- url: 'https://au-0000.sandbox.auth.assemblypay.com'
description: Pre-Live (Sandbox) Auth issuing server and API
- url : 'https://au-0000.auth.assemblypay.com'
description: Production Auth issuing server and API
# Added by API Auto Mocking Plugin
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/AssemblyPlatforms/assembly-api/2.0
x-explorer-enabled: false
x-samples-languages:
- curl
- ruby
- php
- javascript
- csharp
- go
paths:
'/tokens':
post:
tags:
- Authentication
summary: Token
description: Exchange client application credentials for a bearer token. Please ensure to call the auth issuing server as described at https://developer.assemblypayments.com/reference#authentication
operationId: token
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/tokens_request_body'
responses:
'200':
description: >-
Response body contains an access token with lifetime in seconds and usage information.
content:
application/json:
schema:
$ref: '#/components/schemas/tokens_response'
examples:
response:
value:
access_token: ey...J9.ey...n0.Iu...7g
expires_in: 3600
token_type: Bearer
'400':
description: Request not parseable, grant type invalid or properties missing
content:
application/json:
schema:
$ref: '#/components/schemas/error'
examples:
response:
value:
error: bad request
'401':
description: We can't resolve the supplied credentials
content:
application/json:
schema:
$ref: '#/components/schemas/error'
examples:
response:
value:
error: invalid credentials
'422':
description: One or more property values are unprocessable
content:
application/json:
schema:
$ref: '#/components/schemas/error'
examples:
response:
value:
error: invalid client details
'500':
description: We have a problem, which we have logged. Please try again later and if it still doesn't work, contact us.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
examples:
response:
value:
error: something went wrong
'/addresses/{id}':
get:
tags:
- Addresses
summary: Show Address
description: 'Show details of a specific Address using a given address `:id`.'
operationId: showAddress
parameters:
- name: id
in: path
description: Address ID
required: true
style: simple
explode: false
schema:
type: string
default: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
example: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/address'
examples:
response:
value:
addresses:
addressline1: 100 Main Street
addressline2: office building no 3
postcode: 2000
city: Sydney
state: NSW
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
country: Australia
links:
self: /addresses/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
'/bank_accounts/{id}':
get:
tags:
- Bank Accounts
summary: Show Bank Account
description: 'Show details of a specific **Bank Account** using a given `:id`.'
operationId: showBankAccount
parameters:
- name: id
in: path
description: Bank account ID
required: true
style: simple
explode: false
schema:
type: string
default: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
example: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/bank_account'
examples:
response:
value:
bank_accounts:
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
active: true
created_at: '2020-04-27T20:28:22.378Z'
updated_at: '2020-04-27T20:28:22.378Z'
verification_status: not_verified
currency: AUD
bank:
bank_name: Bank of Australia
country: AUS
account_name: Samuel Seller
routing_number: XXXXX3
account_number: XXX234
holder_type: personal
account_type: checking
direct_debit_authority_status: approved
links:
self: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
users: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/users
direct_debit_authorities: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/direct_debit_authorities
delete:
tags:
- Bank Accounts
summary: Redact Bank Account
description: |
Redact a **Bank Account** using a given `:id`. Redacted **Bank Accounts** can no longer be used as a funding source or a Disbursement destination.
operationId: redactBankAccount
parameters:
- name: id
in: path
description: Bank account ID
required: true
style: simple
explode: false
schema:
type: string
default: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
example: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/bank_account_deletion'
examples:
response:
value:
bank_account: Successfully redacted
'/bank_accounts/{id}/penny_send':
patch:
tags:
- Bank Accounts
summary: Send Penny Amount
description: |
When penny verification is enabled, this API call sends two penny transactions to the specified bank account for verification. **Note**: This API call is not required when your platform has automatic penny verification enabled, as this is instead done by the system. Penny credit verification is only supported for US platforms.
operationId: sendPennyAmount
parameters:
- name: id
in: path
description: Bank account ID
required: true
style: simple
explode: false
schema:
type: string
default: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
example: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/bank_account'
examples:
response:
value:
bank_accounts:
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
active: true
created_at: '2020-04-27T20:28:22.378Z'
updated_at: '2020-04-27T20:28:22.378Z'
verification_status: verifying
currency: AUD
bank:
bank_name: Bank of Australia
country: AUS
account_name: Samuel Seller
routing_number: XXXXX3
account_number: XXX234
holder_type: personal
account_type: checking
direct_debit_authority_status: approved
links:
self: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
users: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/users
direct_debit_authorities: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/direct_debit_authorities
/bank_accounts:
post:
tags:
- Bank Accounts
summary: Create Bank Account
description: |
Create a **Bank Account** to be used as either a funding source or a Disbursement destination. Store the returned `:id` and use it for a `make_payment` **Item Action** call. The `:id` is also referred to as a `token` when involving **Bank Accounts**.
operationId: createBankAccount
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/bank_account_requestBody'
responses:
'201':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/bank_account'
examples:
response:
value:
bank_accounts:
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
active: true
verification_status: not_verified
currency: AUD
bank:
bank_name: Bank of Australia
country: AUS
account_name: Samuel Seller
routing_number: XXXXX3
account_number: XXX234
holder_type: personal
account_type: checking
direct_debit_authority_status: approved
links:
self: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
users: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/users
direct_debit_authorities: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/direct_debit_authorities
'/bank_accounts/{id}/penny_verify':
patch:
tags:
- Bank Accounts
summary: Verify Penny Amount
description: |
When penny verification is enabled, this API call verifies the two penny transactions that were sent to a specified bank account using **Send Penny Amount**. **Note**: This API call requires you to provide a front-end interface to your end-users into which they can input the penny amounts required for a successful verification. Your front-end interface should then pass the information into this API call. Penny credit verification is only supported for US platforms.
operationId: verifyPennyAmount
parameters:
- name: id
in: path
description: Bank account ID
required: true
style: simple
explode: false
schema:
type: string
default: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
example: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/penny_verify_requestBody'
responses:
'200':
description: OK
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/bank_account'
examples:
response:
value:
bank_accounts:
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
active: true
verification_status: verified
currency: AUD
bank:
bank_name: Bank of Australia
country: AUS
account_name: Samuel Seller
routing_number: XXXXX3
account_number: XXX234
holder_type: personal
account_type: checking
direct_debit_authority_status: approved
links:
self: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
users: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/users
direct_debit_authorities: /bank_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/direct_debit_authorities
'/bank_accounts/{id}/users':
get:
tags:
- Bank Accounts
summary: Show Bank Account User
description: 'Show the **User** the **Bank Account** is associated with using a given `:id`.'
operationId: showBankAccountUser
parameters:
- name: id
in: path
description: Bank account ID
required: true
style: simple
explode: false
schema:
type: string
default: 901d8cd0-6af3-0138-967d-0a58a9feac04
example: '901d8cd0-6af3-0138-967d-0a58a9feac04'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/single_user'
examples:
response:
value:
users:
created_at: '2020-04-03T07:59:00.379Z'
updated_at: '2020-04-03T07:59:00.379Z'
id: Seller_1234
full_name: Samuel Seller
email: sam@example.com
mobile: 69543131
phone: null
logo_url: null
color_1: null
color_2: null
first_name: Samuel
last_name: Seller
custom_descriptor: Sam Garden Jobs
location: AUS
verification_state: pending
held_state: false
roles:
- customer
dob: encrypted
government_number: encrypted
drivers_license: null
flags: {}
related:
addresses: '11111111-2222-3333-4444-55555555555,'
links:
self: /bank_accounts/901d8cd0-6af3-0138-967d-0a58a9feac04/users
items: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/items
card_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/card_accounts
paypal_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/paypal_accounts
payid_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/payid_accounts
bank_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/bank_accounts
wallet_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/wallet_accounts
/tools/routing_number:
get:
tags:
- Bank Accounts
summary: Validate Routing Number
description: 'Validate a US bank routing number before creating an account. This can be used to provide on-demand verification, and further information of the bank information a User is providing.'
operationId: validateRoutingNumber
parameters:
- name: routing_number
in: query
description: Bank account routing number
required: true
style: form
explode: true
schema:
type: string
default: '122235821'
example: '122235821'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/single_routing_number'
examples:
response:
value:
routing_number:
routing_number: '122235821'
customer_name: US BANK NA
address: EP-MN-WN1A
city: ST. PAUL
state_code: MN
zip: '55107'
zip_extension: '1419'
phone_area_code: '800'
phone_prefix: '937'
phone_suffix: '631'
"/bpay_accounts/{id}":
get:
tags:
- BPay Accounts
summary: Show BPay Account
description: "Show details of a specific **BPay Account** using a given `:id`."
operationId: showBPayAccount
parameters:
- name: id
in: path
description: BPay account ID
required: true
style: simple
explode: false
schema:
type: string
default: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
example: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/bpay_account"
examples:
response:
value:
bpay_accounts:
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
active: true
created_at: "2020-04-03T07:59:00.379Z"
updated_at: "2020-04-03T07:59:00.379Z"
verification_status: not_verified
currency: AUD
bpay_details:
account_name: My Water Bill Company
biller_code: 123456
biller_name: "ABC Water"
crn: 987654321
links:
self: "/bpay_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
users: "/bpay_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/users"
delete:
tags:
- BPay Accounts
summary: Redact BPay Account (Future Feature)
description: >
Redact a **BPay Account** using a given `:id`. Redacted **BPay
Accounts** can no longer be used as a Disbursement
destination.
operationId: redactBPayAccount
parameters:
- name: id
in: path
description: BPay account ID
required: true
style: simple
explode: false
schema:
type: string
default: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
example: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/bpay_account_deletion"
examples:
response:
value:
bpay_account: Successfully redacted
/bpay_accounts:
post:
tags:
- BPay Accounts
summary: Create BPay Account
description: >
Create a **BPay Account** to be used as a Disbursement destination.
operationId: createBPayAccount
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/bpay_account_requestBody'
responses:
"201":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/bpay_account"
examples:
response:
value:
bpay_accounts:
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
created_at: "2020-04-03T07:59:00.379Z"
updated_at: "2020-04-03T07:59:00.379Z"
active: true
verification_status: not_verified
currency: AUD
bpay_details:
account_name: My Water Bill Company
biller_code: 123456
biller_name: "ABC Water"
crn: 987654321
links:
self: "/bpay_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
users: "/bpay_accounts/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/users"
"/bpay_accounts/{id}/users":
get:
tags:
- BPay Accounts
summary: Show BPay Account User
description: >-
Show the **User** the **BPay Account** is associated with using a given
`:id`.
operationId: showBPayAccountUser
parameters:
- name: id
in: path
description: BPay account ID
required: true
style: simple
explode: false
schema:
type: string
default: "901d8cd0-6af3-0138-967d-0a58a9feac04"
example: "901d8cd0-6af3-0138-967d-0a58a9feac04"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/single_user"
examples:
response:
value:
users:
created_at: "2020-04-03T07:59:00.379Z"
updated_at: "2020-04-03T07:59:00.379Z"
id: Seller_1234
full_name: Samuel Seller
email: sam@example.com
mobile: 69543131
phone: null
logo_url: null
color_1: null
color_2: null
first_name: Samuel
last_name: Seller
custom_descriptor: Sam Garden Jobs
location: AUS
verification_state: pending
held_state: false
roles:
- customer
dob: encrypted
government_number: encrypted
drivers_license: null
flags: {}
related:
addresses: "11111111-2222-3333-4444-55555555555,"
links:
self: /bpay_accounts/901d8cd0-6af3-0138-967d-0a58a9feac04/users
items: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/items
card_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/card_accounts
paypal_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/paypal_accounts
payid_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/payid_accounts
bpay_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/bpay_accounts
wallet_accounts: /users/e6bc0480-57ae-0138-c46e-0a58a9feac03/wallet_accounts
"/wallet_accounts/{id}/bill_payment":
post:
tags:
- Wallet Accounts
summary: Pay a Bill
description: Pay a bill by withdrawing funds from a **Wallet Account** to a specified bpay account.
operationId: billPayment
parameters:
- name: id
in: path
description: Account ID
required: true
schema:
type: string
default: "901d8cd0-6af3-0138-967d-0a58a9feac04"
example: '8a31ebfa-421b-4cbb-9241-632f71b3778a'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/bill_payment_requestBody'
responses:
'201':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/single_disbursement'
examples:
response:
value:
disbursements:
id: 8a31ebfa-421b-4cbb-9241-632f71b3778a
amount: 173
currency: AUD
batch_id: null
cuscal_payment_transaction_id: null
created_at: '2020-05-09T07:09:03.383Z'
updated_at: '2020-05-09T07:09:04.585Z'
state: pending
to: BPay Account
account_name: My Water Company
biller_name: ABC Water
biller_code: 123456
crn: 0987654321
links:
transactions: /disbursements/8a31ebfa-421b-4cbb-9241-632f71b3778a/transactions
wallet_accounts: /disbursements/8a31ebfa-421b-4cbb-9241-632f71b3778a/wallet_accounts
bank_accounts: /disbursements/8a31ebfa-421b-4cbb-9241-632f71b3778a/bank_accounts
bpay_accounts: /disbursements/8a31ebfa-421b-4cbb-9241-632f71b3778a/bpay_accounts
paypal_accounts: /disbursements/8a31ebfa-421b-4cbb-9241-632f71b3778a/paypal_accounts
items: /disbursements/8a31ebfa-421b-4cbb-9241-632f71b3778a/items
users: /disbursements/8a31ebfa-421b-4cbb-9241-632f71b3778a/users
'/users/{id}/bpay_accounts':
get:
tags:
- Users
summary: List User's BPay Accounts
description: >-
List the **BPay Accounts** the **User** is associated with using a given
`:id`.
operationId: listUserBPayAccounts
parameters:
- name: id
in: path
description: User ID
required: true
style: simple
explode: false
schema:
type: string
default: '901d8cd0-6af3-0138-967d-0a58a9feac04'
example: '901d8cd0-6af3-0138-967d-0a58a9feac04'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/list_bpay_accounts'
examples:
response:
value:
bpay_accounts:
- id: b0980390-ac5b-0138-8b2e-0a58a9feac03
active: true
created_at: 2020-07-20T02:07:33.583Z
updated_at: 2020-07-20T02:07:33.583Z
bpay_details:
biller_name: APIBCD AV4
account_name: Test Biller
biller_code: "93815"
crn: "613295205"
currency: AUD
verification_status: verified
links:
self: /bpay_accounts/b0980390-ac5b-0138-8b2e-0a58a9feac03
users: /bpay_accounts/b0980390-ac5b-0138-8b2e-0a58a9feac03/users
meta:
limit: 10
offset: 0
total: 1
links:
self: /users/901d8cd0-6af3-0138-967d-0a58a9feac04/bpay_accounts
'/callbacks/{id}':
get:
tags:
- Callbacks
summary: Show Callback
description: 'Show details of a specific **Callback** using a given `:id`.'
operationId: showCallback
parameters:
- name: id
in: path
description: Callback ID
required: true
style: simple
explode: false
schema:
type: string
default: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
example: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/single_callback'
examples:
response:
value:
callbacks:
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
description": Users Callback
url: 'https://httpbin.org/post'
object_type: users
enabled: true
authorization_token: null
created_at: '2019-03-29T06:12:57.686Z'
updated_at: '2019-03-29T06:12:57.686Z'
marketplace_id: 8a840e7b-20e2-4a05-86b9-60b62bc6c21c
links:
self: /callbacks/088e4cf1-2508-4bd4-97ab-a78e4e869970
responses: /callbacks/088e4cf1-2508-4bd4-97ab-a78e4e869970/responses
delete:
tags:
- Callbacks
summary: Delete Callback
description: 'Delete an existing Callback using a given `:id`.'
operationId: deleteCallback
parameters:
- name: id
in: path
description: Callback ID
required: true
style: simple
explode: false
schema:
type: string
default: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
example: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/callback_deletion'
examples:
response:
value:
callbacks: Successfully redacted
patch:
tags:
- Callbacks
summary: Update Callback
description: |
Update an existing **Callback** using a given `:id`. You can change the `URL`, the `object_type` and whether the **Callback** is `enabled` or `disabled`.
operationId: updateCallback
parameters:
- name: id
in: path
description: Callback ID
required: true
style: simple
explode: false
schema:
type: string
default: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
example: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/callback_requestBody'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/single_callback'
examples:
response:
value:
callbacks:
id: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
description": Users Callback
url: 'https://httpbin.org/post'
object_type: users
enabled: true
authorization_token: null
created_at: '2019-03-29T06:12:57.686Z'
updated_at: '2019-03-29T06:12:57.686Z'
links:
self: /callbacks/088e4cf1-2508-4bd4-97ab-a78e4e869970
responses: /callbacks/088e4cf1-2508-4bd4-97ab-a78e4e869970/responses
'/callbacks/{id}/responses':
get:
tags:
- Callbacks
summary: List Callback Responses
description: 'Retrieve an ordered and paginated list of the responses garnered from a callback using a given `:id`.'
operationId: listCallbackResponse
parameters:
- $ref: '#/components/parameters/limitParam'
- $ref: '#/components/parameters/offsetParam'
- name: id
in: path
description: Callback ID
required: true
style: simple
explode: false
schema:
type: string
default: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
example: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/list_callback_responses'
examples:
response:
value:
callback_responses:
- id: f96ca75b-4a37-4e37-a7e9-c121a0fd1142
created_at: '2019-04-01T01:55:30.345Z'
url: 'https://httpbin.org/post'
payload:
disbursements:
id: 42f2ca8f-deca-4d41-9982-26376a2d60ce
reference_id: null
amount: 841698
currency: AUD
batch_id: 111
cuscal_payment_transaction_id: null
created_at: '2019-03-29T06:14:43.991Z'
updated_at: '2019-04-01T01:54:58.752Z'
state: batched
to: Bank Account
bank_name: Test Bank Assembly
bank_account_name: Assembly seller36550573
bank_account_number: XXX229
bank_routing_number: XXXXX9
npp_payout_state: trying
links:
transactions: /disbursements/42f2ca8f-deca-4d41-9982-26376a2d60ce/transactions
wallet_accounts: /disbursements/42f2ca8f-deca-4d41-9982-26376a2d60ce/wallet_accounts
bank_accounts: /disbursements/42f2ca8f-deca-4d41-9982-26376a2d60ce/bank_accounts
paypal_accounts: /disbursements/42f2ca8f-deca-4d41-9982-26376a2d60ce/paypal_accounts
items: /disbursements/42f2ca8f-deca-4d41-9982-26376a2d60ce/items
users: /disbursements/42f2ca8f-deca-4d41-9982-26376a2d60ce/users
response:
error: OK
response_code: 200
- id: 0c9cbb28-0b98-4560-9c81-7a4ea6cde95b
created_at: '2019-04-01T01:55:25.276Z'
url: 'https://httpbin.org/post'
payload:
disbursements:
id: d98133ca-9a2e-4322-9610-62b2faf78476
amount: 577954
currency: AUD
batch_id: 111
cuscal_payment_transaction_id: null
created_at: '2019-03-29T06:14:07.045Z'
updated_at: '2019-04-01T01:54:58.448Z'
state: batched
to: Bank Account
bank_name: Test Bank Assembly
bank_account_name: Assembly seller36550536
bank_account_number: XXX229
bank_routing_number: XXXXX3
npp_payout_state: trying
links:
transactions: /disbursements/d98133ca-9a2e-4322-9610-62b2faf78476/transactions
wallet_accounts: /disbursements/d98133ca-9a2e-4322-9610-62b2faf78476/wallet_accounts
bank_accounts: /disbursements/d98133ca-9a2e-4322-9610-62b2faf78476/bank_accounts
paypal_accounts: /disbursements/d98133ca-9a2e-4322-9610-62b2faf78476/paypal_accounts
items: /disbursements/d98133ca-9a2e-4322-9610-62b2faf78476/items
users: /disbursements/d98133ca-9a2e-4322-9610-62b2faf78476/users
response:
error: OK
response_code: 200
meta:
limit: 2
offset: 0
total: 10
links:
self: /callbacks/088e4cf1-2508-4bd4-97ab-a78e4e869970/responses?limit=2
callbacks: /callbacks
'/callbacks/{callback_id}/responses/{id}':
get:
tags:
- Callbacks
summary: Show Callback Response
description: 'Show details of a specific **Callback** response using a given `:id`.'
operationId: showCallbackResponse
parameters:
- name: callback_id
in: path
description: Callback ID
required: true
style: simple
explode: false
schema:
type: string
default: '088e4cf1-2508-4bd4-97ab-a78e4e869970'
example: '088e4cf1-2508-4bd4-97ab-a78e4e869970'
- name: id
in: path
description: Callback response ID
required: true
style: simple
explode: false
schema:
type: string
default: '0c9cbb28-0b98-4560-9c81-7a4ea6cde95b'
example: '0c9cbb28-0b98-4560-9c81-7a4ea6cde95b'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/single_callback_response'
examples:
response:
value:
callback_responses:
id: 0c9cbb28-0b98-4560-9c81-7a4ea6cde95b
created_at: '2019-04-01T01:55:25.276Z'
url: 'https://httpbin.org/post'
payload:
disbursements:
id: d98133ca-9a2e-4322-9610-62b2faf78476
reference_id: null
amount: 577954
currency: AUD
batch_id: 111
cuscal_payment_transaction_id: null
created_at: '2019-03-29T06:14:07.045Z'