Correlate with externalId
Add a unique externalId when you construct the Hosted Page URL:
reference_id. Store the session ID with the user action in your backend. When you list that user’s swaps with GET /swaps, match swap.metadata.reference_id to your stored value and then track the matching swap by ID.
Use a unique externalId for each user flow and store the matching swap ID. Reusing a reference can replace an unfunded swap or reject creation; see Reference IDs and repeated requests.
Track by transaction hash
If your application knows the user’s funding transaction hash, call:GET /swaps/{id} until the swap reaches a terminal state. See Track swaps and Swap lifecycle & statuses.