Regarding the use of transaction_id and other ids #150
Replies: 4 comments 4 replies
-
Id Uniqueness across network may be needed for multiple entities. Like fulfilliment,category,provider, provider_category,order, catalog, item, cancellation/return reason..... ./[domain_name]/[internal_item_id]@[provider_id]@[subscriber_id] or some such scheme should work to make it unique. @core-wg-admin comment from slack "Good point. We can definitely consider something to uniquely identify items. I quite like the URL scheme used by upi, payto etc. Something like item://id/12577?provider. id=abcd what do you think?" |
Beta Was this translation helpful? Give feedback.
-
Currently transaction Id is being used as session id. Init and confirm use the same transactionId . Order created at init is in draft status until confirmed and transaction id is used to identify the order. It is not a problem as the order is not confirmed unless confirm is called on the transaction. Fmd may not need init . That's fine but in retail, I am using init and confirm being connected by transaction Id. If we need a separate one for payments, we can call payment_transaction_Id that can be used for confirmation. Order Id is ok to have as the primary key. Post confirm. BPP should be able to identify order by beckn transaction id or order Id. This is enough.. |
Beta Was this translation helpful? Give feedback.
-
In beckn, a transaction is defined as the event where the liability of fulfillment of an order is created on the seller. Therefore, the |
Beta Was this translation helpful? Give feedback.
-
@core-wg-admin
Agree.
Agree.
Agree.
What I suggest is we clearly separate what transaction_id and order_id are used for. I suggest that order_id should be used for order identification after confirm (as this is what it is by definition). I think it is better to use order_id rather than transaction_id for order identification for several reasons:
Whether or not transaction_id should be included in post-confirm calls is a different question. Personally, I don't see why it is needed, because if there is a dispute whether a certain order id resulted from an actual agreement, one should always check confirm/on_confirm calls. But I don't have a strong opinion on this, and we can include transaction_id in post-confirm if necessary for any reasons. |
Beta Was this translation helpful? Give feedback.
-
We had a long discussion regarding the use of transaction_id and other ids (message_id, session_id, order id).
I am trying to summarize some of the outcomes of the discussion.
This gives the following benefits:
Beta Was this translation helpful? Give feedback.
All reactions