Customers use Subtotal Link to verify credentials and connect accounts.
Subtotal Link is the client-side component that customers interact with to link their retail accounts to your app or website.
Subtotal Link handles credential validation, multi-factor authentication, and error handling for each retailer that Subtotal supports.
Check out our demo of Subtotal Link to see how it works.
Subtotal Link is the only available method for connecting retail accounts and is required for all Subtotal integrations.
Sign into the Subtotal Dashboard to configure each of the items below.
link.subtotal.com
. Configuring a subdomain of your primary domain is recommended.The flow begins when a customer chooses to connect their retail account to your app or website. We’ll guide you through each step to ensure a smooth integration.
Connections represent links between customers’ retail accounts and your system.
To create a connection, send a
POST /connection
request. Include a customer_id
and merchant_id
in the request body to specify which customer is establishing a connection to which merchant.
Request body
A successful response will include a 201 Created status code and a connection_id
.
The connection_id
is a unique identifier that you’ll store on your system and use in future API requests.
Response body
New connections have a Pending Link
status. You can view the status of any connection you have created by sending a GET /connection/{connection_id} request.
Connection tokens are short-lived JWTs that are used to authorize access to Subtotal Link or other resources in the Subtotal API.
To create a connection token, send a POST /connection/{connection_id}/token request. Include the connection_id
from the previous step as a URL parameter to specify which connection you’re creating a token for.
Set the scope to link
in the request body to specify that this connection token will be used with Subtotal Link.
Request body
A successful response will include a 201 Created status code and a connection_token
.
You’ll pass the connection_token
to Subtotal Link in the next step.
Response body
From your front-end application, redirect your users to the Link URL configured for your project. Include the connection_token
as a query parameter in the URL.
Additionally, include redirect_url
as a query parameter in the URL. Customers will be redirected to this URL after their session with Subtotal Link is complete.
Connections move to an Active
status when a customer successfully verifies their credentials and links their account.
Take a look at our recommended next steps.
Query a list of purchases for any active connection.
Host Subtotal Link on a subdomain of your primary website.
Customers use Subtotal Link to verify credentials and connect accounts.
Subtotal Link is the client-side component that customers interact with to link their retail accounts to your app or website.
Subtotal Link handles credential validation, multi-factor authentication, and error handling for each retailer that Subtotal supports.
Check out our demo of Subtotal Link to see how it works.
Subtotal Link is the only available method for connecting retail accounts and is required for all Subtotal integrations.
Sign into the Subtotal Dashboard to configure each of the items below.
link.subtotal.com
. Configuring a subdomain of your primary domain is recommended.The flow begins when a customer chooses to connect their retail account to your app or website. We’ll guide you through each step to ensure a smooth integration.
Connections represent links between customers’ retail accounts and your system.
To create a connection, send a
POST /connection
request. Include a customer_id
and merchant_id
in the request body to specify which customer is establishing a connection to which merchant.
Request body
A successful response will include a 201 Created status code and a connection_id
.
The connection_id
is a unique identifier that you’ll store on your system and use in future API requests.
Response body
New connections have a Pending Link
status. You can view the status of any connection you have created by sending a GET /connection/{connection_id} request.
Connection tokens are short-lived JWTs that are used to authorize access to Subtotal Link or other resources in the Subtotal API.
To create a connection token, send a POST /connection/{connection_id}/token request. Include the connection_id
from the previous step as a URL parameter to specify which connection you’re creating a token for.
Set the scope to link
in the request body to specify that this connection token will be used with Subtotal Link.
Request body
A successful response will include a 201 Created status code and a connection_token
.
You’ll pass the connection_token
to Subtotal Link in the next step.
Response body
From your front-end application, redirect your users to the Link URL configured for your project. Include the connection_token
as a query parameter in the URL.
Additionally, include redirect_url
as a query parameter in the URL. Customers will be redirected to this URL after their session with Subtotal Link is complete.
Connections move to an Active
status when a customer successfully verifies their credentials and links their account.
Take a look at our recommended next steps.
Query a list of purchases for any active connection.
Host Subtotal Link on a subdomain of your primary website.