-
Notifications
You must be signed in to change notification settings - Fork 5
/
openapi.yaml
4757 lines (4668 loc) · 160 KB
/
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.3
info:
title: Reconciliation
description: Documentation for the Reconciliation API endpoints
version: 1.0.0
contact:
name: Peach Payments Support
url: https://support.peachpayments.com/support/home
email: support@peachpayments.com
termsOfService: https://swagger.io/terms/
license:
name: MIT
url: https://mit-license.org
x-konfig-ignore:
potential-incorrect-type: true
servers:
- description: Sandbox environment.
url: https://sandbox-reconciliation.ppay.io
- description: Live environment.
url: https://reconciliation.peachpayments.com
tags:
- name: Batch
- name: Payments API inbound
- name: Checkout generation
- name: Payment
- name: Status
- name: Files
- name: Helpers
- name: Checkout V2 generation
- name: Payments API outbound
- name: Transactions recon
paths:
/checkout/initiate:
post:
tags:
- Checkout generation
summary: Initiate redirect-based Checkout
operationId: CheckoutGeneration_initiateRedirectCheckout
description: >
Provide a redirect URL to the caller to redirect the user into the
Checkout experience. The POST request contains the entityId, signature,
purchase parameters, and any custom parameters that a merchant
optionally sends. This allows the checkout instance to be created from a
backend without requiring a "form post", or other similar method, from
the frontend.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/checkout-payment#redirect-based-checkout).
parameters:
- description: An allowlisted domain for the merchant.
in: header
name: Referer
required: true
schema:
type: string
example: https://mydemostore.com
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Checkout'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Checkout'
responses:
'201':
description: Request processed successfully.
content:
application/json:
schema:
$ref: >-
#/components/schemas/CheckoutGenerationInitiateRedirectCheckoutResponse
'400':
description: Invalid authentication information.
'500':
description: Internal server error.
/checkout:
post:
tags:
- Checkout generation
summary: Initiate Checkout
operationId: CheckoutGeneration_initiatePayment
description: >
Load the Checkout frontend to complete a payment. The POST request
contains the entityId, signature, purchase parameters, and any custom
parameters that a merchant optionally sends.
Sign the data on the backend and execute the POST from the browser.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/checkout-payment#form-post-checkout).
parameters:
- description: An allowlisted domain for the merchant.
in: header
name: Referer
required: true
schema:
type: string
example: https://mydemostore.com
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Checkout'
responses:
'200':
description: Checkout successfully created.
content:
text/html:
schema:
$ref: '#/components/schemas/CheckoutPage'
'400':
description: A validation error has occurred with Checkout.
content:
text/html:
schema:
$ref: '#/components/schemas/CheckoutErrorPage'
'500':
description: Internal server error.
callbacks:
Checkout created:
'{$request.body#/notificationUrl}':
post:
description: Checkout created for request.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CheckoutCreatedWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
Checkout cancelled:
'{$request.body#/notificationUrl}':
post:
description: Checkout cancelled.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CheckoutCancelledWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
Checkout uncertain:
'{$request.body#/notificationUrl}':
post:
description: Checkout potentially cancelled.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CheckoutUncertainWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
Checkout pending:
'{$request.body#/notificationUrl}':
post:
description: Transaction created on the checkout instance.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CheckoutPendingWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
Checkout successful:
'{$request.body#/notificationUrl}':
post:
description: Checkout completed successfully.
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CheckoutSuccessfulWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
/checkout/validate:
post:
tags:
- Checkout generation
summary: Validate Checkout request
operationId: CheckoutGeneration_validateRequest
description: Validate a request before trying to initiate a checkout session.
parameters:
- description: An allowlisted domain for the merchant.
in: header
name: Referer
required: true
schema:
type: string
example: https://mydemostore.com
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Checkout'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Checkout'
responses:
'200':
description: Valid request.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Valid request.
'400':
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutGenerationValidateRequestResponse'
examples:
Invalid body:
description: Body format not supported.
value:
message: Body is not in a valid format.
Missing referer header:
description: Referer header required.
value:
message: Referer header is missing.
Duplicate signature:
description: The same signature has been received in the last 24 hours.
value:
message: Duplicate signature.
Mismatched signature:
description: >-
The received signature does not match the generated
signature.
value:
message: Signatures don't match.
Invalid entity ID:
description: Invalid entity ID.
value:
message: Invalid entity ID.
Merchant domain is not whitelisted:
description: >-
The domain the request was received from is not whitelisted
for the merchant.
value:
message: Merchant domain is not whitelisted.
Validation Error:
description: Validation error with the Checkout body.
value:
validation_errors:
amount: amount is required
'500':
description: Internal server error.
/status:
get:
tags:
- Status
summary: Query Checkout status
operationId: Status_checkoutStatusGet
description: >
Get the status of a checkout instance.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/checkout-payment-status).
parameters:
- description: Merchant's entity ID.
in: query
name: authentication.entityId
schema:
type: string
example: 8ac7a4ca68c22c4d0168c2caab2e0025
maxLength: 64
required: true
- description: Checkout ID.
in: query
name: checkoutId
schema:
type: string
example: 948cc8dec52a11eb85290242ac130003
maxLength: 64
- description: Merchant transaction ID.
in: query
name: merchantTransactionId
schema:
type: string
example: OrderNo453432
maxLength: 64
- description: Signature of data signed with secret key of merchant.
in: query
name: signature
schema:
type: string
example: a668342244a9c77b08a2f9090d033d6e2610b431a5c0ca975f32035ed06164f4
maxLength: 64
required: true
responses:
'200':
description: OK.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutStatus'
'400':
description: Invalid state, check the body for more details.
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutError'
'500':
description: Internal server error.
/merchant_specs:
post:
tags:
- Helpers
summary: Retrieve a list of payment methods for a currency
operationId: Helpers_getPaymentMethods
description: >
Retrieve a list of enabled payment methods for a channel given a
particular currency.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/checkout-merchant-specs).
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/HelpersGetPaymentMethodsRequest'
responses:
'200':
description: Request processed successfully.
'400':
description: Invalid authentication information.
'500':
description: Internal server error.
/v2/checkout:
post:
tags:
- Checkout V2 generation
summary: Initiate Checkout
operationId: CheckoutV2Generation_initiateCheckoutInstance
description: >
Create a checkout instance for use from Embedded Checkout.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/checkout-embedded-tutorial#tutorial).
parameters:
- description: An allowlisted domain for the merchant.
in: header
name: Referer
required: true
schema:
type: string
example: https://mydemostore.com
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CheckoutV2'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/CheckoutV2'
responses:
'200':
description: Checkout successfully created.
content:
application/json:
schema:
$ref: >-
#/components/schemas/CheckoutV2GenerationInitiateCheckoutInstanceResponse
'400':
description: A validation error has occurred with Checkout.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
'401':
description: >-
Request lacks valid authentication, message in response contains
specifics.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
'404':
description: Invalid entity ID passed.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
'500':
description: Internal server error.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
/api/channels/{entityId}/payments:
post:
tags:
- Payment
summary: Generate link
operationId: Payment_generateLink
description: >
Generate a unique payment link for a transaction and optionally send
this link to the recipient via email, SMS, WhatsApp, or a combination of
the three.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/generate-link-1).
parameters:
- description: The entity for the request.
name: entityId
in: path
required: true
schema:
type: string
example: 8ac7a4ca694cec2601694cf5f9360026
style: simple
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateLinkPayment'
responses:
'200':
description: OK.
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateLinkResponse'
'400':
description: Bad request.
content:
application/json:
schema:
$ref: '#/components/schemas/GenerateLinkErrorResponse'
'401':
description: Request lacks valid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Request lacks valid authentication.
callbacks:
Payment link created:
'{$request.body#/options/notificationUrl}':
post:
summary: Payment link created for request.
description: Event raised when a payment link is created.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentLinkCreatedWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
Payment link opened:
'{$request.body#/options/notificationUrl}':
post:
summary: Payment link opened by a user.
description: Event raised when a user opens a payment link.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentLinkOpenedWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
Payment link processing:
'{$request.body#/options/notificationUrl}':
post:
summary: Payment link is processing.
description: Event raised when a user is directed to Checkout to pay.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentLinkProcessingWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
Payment link expired:
'{$request.body#/options/notificationUrl}':
post:
summary: Payment link expired.
description: Event raised when a payment link expires.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentLinkExpiredWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
Payment link completed:
'{$request.body#/options/notificationUrl}':
post:
summary: Payment link completed.
description: Event raised when a payment link is completed.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentLinkCompletedWebhook'
responses:
'200':
description: Return this code if your service accepts the webhook.
/api/payments:
get:
tags:
- Payment
summary: Retrieve or export all payment links
operationId: Payment_getAllPaymentLinks
description: >-
Retrieve a paginated list or export a CSV of all payment links. To
export to CSV, change the request header's `Accept` value to `text/csv`.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/retrieve-all-payment-links),
or to try it out, see our [Postman
collection](https://www.postman.com/peachpayments/workspace/peach-payments-public-workspace/request/13324425-265d80b0-5baa-478b-be10-debc942ca8f3).
parameters:
- description: >-
The unique merchant ID to scope the list to. Required if you're
exporting payment links to CSV.
name: merchant
in: query
required: false
schema:
type: string
example: 9f6ea39b121d11e89d9774d4352a31dz
- description: The offset from which to read data.
name: offset
in: query
required: false
schema:
type: integer
default: 0
- description: The amount of items to retrieve.
name: perPage
in: query
required: false
schema:
type: integer
default: 50
- description: Retrieve all payment links from the start date onwards.
name: filters[startDate]
in: query
required: false
schema:
type: string
format: date-time
example: '2018-03-20T09:12:28Z'
- description: Retrieve all payment links until the end date.
name: filters[endDate]
in: query
required: false
schema:
type: string
format: date-time
example: '2018-03-20T09:12:28Z'
- description: The payment link status to filter on.
name: filters[status]
in: query
required: false
schema:
type: string
enum:
- initiated
- processing
- expired
- cancelled
- completed
example: initiated
- description: The amount to filter by.
name: filters[amountValue]
in: query
required: false
schema:
type: number
example: 100
- description: How to use the amountValue for filtering.
name: filters[amountOperator]
in: query
required: false
schema:
type: string
enum:
- lt
- lte
- gt
- gte
- eq
example: lt
- description: The sending option to filter on.
name: filters[sendingOptions]
in: query
required: false
schema:
type: string
enum:
- sendEmail
- sendSms
- sendWhatsapp
- emailCc
- emailBcc
example: sendEmail
responses:
'200':
description: OK.
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentGetAllPaymentLinksResponse'
text/csv:
schema:
$ref: '#/components/schemas/PaymentGetAllPaymentLinks200Response'
'401':
description: Request lacks valid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Request lacks valid authentication.
/api/payments/{paymentId}:
delete:
tags:
- Payment
summary: Cancel link
operationId: Payment_cancelLink
description: >
Cancel a previously-generated link by supplying the unique paymentId
which is returned to you in the payment response.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/cancel-link).
parameters:
- description: The ID of the payment. Returned when creating a new payment.
name: paymentId
in: path
required: true
schema:
type: string
style: simple
example: b95d6888-591b-4538-b508-6102cf1259c9
responses:
'200':
description: OK.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: >-
Payment 12cc649f-70e9-4c50-8682-28eb94634ea6 has been
successfully cancelled.
'401':
description: Request lacks valid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Request lacks valid authentication.
'404':
description: The specified resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: The specified resource was not found.
get:
tags:
- Status
summary: Query payment status
operationId: Status_queryPaymentStatus
description: >
Query the status of a payment.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/query-payment).
parameters:
- description: Payment ID. Returned when creating a new payment.
name: paymentId
in: path
required: true
schema:
type: string
style: simple
example: b95d6888-591b-4538-b508-6102cf1259c9
responses:
'200':
description: OK.
content:
application/json:
schema:
$ref: '#/components/schemas/StatusQueryPaymentStatusResponse'
'401':
description: Request lacks valid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Request lacks valid authentication.
'404':
description: The specified resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: The specified resource was not found.
/api/payments/{paymentId}/files/{fileId}:
get:
tags:
- Files
summary: Download a file
operationId: Files_downloadFile
description: Downloads a file that was attached to a payment link.
parameters:
- description: Payment ID.
name: paymentId
in: path
required: true
schema:
type: string
style: simple
example: b95d6888-591b-4538-b508-6102cf1259c9
- description: File ID.
name: fileId
in: path
required: true
schema:
type: string
style: simple
example: ca6cd55b-4be6-451d-bd72-fe5b7ec1f75z
responses:
'200':
description: OK.
'400':
description: Bad request.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
'401':
description: Request lacks valid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Request lacks valid authentication.
'404':
description: The specified resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: The specified resource was not found.
/api/attachments:
post:
tags:
- Files
summary: Upload a file
operationId: Files_uploadFile
description: >-
Upload a file so that it can be attached to a payment link. Only PDFs
smaller than 5 MB are supported.
requestBody:
description: File content.
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/FilesUploadFileRequest'
encoding:
file:
contentType: application/pdf
responses:
'200':
description: OK.
content:
application/json:
schema:
$ref: '#/components/schemas/FilesUploadFileResponse'
'400':
description: Bad request.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
'401':
description: Request lacks valid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Request lacks valid authentication.
'404':
description: The specified resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: The specified resource was not found.
/api/channels/{entityId}/payments/batches:
post:
tags:
- Batch
summary: Generate batch link
operationId: Batch_generateLink
description: >
Returns a URL to which the batch file must be uploaded.
For more information, see the
[documentation](https://developer.peachpayments.com/docs/generate-bulk-payment-links).
parameters:
- description: The entity for the request.
name: entityId
in: path
required: true
schema:
type: string
example: 8ac7a4ca694cec2601694cf5f9360026
style: simple
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchGenerateLinkRequest'
responses:
'200':
description: Batch ID and URL.
content:
application/json:
schema:
$ref: '#/components/schemas/BatchGenerateLinkResponse'
'400':
description: Bad request.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
'401':
description: Request lacks valid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Request lacks valid authentication.
'404':
description: The specified resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Channel not found.
get:
tags:
- Batch
summary: Get all batch statuses
operationId: Batch_getBatchStatuses
description: Query all batch statuses of a batch for a channel.
parameters:
- description: The entity for the request.
name: entityId
in: path
required: true
schema:
type: string
example: 8ac7a4ca694cec2601694cf5f9360026
style: simple
- description: The offset from which to read data.
name: offset
in: query
required: false
schema:
type: number
default: 0
- description: The amount of items to retrieve.
name: perPage
in: query
required: false
schema:
type: number
default: 50
- description: Retrieve all batches from the start date onwards.
name: filters[startDate]
in: query
required: false
schema:
type: string
format: date-time
example: '2018-03-20T09:12:28Z'
- description: Retrieve all batches until the end date.
name: filters[endDate]
in: query
required: false
schema:
type: string
format: date-time
example: '2018-03-20T09:12:28Z'
- description: The payment link status to filter on.
name: filters[status]
in: query
required: false
schema:
type: string
enum:
- initiated
- processing
- expired
- error
- completed
example: initiated
responses:
'200':
description: URL.
content:
application/json:
schema:
$ref: '#/components/schemas/BatchGetBatchStatusesResponse'
'401':
description: Request lacks valid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Request lacks valid authentication.
'404':
description: The specified resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
example:
message: Channel not found.
/api/batches/{batchId}:
get:
tags:
- Batch
summary: Batch link status
operationId: Batch_linkStatusGet
description: Returns the status of the batch.
parameters:
- description: The batch ID for the request.
name: batchId
in: path
required: true
schema:
type: string
example: 421e1e63-ddd5-46ec-8812-74eda861259b
style: simple
responses:
'200':
description: Status received.
content:
application/json:
schema:
$ref: '#/components/schemas/BatchResponse'
'404':
description: The specified resource was not found.