We need to create a feature where we can add a custom shipping cost calculator for a shipping provider. They will in turn return us the Shipping rate. For this, we need to send the customer purchase details to their API endpoint. Now how we will be able to pass the purchase information to the endpoint from Shopify?
Can anyone provide us the necessary source codes and examples over this?