App reviews, troubleshooting, and recommendations
Shopify payment session API gives the Payment ID. How I will get the Order ID using this Payment ID?
How I will update payment detail for order on Shopify?
Kindly guide me.
Thanks
To get the Order ID using the Payment ID from the Shopify Payment Session API, you can query the transactions endpoint. For updating payment details for an order:
Get the Order ID: Use the Transactions API: GET /admin/api/2023-04/orders/{order_id}/transactions.json.
Update Payment Details: Use the Order API: PUT /admin/api/2023-04/orders/{order_id}.json with the updated payment details in the request body.
Ensure you have the necessary API permissions to perform these actions
If this fixed your issue, likes and accepting as a solution are highly appreciated
| Build an online presence with our custom-built Shopify Theme: EcomifyTheme
| Check out our reviews: Trustpilot Reviews
| We are Shopify Partners: EcomGraduates Shopify Partner
Hi
Thanks for Reply.
I have checked the API URL's you have provided. But these URL's used the Order ID. My first question is that How to get that order ID from Payment ID.
Kindly guide for that.
Thanks
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025