Store Add/Update Callback

This article helps you understand how the webhook callback is created when Adding/Updating API is called

Written By Ops UrbanPiper (Collaborator)

Updated at June 17th, 2020

API Document Reference -https://api-ordering-docs.urbanpiper.com/#store-add-update-callback


  1. What is the purpose of the Store Configuration Callback?
    - This webhook helps in keeping a reference of the response received for the API call made to Adding/Updating Store API. If there are any errors found in the data passed will be sent in the callback response. Make sure to listen for the callback before the next request is sent to UrbanPiper.

  2. Why is it important to consume this webhook?
    - After the API request is made to UP, waiting for the callback response will help in validating whether the request successfully processed in UP system or not. There might be a scenario where the API gives away HTTP 200 success response but while doing the data processing in the UP system, can be found one or other attributes have issues. Thus, the store data won't get created/updated in the UrbanPiper system. When the Managing Catalogue API is called for the store, then it will lead to an error saying, location id not found.
     
  3. How long it will take to receive the callback response?
    - Since this endpoint supports the handling of store related information in bulk, all its related processing is done asynchronously. When the request is made, the platform does a quick validation of the payload and responds with a unique reference value to identify the request. After that, the payload is added to a queue from where background processes start work on it asynchronously.
    Ideally, you should receive the callback response within 1 minute.

  4. How to identify the callback response received for which request?
    - When the Adding/Updating Store API call is made, an HTTP response will be returned with the unique "reference_id". When the callback is triggered, the webhook payload will have the same "reference_id" which will help in identifying the callback for the request made.

  5. What actions expected under "upipr_status"?
    • U - Updated
    • A - Added
    • D - Disassociated from Store

Was this article helpful?