-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi-rbcz.yml
1560 lines (1529 loc) · 59.1 KB
/
openapi-rbcz.yml
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
x-headmatter:
readable_by: []
swagger: '2.0'
info:
version: 1.1.20230222
title: Sandbox
description: >
Sandbox environment.
Transaction overview (also for saving accounts). Payments import. Accounts list. Account balance.
Before making a call to Premium API, you need to register your app at our
_Developer portal_. At _Developer
Portal_ you obtain ClientID that your app must send in the
request as `X-IBM-Client-Id`. These
are your keys that grant your app access to the API. However, this is not
enough, for a successful call your app needs to use mTLS. Thus, you not only
need _https_ but also a client certificate issued by us. Each bank
client/user can issue several certificates. Each certificate can permit
different sets of operations (http methods) on different bank accounts. All
this must be configured in Internet Banking first by each bank client/user
(bank clients need to look under _Settings_ and do not forget to download
the certificate at the last step). The certificate is downloaded in
**PKCS#12** format as **\*.p12** file and protected by a password chosen by
the bank client/user. Yes, your app needs the password as well to get use of
the **\*p12** file for establishing mTLS connection to the bank.
Client certificates issued in Internet Banking for bank clients/users have
limited validity (e.g. **5 years**). However, **each year** certificates are
automatically blocked and bank client/user must unblock them in Internet
Banking. It is possible to do it in advance and prolong the time before the
certificate is blocked. Your app should be prepared for these scenarios and
it should communicate such cases to your user in advance to provide seamless
service and high user-experience of your app.
For testing purposes please download and use our <a href="assets/test_cert.p12" download>
test client certificate</a>. The certificate password is <i>test12345678</i>.
**Note**: Be aware, that in certain error situations, API can return
different error structure along with broader set of http status codes, than
the one defined below
x-ibm-name: rbczpremiumapi
host: 'api.rb.cz'
basePath: /
schemes:
- https
paths:
'/rbcz/premium/mock/accounts/{accountNumber}/balance':
get:
description: Get balance for given accounts.
operationId: getBalance
produces:
- application/json
tags:
- Get Account Balance
parameters:
- name: X-IBM-Client-Id
in: header
required: true
description: >-
ClientID obtained from Developer Portal - when you registered your
app with us.
type: string
- name: X-Request-Id
in: header
required: true
description: >-
Unique request id provided by consumer application for reference and
auditing.
type: string
pattern: '[a-zA-Z0-9\-_:]{1,60}'
maxLength: 60
- name: PSU-IP-Address
in: header
description: >-
IP address of a client - the end IP address of the client
application (no server) in IPv4 or IPv6 format. If the bank client
(your user) uses a browser by which he accesses your server app, we
need to know the IP address of his browser. Always provide the
closest IP address to the real end-user possible.
type: string
maxLength: 39
- name: accountNumber
in: path
required: true
type: string
description: The number of account without prefix and bankCode
responses:
'200':
description: Account with currencyFolders and balances.
schema:
description: Account with balances
type: object
properties:
numberPart1:
description: The prefix of the account number
example: '19'
type: string
numberPart2:
description: The account number without prefix
example: '6760653036'
type: string
bankCode:
description: The bank clearing code
example: '5500'
type: string
currencyFolders:
description: The available currency folders information.
type: array
items:
type: object
properties:
currency:
description: The currency of the currency folder
example: CZK
type: string
status:
description: 'The status of the currency folder (CATALOG: CURRENCYFOLDERSTATUS)'
example: ACTIVE
type: string
balances:
description: the balances of the currencyFolder
type: array
items:
type: object
properties:
balanceType:
description: 'the balance type (CODEBOOK: AccountBalanceTypes)'
example: CLAB
type: string
currency:
description: The currency of the balance
type: string
value:
description: The balance amount
example: 1000.5
type: number
format: double
required:
- balanceType
- currency
- value
required:
- currency
- status
required:
- numberPart2
- bankCode
'401':
description: Certificate's serial number is missing or certificate is in an invalid state.
schema:
type: object
properties:
error:
type: string
enum:
- UNAUTHORISED
error_description:
type: string
'403':
description: Certficate is valid but user has no sufficient rights to access resource.
schema:
type: object
properties:
error:
type: string
enum:
- INSUFFICIENT_RIGHTS
error_description:
type: string
'404':
description: Indicates that requested resource does not exist.
schema:
type: object
properties:
error:
type: string
enum:
- ID_NOT_FOUND
error_description:
type: string
'429':
description: User has sent too many requests in a given amount of time.
schema:
type: object
properties:
error:
type: string
enum:
- TOO_MANY_REQUESTS
error_description:
type: string
'/rbcz/premium/mock/accounts/{accountNumber}/{currencyCode}/transactions':
get:
description: >-
Get a list of posted transactions (including intraday). In addition,
transactions must not be older than **90 days** - see request parameter
`from`.
The list is returned as a sequence of pages - see request parameter
`page`. The request parameter/flag `lastPage` indicates whether the
returned page is the last one or if there are more pages that you can
iterate.
The limit _Number of requests per second_ (see your subscription plan)
is shared among all consumers. Your app needs to implement some delay
when iterating pages. Also it needs to be ready to get HTTP 409 (too
many requests).
operationId: getTransactionList
produces:
- application/json
tags:
- Get Transaction List
parameters:
- name: X-IBM-Client-Id
in: header
required: true
description: >-
ClientID obtained from Developer Portal - when you registered your
app with us.
type: string
- name: X-Request-Id
in: header
required: true
description: >-
Unique request id provided by consumer application for reference and
auditing.
type: string
pattern: '[a-zA-Z0-9\-_:]{1,60}'
maxLength: 60
- name: PSU-IP-Address
in: header
description: >-
IP address of a client - the end IP address of the client
application (no server) in IPv4 or IPv6 format. If the bank client
(your user) uses a browser by which he accesses your server app, we
need to know the IP address of his browser. Always provide the
closest IP address to the real end-user possible.
type: string
maxLength: 39
- name: accountNumber
in: path
required: true
description: >-
Account number for which to get list of transactions in national
format without 0 padding.
type: string
pattern: '[0-9]{1,10}'
maxLength: 10
- name: currencyCode
in: path
required: true
description: >-
Currency code of the account in ISO-4217 standard (e.g. czk, eur,
usd)
type: string
pattern: '[A-Z]{1,3}'
maxLength: 3
- name: from
in: query
required: true
description: >-
Defines date (and optionally time) from which transactions will be
requested. If no time is specified then 00:00:00.0 will be used.
Example values - 2021-08-01 or 2021-08-01T10:00:00.0Z
type: string
format: date-time
- name: to
in: query
required: true
description: >-
Defines date (and optionally time) until which transactions will be
requested. If no time is specified then 23:59:59.999 will be used.
Example values - 2021-08-02 or 2021-08-02T14:00:00.0Z
type: string
format: date-time
- name: page
in: query
description: Page number to be requested. The first page is 1.
type: integer
minimum: 1
maximum: 99999
responses:
'200':
description: ''
schema:
properties:
lastPage:
type: boolean
description: Indication wheter the page is last - default false
example: true
transactions:
description: ' An array of transactions.'
type: object
properties:
transaction:
type: array
items:
type: object
properties:
entryReference:
type: string
description: Unique identification of the realized transaction.
example: 3887196517
amount:
type: object
properties:
value:
type: number
format: double
description: Amount of money
example: -1668.59
currency:
type: string
description: Currency code of the amount
example: CZK
required:
- value
- currency
creditDebitIndication:
type: string
enum:
- DBIT
- CRDT
example: DBIT
bookingDate:
type: string
format: date-time
description: Date of payment processing/posting by the bank.
valueDate:
type: string
format: date-time
description: >-
Transaction date; value date; date which is used to
count interest; e.g. date when money were withdrawn
from ATM.
bankTransactionCode:
type: object
properties:
code:
type: string
description: >-
Transaction code in ISO20022 camt.53 format
(e.g. 10000101000 - Odchozi tuzemska platba).
example: '10000401000'
required:
- code
entryDetails:
type: object
properties:
transactionDetails:
type: object
properties:
references:
type: object
properties:
endToEndIdentification:
type: string
description: >-
Originator reference ID - End to End ID;
The Originator's reference of the
transaction
example: EBGTF015477198
instructedAmount:
description: >-
Original amount in original currency -
before currency conversion.
type: object
properties:
value:
type: number
format: double
description: Amount of money
example: 61
currency:
type: string
description: Currency code of the amount
example: EUR
exchangeRate:
type: number
format: double
example: 0.03656
required:
- value
- currency
chargeBearer:
type: string
enum:
- DEBT
- CRED
- SHAR
example: SHAR
paymentCardNumber:
type: string
description: >-
Masked payment card number, if the
transaction is related to debit card.
example: 547872XXXXXX9475
relatedParties:
type: object
properties:
counterParty:
description: >-
Information about counter party (debtor
or creditor) - always the other side of
the transaction.
type: object
properties:
name:
type: string
description: Bank account name
example: Firma Ltd.
postalAddress:
type: object
properties:
street:
type: string
description: Street or 2nd line of the address
example: Na dlouh?m l?nu 35
city:
type: string
description: City or 3nd line of the address
example: Praha 6
country:
type: string
description: Country code - 4th line of the address.
example: CZ
organisationIdentification:
type: object
properties:
name:
type: string
example: Firma Ltd.
bicOrBei:
type: string
description: SWIFT/BIC code of the bank.
example: KOMBCZPP
bankCode:
type: string
description: >-
Proprietary bank code in local format
(e.g. 5500) or in foreign format.
example: '0100'
postalAddress:
type: object
properties:
street:
type: string
description: Street or 2nd line of the address
example: Na dlouh?m l?nu 35
city:
type: string
description: City or 3nd line of the address
example: Praha 6
shortAddress:
type: string
description: Short address
example: 'Na dlouh?m l?nu 35, Praha, CZ'
country:
type: string
description: Country code - 4th line of the address.
example: CZ
account:
type: object
properties:
iban:
type: string
description: >-
IBAN code of the bank account if
available
example: CZ0801000000192000145399
accountNumberPrefix:
type: string
description: >-
Prefix part of the bank account number
(only for czech accounts)
example: 000019
accountNumber:
type: string
description: >-
Base part of the bank account number in
czech fromat or in foreign format
example: '2000145399'
intermediaryInstitution:
type: object
properties:
name:
type: string
example: 'Komer?n? banka, a.s.'
bicOrBei:
type: string
description: SWIFT/BIC code of the bank.
example: KOMBCZPP
bankCode:
type: string
description: >-
Proprietary bank code in local format
(e.g. 5500) or in foreign format.
example: '0100'
postalAddress:
type: object
properties:
street:
type: string
description: Street or 2nd line of the address
example: Na p??kop? 969/33
city:
type: string
description: City or 3nd line of the address
example: Praha 1
shortAddress:
type: string
description: Short address
example: 'Na p??kop? 969/33, Praha, CZ'
country:
type: string
description: Country code - 4th line of the address.
example: CZ
ultimateCounterParty:
description: >-
Ultimate debtor or Ultimate creditor -
always the other end.
type: object
properties:
name:
type: string
description: Bank account name
example: CZ0801000000192000145399
postalAddress:
type: object
properties:
street:
type: string
description: Street or 2nd line of the address
example: Na dlouh?m l?nu 35
city:
type: string
description: City or 3nd line of the address
example: Praha 6
country:
type: string
description: Country code - 4th line of the address.
example: CZ
remittanceInformation:
description: >-
Information that allow match and pairing
transactions or further identifies it.
type: object
properties:
unstructured:
type: string
description: >-
Information from or for counter party.
Information for creditor.
example: >-
61 EUR;FIRMA LTD;12345678 RADEK DVA
RADEK TRI RADEK CTYRI
creditorReferenceInformation:
type: object
properties:
variable:
type: string
description: Variable symbol
example: '1234567890'
constant:
type: string
description: Constant symbol
example: '558'
specific:
type: string
description: Specific symbol
example: '1234567890'
originatorMessage:
type: string
description: >-
Private description of the transaction.
Only available to account holder.
example: na?e platba
required:
- entryReference
- amount
- creditDebitIndication
- bankTransactionCode
minItems: 0
'204':
description: |
Nonexisting page or empty content.
'400':
description: 'Bad request, validation error.'
schema:
properties:
error:
type: string
description: Invalid date. Parameter `from` must not be older than 90 days.
enum:
- DT01
error_description:
type: string
'401':
description: Certificate is invalid.
schema:
properties:
error:
type: string
enum:
- UNAUTHORISED
error_description:
type: string
'403':
description: No access rights to perform the operation.
schema:
properties:
error:
type: string
enum:
- INSUFFICIENT_RIGHTS
error_description:
type: string
'404':
description: ''
schema:
properties:
error:
type: string
enum:
- ID_NOT_FOUND
error_description:
type: string
'429':
description: User has sent too many requests in a given amount of time.
schema:
properties:
error:
type: string
enum:
- TOO_MANY_REQUESTS
error_description:
type: string
/rbcz/premium/mock/payments/batches:
post:
description: >-
Importing batch payments in one of [supported
formates](https://www.rb.cz/attachments/direct-banking/ekomunikator-datova-struktura.pdf)
- see request parameter `Batch-Import-Format`.
This is API alternative to manual import of batch payments through
[Internet
Banking](https://www.rb.cz/podnikatele/ucty-a-platebni-styk/prime-bankovnictvi/internetove-bankovnictvi/caste-dotazy/import-hromadnych-plateb).
Imported payments are not immediately processed, they are just loaded into
Internet Banking and they still must be authorized/certified in Internet
Banking according to client settings of disposable rights and
signatures.
Number of transactions in one request is limited to 5.000 (this can
change without prior notice). Number of transactions is not checked
during the call, it is performed later and possible error is provided in
Internet Banking.
Once authorized/certified, uploaded payments will be processed in the
Instant payments mode if the following conditions are met:
1) the batch has no more than 50 payments
2) no more than 5 batches per day were uploaded
3) individual payments meet the conditions for Instant payments - see
[Instant
Payments](https://www.rb.cz/informacni-servis/platebni-styk/tuzemske-platby/okamzite-platby)
operationId: importPayments
produces:
- application/json
consumes:
- text/plain
tags:
- Upload Payments
parameters:
- name: X-IBM-Client-Id
in: header
required: true
description: >-
ClientID obtained from Developer Portal - when you registered your
app with us.
type: string
- name: X-Request-Id
in: header
required: true
description: >-
Unique request id provided by consumer application for reference and
auditing.
type: string
pattern: '[a-zA-Z0-9\-_:]{1,60}'
maxLength: 60
- name: PSU-IP-Address
in: header
description: >-
IP address of a client - the end IP address of the client
application (no server) in IPv4 or IPv6 format. If the bank client
(your user) uses a browser by which he accesses your server app, we
need to know the IP address of his browser. Always provide the
closest IP address to the real end-user possible.
type: string
maxLength: 39
- name: Batch-Import-Format
in: header
required: true
description: Format of imported batch. For CCT format please use option SEPA-XML.
type: string
enum:
- GEMINI-P11
- GEMINI-P32
- GEMINI-F84
- ABO-KPC
- SEPA-XML
- CFD
- CFU
- CFA
- name: Batch-Name
in: header
required: false
description: >
Batch name, if not present then will be generated in format
`ImportApi_<DDMMYYYY>`. If the name is longer than 50 characters,
it will be truncated
type: string
maxLength: 50
- name: request body
required: true
in: body
schema:
type: string
description: >-
Batch payment content in on of the supported formats - see
parameter `Batch-Import-Format`
example: INT00000120180914Test Banka...
responses:
'200':
description: New batch with payments created
schema:
properties:
batchFileId:
description: ID of created batch file
type: integer
format: int64
example: 1234
'400':
description: 'Bad request, validation error.'
schema:
type: object
properties:
error:
type: string
enum:
- INVALID_BATCH_IMPORT_FORMAT
- BATCH_CONTENT_INVALID
- BATCH_ALREADY_IMPORTED
description: >
* INVALID_BATCH_IMPORT_FORMAT - Batch-Import-Format
unsupported
* BATCH_CONTENT_INVALID - Batch content doesn't match to
declared Batch-Import-Format
* BATCH_ALREADY_IMPORTED - Batch has already been imported
(based on checksum)
error_description:
type: string
'401':
description: Certificate is invalid.
schema:
type: object
properties:
error:
type: string
enum:
- UNAUTHORISED
error_description:
type: string
'403':
description: No access rights to perform the operation.
schema:
type: object
properties:
error:
type: string
enum:
- INSUFFICIENT_RIGHTS
error_description:
type: string
'413':
description: Indicates that the request payload is too large
schema:
type: object
properties:
error:
type: string
enum:
- >-
BATCH_CONTENT_SIZE_EXCEEDED - Content exceeds maximum of 200
MB
error_description:
type: string
'415':
description: Unsupported media type
schema:
type: object
properties:
error:
type: string
error_description:
type: string
'429':
description: User has sent too many requests in a given amount of time.
schema:
type: object
properties:
error:
type: string
enum:
- TOO_MANY_REQUESTS
error_description:
type: string
'500':
description: Unexpected error.
schema:
type: object
properties:
error:
type: string
error_description:
type: string
'/rbcz/premium/mock/payments/batches/{batchFileId}':
get:
description: >-
Getting details about state of processing of imported batch file and
created batch transactions.
operationId: getBatchDetail
produces:
- application/json
tags:
- Get Batch Detail
parameters:
- name: X-IBM-Client-Id
in: header
required: true
description: >-
ClientID obtained from Developer Portal - when you registered your
app with us.
type: string
- name: X-Request-Id
in: header
required: true
description: >-
Unique request id provided by consumer application for reference and
auditing.
type: string
pattern: '[a-zA-Z0-9\-_:]{1,60}'
maxLength: 60
- name: PSU-IP-Address
in: header
description: >-
IP address of a client - the end IP address of the client
application (no server) in IPv4 or IPv6 format. If the bank client
(your user) uses a browser by which he accesses your server app, we
need to know the IP address of his browser. Always provide the
closest IP address to the real end-user possible.
type: string
maxLength: 39
- name: batchFileId
in: path
required: true
description: |
Batch file id
type: integer
format: int64
responses:
'200':
description: Batch payment detail.
schema:
properties:
batchName:
description: Batch name
type: string
example: Import_25102021
batchFileStatus:
description: Status of batch file import
type: string
enum:
- DELETED
- OK
- UPLOADED
- PROCESSING
- ERROR
example: OK
createDate:
description: The date when the batch was created
type: string
format: date
example: '2022-01-20'
batchItems:
type: array
items:
properties:
accountInfo:
description: Account info detail
type: object
required:
- accountId
- accountNumber
- mainCurrencyId
properties:
accountId:
description: Account Id.
type: integer
format: int64
example: 4
accountNumberPrefix:
description: Charged account number prefix
type: string
example: 000609
accountNumber:
description: Charged account number
type: string
example: 19
mainCurrencyId:
description: >-
The currency folder identification (CATALOG:
CURRENCIES)
example: CZK
type: string
minLength: 3
maxLength: 3
numberOfPayments:
description: Number of payments within the batch
type: integer
example: 1
sumAmount:
description: Sum amount
type: number
format: decimal
example: 500
sumAmountCurrencyId:
description: 'The currency folder identification (CATALOG: CURRENCIES)'
example: CZK
type: string
minLength: 3
maxLength: 3
batchType:
description: Batch transaction package payment type
type: string
enum:
- DPO
- DD
- FPO
- SEPA
example: FPO
status:
description: Bacth transaction package status
type: string
enum:
- DRAFT
- ERROR
- FOR_SIGN
- VERIFIED
- PASSING_TO_BANK
- PASSED
- PASSED_TO_BANK_WITH_ERROR
- UNDISCLOSED
example: PASSED
assignedUserName:
description: Name of user assigned to batch transaction package
type: string
example: Jon Doe
lastChangeDateTime:
description: >-
Date and time of last change of batch transaction
package
type: string
format: date-time
example: '2022-01-27T09:14:16+02:00'
'400':
description: 'Bad request, validation error.'
schema:
properties:
error:
type: string
description: Invalid input.