Overview
Dynamic Links are personalized Link URLs that are generated programmatically for a specific customer connection. They’re useful when you need to:- Reauthenticate an existing connection
- Prefill customer context (such as email or mobile)
- Create personalized or time-limited linking experiences
The flow
The flow begins when a customer chooses to connect their retail account to your app or website. Follow the steps below to dynamically generate and launch a personalized Link URL.Step 1. Create a new connection
A connection represents the link between a customer’s retail accounts and your system. If you don’t already have aconnection_id, you can create one by sending a POST /connection
request.
Request body
connection_id. Store this connection_id on your system.
Response body
New connections are in an 
initialized  status. You can view the status of any connection you have created by sending a GET /connection/{connection_id} request.Step 2. Request a connection token
A connection token is a short-lived JWT used to authorize access to Subtotal Link or other Subtotal API resources. To create a connection token, send a POST /connection/{connection_id}/token request. Include theconnection_id from the previous step as a URL parameter to specify which connection you’re creating a token for.
Request body
connection_token.
Response body
Step 3. Launch Subtotal Link
Append theconnection_token to the end of the base Link URL link.subtotal.com to create a fully-formed Dynamic Link,
You can optionally include a redirect_url as a query parameter to specify where customers should be sent after completing the flow.
Connections move to an 
Active status when a customer successfully authenticates with the retailer.