Q&A for Draft Insurance 2.0.0 #75
Replies: 31 comments 54 replies
-
@92shreyansh "When I call the search API, I'm encountering an error. Please take a look at it. Also, where can I find the values 'message_id' and 'transaction_id,' such as 'message_id': '385e3fb7-61e6-49a7-acbc-8ac05f934d4d' and 'transaction_id': 'c04a04ee-d892-400f-bbe6-479a43b4448a'? Are they static or do they change with each new request?" |
Beta Was this translation helpful? Give feedback.
-
https://staging.gateway.proteantech.in/search { |
Beta Was this translation helpful? Give feedback.
-
Hi, @92shreyansh @ssumitkv @suryabhankh24 @subodhParamanik @rashid-rb @navdeep710 @BLR-0118 @anuj-ondc @harshmalik9423 @ Please Help Me We are want to offer invoice based loans, please share me a API document links to request customer Gstin, name, loan amount to get to know loan eligible, interest etc I trying example request : Response is Authentication Error: Please share me Search API document link where i pass loan amount, customer GSTIN number, address etc to get to know loan is eligible or not We are want to offer invoice based loans, |
Beta Was this translation helpful? Give feedback.
-
@92shreyansh @subodhParamanik @navdeep710 We follow this here document step by step, create and verify header, and perform base64encode and place it as signature but got same response. as "Throwable: The signature verification failed". Below our request body : {"context":{"domain":"ONDC:FIS12","country":"IND","city":"Delhi","action":"search","core_version":"0.9.1","bap_id":"staging.tyreplex.com","bap_uri":"https://staging.tyreplex.com/","transaction_id":"e6d9f908-1d26-4ff3-a6d1-3af3d3721169","message_id":"a2fe6d52-9fe4-4d1a-9d0b-dccb8b48599a","timestamp":"2023-11-16T16:44:54.101Z","ttl":"P1M"},"message":{"intent":{"fulfillment":{"start":{"location":{"gps":"10.108768, 76.347517"}},"end":{"location":{"gps":"10.102997, 76.353480"}}}}}} Our Keys: Signing PUBLIC_KEY=ELHA1yg8Dku6vvJzb3K7QOnEL4kkDUpxxJEiTK+l5Qc= Generate the digest of the request body using the BLAKE-512 hashing function: $ python cryptic_utils.py hash_message (created): 1700205536 Concatenate the three values, i.e the created, expires and digest in the format as shown below: (created):1700205536\n(expires):1700248736\ndigest:BLAKE-512=dOvLaKphEpRI0ba85GlhM4Zp8+4g07rwxPmKwuYt0PI+gFRL+uYlh4lSvascj3AzEhAGW3qMiIWF5v7p/LIzZw== The we will then sign this string using it's registered signing private key via the Ed25519 Signature Scheme $ python cryptic_utils.py sign_response "(created):1700205536\n(expires):1700248736\ndigest:BLAKE-512=dOvLaKphEpRI0ba85GlhM4Zp8+4g07rwxPmKwuYt0PI+gFRL+uYlh4lSvascj3AzEhAGW3qMiIWF5v7p/LIzZw==" "yyJUtgiy+fEq8EAM+Dl3avZrZJxr1TPJPUxcZ4JmTI4QscDXKDwOS7q+8nNvcrtA6cQviSQNSnHEkSJMr6XlBw==" NY//bk6qL85BIzKRVX/KXMDWadADe2E9Yvpdqp4bgFGYgvHabSscXHWxZmz5w2nu8g2lcmyHKOujudls0Zq3BQ== Finally the NP will generate a base64 encoded string of the signature and insert it into the signature parameter of the Authorization header TlkvL2JrNnFMODVCSXpLUlZYL0tYTURXYWRBRGUyRTlZdnBkcXA0YmdGR1lndkhhYlNzY1hIV3habXo1dzJudThnMmxjbXlIS091anVkbHMwWnEzQlE9PQo= Finally the Authorization header will look like this: Signature keyId="staging.tyreplex.com|27baa06e-t91a-486c-85e1-cc621b787t01|ed25519",algorithm="ed25519",created="1700205536",expires="1700248736",headers="(created) (expires) digest",signature="TlkvL2JrNnFMODVCSXpLUlZYL0tYTURXYWRBRGUyRTlZdnBkcXA0YmdGR1lndkhhYlNzY1hIV3habXo1dzJudThnMmxjbXlIS091anVkbHMwWnEzQlE9PQo=" our postman request is below { header: Authorization:Signature keyId="staging.tyreplex.com|27baa06e-t91a-486c-85e1-cc621b787t01|ed25519",algorithm="ed25519",created="1700205536",expires="1700248736",headers="(created) (expires) digest",signature="TlkvL2JrNnFMODVCSXpLUlZYL0tYTURXYWRBRGUyRTlZdnBkcXA0YmdGR1lndkhhYlNzY1hIV3habXo1dzJudThnMmxjbXlIS091anVkbHMwWnEzQlE9PQo=" |
Beta Was this translation helpful? Give feedback.
-
If your problem resolved suggest me for above problem, please. |
Beta Was this translation helpful? Give feedback.
-
Hi ONDC Team, Shreyansh Shah Please look into this. Please Help Me to create Authorization Header. It is always showing error like "Throwable: The signature verification failed" when I hit search api https://github.com/ONDC-Official/developer-docs/blob/main/registry/Onboarding%20of%20Participants.md We have already successfully completed: Subscribe , on_subscribe , lookup , vlookup API steps Now the problem is that, we are not able to hit Search Api request due to Authorization Header, it always throws error like "Throwable: The signature verification failed" image.png {"context":{"domain":"ONDC:FIS12","location":{"city":{"code":"*"},"country":{"code":"IND"}},"action":"search","version":"2.0.0","bap_id":"staging.tyreplex.com","bap_uri":"https://staging.tyreplex.com/","transaction_id":"e6d9f908-1d26-4ff3-a6d1-3af3d3721054","message_id":"a2fe6d52-9fe4-4d1a-9d0b-dccb8b48522d","timestamp":"2023-11-21T11:07:49.974Z","ttl":"P1M"},"message":{"ack":{"status":"NACK"}},"error":{"type":"Gateway","code":"10001","message":"Throwable: The signature verification failed"}} signing_private_key = yyJUtgiy+fEq8EAM+Dl3avZrZJxr1TPJPUxcZ4JmTI4QscDXKDwOS7q+8nNvcrtA6cQviSQNSnHEkSJMr6XlBw== This is how we created header Steps: Step 1) https://github.com/ONDC-Official/reference-implementations/blob/main/utilities/signing_and_verification/request_body_raw_text.txt request_body_raw_text.txt In this file I already put Search Api json request body : {"context":{"domain":"ONDC:FIS12","location":{"country":{"code":"IND"},"city":{"code":"*"}},"transaction_id":"e6d9f908-1d26-4ff3-a6d1-3af3d3721054","message_id":"a2fe6d52-9fe4-4d1a-9d0b-dccb8b48522d","action":"search","timestamp":"2023-11-20T18:31:33.001Z","version":"2.0.0","bap_uri":"https://staging.tyreplex.com/","bap_id":"[staging.tyreplex.com](http://staging.tyreplex.com/)","ttl":"P1M"},"message":{"intent":{"category":{"descriptor":{"code":"INVOICE_BASED_LOAN"}},"payment":{"collected_by":"BPP","tags":[{"descriptor":{"code":"BUYER_FINDER_FEES"},"display":false,"list":[{"descriptor":{"code":"BUYER_FINDER_FEES_TYPE"},"value":"percent-annualized"},{"descriptor":{"code":"BUYER_FINDER_FEES_PERCENTAGE"},"value":"2.5"}]},{"descriptor":{"code":"SETTLEMENT_TERMS"},"display":false,"list":[{"descriptor":{"code":"DELAY_INTEREST"},"value":"1"},{"descriptor":{"code":"STATIC_TERMS"},"value":"https://staging.tyreplex.com/terms-of-use"}]}]}}}} When i create authorisation_header using this way $ python cryptic_utils.py create_authorisation_header like "Signature keyId="staging.tyreplex.com|27baa06e-t91a-486c-85e1-cc621b787t01|ed25519",algorithm="ed25519",created="1700210388",expires="1700253588",headers="(created) (expires) digest",signature="DXeLJQMIDbCgv2X7NZvjL6H5iI/r60RNd5icIFDvUTfgnXfrqiAs53+w86ldJMVUdtwKJLa3HO8NWXRfqTPeCQ=="" Step 3) This is header verification: $ python cryptic_utils.py verify_authorisation_header '"Signature keyId="staging.tyreplex.com|27baa06e-t91a-486c-85e1-cc621b787t01|ed25519",algorithm="ed25519",created="1700210388",expires="1700253588",headers="(created) (expires) digest",signature="DXeLJQMIDbCgv2X7NZvjL6H5iI/r60RNd5icIFDvUTfgnXfrqiAs53+w86ldJMVUdtwKJLa3HO8NWXRfqTPeCQ==""' Output is always True Step 4) This header passing in authorization header using postman like Signature keyId="staging.tyreplex.com|27baa06e-t91a-486c-85e1-cc621b787t01|ed25519",algorithm="ed25519",created="1700210388",expires="1700253588",headers="(created) (expires) digest",signature="DXeLJQMIDbCgv2X7NZvjL6H5iI/r60RNd5icIFDvUTfgnXfrqiAs53+w86ldJMVUdtwKJLa3HO8NWXRfqTPeCQ==" We got "message": "Throwable: The signature verification failed" image.png Our request_body_raw_text.txt file contain below code: {"context":{"domain":"ONDC:FIS12","location":{"country":{"code":"IND"},"city":{"code":"*"}},"transaction_id":"e6d9f908-1d26-4ff3-a6d1-3af3d3721054","message_id":"a2fe6d52-9fe4-4d1a-9d0b-dccb8b48522d","action":"search","timestamp":"2023-11-20T18:31:33.001Z","version":"2.0.0","bap_uri":"https://staging.tyreplex.com/","bap_id":"[staging.tyreplex.com](http://staging.tyreplex.com/)","ttl":"P1M"},"message":{"intent":{"category":{"descriptor":{"code":"INVOICE_BASED_LOAN"}},"payment":{"collected_by":"BPP","tags":[{"descriptor":{"code":"BUYER_FINDER_FEES"},"display":false,"list":[{"descriptor":{"code":"BUYER_FINDER_FEES_TYPE"},"value":"percent-annualized"},{"descriptor":{"code":"BUYER_FINDER_FEES_PERCENTAGE"},"value":"2.5"}]},{"descriptor":{"code":"SETTLEMENT_TERMS"},"display":false,"list":[{"descriptor":{"code":"DELAY_INTEREST"},"value":"1"},{"descriptor":{"code":"STATIC_TERMS"},"value":"https://staging.tyreplex.com/terms-of-use"}]}]}}}} Please suggest how to fix this, since it's been more than a week that we are facing these issues. PS: We have already raised this issue in the ONDC discussion panel (#75 (comment)) but there seems to be no solution yet. Looking forward to hear from you |
Beta Was this translation helpful? Give feedback.
-
I get the following issue when I try to register using subscription APIs. Would you please verify the actions I am doing and offer assistance in finding a solution? Domain whitelisting (sit-shapi.starhealth.in) ---done. https://sit-shapi.starhealth.in/shondc/ondc-site-verification.html created a public and private key, which was then added to the subscription payload as a signed public key. Placed sinned request id in site verification page as content. Please find subscriber id and domain |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
When we hit "init" API we got "Schema validation error". please suggest the correct schema. our request is like below: { response: { |
Beta Was this translation helpful? Give feedback.
-
@Tp-arvind Can anyone help in this, cURL->
|
Beta Was this translation helpful? Give feedback.
-
@92shreyansh @robin-chauhan1 @ssumitkv @TechSupportONDC When we hit "select" API from postman we got 403 Forbidden. while same payload request working on sandbox-UI. screenshot attached below. Please Look into this (All API run successfully on SANDBOX-UI). |
Beta Was this translation helpful? Give feedback.
-
Hey @92shreyansh I am getting the below error while init call Api Please suggest me solution for this. Endpoint : https://iktaratech.com/init Payload : Response : { |
Beta Was this translation helpful? Give feedback.
-
@Tp-arvind |
Beta Was this translation helpful? Give feedback.
-
Hi @92shreyansh, @Sumitkumar0503 And Response "on_status" |
Beta Was this translation helpful? Give feedback.
-
Hi @92shreyansh, @Sumitkumar0503 |
Beta Was this translation helpful? Give feedback.
-
Hi @anuj-ondc , @92shreyansh
|
Beta Was this translation helpful? Give feedback.
-
Hi @akn9097 |
Beta Was this translation helpful? Give feedback.
-
Hi @anuj-ondc , @92shreyansh , @Sumitkumar0503 URL: https://fis-seller-staging.ondc.org/select ----- Select API Payload ---- |
Beta Was this translation helpful? Give feedback.
-
Hi @anuj-ondc , @92shreyansh , @Sumitkumar0503 URL : https://staging.gateway.proteantech.in/search ------ Select API Payload ------ |
Beta Was this translation helpful? Give feedback.
-
Hi @anuj-ondc , @92shreyansh , @Sumitkumar0503 URL : https://bagic.api.finarkein.in/ondc/sn/bagic/select ------ select API Payload ------ Now can you please tell me how can i got response on "on_select API". |
Beta Was this translation helpful? Give feedback.
-
Hi @akn9097 For example: This will be your sample select payload
|
Beta Was this translation helpful? Give feedback.
-
@akn9097 In your payload the itemId Sample select request.
|
Beta Was this translation helpful? Give feedback.
-
@92shreyansh I'm subscribed as Buyer and integrating Health Insurance. Below is the hosted on_search implementaion }); When i call the search mock API, It is returning acknowledgemnt message but not getting static catelogues. I also checked by changing city code to 'std:080' but didn't work. Response: |
Beta Was this translation helpful? Give feedback.
-
HI @NilusCodeRepo, Mock server is responding to your Can you please add more logging at code level to check if you receiving response or not? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello @92shreyansh , As per the schema and sample provided in the ONDC-FIS Swagger documentation, the response schema and sample contain only a message object. However, there seems to be a discrepancy when we perform different requests: For the /search0 request, we receive an ACK response along with a context object. Surprisingly, this context object is not documented in the response schema. Why are we getting different responses from the Swagger schema? Response search0 : { Response search1 : {"message":{"ack":{"status":"ACK"}}} |
Beta Was this translation helpful? Give feedback.
-
This is a suggestion to expand the accepted mimetypes enum for xinput forms to include 'application/schema+json' Statistics show over 80% of modern UIs use a js based framework which are one of react, angular or vue. The remaining 20% work on custom or lower-level libraries like jquery |
Beta Was this translation helpful? Give feedback.
-
Hi @92shreyansh @anuj-ondc |
Beta Was this translation helpful? Give feedback.
-
Hi @anuj-ondc @Sumitkumar0503 , init API Payload { "context": { "action": "init", "bap_id": "www.antworksmoney.com", "bap_uri": "https://www.antworksmoney.com/", "bpp_id": "fis-staging.ondc.org/ondc-seller", "bpp_uri": "https://fis-staging.ondc.org/ondc-seller/", "domain": "ONDC:FIS13", "location": { "country": { "code": "IND" }, "city": { "code": "*" } }, "message_id": "b4977ec9-ca8a-41c4-90eb-f73f36160c84", "timestamp": "2023-07-24T05:40:48.432Z", "transaction_id": "c04a04ee-d892-400f-bbe6-479a43b4448a", "ttl": "PT24H", "version": "2.0.0" }, "message": { "order": { "fulfillments": [ { "customer": { "contact": { "email": "aprogram7@gmail.com", "phone": "+91-9971290765" }, "person": { "name": "Alok Nandan" } } } ], "items": [ { "add_ons": [ { "id": "A1", "quantity": { "selected": { "count": 1 } } } ], "id": "CHILD_ITEM_ID_I1", "parent_item_id": "I1", "xinput": { "form": { "id": "FO4" }, "form_response": { "status": "SUCCESS", "submission_id": "F04_SUBMISSION_ID" } } } ], "provider": { "id": "P1" }, "payments": [ { "collected_by": "BPP", "status": "NOT-PAID", "type": "PRE-ORDER", "params": { "amount": "1200", "bank_account_number": "1800002341", "bank_code": "SBIN0001234", "currency": "INR" }, "tags": [ { "descriptor": { "code": "BUYER_FINDER_FEES" }, "display": false, "list": [ { "descriptor": { "code": "BUYER_FINDER_FEES_TYPE" }, "value": "percent-annualized" }, { "descriptor": { "code": "BUYER_FINDER_FEES_PERCENTAGE" }, "value": "1" } ] }, { "descriptor": { "code": "SETTLEMENT_TERMS" }, "display": false, "list": [ { "descriptor": { "code": "SETTLEMENT_WINDOW" }, "value": "PT60M" }, { "descriptor": { "code": "SETTLEMENT_BASIS" }, "value": "Delivery" }, { "descriptor": { "code": "SETTLEMENT_TYPE" }, "value": "upi" }, { "descriptor": { "code": "DELAY_INTEREST" }, "value": "2.5" }, { "descriptor": { "code": "STATIC_TERMS" }, "value": "https://www.icicibank.com/personal-banking/loans/personal-loan" }, { "descriptor": { "code": "SETTLEMENT_AMOUNT" }, "value": "400" }, { "descriptor": { "code": "OFFLINE_CONTRACT" }, "value": "true" } ] } ] } ] } } } Response APIResponse (on_init) API. " { "context": { "transaction_id": "c04a04ee-d892-400f-bbe6-479a43b4448a", "action": "on_init" }, "message": { "ack": { "status": "NACK" } }, "error": { "code": "20001", "path": "string", "message": "Given input does not match any mock input conditions" } } |
Beta Was this translation helpful? Give feedback.
-
@92shreyansh @mofahsan @Sumitkumar0503 @Antriksh-Parmar @anuj-ondc HI ONDC Team, Kindly Help me ! Steps:
2 .Create authorisation header
After response ( Error ) { "context": { "domain": "ONDC:FIS13", "location": { "city": { "code": "*" }, "country": { "code": "IND" } }, "action": "search", "version": "2.0.0", "bap_id": "www.antworksmoney.com", "bap_uri": "https://webhook.site/17cf1bec-1952-4a1b-bdaa-3425ccf0c189", "transaction_id": "c04a04ee-d892-400f-bbe6-479a43b4448a", "message_id": "385e3fb7-61e6-49a7-acbc-8ac05f934d4d", "timestamp": "2024-05-10T09:19:08.006Z", "ttl": "PT24H" }, "message": { "ack": { "status": "NACK" } }, "error": { "type": "Gateway", "code": "10001", "message": "Throwable: The signature verification failed" } } PHP Utility Link https://github.com/ONDC-Official/reference-implementations/blob/main/utilities/signing_and_verification/php/README.md |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
Please feel free to raise your query & suggestion on the Insurance Draft 2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions