-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathPayee-Initiated Merchant Payment.yaml
More file actions
3558 lines (3522 loc) · 140 KB
/
Payee-Initiated Merchant Payment.yaml
File metadata and controls
3558 lines (3522 loc) · 140 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:
description: |
The purpose of this document is to specify the endpoints, fields, objects, and enumerations for government payments.
The Payment Mobile Money APIs allow government to accept payments from mobile money customers. Supported payment mechanisms include:
- Payee-initiated government payment. The Government entity initiates the payment and the payer is requested to authenticate to confirm acceptance by the mobile money provider.
- Payer-initiated government payment. The payer initiates the payment by specifying the government entity that is to be paid.
- Government payment via pre-authorised payment code. The payer generates a payment authorisation code up to a maximum payment amount. The government entity then enters or scans (if rendered as a QR code) the payer’s code to perform the payment.
Closed loop and open-loop government entity payments are supported by the Mobile Money API. Closed loop governmnet entity payments occur where the payer and payee accounts reside with the same mobile money provider.
Open loop payments occur where the payer and payee accounts reside with different mobile money providers.
You can find out more about what the API can do for your business at [https://developer.mobilemoneyapi.io].
version: "1.2.0"
title: Mobile Money API for Government Payments
servers:
- description: This url points to the GSMA Mobile Money API v1.2 Simulator.
url: https://sandbox.mobilemoneyapi.io/simulator/v1.2/passthrough/mm
tags:
- name: Transactions
description: |
Payer-initiated and payee-initiated government payments can be created and viewed using **Transactions** APIs.
- name: Accounts
description: |
Using the **Accounts** APIs, government entity can view payments for their account and view their account balance.
**Identifying a Target Account**
Two methods are provided for identifying an account, the single identifier method and the multiple identifiers method.
Single Identifier Method:
- In the scenario where one identifier suffices to uniquely identify an account, the following path is to be used: **/accounts/{identifierType}/{identifier}**.
Multiple Identifiers Method:
- Where a single identifier is not sufficient to identify an account, the following path is to be used: ' **/accounts/{accountIdentifier1}@{value1}${accountIdentifier2}@{value2}${accountIdentifier3}@{value3}**'. The list of permitted account identifiers supported by the Mobile Money API can be found in the API documentation. As there can be multiple identifiers required to identify the target account, the path uses a '$' delimiter to separate each identifier, up to a limit of three account identifiers.
- name: Authorisation Codes
description: |
The **Authorisation** Codes APIs allow a payer to generate a payment code which when presented to the payee, can be redeemed for an amount associated with the code.
Authorisation codes can be set to expire. Note that expiry time can be specified via the API, however the mobile money provider
may mandate a common expiry period for all codes.
Authorisation Codes can be used for pre-authorised codes for Government payments. The customer generates a code which can be redeemed at a government.
- name: Supporting
description: |
Supporting APIs consist of the following:
- **Heartbeat API:** Used for monitoring purposes and establishes whether the system of an API provider is in a state that enables a client to submit a request for processing within established SLAs.
- **Request State API** : Used to determine the state of an asynchronous request.
- **Responses API** : In some circumstances, the client may not have received the final representation of the resource for which it attempted to create or update. The **Responses** API allows a client to identify and retrieve the final representation of the resource assuming that the resource was created.
paths:
# Transactions APIs. These support creation and viewing of financial transactions in singular and bulk.
/transactions/type/{transactionType}:
post:
tags:
- Transactions
summary: Create a Transaction
description: Provided with a valid object representation, this endpoint allows
for a new transaction to be created for a given transaction type passed via the URL.
operationId: "transactionstypetransactionTypePUT"
parameters:
- $ref: '#/components/parameters/transactionTypePath'
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Callback-URL'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
requestBody:
$ref: '#/components/requestBodies/requestTransactionType'
callbacks:
transactionsSuccessEvent:
'{$request.header.X-Callback-URL}': # This is the callback URL provided by the client in the request header
put:
summary: Transaction Success Callback
description: This callback communicates the final representation of the transaction requested by the client.
The client endpoint is identified from the X-Callback-URL supplied in the POST request header.
operationId: "transactionsTransactionTypeSuccessPUT"
parameters:
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
requestBody:
$ref: '#/components/requestBodies/updateTransaction' # The callback consists of the same body as a synchronous /transactions response
responses:
204:
description: Your server returns this code if it accepts the callback
400:
description: Your server returns this code if it rejects the callback due to a violation of a business rule
401:
description: Your server returns this code if it rejects the callback due to an authorisation failure
404:
description: Your server returns this code if it rejects the callback due to a failure to identify the target resource
500:
description: Your server returns this code if it rejects the callback due to general server-side issue
503:
description: Your server returns this code if it rejects the callback due to systems unavailability
transactionsFailureEvent:
'{$request.header.X-Callback-URL}': # This is the callback URL provided by the client in the request header
put:
summary: Transaction Failure Callback
description: This callback communicates the information regarding a transaction failure in the form of an error object.
The client endpoint is identified from the X-Callback-URL supplied in the POST request header.
operationId: "transactionsTransactionTypeFailurePUT"
parameters:
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
requestBody:
$ref: '#/components/requestBodies/updateError' # The callback returns the error object in the event of failure
responses:
204:
description: Your server returns this code if it accepts the callback
400:
description: Your server returns this code if it rejects the callback due to a violation of a business rule
401:
description: Your server returns this code if it rejects the callback due to an authorisation failure
404:
description: Your server returns this code if it rejects the callback due to a failure to identify the target resource
500:
description: Your server returns this code if it rejects the callback due to general server-side issue
503:
description: Your server returns this code if it rejects the callback due to systems unavailability
responses:
201:
description: Represents a Transaction response
content:
application/json:
schema:
$ref: "#/components/schemas/responseTransactionType"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
202:
description: Represents an Asynchronous response
content:
application/json:
schema:
$ref: "#/components/schemas/requestStateObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
/transactions/{transactionReference}:
parameters:
- $ref: '#/components/parameters/transactionReference'
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
get:
tags:
- Transactions
summary: View A Transaction
description: This endpoint returns the details of a transaction
operationId: "transactionsTransactionReferenceGET"
responses:
200:
description: Represents a Transaction response
content:
application/json:
schema:
$ref: "#/components/schemas/responseTransaction"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
patch:
tags:
- Transactions
summary: Update A Transaction
description: This endpoint allows the transactionStatus of a transaction to be updated.
operationId: "transactionsTransactionReferencePATCH"
parameters:
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-Callback-URL'
requestBody:
$ref: '#/components/requestBodies/genericPatch'
callbacks:
transactionsUpdateSuccessEvent:
'{$request.header.X-Callback-URL}': # This is the callback URL provided by the client in the request header
put:
summary: Transactions Update Success Callback
description: This callback communicates a simple message to communicate that the transaction update completed successfully.
operationId: "transactionsTransactionsUpdatePUT"
parameters:
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
requestBody:
$ref: '#/components/requestBodies/genericUpdateSuccess'
responses:
204:
description: Your server returns this code if it accepts the callback
400:
description: Your server returns this code if it rejects the callback due to a violation of a business rule
401:
description: Your server returns this code if it rejects the callback due to an authorisation failure
404:
description: Your server returns this code if it rejects the callback due to a failure to identify the target resource
500:
description: Your server returns this code if it rejects the callback due to general server-side issue
503:
description: Your server returns this code if it rejects the callback due to systems unavailability
transactionsUpdateFailureEvent:
'{$request.header.X-Callback-URL}': # This is the callback URL provided by the client in the request header
put:
summary: Transaction Update Failure Callback
description: This callback communicates the information regarding a failure to update a transaction in the form of an error object.
The client endpoint is identified from the X-Callback-URL supplied in the POST request header.
operationId: "transactionsTransactionsUpdateFailurePUT"
parameters:
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
requestBody:
$ref: '#/components/requestBodies/updateError' # The callback returns the error object in the event of failure
responses:
204:
description: Your server returns this code if it accepts the callback
400:
description: Your server returns this code if it rejects the callback due to a violation of a business rule
401:
description: Your server returns this code if it rejects the callback due to an authorisation failure
404:
description: Your server returns this code if it rejects the callback due to a failure to identify the target resource
500:
description: Your server returns this code if it rejects the callback due to general server-side issue
503:
description: Your server returns this code if it rejects the callback due to systems unavailability
responses:
202:
description: Represents an Asynchronous response
content:
application/json:
schema:
$ref: "#/components/schemas/requestStateObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
204:
description: An empty response is returned for a synchronous successful patch.
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
/transactions/{transactionReference}/reversals:
post:
tags:
- Transactions
summary: Create A Reversal
description: Provided with a valid object representation, this endpoint allows for a new reversal to be created
operationId: "transactionsTransactionReferenceReversalsPOST"
parameters:
- $ref: '#/components/parameters/transactionReference'
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Callback-URL'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
requestBody:
$ref: '#/components/requestBodies/requestReversal'
callbacks:
reversalsSuccessEvent:
'{$request.header.X-Callback-URL}': # This is the callback URL provided by the client in the request header
put:
summary: Reversal Callback
description: This callback communicates the final representation of the reversal requested by the client.
The client endpoint is identified from the X-Callback-URL supplied in the POST request header.
operationId: "transactionsTransactionReferenceReversalsSuccessPUT"
parameters:
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
requestBody:
$ref: '#/components/requestBodies/updateReversal' # The callback consists of the same body as a synchronous /reversals response
responses:
204:
description: Your server returns this code if it accepts the callback
400:
description: Your server returns this code if it rejects the callback due to a violation of a business rule
401:
description: Your server returns this code if it rejects the callback due to an authorisation failure
404:
description: Your server returns this code if it rejects the callback due to a failure to identify the target resource
500:
description: Your server returns this code if it rejects the callback due to general server-side issue
503:
description: Your server returns this code if it rejects the callback due to systems unavailability
reversalsFailureEvent:
'{$request.header.X-Callback-URL}': # This is the callback URL provided by the client in the request header
put:
summary: Reversal Failure Callback
description: This callback communicates the information regarding a transaction failure in the form of an error object.
The client endpoint is identified from the X-Callback-URL supplied in the POST request header.
operationId: "transactionsTransactionReferenceReversalfailurePUT"
parameters:
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
requestBody:
$ref: '#/components/requestBodies/updateError' # The callback returns the error object in the event of failure
responses:
204:
description: Your server returns this code if it accepts the callback
400:
description: Your server returns this code if it rejects the callback due to a violation of a business rule
401:
description: Your server returns this code if it rejects the callback due to an authorisation failure
404:
description: Your server returns this code if it rejects the callback due to a failure to identify the target resource
500:
description: Your server returns this code if it rejects the callback due to general server-side issue
503:
description: Your server returns this code if it rejects the callback due to systems unavailability
responses:
201:
description: Represents a Transaction Reversal response
content:
application/json:
schema:
$ref: "#/components/schemas/responseReversal"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
202:
description: Represents an Asynchronous response
content:
application/json:
schema:
$ref: "#/components/schemas/requestStateObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
# Accounts APIs. These support viewing of account-related information.
/accounts/{accountId}/balance:
get:
tags:
- Accounts
summary: View Account Balance
description: This endpoint returns the balance of an account
operationId: "accountsAccountIdBalanceGET"
parameters:
- $ref: '#/components/parameters/accountId'
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
responses:
200:
description: Represents an Account Balance response
content:
application/json:
schema:
$ref: "#/components/schemas/responseAccountBalance"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
/accounts/{identifierType}/{identifier}/balance:
get:
tags:
- Accounts
summary: View Account Balance
description: This endpoint returns the balance of an account.
operationId: "accountsIdentifierTypeIdentifierBalanceGET"
parameters:
- $ref: '#/components/parameters/identifierType'
- $ref: '#/components/parameters/identifier'
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
responses:
200:
description: Represents an Account Balance response
content:
application/json:
schema:
$ref: "#/components/schemas/responseAccountBalance"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
/accounts/balance:
get:
tags:
- Accounts
summary: View Account Balance
description: This endpoint returns the balance of an account. As the account is not passed as a parameter, the account is assumed to be that of the calling client.
operationId: "accountsBalanceGET"
parameters:
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
responses:
200:
description: Represents an Account Balance response
content:
application/json:
schema:
$ref: "#/components/schemas/responseAccountBalance"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
/accounts/{accountId}/transactions:
get:
tags:
- Accounts
summary: View Account Specific Transaction
description: This endpoint returns transactions linked to a specific account
operationId: "accountsAccountIdTransactionsGET"
parameters:
- $ref: '#/components/parameters/accountId'
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/fromDateTime'
- $ref: '#/components/parameters/toDateTime'
- $ref: '#/components/parameters/transactionStatus'
- $ref: '#/components/parameters/transactionTypeQuery'
responses:
200:
description: Represent a list of Transactions
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/responseTransaction"
minItems: 0
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
'X-Records-Available-Count':
$ref: '#/components/headers/X-Records-Available-Count'
'X-Records-Returned-Count':
$ref: '#/components/headers/X-Records-Returned-Count'
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
/accounts/{identifierType}/{identifier}/transactions:
get:
tags:
- Accounts
summary: View Account Specific Transaction
description: This endpoint returns transactions linked to a specific account.
operationId: "accountsIdentifierTypeIdentifierTransactionsGET"
parameters:
- $ref: '#/components/parameters/identifierType'
- $ref: '#/components/parameters/identifier'
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/fromDateTime'
- $ref: '#/components/parameters/toDateTime'
- $ref: '#/components/parameters/transactionStatus'
- $ref: '#/components/parameters/transactionTypeQuery'
responses:
200:
description: Represent a list of Transactions
content:
application/json:
schema:
type: "array"
items:
$ref: "#/components/schemas/responseTransaction"
minItems: 0
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
'X-Records-Available-Count':
$ref: '#/components/headers/X-Records-Available-Count'
'X-Records-Returned-Count':
$ref: '#/components/headers/X-Records-Returned-Count'
400:
description: Represents an Error Caused by the Violation of a Business Rule
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
401:
description: Represents an Error Caused by an Authorisation Failure
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
404:
description: Represents an Error Caused by a Failure to Identify the Target Resource
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
500:
description: Represents an Error Caused by a General Server-Side Issue
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
503:
description: Represents an Error Caused by System Unavailability
content:
application/json:
schema:
$ref: "#/components/schemas/errorObject"
headers:
'X-Date':
$ref: '#/components/headers/X-Date'
# Authorisation Codes APIs. These support creation, modification and viewing of authorisation codes.
/accounts/{accountId}/authorisationcodes:
post:
tags:
- Authorisation Codes
summary: Create an Authorisation Code
description: this endpoint allows allows a mobile money payer or payee to generate a code which
when presented to the other party, can be redeemed for an amount set by the payer or payee, depending upon the use case
operationId: "accountsAccountIdAuthorisationcodesPOST"
parameters:
- $ref: '#/components/parameters/accountId'
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-User-Credential-1'
- $ref: '#/components/parameters/X-User-Credential-2'
- $ref: '#/components/parameters/X-Channel'
- $ref: '#/components/parameters/X-Callback-URL'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier-Type'
- $ref: '#/components/parameters/X-Account-Holding-Institution-Identifier'
requestBody:
$ref: '#/components/requestBodies/requestAuthorisationCode'
callbacks:
authorisationCodesSuccessEvent:
'{$request.header.X-Callback-URL}': # This is the callback URL provided by the client in the request header
put:
summary: Authorisation Codes Success Callback
description: This callback communicates the final representation of the Authorisation Code requested by the client.
The client endpoint is identified from the X-Callback-URL supplied in the POST request header.
operationId: "authorisationCodesAccountIdSuccessPUT"
parameters:
- $ref: '#/components/parameters/X-Date'
- $ref: '#/components/parameters/X-CorrelationID'
- $ref: '#/components/parameters/X-Content-Hash'
- $ref: '#/components/parameters/X-API-Key'
- $ref: '#/components/parameters/X-User-Bearer'
- $ref: '#/components/parameters/X-Client-Id'
requestBody:
$ref: '#/components/requestBodies/updateAuthorisationCode' # The callback consists of the same body as a synchronous /authorisationcodes response
responses:
204:
description: Your server returns this code if it accepts the callback
400:
description: Your server returns this code if it rejects the callback due to a violation of a business rule
401: