-
Notifications
You must be signed in to change notification settings - Fork 0
/
transaction.yaml
2164 lines (2164 loc) · 86.3 KB
/
transaction.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: Beckn Protocol Core
description: Beckn Core Transaction API specification
version: 1.1.0
security:
- SubscriberAuth: []
paths:
/search:
post:
tags:
- Beckn Provider Platform (BPP)
- Beckn Gateway (BG)
description: BAP declares the customer's intent to buy/avail products or services
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- search
message:
type: object
properties:
intent:
$ref: '#/components/schemas/Intent'
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/select:
post:
tags:
- Beckn Provider Platform (BPP)
description: BAP declares the customer's cart (or equivalent) created by selecting objects from the catalog
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- select
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
required:
- order
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/init:
post:
tags:
- Beckn Provider Platform (BPP)
description: Initialize an order by providing billing and/or shipping details
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- init
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
required:
- order
required:
- context
- message
responses:
default:
description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
message:
type: object
properties:
ack:
allOf:
- $ref: '#/components/schemas/Ack'
- properties:
status:
enum:
- ACK
- NACK
required:
- ack
error:
$ref: '#/components/schemas/Error'
required:
- message
/confirm:
post:
tags:
- Beckn Provider Platform (BPP)
description: Initialize an order by providing billing and/or shipping details
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- confirm
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
required:
- order
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/status:
post:
tags:
- Beckn Provider Platform (BPP)
description: Fetch the latest order object
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- status
required:
- action
message:
type: object
properties:
order_id:
$ref: '#/components/schemas/Order/properties/id'
required:
- order_id
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/track:
post:
tags:
- Beckn Provider Platform (BPP)
description: Track an active order
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- track
required:
- action
message:
type: object
properties:
order_id:
$ref: '#/components/schemas/Order/properties/id'
callback_url:
type: string
format: uri
required:
- order_id
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/cancel:
post:
tags:
- Beckn Provider Platform (BPP)
description: Cancel an order
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- cancel
required:
- action
message:
type: object
properties:
order_id:
$ref: '#/components/schemas/Order/properties/id'
cancellation_reason_id:
$ref: '#/components/schemas/Option/properties/id'
descriptor:
$ref: '#/components/schemas/Descriptor'
required:
- order_id
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/update:
post:
tags:
- Beckn Provider Platform (BPP)
description: Remove object
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- update
required:
- action
message:
type: object
properties:
update_target:
description: 'Comma separated values of order objects being updated. For example: ```"update_target":"item,billing,fulfillment"```'
type: string
order:
description: Updated order object
allOf:
- $ref: '#/components/schemas/Order'
required:
- update_target
- order
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/rating:
post:
tags:
- Beckn Provider Platform (BPP)
description: Provide feedback on a service
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- rating
required:
- action
message:
type: object
properties:
ratings:
type: array
items:
$ref: '#/components/schemas/Rating'
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/support:
post:
tags:
- Beckn Provider Platform (BPP)
description: Contact support
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- support
required:
- action
message:
type: object
properties:
support:
$ref: '#/components/schemas/Support'
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_search:
post:
tags:
- Beckn Application Platform (BAP)
- Beckn Gateway (BG)
description: BPP sends its catalog in response to a search request.
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_search
required:
- action
message:
type: object
properties:
catalog:
$ref: '#/components/schemas/Catalog'
required:
- catalog
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_select:
post:
tags:
- Beckn Application Platform (BAP)
description: Send draft order object with quoted price for selected items
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_select
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_init:
post:
tags:
- Beckn Application Platform (BAP)
description: Send order object with payment details updated
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_init
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
required:
- order
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_confirm:
post:
tags:
- Beckn Application Platform (BAP)
description: Send active order object
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_confirm
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
required:
- order
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_track:
post:
tags:
- Beckn Application Platform (BAP)
description: Send tracking details of an active order
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_track
required:
- action
message:
type: object
properties:
tracking:
$ref: '#/components/schemas/Tracking'
required:
- tracking
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_cancel:
post:
tags:
- Beckn Application Platform (BAP)
description: Send cancellation request_id with reasons list in case of cancellation request. Else send cancelled order object
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_cancel
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
required:
- order
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_update:
post:
tags:
- Beckn Application Platform (BAP)
description: Returns updated service with updated runtime object
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_update
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
required:
- order
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_status:
post:
tags:
- Beckn Application Platform (BAP)
description: Fetch the status of a Service
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_status
required:
- action
message:
type: object
properties:
order:
$ref: '#/components/schemas/Order'
required:
- order
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_rating:
post:
tags:
- Beckn Application Platform (BAP)
description: Provide feedback on a service
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_rating
required:
- action
message:
type: object
properties:
feedback_form:
description: A feedback form to allow the user to provide additional information on the rating provided
allOf:
- $ref: '#/components/schemas/XInput'
error:
$ref: '#/components/schemas/Error'
required:
- context
- message
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
/on_support:
post:
tags:
- Beckn Application Platform (BAP)
description: Contact Support
requestBody:
content:
application/json:
schema:
type: object
properties:
context:
allOf:
- $ref: '#/components/schemas/Context'
- properties:
action:
enum:
- on_support
required:
- action
message:
type: object
properties:
support:
$ref: '#/components/schemas/Support'
error:
$ref: '#/components/schemas/Error'
required:
- context
responses:
default:
$ref: '#/paths/~1init/post/responses/default'
components:
securitySchemes:
SubscriberAuth:
type: apiKey
in: header
name: Authorization
description: 'Signature of message body using BAP or BPP subscriber''s signing public key. <br/><br/>Format:<br/><br/><code>Authorization : Signature keyId="{subscriber_id}|{unique_key_id}|{algorithm}",algorithm="ed25519",created="1606970629",expires="1607030629",headers="(created) (expires) digest",signature="Base64(signing string)"</code>'
schemas:
Ack:
description: 'Describes the acknowledgement sent in response to an API call. If the implementation uses HTTP/S, then Ack must be returned in the same session. Every API call to a BPP must be responded to with an Ack whether the BPP intends to respond with a callback or not. This has one property called `status` that indicates the status of the Acknowledgement.'
type: object
properties:
status:
type: string
description: 'The status of the acknowledgement. If the request passes the validation criteria of the BPP, then this is set to ACK. If a BPP responds with status = `ACK` to a request, it is required to respond with a callback. If the request fails the validation criteria, then this is set to NACK. Additionally, if a BPP does not intend to respond with a callback even after the request meets the validation criteria, it should set this value to `NACK`.'
enum:
- ACK
- NACK
tags:
description: A list of tags containing any additional information sent along with the Acknowledgement.
type: array
items:
$ref: '#/components/schemas/TagGroup'
AddOn:
description: Describes an additional item offered as a value-addition to a product or service. This does not exist independently in a catalog and is always associated with an item.
type: object
properties:
id:
description: Provider-defined ID of the add-on
type: string
descriptor:
$ref: '#/components/schemas/Descriptor'
price:
$ref: '#/components/schemas/Price'
Address:
description: Describes a postal address.
type: string
Agent:
description: 'Describes the direct performer, driver or executor that fulfills an order. It is usually a person. But in some rare cases, it could be a non-living entity like a drone, or a bot. Some examples of agents are Doctor in the healthcare sector, a driver in the mobility sector, or a delivery person in the logistics sector. This object can be set at any stage of the order lifecycle. This can be set at the discovery stage when the BPP wants to provide details on the agent fulfilling the order, like in healthcare, where the doctor''s name appears during search. This object can also used to search for a particular person that the customer wants fulfilling an order. Sometimes, this object gets instantiated after the order is confirmed, like in the case of on-demand taxis, where the driver is assigned after the user confirms the ride.'
properties:
person:
$ref: '#/components/schemas/Person'
contact:
$ref: '#/components/schemas/Contact'
organization:
$ref: '#/components/schemas/Organization'
rating:
$ref: '#/components/schemas/Rating/properties/value'
Authorization:
description: 'Describes an authorization mechanism used to start or end the fulfillment of an order. For example, in the mobility sector, the driver may require a one-time password to initiate the ride. In the healthcare sector, a patient may need to provide a password to open a video conference link during a teleconsultation.'
type: object
properties:
type:
description: Type of authorization mechanism used. The allowed values for this field can be published as part of the network policy.
type: string
token:
description: 'Token used for authorization. This is typically generated at the BPP. The BAP can send this value to the user via any channel that it uses to authenticate the user like SMS, Email, Push notification, or in-app rendering.'
type: string
valid_from:
description: Timestamp in RFC3339 format from which token is valid
type: string
format: date-time
valid_to:
description: Timestamp in RFC3339 format until which token is valid
type: string
format: date-time
status:
description: Status of the token
type: string
Billing:
description: 'Describes the billing details of an entity.<br>This has properties like name,organization,address,email,phone,time,tax_number, created_at,updated_at'
type: object
properties:
name:
description: Name of the billable entity
type: string
organization:
description: Details of the organization being billed.
allOf:
- $ref: '#/components/schemas/Organization'
address:
description: The address of the billable entity
allOf:
- $ref: '#/components/schemas/Address'
state:
description: The state where the billable entity resides. This is important for state-level tax calculation
allOf:
- $ref: '#/components/schemas/State'
city:
description: The city where the billable entity resides.
allOf:
- $ref: '#/components/schemas/City'
email:
description: Email address where the bill is sent to
type: string
format: email
phone:
description: Phone number of the billable entity
type: string
time:
description: Details regarding the billing period
allOf:
- $ref: '#/components/schemas/Time'
tax_id:
description: ID of the billable entity as recognized by the taxation authority
type: string
Cancellation:
description: Describes a cancellation event
type: object
properties:
time:
description: Date-time when the order was cancelled by the buyer
type: string
format: date-time
cancelled_by:
type: string
enum:
- CONSUMER
- PROVIDER
reason:
description: The reason for cancellation
allOf:
- $ref: '#/components/schemas/Option'
additional_description:
description: Any additional information regarding the nature of cancellation
allOf:
- $ref: '#/components/schemas/Descriptor'
CancellationTerm:
description: Describes the cancellation terms of an item or an order. This can be referenced at an item or order level. Item-level cancellation terms can override the terms at the order level.
type: object
properties:
fulfillment_state:
description: The state of fulfillment during which this term is applicable.
allOf:
- $ref: '#/components/schemas/FulfillmentState'
reason_required:
description: Indicates whether a reason is required to cancel the order
type: boolean
cancel_by:
description: Information related to the time of cancellation.
allOf:
- $ref: '#/components/schemas/Time'
cancellation_fee:
$ref: '#/components/schemas/Fee'
xinput:
$ref: '#/components/schemas/XInput'
external_ref:
$ref: '#/components/schemas/MediaFile'
Catalog:
description: 'Describes the products or services offered by a BPP. This is typically sent as the response to a search intent from a BAP. The payment terms, offers and terms of fulfillment supported by the BPP can also be included here. The BPP can show hierarchical nature of products/services in its catalog using the parent_category_id in categories. The BPP can also send a ttl (time to live) in the context which is the duration for which a BAP can cache the catalog and use the cached catalog. <br>This has properties like bbp/descriptor,bbp/categories,bbp/fulfillments,bbp/payments,bbp/offers,bbp/providers and exp<br>This is used in the following situations.<br><ul><li>This is typically used in the discovery stage when the BPP sends the details of the products and services it offers as response to a search intent from the BAP. </li></ul>'
type: object
properties:
descriptor:
$ref: '#/components/schemas/Descriptor'
fulfillments:
description: Fulfillment modes offered at the BPP level. This is used when a BPP itself offers fulfillments on behalf of the providers it has onboarded.
type: array
items:
$ref: '#/components/schemas/Fulfillment'
payments:
description: Payment terms offered by the BPP for all transactions. This can be overriden at the provider level.
type: array
items:
$ref: '#/components/schemas/Payment'
offers:
description: Offers at the BPP-level. This is common across all providers onboarded by the BPP.
type: array
items:
$ref: '#/components/schemas/Offer'
providers:
type: array
items:
$ref: '#/components/schemas/Provider'
exp:
description: Timestamp after which catalog will expire
type: string
format: date-time
ttl:
description: Duration in seconds after which this catalog will expire
type: string
Category:
description: A label under which a collection of items can be grouped.
type: object
properties:
id:
description: ID of the category
type: string
parent_category_id:
$ref: '#/components/schemas/Category/properties/id'
descriptor:
$ref: '#/components/schemas/Descriptor'
time:
$ref: '#/components/schemas/Time'
ttl:
description: Time to live for an instance of this schema
tags:
type: array
items:
$ref: '#/components/schemas/TagGroup'
Circle:
description: Describes a circular region of a specified radius centered at a specified GPS coordinate.
type: object
properties:
gps:
$ref: '#/components/schemas/Gps'
radius:
$ref: '#/components/schemas/Scalar'
City:
description: Describes a city
type: object
properties:
name:
description: Name of the city
type: string
code:
description: City code
type: string
Contact:
description: Describes the contact information of an entity
type: object
properties:
phone:
type: string
email:
type: string
jcard:
type: object
description: A Jcard object as per draft-ietf-jcardcal-jcard-03 specification
Context:
description: 'Every API call in beckn protocol has a context. It provides a high-level overview to the receiver about the nature of the intended transaction. Typically, it is the BAP that sets the transaction context based on the consumer''s location and action on their UI. But sometimes, during unsolicited callbacks, the BPP also sets the transaction context but it is usually the same as the context of a previous full-cycle, request-callback interaction between the BAP and the BPP. The context object contains four types of fields. <ol><li>Demographic information about the transaction using fields like `domain`, `country`, and `region`.</li><li>Addressing details like the sending and receiving platform''s ID and API URL.</li><li>Interoperability information like the protocol version that implemented by the sender and,</li><li>Transaction details like the method being called at the receiver''s endpoint, the transaction_id that represents an end-to-end user session at the BAP, a message ID to pair requests with callbacks, a timestamp to capture sending times, a ttl to specifiy the validity of the request, and a key to encrypt information if necessary.</li></ol> This object must be passed in every interaction between a BAP and a BPP. In HTTP/S implementations, it is not necessary to send the context during the synchronous response. However, in asynchronous protocols, the context must be sent during all interactions,'
type: object
properties:
domain:
description: Domain code that is relevant to this transaction context
allOf:
- $ref: '#/components/schemas/Domain/properties/code'
location:
description: The location where the transaction is intended to be fulfilled.
allOf:
- $ref: '#/components/schemas/Location'
action:
description: The Beckn protocol method being called by the sender and executed at the receiver.
type: string
version:
type: string
description: Version of transaction protocol being used by the sender.
bap_id:
description: Subscriber ID of the BAP
allOf:
- description: 'A globally unique identifier of the platform, Typically it is the fully qualified domain name (FQDN) of the platform.'
type: string
bap_uri:
description: Subscriber URL of the BAP for accepting callbacks from BPPs.
allOf:
- description: The callback URL of the Subscriber. This should necessarily contain the same domain name as set in `subscriber_id``.
type: string
format: uri
bpp_id:
description: Subscriber ID of the BPP
allOf:
- $ref: '#/components/schemas/Context/properties/bap_id/allOf/0'
bpp_uri:
description: Subscriber URL of the BPP for accepting calls from BAPs.
allOf:
- $ref: '#/components/schemas/Context/properties/bap_uri/allOf/0'
transaction_id:
description: 'This is a unique value which persists across all API calls from `search` through `confirm`. This is done to indicate an active user session across multiple requests. The BPPs can use this value to push personalized recommendations, and dynamic offerings related to an ongoing transaction despite being unaware of the user active on the BAP.'
type: string
format: uuid
message_id:
description: 'This is a unique value which persists during a request / callback cycle. Since beckn protocol APIs are asynchronous, BAPs need a common value to match an incoming callback from a BPP to an earlier call. This value can also be used to ignore duplicate messages coming from the BPP. It is recommended to generate a fresh message_id for every new interaction. When sending unsolicited callbacks, BPPs must generate a new message_id.'
type: string
format: uuid
timestamp:
description: Time of request generation in RFC3339 format
type: string
format: date-time
key:
description: The encryption public key of the sender
type: string
ttl:
description: The duration in ISO8601 format after timestamp for which this message holds valid
type: string
Country:
description: Describes a country
type: object
properties:
name:
type: string
description: Name of the country
code:
type: string
description: Country code as per ISO 3166-1 and ISO 3166-2 format
Credential: