Skip to content

Commit 68f8f5e

Browse files
amitsinha07Jagannath-Padhy
authored andcommitted
Readme file updated
1 parent 0d78729 commit 68f8f5e

File tree

1 file changed

+71
-12
lines changed

1 file changed

+71
-12
lines changed

README.md

+71-12
Original file line numberDiff line numberDiff line change
@@ -713,32 +713,91 @@ curl --location 'http://localhost:3008/api/validate/rsf' \
713713

714714
### For IGM 2.0.0 Sample Curl Request (Local)
715715

716+
# For FLOW_1
717+
718+
```shell
719+
curl --location 'https://log-validation.ondc.org/api/validate/igm' \
720+
--header 'Content-Type: application/json' \
721+
--data '{
722+
"domain": "",
723+
"version": "2.0.0",
724+
"bap_id": "BUYER_APP_SUBSCRIBER_ID",
725+
"flow": "FLOW_1",
726+
"bpp_id": "SELLER_APP_SUBSCRIBER_ID",
727+
"payload": {
728+
"issue_open": {},
729+
"on_issue_processing_1":{},
730+
"on_issue_info_required": {},
731+
"issue_info_provided": {},
732+
"on_issue_processing_2": {},
733+
"on_issue_resolution_proposed": {},
734+
"issue_resolution_accepted": {},
735+
"on_issue_resolved": {},
736+
"issue_closed": {}
737+
}
738+
}'
739+
740+
```
741+
742+
# For FLOW_2
743+
716744
```shell
717745
curl --location 'https://log-validation.ondc.org/api/validate/igm' \
718746
--header 'Content-Type: application/json' \
719747
--data '{
720748
"domain": "",
721749
"version": "2.0.0",
722750
"bap_id": "BUYER_APP_SUBSCRIBER_ID",
751+
"flow": "FLOW_2",
723752
"bpp_id": "SELLER_APP_SUBSCRIBER_ID",
724753
"payload": {
725-
"issue_1": {},
726-
"on_issue_1": {},
727-
"on_issue_2": {},
728-
"issue_2": {},
729-
"on_issue_3": {},
730-
"on_issue_4": {},
731-
"issue_3": {},
732-
"on_issue_5": {},
733-
"on_issue_6": {},
734-
"issue_4": {},
735-
"on_issue_7": {},
736-
"issue_5": {}
754+
"issue_open": {},
755+
"on_issue_processing": {},
756+
"on_issue_resolution_proposed": {},
757+
"issue_resolution_accepted": {},
758+
"on_issue_resolved": {},
759+
"issue_esclated": {},
760+
"on_issue_gro_processing": {},
761+
"on_issue_gro_resolution_proposed": {},
762+
"on_issue_gro_resolved": {},
763+
"issue_close": {}
737764
}
738765
}'
739766

740767
```
741768

769+
# For FLOW_3
770+
771+
```shell
772+
curl --location 'https://log-validation.ondc.org/api/validate/igm' \
773+
--header 'Content-Type: application/json' \
774+
--data '{
775+
"domain": "",
776+
"version": "2.0.0",
777+
"bap_id": "BUYER_APP_SUBSCRIBER_ID",
778+
"flow": "FLOW_3",
779+
"bpp_id": "SELLER_APP_SUBSCRIBER_ID",
780+
"payload": {
781+
"issue_open": {},
782+
"on_issue_processing": {},
783+
"issue_lsp_open": {},
784+
"on_issue_lsp_processing": {},
785+
"on_issue_lsp_info_required": {},
786+
"on_issue_info_required": {},
787+
"issue_info_provided": {},
788+
"issue_info_lsp_info_provided": {},
789+
"on_issue_lsp_resolution_proposed": {},
790+
"on_issue_resolution_proposed": {},
791+
"issue_resolution_accepted": {},
792+
"issue_lsp_resolution_accepted": {},
793+
"on_issue_lsp_resolved": {},
794+
"on_issue_resolved": {},
795+
"issue_close": {},
796+
"issue_lsp_close": {}
797+
}
798+
}'
799+
800+
```
742801

743802
Using Postman, you can import the above `curl` command into Postman and replace the empty objects in the payload with your actual data. This allows for easy testing and validation of transaction logs on your local environment.
744803

0 commit comments

Comments
 (0)