diff --git a/core/v0/api/core.yaml b/core/v0/api/core.yaml
index 09ecdadd..73f60ead 100644
--- a/core/v0/api/core.yaml
+++ b/core/v0/api/core.yaml
@@ -2,99 +2,251 @@ openapi: 3.0.0
info:
title: Beckn Core API
description: Beckn Core API specification
- version: 0.9.3
+ version: draft
security:
- SubscriberAuth: []
- GatewaySubscriberAuth: []
- - GatewaySubscriberAuthNew: []
paths:
/search:
post:
tags:
- Beckn Provider Platform (BPP)
- Beckn Gateway (BG)
- description: Search for services by intent
+ description: BAP declares the customer's intent to buy/avail products or services
requestBody:
- description: BAP searches for services
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - search
message:
type: object
properties:
intent:
- $ref: '#/components/schemas/Intent'
+ $ref: "#/components/schemas/Intent"
required:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - search
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - search
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - search
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/select:
post:
tags:
- Beckn Provider Platform (BPP)
- description: Select items from the catalog and build your order
+ description: BAP declares the customer's cart (or equivalent) created by selecting objects from the catalog
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - select
+ required:
+ - action
message:
type: object
properties:
order:
- $ref: '#/components/schemas/Order'
+ $ref: "#/components/schemas/Order"
required:
- order
required:
- context
- message
-
-
-
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - select
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - select
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - select
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/init:
@@ -103,41 +255,120 @@ paths:
- Beckn Provider Platform (BPP)
description: Initialize an order by providing billing and/or shipping details
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - init
+ required:
+ - action
message:
type: object
properties:
order:
- $ref: '#/components/schemas/Order'
+ $ref: "#/components/schemas/Order"
required:
- order
required:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - init
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - init
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - init
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/confirm:
@@ -146,41 +377,120 @@ paths:
- Beckn Provider Platform (BPP)
description: Initialize an order by providing billing and/or shipping details
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - confirm
+ required:
+ - action
message:
type: object
properties:
order:
- $ref: '#/components/schemas/Order'
+ $ref: "#/components/schemas/Order"
required:
- order
required:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - confirm
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
required:
- ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - confirm
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ required:
+ - ack
+ error:
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - confirm
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
/status:
@@ -189,41 +499,120 @@ paths:
- Beckn Provider Platform (BPP)
description: Fetch the latest order object
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - status
+ required:
+ - action
message:
type: object
properties:
order_id:
- $ref: '#/components/schemas/Order/properties/id'
+ $ref: "#/components/schemas/Order/properties/id"
required:
- order_id
required:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - status
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - status
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - status
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/track:
@@ -232,19 +621,25 @@ paths:
- Beckn Provider Platform (BPP)
description: Track an active order
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - track
+ required:
+ - action
message:
type: object
properties:
order_id:
- $ref: '#/components/schemas/Order/properties/id'
+ $ref: "#/components/schemas/Order/properties/id"
callback_url:
type: string
format: uri
@@ -254,22 +649,95 @@ paths:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - track
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
required:
- ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - track
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ required:
+ - ack
+ error:
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - track
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
/cancel:
@@ -278,45 +746,124 @@ paths:
- Beckn Provider Platform (BPP)
description: Cancel an order
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - cancel
+ required:
+ - action
message:
type: object
properties:
order_id:
- $ref: '#/components/schemas/Order/properties/id'
+ $ref: "#/components/schemas/Order/properties/id"
cancellation_reason_id:
- $ref: '#/components/schemas/Option/properties/id'
+ $ref: "#/components/schemas/Option/properties/id"
descriptor:
- $ref: '#/components/schemas/Descriptor'
+ $ref: "#/components/schemas/Descriptor"
required:
- order_id
required:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - cancel
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
required:
- ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - cancel
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ required:
+ - ack
+ error:
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - cancel
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
/update:
@@ -325,14 +872,20 @@ paths:
- Beckn Provider Platform (BPP)
description: Remove object
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - update
+ required:
+ - action
message:
type: object
properties:
@@ -340,7 +893,7 @@ paths:
description: 'Comma separated values of order objects being updated. For example: ```"update_target":"item,billing,fulfillment"```'
type: string
order:
- $ref: '#/components/schemas/Order'
+ $ref: "#/components/schemas/Order"
required:
- update_target
- order
@@ -348,22 +901,95 @@ paths:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - update
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - update
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - update
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/rating:
@@ -372,36 +998,118 @@ paths:
- Beckn Provider Platform (BPP)
description: Provide feedback on a service
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - rating
+ required:
+ - action
message:
- $ref: '#/components/schemas/Rating'
+ type: object
+ properties:
+ rating:
+ $ref: "#/components/schemas/Rating"
required:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - rating
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - rating
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - rating
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
@@ -411,774 +1119,1354 @@ paths:
- Beckn Provider Platform (BPP)
description: Contact support
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - support
+ required:
+ - action
message:
type: object
properties:
- ref_id:
- type: string
- description: ID of the element for which support is needed
+ support:
+ $ref: "#/components/schemas/Support"
required:
- context
- message
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - support
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - support
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - support
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/on_search:
post:
tags:
- - Beckn App Platform (BAP)
+ - Beckn Application Platform (BAP)
- Beckn Gateway (BG)
- description: Send catalog
+ description: BPP sends its catalog in response to a search request.
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_search
+ required:
+ - action
message:
type: object
properties:
catalog:
- $ref: '#/components/schemas/Catalog'
+ $ref: "#/components/schemas/Catalog"
required:
- catalog
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_search
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
required:
- ack
- error:
- $ref: '#/components/schemas/Error'
required:
- context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_search
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ required:
+ - ack
+ error:
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_search
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
/on_select:
post:
tags:
- - Beckn App Platform (BAP)
+ - Beckn Application Platform (BAP)
description: Send draft order object with quoted price for selected items
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_select
+ required:
+ - action
message:
type: object
properties:
order:
- type: object
- properties:
- provider:
- $ref: '#/components/schemas/Provider'
- provider_location:
- $ref: '#/components/schemas/Location'
- items:
- type: array
- items:
- allOf:
- - $ref: '#/components/schemas/Item'
- - properties:
- quantity:
- $ref: '#/components/schemas/ItemQuantity'
- add_ons:
- type: array
- items:
- $ref: '#/components/schemas/AddOn'
- offers:
- type: array
- items:
- $ref: '#/components/schemas/Offer'
- quote:
- $ref: '#/components/schemas/Quotation'
- required:
- - order
+ $ref: "#/components/schemas/Order"
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_select
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_select
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_select
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/on_init:
post:
tags:
- - Beckn App Platform (BAP)
+ - Beckn Application Platform (BAP)
description: Send order object with payment details updated
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_init
+ required:
+ - action
message:
type: object
properties:
order:
- type: object
- properties:
- provider:
- type: object
- properties:
- id:
- $ref: '#/components/schemas/Provider/properties/id'
- provider_location:
- type: object
- properties:
- id:
- $ref: '#/components/schemas/Location/properties/id'
- items:
- type: array
- items:
- type: object
- properties:
- id:
- $ref: '#/components/schemas/Item/properties/id'
- quantity:
- $ref: '#/components/schemas/ItemQuantity/properties/selected'
- add_ons:
- type: array
- items:
- type: object
- properties:
- id:
- $ref: '#/components/schemas/AddOn/properties/id'
- offers:
- type: array
- items:
- type: object
- properties:
- id:
- $ref: '#/components/schemas/Offer/properties/id'
- billing:
- $ref: '#/components/schemas/Billing'
- fulfillment:
- $ref: '#/components/schemas/Fulfillment'
- quote:
- $ref: '#/components/schemas/Quotation'
- payment:
- $ref: '#/components/schemas/Payment'
+ $ref: "#/components/schemas/Order"
required:
- order
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_init
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_init
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_init
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/on_confirm:
post:
tags:
- - Beckn App Platform (BAP)
+ - Beckn Application Platform (BAP)
description: Send active order object
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_confirm
+ required:
+ - action
message:
type: object
properties:
order:
- $ref: '#/components/schemas/Order'
+ $ref: "#/components/schemas/Order"
required:
- order
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_confirm
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_confirm
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_confirm
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/on_track:
post:
tags:
- - Beckn App Platform (BAP)
+ - Beckn Application Platform (BAP)
description: Send tracking details of an active order
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_track
+ required:
+ - action
message:
type: object
properties:
tracking:
- $ref: '#/components/schemas/Tracking'
+ $ref: "#/components/schemas/Tracking"
required:
- tracking
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_track
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_track
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_track
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/on_cancel:
post:
tags:
- - Beckn App Platform (BAP)
+ - Beckn Application Platform (BAP)
description: Send cancellation request_id with reasons list in case of cancellation request. Else send cancelled order object
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_cancel
+ required:
+ - action
message:
type: object
properties:
order:
- $ref: '#/components/schemas/Order'
+ $ref: "#/components/schemas/Order"
required:
- order
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_cancel
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_cancel
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_cancel
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ error:
+ $ref: "#/components/schemas/Error"
required:
- message
/on_update:
post:
tags:
- - Beckn App Platform (BAP)
+ - Beckn Application Platform (BAP)
description: Returns updated service with updated runtime object
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_update
+ required:
+ - action
message:
type: object
properties:
order:
- $ref: '#/components/schemas/Order'
+ $ref: "#/components/schemas/Order"
required:
- order
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_update
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
+ required:
+ - ack
+ required:
+ - context
+ - message
+ "400":
+ description: Message not acknowledged due to a failed schema validation
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_update
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ ack:
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
+ required:
+ - ack
+ error:
+ $ref: "#/components/schemas/Error"
+ required:
+ - message
+ "401":
+ description: Message not acknowledged due to a failed signature validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_update
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
- required:
- - ack
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
/on_status:
post:
tags:
- - Beckn App Platform (BAP)
+ - Beckn Application Platform (BAP)
description: Fetch the status of a Service
requestBody:
- description: TODO
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_status
+ required:
+ - action
message:
type: object
properties:
order:
- $ref: '#/components/schemas/Order'
+ $ref: "#/components/schemas/Order"
required:
- order
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_status
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
required:
- ack
- error:
- $ref: '#/components/schemas/Error'
required:
+ - context
- message
- /on_rating:
- post:
- tags:
- - Beckn App Platform (BAP)
- description: Provide feedback on a service
- requestBody:
- description: TODO
- content:
- application/json:
- schema:
- type: object
- properties:
- context:
- $ref: '#/components/schemas/Context'
- message:
- $ref: '#/components/schemas/RatingAck'
- error:
- $ref: '#/components/schemas/Error'
- required:
- - context
- responses:
- '200':
- description: Acknowledgement of message received
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_status
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
- /on_support:
- post:
- tags:
- - Beckn App Platform (BAP)
- description: Contact Support
- requestBody:
- description: TODO
- content:
- application/json:
- schema:
- type: object
- properties:
- context:
- $ref: '#/components/schemas/Context'
- message:
- type: object
- properties:
- phone:
- type: string
- format: phone
- email:
- type: string
- format: email
- uri:
- type: string
- format: uri
- error:
- $ref: '#/components/schemas/Error'
- required:
- - context
- responses:
- '200':
- description: Acknowledgement of message received
+ "401":
+ description: Message not acknowledged due to a failed signature validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_status
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
- required:
- - ack
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
-
- /get_cancellation_reasons:
+ /on_rating:
post:
tags:
- - BPP Meta APIs
- description: Get cancellation reasons from the BPP
+ - Beckn Application Platform (BAP)
+ description: Provide feedback on a service
requestBody:
- description: Context header is sent as the request
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_rating
+ required:
+ - action
+ message:
+ type: object
+ properties:
+ feedback:
+ description: A feedback form to allow the user to provide additional information on the rating provided
+ allOf:
+ - $ref: "#/components/schemas/Form"
+ error:
+ $ref: "#/components/schemas/Error"
+ required:
+ - context
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_rating
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
required:
- ack
- error:
- $ref: '#/components/schemas/Error'
required:
+ - context
- message
-
- /cancellation_reasons:
- post:
- tags:
- - BAP Meta APIs
- description: Get cancellation reasons from the BPP
- requestBody:
- description: List of cancellation reasons
- content:
- application/json:
- schema:
- type: object
- properties:
- context:
- $ref: '#/components/schemas/Context'
- message:
- type: object
- properties:
- cancellation_reasons:
- type: array
- items:
- $ref: '#/components/schemas/Option'
- responses:
- '200':
- description: Acknowledgement of message received
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_rating
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
-
- /get_return_reasons:
- post:
- tags:
- - BPP Meta APIs
- description: Get return reasons from the BPP
- requestBody:
- description: Context header is sent as the request
- content:
- application/json:
- schema:
- type: object
- properties:
- context:
- $ref: '#/components/schemas/Context'
- responses:
- '200':
- description: Acknowledgement of message received
+ "401":
+ description: Message not acknowledged due to a failed signature validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_rating
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
- required:
- - ack
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
-
- /return_reasons:
+ /on_support:
post:
tags:
- - BAP Meta APIs
- description: Get return reasons from the BPP
+ - Beckn Application Platform (BAP)
+ description: Contact Support
requestBody:
- description: List of return reasons
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
- return_reasons:
- type: array
- items:
- $ref: '#/components/schemas/Option'
+ 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:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_support
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - ACK
required:
- ack
- error:
- $ref: '#/components/schemas/Error'
required:
+ - context
- message
-
- /get_rating_categories:
- post:
- tags:
- - BPP Meta APIs
- description: Get a list of categories that can be rated by the BAP
- requestBody:
- description: Context header is sent as the request
- content:
- application/json:
- schema:
- type: object
- properties:
- context:
- $ref: '#/components/schemas/Context'
- responses:
- '200':
- description: Acknowledgement of message received
+ "400":
+ description: Message not acknowledged due to a failed schema validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_support
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
-
- /rating_categories:
- post:
- tags:
- - BAP Meta APIs
- description: Get a list of categories that can be rated by the BAP
- requestBody:
- description: Array of categories which can be rated
- content:
- application/json:
- schema:
- type: object
- properties:
- context:
- $ref: '#/components/schemas/Context'
- rating_categories:
- type: array
- items:
- $ref: '#/components/schemas/Rating/properties/rating_category'
- responses:
- '200':
- description: Acknowledgement of message received
+ "401":
+ description: Message not acknowledged due to a failed signature validation
content:
application/json:
schema:
type: object
properties:
+ context:
+ allOf:
+ - $ref: "#/components/schemas/Context"
+ - properties:
+ action:
+ enum:
+ - on_support
+ required:
+ - action
message:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
- required:
- - ack
+ allOf:
+ - $ref: "#/components/schemas/Ack"
+ - properties:
+ status:
+ enum:
+ - NACK
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
- /get_feedback_categories:
+ /get_cancellation_reasons:
post:
tags:
- BPP Meta APIs
- description: Get a list of categories for which feedback can be given by the BAP
+ description: Get cancellation reasons from the BPP
requestBody:
description: Context header is sent as the request
content:
@@ -1187,10 +2475,10 @@ paths:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
+ $ref: "#/components/schemas/Context"
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
@@ -1200,35 +2488,38 @@ paths:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ $ref: "#/components/schemas/Ack"
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
- /feedback_categories:
+ /cancellation_reasons:
post:
tags:
- BAP Meta APIs
- description: Get a list of categories for which feedback can be given by the BAP
+ description: Get cancellation reasons from the BPP
requestBody:
- description: Array of categories for which feedback can be given by the BAP
+ description: List of cancellation reasons
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
- feedback_categories:
- type: array
- items:
- $ref: '#/components/schemas/Rating/properties/rating_category'
+ $ref: "#/components/schemas/Context"
+ message:
+ type: object
+ properties:
+ cancellation_reasons:
+ type: array
+ items:
+ $ref: "#/components/schemas/Option"
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
@@ -1238,38 +2529,31 @@ paths:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ $ref: "#/components/schemas/Ack"
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
-
- /get_feedback_form:
+
+ /get_rating_categories:
post:
tags:
- BPP Meta APIs
- description: Request a feedback form from the BPP
+ description: Get a list of categories that can be rated by the BAP
requestBody:
- description: The rating value and category is sent by the BAP
+ description: Context header is sent as the request
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
- message:
- type: object
- properties:
- rating_value:
- $ref: '#/components/schemas/Rating/properties/value'
- rating_category:
- $ref: '#/components/schemas/Rating/properties/rating_category'
+ $ref: "#/components/schemas/Context"
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
@@ -1279,34 +2563,35 @@ paths:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ $ref: "#/components/schemas/Ack"
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
- /feedback_form:
+ /rating_categories:
post:
tags:
- BAP Meta APIs
- description: Get a feedback form from the BPP
+ description: Get a list of categories that can be rated by the BAP
requestBody:
- description: Feedback form sent by the BPP
+ description: Array of categories which can be rated
content:
application/json:
schema:
type: object
properties:
context:
- $ref: '#/components/schemas/Context'
- message:
- $ref: '#/components/schemas/Feedback'
-
+ $ref: "#/components/schemas/Context"
+ rating_categories:
+ type: array
+ items:
+ $ref: "#/components/schemas/Rating/properties/rating_category"
responses:
- '200':
- description: Acknowledgement of message received
+ default:
+ description: Acknowledgement of message received after successful validation of schema and signature
content:
application/json:
schema:
@@ -1316,11 +2601,11 @@ paths:
type: object
properties:
ack:
- $ref: '#/components/schemas/Ack'
+ $ref: "#/components/schemas/Ack"
required:
- ack
error:
- $ref: '#/components/schemas/Error'
+ $ref: "#/components/schemas/Error"
required:
- message
@@ -1330,89 +2615,62 @@ components:
type: apiKey
in: header
name: Authorization
- description: 'Signature of message body using BAP or BPP subscriber''s signing public key.
Format:Authorization : Signature keyId="{subscriber_id}|{unique_key_id}|{algorithm}",algorithm="ed25519",created="1606970629",expires="1607030629",headers="(created) (expires) digest",signature="Base64(BLAKE-512(signing string))"
'
+ description: 'Signature of message body using BAP or BPP subscriber''s signing public key.
Format:Authorization : Signature keyId="{subscriber_id}|{unique_key_id}|{algorithm}",algorithm="ed25519",created="1606970629",expires="1607030629",headers="(created) (expires) digest",signature="Base64(signing string)"
'
GatewaySubscriberAuth:
- type: apiKey
- in: header
- name: Proxy-Authorization
- description: 'Signature of message body + BAP/BPP''s Authorization header using BG''s signing public key. Format:Proxy-Authorization : Signature keyId="{subscriber_id}|{unique_key_id}|{algorithm}",algorithm="ed25519",created="1606970629",expires="1607030629",headers="(created) (expires) digest",signature="Base64(BLAKE-512(signing string))"
Note:This header will be deprecated soon and will no longer be supported in future releases. New implementors are requested to use the X-Gateway-Authorization header. Existing implementations are requested to migrate their header to the new header. The deprecation date will be set after discussion as per the standard specification governance process.
' - GatewaySubscriberAuthNew: type: apiKey in: header name: X-Gateway-Authorization - description: 'Signature of message body + BAP/BPP''s Authorization header using BG''s signing public key. Format:X-Gateway-Authorization : Signature keyId="{subscriber_id}|{unique_key_id}|{algorithm}",algorithm="ed25519",created="1606970629",expires="1607030629",headers="(created) (expires) digest",signature="Base64(BLAKE-512(signing string))"
'
+ description: 'Signature of message body + BAP/BPP''s Authorization header using BG''s signing public key. Format:X-Gateway-Authorization : Signature keyId="{subscriber_id}|{unique_key_id}|{algorithm}",algorithm="ed25519",created="1606970629",expires="1607030629",headers="(created) (expires) digest",signature="Base64(signing string)"
'
+
schemas:
Ack:
- description: Describes the ACK response
+ description: Describes the acknowledgement message a BPP, BAP or BG sends as response to any beckn API calls. This can represent the acknowledged or not acknowledged status response.