August 2024
Callback support for Order updates
7min
date august 25, 2024 we've introduced an optional callback attribute for order updates in put apis to allow developers to receive the order status asynchronously new features this mechanism minimizes the need for repetitive polling by the client to verify update success it reduces the server load and ensures real time feedback allows developers to receive confirmation of successful updates without manual checks enhances the reliability of update operations by notifying through a specified url callback workflow the basic process involves adding a callback attribute to your api requests, which contains the url or endpoint where notifications can be sent once a defined event occurs update request include the callback attribute in the request body when making a put request configure ensure the provided callback url is accessible and properly configured to handle incoming requests the endpoint should return a success status code (e g , 200 ok) upon receiving a notification example use case an order is updated in the logistics order service the system sends a post request to the specified callback url in the attribute the response is processed to confirm successful notification delivery limitations tokens used in api requests expire after a defined time period (e g , 30 minutes) ensure to refresh tokens and update your requests accordingly to avoid authentication issues api changes the following apis have been updated to include the new callback attribute update order core and custom attributes developer resources for detailed information on how to use this new attribute, refer to our updated how to guide for order update