ONDC-Official / v1.2.0-logs

Retail and Logistics Logs for 1.2.0
9 stars 282 forks source link

Sellersetu (SA : RET16) - Compliance check #1614

Open Jagannath-wits opened 6 months ago

Jagannath-wits commented 6 months ago

Sellersetu : RET:16

Flow 1

On Search Full Catalog Refresh

On Search Inc Refresh

Flow 2

On Status Pending

On Status Packed

On Status Picked

On Status Out for Delivery

On Status Delivered

Flow 3

Flow 4

On Cancel

Flow 5

On Cancel

Flow 6

flow 6 should be provided in a single order. For reference, refer the README.md of ONDC-Official/log-validation-utility.

@sellersetu-hub

aagmanbhatt commented 6 months ago

@Jagannath-wits Can you direct me to resource, which states , which code to use for different categories?

Jagannath-wits commented 6 months ago

@Jagannath-wits Can you direct me to resource, which states , which code to use for different categories?

aagmanbhatt commented 6 months ago

@Jagannath-wits Thanks , for this, bpp/providers[0]/items[0]/descriptor**: Code should be provided in /message/catalog/bpp/providers[0]/items[0]/descriptor . I tried HSN number for furnitures in log validation utility , It says you should use GTIN. How can we identify which code type to use for which categories ?

Ikshan-Tango commented 6 months ago

Hi @Jagannath-wits,

While consolidating flow 6 we are facing errors from the utility, can you help us in identifying as to why they are happening?

Payload :-

Errors :- "message/order.fulfillments/1": "Mismatch occured while comparing 'Delivery' fulfillment object(without state, tags, instructions) with on_status_pending"

Ikshan-Tango commented 6 months ago

https://jsonblob.com/1218845999383830528

Payload ^

Ikshan-Tango commented 6 months ago

@Jagannath-wits

Any heads up on the same? We're facing same errors from the utility as well as buyer app and it's supposed to be a utility issue (as confirmed through mail via ONDC tech support).

Can we raise a PR meanwhile for all the changes from Flow 1 till Flow 5? We're lagging behind already on the same. Expecting a reply.

Thank you

Jagannath-wits commented 6 months ago

https://jsonblob.com/1218845999383830528

Payload ^

This payload is for flow 6 and not 5 Don't see any errors in utility as of now in on_status calls except "missingRouting/Tag": "RoutingTag object is mandatory in Tags of Delivery Object for on_status_picked" @Ikshan-Tango

Ikshan-Tango commented 6 months ago

This payload is for flow 6 and not 5

That's because we're facing errors in flow 6, hence shared the same payload with you like I've specified in the above message as well. And please refer to POINT 2 for the utility response.

  1. Flow 6 erroneous payload - https://jsonblob.com/1218845999383830528
  2. Flow 6 utility response - https://jsonblob.com/1242890024197677056
  3. It's supposed to be a utility issue (as confirmed through mail via ONDC tech support).
  4. Hence may we continue by raising a PR for flows 1 - 5 with the necessary changes implemented?

Kindly go through the above points and let us know our course of action as soon as possible.

Thank you @Jagannath-wits

Jagannath-wits commented 6 months ago

This payload is for flow 6 and not 5

That's because we're facing errors in flow 6, hence shared the same payload with you like I've specified in the above message as well. And please refer to POINT 2 for the utility response.

  1. Flow 6 erroneous payload - https://jsonblob.com/1218845999383830528
  2. Flow 6 utility response - https://jsonblob.com/1242890024197677056
  3. It's supposed to be a utility issue (as confirmed through mail via ONDC tech support).
  4. Hence may we continue by raising a PR for flows 1 - 5 with the necessary changes implemented?

Kindly go through the above points and let us know our course of action as soon as possible.

Thank you @Jagannath-wits

Like I said

Don't see any errors in utility as of now in on_status calls except "missingRouting/Tag": "RoutingTag object is mandatory in Tags of Delivery Object for on_status_picked"

  • I ran the payload you sent above only
  • So please fix that and raise an PR for all flows, make sure the settlement_details and trailing quote_trail is present while submitting flow 6

@Ikshan-Tango

Ikshan-Tango commented 6 months ago

@Jagannath-wits pls check the PR #1747

sellersetu-hub commented 5 months ago

@Jagannath-wits PR is ready for review #1747

Jagannath-wits commented 5 months ago

Seller-Setu RET 16

Flow 1

on_search_full_catalog_refresh

Flow 2

select

on_select

on_init

on_status_picked

on_status_out_for_delivery

on_status_delivered

Flow 3

on_select_out_of_stock

Flow 4

on_cancel

Flow 5

on_cancel

Flow 6

on_status_picked

on_update_interim_reverse_qc

on_update_approval

on_update_picked

on_update_delivered

on_update_interim_liquidated

on_update_liquidated

update_settlement_liquidated

@sellersetu-hub

Ikshan-Tango commented 5 months ago

@Jagannath-wits in Flow 3 on_select out of stock error is already in the correct form, can you check it once again?

Ikshan-Tango commented 5 months ago

For flow 5, can you send the list for the valid reason codes of RTO? LSP side cancellation reason ID is provided which shouldn't be wrong for this case.

Ikshan-Tango commented 5 months ago

@Jagannath-wits expecting a reply here.

Kindly answer the following :-

  1. 3 on_select out of stock error is already in the correct form, can you point what exactly is wrong in it?
  2. valid reason code was provided in flow 5, 018 is of LSP side cancellation.
  3. what exactly is wrong with all the payment_detail errors? Can you elaborate on it?
Jagannath-wits commented 5 months ago

@Jagannath-wits expecting a reply here.

Kindly answer the following :-

  1. 3 on_select out of stock error is already in the correct form, can you point what exactly is wrong in it?
  2. valid reason code was provided in flow 5, 018 is of LSP side cancellation.
  3. what exactly is wrong with all the payment_detail errors? Can you elaborate on it?

"[\"{\"item_id\": \"0fae5c4e-407b-428e-b2e1-0edd665e74a9\", \"error\": \"40002\"}\"]"

Ikshan-Tango commented 5 months ago

@Jagannath-wits raised PR for compliance check #1801, please review and provide feedback. Thank you!

sellersetu-hub commented 5 months ago

@Jagannath-wits Please review and provide feedback.

Jagannath-wits commented 5 months ago

Sellersetu

Flow 1

On_search_full_catalog

Flow 2

on_select

on_init

-Only @ondc/org/buyer_app_finder_fee_type, @ondc/org/buyer_app_finder_fee_amount, @ondc/org/settlement_details are required in payment object as only buyer is collecting payment currently. In case seller wants to collect the payment then you can send it the way you sent but then it won't change in confirm call; right now payment is only accepted by buyer on network so the payment object in confirm is correct

on_status

Flow 3

on_select_oos

Flow 4

on_cancel

Flow 6

update_settlement_part_cancel

on_status

How are the errors in on-status different in flow 2 and 6 ?

on_update_interim_reverse_qc

on_update_approval

on_update_delivered

Please provide payload and response for each flow in next iteration.

Also your quote is not properly captured in both flow 4 and 5

@sellersetu-hub

Chaitanya-Keyal commented 5 months ago

@Jagannath-wits In Flow 4, since there is no delivery fee, this is what will be sent for quote in on_cancel:

"quote": {
            "breakup": [],
            "ttl": "P1D",
            "price": {
              "currency": "INR",
              "value": "0"
            }
          }

Is this correct?

Jagannath-wits commented 5 months ago

@Jagannath-wits In Flow 4, since there is no delivery fee, this is what will be sent for quote in on_cancel:

"quote": {
            "breakup": [],
            "ttl": "P1D",
            "price": {
              "currency": "INR",
              "value": "0"
            }
          }

Is this correct?

Please refer to contract example page no.- 434 and 435, As your quote is also not properly captured in both flow 4 and 5

@Chaitanya-Keyal

Ikshan-Tango commented 5 months ago

“Invoice”: Why is invoice still not publically accessible? Make sure it also updates after part-cancel.

The url is publically accessible, kindly check on_status_delivered, attaching payload for you reference.

"documents": [
                {
                    "url": "https://development-ironcore.s3.amazonaws.com/invoice_path/2024-06-08-555818-Kiraana_Dukaan_SellerSetu.pdf",
                    "label": "Invoice"
                }
            ],

@Jagannath-wits

Ikshan-Tango commented 5 months ago

Flow 4

on_cancel delivery fee cant be charged as cancellation occurs preshipment

Can you please tell us what should we do in this case? If we remove this delivery fee then we get the error as :-

"invldQuoteTrailPrices": "quote_trail price and item quote price sum for on_cancel should be equal to the price as in on_confirm",

This delivery fee is sent by us during on_confirm, since we can't decrease the quote price based on fulfillment delivery charges then this should be included. Please correct me if I'm wrong.

@Jagannath-wits

sellersetu-hub commented 5 months ago

@Jagannath-wits Can you please help us resolve this, its a blocker in generating logs. Should we ignore this ?

Jagannath-wits commented 5 months ago

@Jagannath-wits Can you please help us resolve this, its a blocker in generating logs. Should we ignore this ?

will need to see your logs to confirm, but have you added any new extra costs in quote? if you have then it should also be added in the quote trail as a +ve value if it's added after on_confirm

sellersetu-hub commented 5 months ago

No haven't added any extra cost in quote. Can we connect over a meet to show you logs.

Jagannath-wits commented 5 months ago

No haven't added any extra cost in quote. Can we connect over a meet to show you logs.

Sure, https://meet.google.com/rgk-duyi-jqd

Jagannath-wits commented 5 months ago

No haven't added any extra cost in quote. Can we connect over a meet to show you logs.

Sure, https://meet.google.com/rgk-duyi-jqd

on_init

Ikshan-Tango commented 5 months ago

@Jagannath-wits pls review PR #1875

sellersetu-hub commented 5 months ago

@Jagannath-wits Please review and provide feedback.

Jagannath-wits commented 5 months ago

Flow 1

on_search

inc_on_search

Flow 2

on_status

on_status_pending

on_status_picked

Flow 3

on_confirm

Flow 6

on_update_interim_return

on_update_interim_liquidated

@sellersetu-hub multiple repeated issues in the logs; please fix all the errors

Ikshan-Tango commented 5 months ago

@Jagannath-wits

item with id 01b398e8-1382-439f-bf6a-eba2db6297dc: Sells for 96 units of table for 1500rs? Please provide realistic values.

I believe that's not necessary for us in pre-prod as we're using testing DB, in production there will be all realistic values. This error is not a log validation error hence ignoring this.

Chaitanya-Keyal commented 5 months ago

@Jagannath-wits Since there are no issues with flows 4 and 5, is it still necessary to provide new logs for them?

Jagannath-Padhy commented 5 months ago

@Jagannath-wits Since there are no issues with flows 4 and 5, is it still necessary to provide new logs for them?

Yes it's required for a final check also so please provide the flow 4 and 5 as well

Chaitanya-Keyal commented 5 months ago

@Jagannath-wits PR #1914 raised, please review and provide feedback. Thank you!

aagmanbhatt commented 5 months ago

@Jagannath-wits Please review .

Jagannath-wits commented 5 months ago

@Jagannath-wits Please review .

Will update today

Ikshan-Tango commented 5 months ago

@Jagannath-wits waiting on this

Chaitanya-Keyal commented 5 months ago

@Jagannath-wits Please review and provide feedback

sandeepshahi commented 4 months ago

order flow must be provided with a feasible customer location

Flow 1

/on_search

/on_search (inc)

Flow 2

/on_init

/on_confirm

/on_status

Flow 3

Flow 4

Flow 5

/on_cancel

/on_status

Flow 6

/on_update (part cancel)

/on_update (interim)

/on_update (approval)

/on_update (picked)

/on_update (liquidated)

@Ikshan-Tango @Chaitanya-Keyal @aagman945

aagmanbhatt commented 4 months ago

@sandeepshahi @Jagannath-Padhy when will order/updated_at get updated, which all cases ?

sandeepshahi commented 4 months ago

@sandeepshahi @Jagannath-Padhy when will order/updated_at get updated, which all cases ?

@aagman945, whenever there is any change in the order object.

aagmanbhatt commented 4 months ago

order flow must be provided with a feasible customer location.

audit trail must be correctly maintained

sellersetu-hub commented 4 months ago

@sandeepshahi @Jagannath-Padhy It would really mean a lot if you can tell us if these issues that you pointed out in this iteration are the last ones.

We have solved those issues and will be generating the logs again. It would be great if you can tell us any other issues that are left or that these are the last ones so that we can solve them all at once and can convey it to our clients as well. Every iteration takes about a week and this has been delaying a lot of big companies that are wanting to onboard ONDC with us.

Again, it would really mean a lot if you can update us on this.

aagmanbhatt commented 4 months ago

@sandeepshahi we have raise the PR https://github.com/ONDC-Official/v1.2.0-logs/pull/1994 , Please review

aagmanbhatt commented 4 months ago

@sandeepshahi @Jagannath-Padhy Please review.

Jagannath-wits commented 4 months ago

Sellersetu

Flow 1

item.attributes such as colour_name and material value should be in lowercase as defined in the contract (repeated issue).

On_search_inc

Invalid attribute 'extradetail' and do not provide an empty object as the value of attributes. If attribute value is not available, please refrain from providing it.

Flow 2

Instructions object not captured correctly. Please refer to the contract, and ensure code and short_desc values are mapped correctly (repeated issue).

Flow 6

Update_settlement_part_cancel

Invalid payload.

On_update_approval

/items, quote, and quote_trail should not be updated in interim state (repeated issue).

@sellersetu-hub @aagmanbhatt

sellersetu-hub commented 4 months ago

@Jagannath-wits Please review.

sandeepshahi commented 4 months ago

Flow 1

/on_search

Flow 2

/on_init

/on_confirm

Flow 4

/on_cancel

Flow 5

/on_cancel

/on_status (RTO)

Flow 6

/on_update (part cancel)

/on_status

@sellersetu-hub @aagmanbhatt

sellersetu-hub commented 4 months ago

timestamp in estimated pickup/delivery ranges can't be earlier than context/timestamp; check start/time/range/start

This start/time/range object is being sent by logistics provider we are directly using that.

fulfillment id for part cancel (seller side) and full cancellation (buyer side) should not be same; what happens in case buyer cancels the full order after receiving the part cancellation request?

Then second cancellation will have incremental suffice. i.e C1 , C2 and so on

@sandeepshahi