SetuHQ / upi-deeplinks-node-sdk

Node package to connect to Setu's UPI Deep Link APIs
https://setuhq.github.io/upi-deeplinks-node-sdk
MIT License
6 stars 4 forks source link

feat(api)!: move to generic refund status API #19

Closed ghostwriternr closed 2 years ago

ghostwriternr commented 2 years ago

The refund batch status API is at path GET /refund/batch/{batchID}, which while continuing to work, will no longer return batchID as part of the response. This allows the internal API to be more generic, supporting fetching the refund status by more identifiers.

The path for the internal API has now changed to: GET /refund/{identifierType}/{identifierValue}

The allowed values for identifierType at this point are:

If you were not using the batchID in the response in your code, then your integration will continue to work. In either case, the getRefundBatchStatus is deprecated and it is recommended to use the new getRefundStatusByIdentifier method instead.