Enlisting the type of searches a participant responds to (policy codes) #131
ravi-prakash-v
started this conversation in
Core Specification
Replies: 1 comment
-
|
Creating policy codes for all the types of searches a BPP supports would lead to thousands of permutations. My suggestion is something similar to an OPTIONS call in HTTP that returns the policy adopted by a BPP against that API. For example, if BPP implements a specific policy for 1. BAP calls Method: POST 2. BPP returns the policy for search in the 200 response : Method: POST |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Area
Domain Specific Taxonomy
Working Groups
Local Retail Working Group
Local Retail and Delivery Network Working Group
Submission Date
Tuesday, 27th July, 2021
Contributors
Sujith Nair
Status
Proposed Standard
Table of Contents
Abstract
BPPs can support different types of searches as per their business use cases. Currently there is no mechanism by which a BPP can declare to the BAP regarding the types of searches it supports. Defining a process by which the BPP can transmit to the BAP the search cases it supports will enable better interoperability between the BAPs and BPPs.
Contents
Current Limitations
Currently a BPP might for example only support search by provider id based on its business use case. But a BAP in the network may fire searches based on item name and the BPP will never return a result.
Solution Approach
If a BPP does not support a search use case that is being sent, in the on_search call back it can optionally send an error object with type POLICY_ERROR with code SEARCH_ERROR_009 and message Unsupported search use case. Please find the supported use cases:.
List Of Search Use Case Codes
Use case example
If a BPP does not support search by provider id then it can send back the on_search callback as below :
Here this means the BPP only supports search by item name and search by fulfilment end location currently.
Impact Analysis
Implementing these changes will not break any existing implementations. This can be an optional feature that a BPP can implement. Similarly a BAP can choose if it wants to retry the search based on the supported search use case.
Beta Was this translation helpful? Give feedback.
All reactions