python adaptor for ondc
Project description
python-ondc (WIP)
python-ondc is a python adaptor for ONDC
Installing
pip install python-ondc
Usage
>>> import ondc
>>> ondc.version()
'v0.0.1'
Beckn Protocol API Specification
This folder contains the Core API specification for Beckn Protocol. It defines interoperable API endpoints for discovery, order, fulfillment and post-fulfillment actions performed between a producer and a consumer. To improve performance and scalability, some Meta APIs are also specified. All these APIs are stateless and asynchronous.
The current format for representing these endpoints is Open API 3.0
Supported Actions
Discovery Actions
search
This action describes how a BAP can search for products and services.
on_search
This action describes how a BPP can publish the catalogs of its providers.
Order Actions
select
This action describes how a BAP can request a quote from a BPP
on_select
This action describes how a BPP can provide a quote to a BAP
init
This action describes how a BAP can request the final payment terms from a BPP
on_init
This action describes how a BPP can provide the final payment terms to a BAP
confirm
This action describes how a BAP can request the BPP to confirm the transaction
on_confirm
This action describes how a BPP can return a confirmed transaction
Fulfillment Actions
status
This action describes how a BAP can request the latest status of a transaction
on_status
This action describes how a BPP can return the latest status of a transaction
track
This action describes how a BAP can request tracking information of an order
on_track
This action describes how a BPP can return the tracking information of an order
update
This action describes how a BAP can request the BPP to update an active order
on_update
This action describes how a BPP can return an updated order
cancel
This action describes how a BAP can request the BPP to cancel a transaction
on_cancel
This action describes how a BPP can return a cancelled order
Post-fulfillment Actions
support
This action describes how a BAP can request support information for a transaction
on_support
This action describes how a BPP can return support information for a transaction
rating
This action describes how a BAP can provide rating for a Rateable Entity of a BPP
on_rating
This action describes how a BPP can acknowledge the rating provided by a BAP for a Rateable Entity of a BPP
Meta Actions
get_rating_categories
This action describes how a BAP requests a BPP to provide all the Rateable Entities
rating_categories
This action describes how a BPP returns all the Rateable Entities to a BAP
get_cancellation_reasons
This action describes how a BAP requests a BPP to provide a list of cancellation reasons
cancellation_reasons
This action describes how a BPP returns the list of cancellation reasons to a BAP
get_feedback_categories
This action describes how a BAP requests a BPP to provide a list of categories for which feedback can be given
feedback_categories
This action describes how a BPP returns the list of categories for which feedback can be given
get_feedback_form
This action describes how a BAP requests a BPP to provide a feedback form for a particular rating category and value
feedback_form
This action describes how a BPP returns a feedback form for a particular rating category and value
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ondc-0.0.1.tar.gz
.
File metadata
- Download URL: ondc-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a55caaaa67d8d3f32f79a9d9420737503209c9724ef715732e7a5978c155a308 |
|
MD5 | 6f24ae47db2cbbb62d3e5fcd74098e7c |
|
BLAKE2b-256 | b93a618d8338f5c05809ef0fbe2be6b24f55dda85a68df8c3699200b06d205e4 |