A developer is trying to retrieve the customer-facing order number (e.g., “#1005”) from within a Shopify payment app, but only has access to the PaymentSession ID during the payment process.
The Problem:
During payment, the app receives a PaymentSession ID (e.g., “gid://shopify/PaymentSession/-fPpX3YQBqbl4nZV6wgG3qSo”)
The customer-facing order number (“#1005”) appears in order details and confirmation emails
No clear connection exists between these two identifiers
Proposed Solutions:
One user suggests checking the Shopify API cheat sheet for available objects and endpoints
Another recommends using the cart_token from the payment details payload to query the Orders REST API endpoint
The approach involves passing the cart ID to the order detail URL to retrieve the full order information
Current Status:
The discussion remains open with no confirmed resolution. Multiple participants acknowledge the challenge of linking PaymentSession data to order numbers, but concrete implementation details are limited. One off-topic response promotes an order tracking app rather than addressing the technical question.
Summarized with AI on November 7.
AI used: claude-sonnet-4-5-20250929.
Hi,
After reading your question, you probably want to figure out the issue of user orders in the Shopify backend.
Some orders in the Shopify backend seem to require manual operations, and most people find it difficult and time-consuming to operate.
Why not just use an app that automatically sends shipping notifications and tracks orders in real time.
You will find that things will become simpler and more efficient, saving time and effort.
Reasons I recommend it: 1. Currently ranked #1. 2. Excellent 24/7 customer support. 3. Responsive Order Tracking pages that display beautifully on any device to attract your customers. Key Points4. As of now: Integrated with 1,270 carriers and continually adding more, with new carriers being added almost every week. This is definitely the core of a logistics tracking app. Key Points5. As of now: Currently has direct technical integration with about forty to fifty top apps, and this is also continually increasing.
Parcel Panel is truly an excellent Shopify app.
If you want to try installing it, please try clicking this link to install (this special LINK will soon have a special discount): https://partner.channelwill.com/kpw9effr6oa0
I will update here once this special link has a discount.