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.
reference_id idempotency is unconfirmed, so generate a new value for each attempt and do not treat it as a duplicate-creation guard.
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.