diff --git a/.github/ISSUE_TEMPLATE/simple-issue-template.md b/.github/ISSUE_TEMPLATE/simple-issue-template.md
new file mode 100644
index 0000000..dcf2eeb
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/simple-issue-template.md
@@ -0,0 +1,92 @@
+---
+name: Simple issue template
+about: Describe this issue template's purpose here.
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+---
+name: Issue simple
+about: Used to standard issue in simple format.
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+---
+name: BOC
+about: BOC Community Issues Template
+title: "[BOC] Button for likes"
+labels: BOC
+---
+
+## Description
+
+[Provide a brief description of the feature, including why it is needed and what it will accomplish. You can skip any of Goals, Expected Outcome, Implementation Details, Mockups / Wireframes if they are irrelevant. Please note that this section of the ticket is suggestive & you can structure it as per your prerogative.]
+
+## Goals
+
+- [ ] [Goal 1]
+- [ ] [Goal 2]
+- [ ] [Goal 3]
+- [ ] [Goal 4]
+- [ ] [Goal 5]
+
+## Expected Outcome
+
+[Describe in detail what the final product or result should look like and how it should behave.]
+
+## Acceptance Criteria
+
+- [ ] [Criteria 1]
+- [ ] [Criteria 2]
+- [ ] [Criteria 3]
+- [ ] [Criteria 4]
+- [ ] [Criteria 5]
+
+## Implementation Details
+
+[List any technical details about the proposed implementation, including any specific technologies that will be used.]
+
+## Mockups / Wireframes
+
+[Include links to any visual aids, mockups, wireframes, or diagrams that help illustrate what the final product should look like. This is not always necessary, but can be very helpful in many cases.]
+
+---
+
+[Please note that the below section of the ticket ****has to be in the format as mentioned as it is key to enabling proper listing of the project.**** Please only choose the options mentioned under the headings wherever applicable.]
+
+### Product Name
+
+[Product Name: For eg: Beckn, Sunbird Obsrv etc]
+
+### Project Name
+
+[Project Name: Descriptive of the ticket]
+
+### Organization Name:
+
+[Organization Name]
+
+### Domain
+
+[Area of governance]
+
+### Tech Skills Needed:
+
+[Required technical skills for the project]
+
+### Complexity
+
+Pick one of [High]/[Medium]/[Low]
+
+### Category
+
+Pick one or more of [CI/CD], [Integrations], [Performance Improvement], [Security], [UI/UX/Design], [Bug], [Feature], [Documentation], [Deployment], [Test], [PoC]
+
+### Sub Category
+
+Pick one or more of [API], [Database], [Analytics], [Refactoring], [Data Science], [Machine Learning], [Accessibility], [Internationalization], [Localization], [Frontend], [Backend], [Mobile], [SEO], [Configuration], [Deprecation], [Breaking Change], [Maintenance], [Support], [Question], [Technical Debt], [Beginner friendly], [Research], [Reproducible], [Needs Reproduction].
diff --git a/api/dent.yaml b/api/dent.yaml
index 2823d1f..7655280 100644
--- a/api/dent.yaml
+++ b/api/dent.yaml
@@ -496,6 +496,7 @@ paths:
$ref: '#/components/schemas/Descriptor'
required:
- order_id
+ - cancellation_reason_id
required:
- context
- message
@@ -1903,6 +1904,10 @@ components:
type:
description: 'A code that describes the mode of fulfillment. This is typically set when there are multiple ways an order can be fulfilled. For example, a retail order can be fulfilled either via store pickup or a home delivery. Similarly, a medical consultation can be provided either in-person or via tele-consultation. The network policy must publish standard fulfillment type codes for the different modes of fulfillment.'
type: string
+ enum:
+ - CHARGING
+ - AUTOMATIC-DISPATCH
+ - VIRTUAL-POWER PURCHASE-AGREEMENTS
rateable:
description: Whether the fulfillment can be rated or not
type: boolean
diff --git a/api/l2-config/uei_evcharging_1.1.0.yaml b/api/l2-config/uei_evcharging_1.1.0.yaml
new file mode 100644
index 0000000..ecf61ba
--- /dev/null
+++ b/api/l2-config/uei_evcharging_1.1.0.yaml
@@ -0,0 +1,4522 @@
+openapi: 3.0.0
+info:
+ title: Beckn Energy API Specification
+ description: Adaptation of Beckn protocol for the Energy sector.
+ version: 1.1.0
+security:
+ - SubscriberAuth: []
+paths:
+ /search:
+ post:
+ tags:
+ - Beckn Provider Platform (BPP)
+ - Beckn Gateway (BG)
+ description: This allows the customer to search for energy service providers.
+ 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
+ examples:
+ The BAP looks for EV charging providers:
+ value:
+ context:
+ domain: uei:evcharging
+ action: search
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ ttl: 'PT5M'
+ message:
+ intent:
+ item:
+ descriptor:
+ name: Energy
+ quantity:
+ available:
+ measure:
+ value: '4.0'
+ unit: kWH
+ category:
+ descriptor:
+ code: GREEN_TARIFF
+ location:
+ circle:
+ gps: 12.423423,77.325647
+ radius:
+ type: CONSTANT
+ value: '5'
+ unit: km
+ responses:
+ '200':
+ 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
+ /select:
+ post:
+ tags:
+ - Beckn Provider Platform (BPP)
+ description: BAP selects a provider and their energy service.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: '#/components/schemas/Context'
+ - properties:
+ action:
+ enum:
+ - select
+ required:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BAPOrder'
+ required:
+ - order
+ required:
+ - context
+ - message
+ examples:
+ The BAP selects an EV charging service from a provider:
+ value:
+ context:
+ domain: uei:evcharging
+ action: select
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ provider:
+ id: chargezone.in
+ items:
+ - id: pe-charging-01
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ fulfillments:
+ - id: '1'
+ responses:
+ '200':
+ 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
+ /init:
+ post:
+ tags:
+ - Beckn Provider Platform (BPP)
+ description: Initialize an order by providing billing and/or shipping details to the energy service provider
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: '#/components/schemas/Context'
+ - properties:
+ action:
+ enum:
+ - init
+ required:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BAPOrder'
+ required:
+ - billing
+ required:
+ - order
+ required:
+ - context
+ - message
+ examples:
+ The BAP initiates an order for the EV charging service from a provider:
+ value:
+ context:
+ domain: uei:evcharging
+ action: init
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ provider:
+ id: chargezone.in
+ items:
+ - id: pe-charging-01
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ billing:
+ name: John Doe
+ email: abc@example.com
+ phone: "+91-9876522222"
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ responses:
+ '200':
+ 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: Confirms the order, completes the payment and waits for order confirmation.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: '#/components/schemas/Context'
+ - properties:
+ action:
+ enum:
+ - confirm
+ required:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BAPOrder'
+ required:
+ - billing
+ - payments
+ required:
+ - order
+ required:
+ - context
+ - message
+ examples:
+ The BAP confirms the order to charge the EV:
+ value:
+ context:
+ domain: uei:evcharging
+ action: confirm
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ providers:
+ id: chargezone.in
+ items:
+ - id: pe-charging-01
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ billing:
+ name: John Doe
+ email: abc@example.com
+ number: "+91-9876522222"
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ payments:
+ - id: '1234'
+ collected_by: BPP
+ status: PAID
+ type: PRE_ORDER
+ params:
+ amount: '40'
+ currency: INR
+ transaction_id: asjdhw8e238e3
+ responses:
+ '200':
+ 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
+ /status:
+ post:
+ tags:
+ - Beckn Provider Platform (BPP)
+ description: Fetch the latest order object status
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: '#/components/schemas/Context'
+ - properties:
+ action:
+ enum:
+ - status
+ required:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order_id:
+ $ref: '#/components/schemas/Order/properties/id'
+ required:
+ - order_id
+ required:
+ - context
+ - message
+ examples:
+ The BAP sends an status to get the status of the order:
+ value:
+ context:
+ domain: uei:evcharging
+ action: status
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order_id: 6743e9e2-4fb5-487c-92b7
+ responses:
+ '200':
+ 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
+ /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:
+ - bpp_id
+ - bpp_uri
+ 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
+ examples:
+ The BAP cancels the order for the EV charging:
+ value:
+ context:
+ domain: uei:evcharging
+ action: cancel
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ order_id: 6743e9e2-4fb5-487c-92b7
+ cancellation_reason_id: '5'
+ descriptor:
+ short_desc: can't attend booking
+ responses:
+ '200':
+ 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
+ /update:
+ post:
+ tags:
+ - Beckn Provider Platform (BPP)
+ description: Update a criteria of the order
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: '#/components/schemas/Context'
+ - properties:
+ action:
+ enum:
+ - update
+ required:
+ - bpp_id
+ - bpp_uri
+ 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:
+ - id
+ required:
+ - update_target
+ - order
+ required:
+ - context
+ - message
+ examples:
+ The BAP sends an update to start charging the EV:
+ value:
+ context:
+ domain: uei:evcharging
+ action: update
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ update_target: order.fulfillments[0].state
+ order:
+ id: "1234"
+ fulfillments:
+ - id: '1'
+ state:
+ descriptor:
+ code: end-charging
+ The BAP sends an update to stop charging the EV:
+ value:
+ context:
+ domain: uei:evcharging
+ action: update
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ update_target: order.fulfillments[0].state
+ order:
+ id: "1234"
+ fulfillments:
+ - id: '1'
+ type: CHARGING
+ state:
+ descriptor:
+ code: start-charging
+ responses:
+ '200':
+ 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
+ /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:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ ratings:
+ type: array
+ minItems: 1
+ items:
+ $ref: '#/components/schemas/Rating'
+ required:
+ - context
+ - message
+ examples:
+ The BAP rates the service provided:
+ value:
+ context:
+ domain: uei:evcharging
+ action: rating
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ ratings:
+ - id: 6743e9e2-4fb5-487c-92b7
+ rating_category: CHARGING_STATION
+ value: '5'
+ responses:
+ '200':
+ 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
+ /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:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ support:
+ $ref: '#/components/schemas/Support'
+ required:
+ - ref_id
+ required:
+ - context
+ - message
+ examples:
+ The BAP wants to contact support:
+ value:
+ context:
+ domain: uei:evcharging
+ action: support
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ support:
+ ref_id: 6743e9e2-4fb5-487c-92b7
+ phone: "+919876543210"
+ email: john.doe@gmail.com
+ responses:
+ '200':
+ 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
+ /on_search:
+ post:
+ tags:
+ - Beckn Application Platform (BAP)
+ - Beckn Gateway (BG)
+ description: The BPP sends its energy 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:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ catalog:
+ $ref: '#/components/schemas/Catalog'
+ required:
+ - catalog
+ error:
+ $ref: '#/components/schemas/Error'
+ required:
+ - context
+ examples:
+ The provider returns a list of catalogs:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_search
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ catalog:
+ providers:
+ - id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ locations:
+ - id: '1'
+ gps: 12.345345,77.389754
+ - id: '2'
+ gps: 12.247934,77.876987
+ categories:
+ - id: '1'
+ descriptor:
+ code: GREEN_TARIFF
+ name: green tariff
+ fulfillments:
+ - id: '1'
+ type: CHARGING
+ stops:
+ - type: start
+ time:
+ timestamp: 01-06-2023 10:00:00
+ - type: end
+ time:
+ timestamp: 01-06-2023 10:30:00
+ tags:
+ - descriptor:
+ name: Charging Point Specifications
+ list:
+ - descriptor:
+ name: Charger type
+ code: charger-type
+ value: AC
+ - descriptor:
+ name: Connector type
+ code: connector-type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ - id: '2'
+ type: CHARGING
+ stops:
+ - type: start
+ time:
+ timestamp: 01-06-2023 10:00:00
+ - type: end
+ time:
+ timestamp: 01-06-2023 10:30:00
+ tags:
+ - descriptor:
+ name: Charging Point
+ list:
+ - descriptor:
+ name: Charger type
+ value: AC
+ - descriptor:
+ name: Connector type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: STANDARD_CHARGING
+ name: abc
+ short_desc: ""
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ unit: kWH
+ value: '100'
+ category_ids:
+ - '1'
+ location_ids:
+ - '1'
+ - '2'
+ fulfillment_ids:
+ - '1'
+ - '2'
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ - id: log9.in
+ descriptor:
+ name: Log9 Inc
+ short_desc: ""
+ categories:
+ - id: '1'
+ descriptor:
+ code: GREEN_TARIFF
+ name: green tariff
+ fulfillments:
+ - id: '3'
+ type: BATTERY_SWAP
+ stops:
+ - location:
+ gps: 12.745675, 77.987393
+ - id: '4'
+ type: MOBILE_BATTERY_SWAP
+ stops:
+ - location:
+ url: https://log9.in/track/bswap/3234242
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: FAST_CHARGING
+ name: fast charging
+ short_desc: ""
+ price:
+ value: '10'
+ currency: INR / kWH
+ quantity:
+ available:
+ measure:
+ unit: kWH
+ value: '1000'
+ category_ids:
+ - '1'
+ fulfillment_ids:
+ - '3'
+ - '4'
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ name: Free tyre pressure check
+ price:
+ value: '0'
+ currency: INR
+
+ responses:
+ '200':
+ 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
+ /on_select:
+ post:
+ tags:
+ - Beckn Application Platform (BAP)
+ description: Send details along 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:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BPPOrder'
+ - not:
+ required:
+ - id
+ required:
+ - quote
+ required:
+ - order
+ error:
+ $ref: '#/components/schemas/Error'
+ required:
+ - context
+ examples:
+ The provider sends the details of the item selected, along with a quote:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_select
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ providers:
+ id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: STANDARD_CHARGING
+ name: "abc"
+ short_desc: ""
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ value: '100'
+ unit: kWh
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ - id: pe-charging-01-addon-1
+ descriptor:
+ code: add-on-item
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ fulfillments:
+ - id: '1'
+ type: CHARGING
+ stops:
+ - type: start
+ time:
+ timestamp: 01-06-2023 10:00:00
+ - type: end
+ time:
+ timestamp: 01-06-2023 10:30:00
+ tags:
+ - descriptor:
+ name: Charging Point Specifications
+ list:
+ - descriptor:
+ name: Charger type
+ code: charger-type
+ value: AC
+ - descriptor:
+ name: Connector type
+ code: connector-type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ quote:
+ price:
+ value: '32'
+ currency: INR
+ breakup:
+ - item:
+ id: pe-charging-01
+ descriptor:
+ name: Estimated units consumed
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ title: ENERGY
+ price:
+ value: '32'
+ currency: INR
+ - item:
+ add-ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ name: Free car wash
+ title: ADD_ON
+ price:
+ value: '0'
+ currency: INR
+ responses:
+ '200':
+ 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
+ /on_init:
+ post:
+ tags:
+ - Beckn Application Platform (BAP)
+ description: Send draft order object with payment details updated for the service.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: '#/components/schemas/Context'
+ - properties:
+ action:
+ enum:
+ - on_init
+ required:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BPPOrder'
+ - not:
+ required:
+ - id
+ required:
+ - quote
+ - billing
+ - payments
+ - cancellation_terms
+ required:
+ - order
+ error:
+ $ref: '#/components/schemas/Error'
+ required:
+ - context
+ examples:
+ The BPP intiates the order, sends the payment link:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_init
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ providers:
+ id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: STANDARD_CHARGING
+ name: abc
+ short_desc: ""
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ value: '100'
+ unit: kWh
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ code: add-on-item
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ type: CHARGING
+ state:
+ descriptor:
+ code: order-initiated
+ stops:
+ - type: start
+ time:
+ timestamp: 01-06-2023 10:00:00
+ - type: end
+ time:
+ timestamp: 01-06-2023 10:30:00
+ tags:
+ - descriptor:
+ name: Charging Point
+ list:
+ - descriptor:
+ name: Charger type
+ value: AC
+ - descriptor:
+ name: Connector type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ billing:
+ email: abc@example.com
+ number: "+91-9876522222"
+ quote:
+ price:
+ value: '32'
+ currency: INR
+ breakup:
+ - item:
+ descriptor:
+ name: Estimated units consumed
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ title: ENERGY
+ price:
+ value: '32'
+ currency: INR
+ payments:
+ - url: https://payment.gateway.in
+ type: PRE_ORDER
+ status: NOT_PAID
+ params:
+ amount: '40'
+ currency: INR
+ time:
+ range:
+ start: '2023-08-10T10:00:00Z'
+ end: '2023-08-10T10:30:00Z'
+ cancellation_terms:
+ - fulfillment_state:
+ descriptor:
+ code: charging-start
+ cancel_by:
+ label: upto 2 hours before the booked slot
+ cancellation_fee:
+ percentage: 30%
+ external_ref:
+ mimetype: text/html
+ url: https://chargezone.in/charge/tnc.html
+ responses:
+ '200':
+ 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
+ /on_confirm:
+ post:
+ tags:
+ - Beckn Application Platform (BAP)
+ description: Send active order object with the confirmed order ID
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: '#/components/schemas/Context'
+ - properties:
+ action:
+ enum:
+ - on_confirm
+ required:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BPPOrder'
+ - properties:
+ fulfillments:
+ type: array
+ items:
+ allOf:
+ - properties:
+ state:
+ allOf:
+ - properties:
+ descriptor:
+ required:
+ - code
+ required:
+ - state
+ required:
+ - quote
+ - billing
+ - payments
+ - cancellation_terms
+ - id
+ required:
+ - order
+ error:
+ $ref: '#/components/schemas/Error'
+ required:
+ - context
+ examples:
+ The BAP sends an order confirmation:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_confirm
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ id: 6743e9e2-4fb5-487c-92b7
+ providers:
+ id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: STANDARD_CHARGING
+ name: abc
+ short_desc: ""
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ value: '100'
+ unit: kWh
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ code: add-on-item
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ type: CHARGING
+ state:
+ descriptor:
+ code: payment-completed
+ stops:
+ - type: start
+ location:
+ gps: 12.423423,77.325647
+ time:
+ timestamp: 01-06-2023 10:00:00
+ range:
+ start: 01-06-2023 10:00:00
+ end: 01-06-2023 10:10:00
+ instructions:
+ name: Charging instructions
+ short_desc: To start your charging, go to charger number 987, and click
+ on 'start' on your app
+ - type: end
+ time:
+ timestamp: 01-06-2023 10:30:00
+ range:
+ start: 01-06-2023 10:30:00
+ end: 01-06-2023 10:40:00
+ tags:
+ - descriptor:
+ name: Charging Point
+ list:
+ - descriptor:
+ name: Charger type
+ value: AC
+ - descriptor:
+ name: Connector type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ billing:
+ email: abc@example.com
+ number: "+91-9876522222"
+ quote:
+ price:
+ value: '40'
+ currency: INR
+ breakup:
+ - item:
+ descriptor:
+ name: Estimated units consumed
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ title: ENERGY
+ price:
+ value: '32'
+ currency: INR
+ payments:
+ - id: testid
+ type: PRE_ORDER
+ status: PAID
+ params:
+ amount: '40'
+ currency: INR
+ transaction_id: asjdhw8e238e3
+ time:
+ range:
+ start: '2023-08-10T10:00:00Z'
+ end: '2023-08-10T10:30:00Z'
+ cancellation_terms:
+ - fulfillment_state:
+ descriptor:
+ code: charging-start
+ cancel_by:
+ label: "upto 2 hours before the booked slot"
+ cancellation_fee:
+ percentage: 30%
+ external_ref:
+ mimetype: text/html
+ url: https://chargezone.in/charge/tnc.html
+ responses:
+ '200':
+ 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
+ /on_cancel:
+ post:
+ tags:
+ - Beckn Application Platform (BAP)
+ description: Sends cancelled order object with the reason.
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ context:
+ allOf:
+ - $ref: '#/components/schemas/Context'
+ - properties:
+ action:
+ enum:
+ - on_cancel
+ required:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BPPOrder'
+ - properties:
+ fulfillments:
+ type: array
+ items:
+ allOf:
+ - properties:
+ state:
+ allOf:
+ - properties:
+ descriptor:
+ required:
+ - code
+ required:
+ - descriptor
+ required:
+ - state
+ required:
+ - quote
+ - billing
+ - payments
+ - cancellation_terms
+ - id
+ - cancellation
+ required:
+ - order
+ error:
+ $ref: '#/components/schemas/Error'
+ required:
+ - context
+ examples:
+ The provider cancels the order after the BAP requested for a cancellation:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_cancel
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ id: 6743e9e2-4fb5-487c-92b7
+ status: CANCELLED
+ providers:
+ id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: STANDARD_CHARGING
+ name: abc
+ short_desc: ""
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ value: '100'
+ unit: kWh
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ code: add-on-item
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ type: CHARGING
+ state:
+ descriptor:
+ code: order-cancelled
+ stops:
+ - time:
+ range:
+ start: '10:00'
+ end: '10:30'
+ tags:
+ - descriptor:
+ name: Charging Point
+ list:
+ - descriptor:
+ name: Charger type
+ value: AC
+ - descriptor:
+ name: Connector type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ billing:
+ email: abc@example.com
+ number: "+91-9876522222"
+ quote:
+ price:
+ value: "-32"
+ currency: INR
+ breakup:
+ - item:
+ descriptor:
+ name: payment refund
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ title: ENERGY
+ price:
+ value: "-32"
+ currency: INR
+ payments:
+ - id: testid
+ type: PRE_ORDER
+ status: PAID
+ params:
+ amount: '40'
+ currency: INR
+ transaction_id: asjdhw8e238e3
+ time:
+ range:
+ start: '2023-08-10T10:00:00Z'
+ end: '2023-08-10T10:30:00Z'
+ cancellation_terms:
+ - fulfillment_state:
+ descriptor:
+ code: charging-start
+ cancel_by:
+ label: upto 2 hours before the booked slot
+ cancellation_fee:
+ percentage: 30%
+ external_ref:
+ mimetype: text/html
+ url: https://chargezone.in/charge/tnc.html
+
+ The provider cancels the order after the there was an error in the charger:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_cancel
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ id: 6743e9e2-4fb5-487c-92b7
+ status: CANCELLED
+ providers:
+ id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: STANDARD_CHARGING
+ name: abc
+ short_desc: ""
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ value: '100'
+ unit: kWh
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ allocated:
+ measure:
+ value: '2'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ code: add-on-item
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ type: CHARGING
+ state:
+ descriptor:
+ code: charger-error
+ stops:
+ - time:
+ range:
+ start: '10:00'
+ end: '10:30'
+ tags:
+ - descriptor:
+ name: Charging Point
+ list:
+ - descriptor:
+ name: Charger type
+ value: AC
+ - descriptor:
+ name: Connector type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ billing:
+ email: abc@example.com
+ number: "+91-9876522222"
+ quote:
+ price:
+ value: "-12"
+ currency: INR
+ breakup:
+ - item:
+ descriptor:
+ name: payment refund
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ title: ENERGY
+ price:
+ value: "-12"
+ currency: INR
+ payments:
+ - id: testid
+ type: PRE_ORDER
+ status: PAID
+ params:
+ amount: '40'
+ currency: INR
+ transaction_id: asjdhw8e238e3
+ time:
+ range:
+ start: '2023-08-10T10:00:00Z'
+ end: '2023-08-10T10:30:00Z'
+ cancellation_terms:
+ - fulfillment_state:
+ descriptor:
+ code: charging-start
+ cancel_by:
+ label: upto 2 hours before the booked slot
+ cancellation_fee:
+ percentage: 30%
+ external_ref:
+ mimetype: text/html
+ url: https://chargezone.in/charge/tnc.html
+
+ responses:
+ '200':
+ 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
+ /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:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BPPOrder'
+ - properties:
+ fulfillments:
+ type: array
+ items:
+ allOf:
+ - properties:
+ state:
+ allOf:
+ - properties:
+ descriptor:
+ required:
+ - code
+ required:
+ - descriptor
+ required:
+ - state
+ required:
+ - quote
+ - billing
+ - payments
+ - cancellation_terms
+ - id
+ required:
+ - order
+ error:
+ $ref: '#/components/schemas/Error'
+ required:
+ - context
+ examples:
+ The provider sends an updated object to start charging:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_update
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ id: 6743e9e2-4fb5-487c-92b7
+ providers:
+ id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: STANDARD_CHARGING
+ name: abc
+ short_desc: ""
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ value: '100'
+ unit: kWh
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ code: add-on-item
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ type: CHARGING
+ state:
+ descriptor:
+ code: charging-started
+ stops:
+ - type: start
+ location:
+ gps: 12.423423,77.325647
+ time:
+ timestamp: 01-06-2023 10:00:00
+ range:
+ start: 01-06-2023 10:00:00
+ end: 01-06-2023 10:10:00
+ - type: end
+ time:
+ timestamp: 01-06-2023 10:30:00
+ range:
+ start: 01-06-2023 10:30:00
+ end: 01-06-2023 10:40:00
+ tags:
+ - descriptor:
+ name: Charging Point
+ list:
+ - descriptor:
+ name: Charger type
+ value: AC
+ - descriptor:
+ name: Connector type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ billing:
+ email: abc@example.com
+ number: "+91-9876522222"
+ quote:
+ price:
+ value: '40'
+ currency: INR
+ breakup:
+ - item:
+ descriptor:
+ name: Estimated units consumed
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ title: ENERGY
+ price:
+ value: '32'
+ currency: INR
+ payments:
+ - id: testid
+ type: PRE-ORDER
+ status: PAID
+ params:
+ amount: '40'
+ currency: INR
+ transaction_id: asjdhw8e238e3
+ time:
+ range:
+ start: '2023-08-10T10:00:00Z'
+ end: '2023-08-10T10:30:00Z'
+ cancellation_terms:
+ - fulfillment_state:
+ descriptor:
+ code: charging-start
+ cancel_by:
+ label: upto 2 hours before the booked slot
+ cancellation_fee:
+ percentage: 30%
+ external_ref:
+ mimetype: text/html
+ url: https://chargezone.in/charge/tnc.html
+
+ The provider sends an updated object to stop charging:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_update
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ id: 6743e9e2-4fb5-487c-92b7
+ providers:
+ id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: energy
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ value: '100'
+ unit: kWh
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ code: add-on-item
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ type: CHARGING
+ state:
+ descriptor:
+ code: charging-ended
+ stops:
+ - type: start
+ location:
+ gps: 12.423423,77.325647
+ time:
+ timestamp: 01-06-2023 10:00:00
+ range:
+ start: 01-06-2023 10:00:00
+ end: 01-06-2023 10:10:00
+ - type: end
+ time:
+ timestamp: 01-06-2023 10:30:00
+ range:
+ start: 01-06-2023 10:30:00
+ end: 01-06-2023 10:40:00
+ tags:
+ - descriptor:
+ name: Charging Point
+ list:
+ - descriptor:
+ name: Charger type
+ value: AC
+ - descriptor:
+ name: Connector type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ billing:
+ email: abc@example.com
+ number: "+91-9876522222"
+ quote:
+ price:
+ value: '40'
+ currency: INR
+ breakup:
+ - item:
+ descriptor:
+ name: Estimated units consumed
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ price:
+ value: '32'
+ currency: INR
+ payments:
+ - type: PRE-ORDER
+ status: PAID
+ params:
+ amount: '40'
+ currency: INR
+ transaction_id: asjdhw8e238e3
+ time:
+ range:
+ start: '2023-08-10T10:00:00Z'
+ end: '2023-08-10T10:30:00Z'
+ cancellation_terms:
+ - fulfillment_state:
+ descriptor:
+ code: charging-start
+ cancellation_fee:
+ percentage: 30%
+ external_ref:
+ mimetype: text/html
+ url: https://chargezone.in/charge/tnc.html
+ responses:
+ '200':
+ 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
+ /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:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ order:
+ allOf:
+ - $ref: '#/components/schemas/BPPOrder'
+ - properties:
+ fulfillments:
+ type: array
+ items:
+ allOf:
+ - properties:
+ state:
+ allOf:
+ - properties:
+ descriptor:
+ required:
+ - code
+ required:
+ - descriptor
+ required:
+ - state
+ required:
+ - quote
+ - billing
+ - payments
+ - cancellation_terms
+ - id
+ required:
+ - order
+ error:
+ $ref: '#/components/schemas/Error'
+ required:
+ - context
+ examples:
+ The provider sends status of the charging:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_status
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: example-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ order:
+ id: 6743e9e2-4fb5-487c-92b7
+ providers:
+ id: chargezone.in
+ descriptor:
+ name: Chargezone
+ short_desc: Chargezone Technologies Pvt Ltd
+ images:
+ - url: https://chargezone.in/images/logo.png
+ items:
+ - id: pe-charging-01
+ descriptor:
+ code: STANDARD_CHARGING
+ name: abc
+ short_desc: ""
+ price:
+ value: '8'
+ currency: INR/kWH
+ quantity:
+ available:
+ measure:
+ value: '100'
+ unit: kWh
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ add_ons:
+ - id: pe-charging-01-addon-1
+ descriptor:
+ code: add-on-item
+ name: Free car wash
+ price:
+ value: '0'
+ currency: INR
+ fulfillments:
+ - id: '1'
+ customer:
+ person:
+ name: John Doe
+ contact:
+ phone: "+91-9887766554"
+ type: CHARGING
+ state:
+ descriptor:
+ name: vehicle 65% charged
+ stops:
+ - type: start
+ location:
+ gps: 12.423423,77.325647
+ time:
+ timestamp: 01-06-2023 10:00:00
+ range:
+ start: 01-06-2023 10:00:00
+ end: 01-06-2023 10:10:00
+ - type: end
+ time:
+ timestamp: 01-06-2023 10:30:00
+ range:
+ start: 01-06-2023 10:30:00
+ end: 01-06-2023 10:40:00
+ tags:
+ - descriptor:
+ name: Charging Point
+ list:
+ - descriptor:
+ name: Charger type
+ value: AC
+ - descriptor:
+ name: Connector type
+ value: CCS2
+ - descriptor:
+ name: Power Rating
+ value: greater than 50kW
+ - descriptor:
+ name: Availability
+ value: Available
+ display: true
+ billing:
+ email: abc@example.com
+ number: "+91-9876522222"
+ quote:
+ price:
+ value: '32'
+ currency: INR
+ breakup:
+ - item:
+ descriptor:
+ name: Estimated units consumed
+ quantity:
+ selected:
+ measure:
+ value: '4'
+ unit: kWh
+ title: ENERGY
+ price:
+ value: '32'
+ currency: INR
+ payments:
+ - id: testid
+ type: PRE-ORDER
+ status: PAID
+ params:
+ amount: '40'
+ currency: INR
+ transaction_id: asjdhw8e238e3
+ time:
+ range:
+ start: '2023-08-10T10:00:00Z'
+ end: '2023-08-10T10:30:00Z'
+ cancellation_terms:
+ - fulfillment_state:
+ descriptor:
+ code: charging-start
+ cancel_by:
+ label: upto 2 hours before the booked slot
+ cancellation_fee:
+ percentage: 30%
+ external_ref:
+ mimetype: text/html
+ url: https://chargezone.in/charge/tnc.html
+ responses:
+ '200':
+ 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
+ /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:
+ - bpp_id
+ - bpp_uri
+ 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
+ examples:
+ The provider responds with a form URL for rating:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_rating
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ feedback_form:
+ form:
+ url: https://api.example-bpp.com/pilot/bpp/feedback/portal
+ required: 'false'
+ responses:
+ '200':
+ 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
+ /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:
+ - bpp_id
+ - bpp_uri
+ message:
+ type: object
+ properties:
+ support:
+ allOf:
+ - $ref: '#/components/schemas/Support'
+ - anyOf:
+ - required:
+ - phone
+ - required:
+ - email
+ - required:
+ - url
+ error:
+ $ref: '#/components/schemas/Error'
+ required:
+ - context
+ examples:
+ The provider returns support details:
+ value:
+ context:
+ domain: uei:evcharging
+ action: on_support
+ location:
+ country:
+ code: IND
+ city:
+ code: std:080
+ version: 1.1.0
+ bap_id: example-bap.com
+ bap_uri: https://api.example-bap.com/pilot/bap/energy/v1
+ bpp_id: chargezone-energy-bpp.com
+ bpp_uri: https://api.example-bpp.com/pilot/bpp/
+ transaction_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ message_id: 6743e9e2-4fb5-487c-92b7-13ba8018f176
+ timestamp: '2023-07-16T04:41:16Z'
+ message:
+ support:
+ ref_id: 6743e9e2-4fb5-487c-92b7
+ phone: 1800 1080
+ email: customer.care@chargezone.com
+ url: https://www.chargezone.com/helpdesk
+ responses:
+ '200':
+ 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
+components:
+ securitySchemes:
+ SubscriberAuth:
+ 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(signing string)"'
+ 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
+ additionalProperties: false
+ 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
+ additionalProperties: false
+ properties:
+ id:
+ description: Provider-defined ID of the add-on
+ type: string
+ descriptor:
+ allOf:
+ - $ref: '#/components/schemas/Descriptor'
+ - properties:
+ code:
+ type: string
+ enum:
+ - VEHICLE_WASH
+ - MIRROR_CLEANING
+ - TIRE_CHECK
+ - BATTERY_HEALTH_CHECK
+ - FREE_WIFI
+ - INSURANCE
+ 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."
+ type: object
+ additionalProperties: false
+ 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
+ additionalProperties: false
+ 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.
This has properties like name,organization,address,email,phone,time,tax_number, created_at,updated_at'
+ type: object
+ additionalProperties: false
+ 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
+ additionalProperties: false
+ 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'
+ required:
+ - time
+ - cancelled_by
+ 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
+ additionalProperties: false
+ 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'
+ required:
+ - cancel_by
+ - cancellation_fee
+ 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.
This has properties like bbp/descriptor,bbp/categories,bbp/fulfillments,bbp/payments,bbp/offers,bbp/providers and exp
This is used in the following situations.