v1
latestOpenAPI 3.0.12026-07-24204977.5 KBAccount Linking
Initiate a tokenized payment link session
Creates a PENDING link session and returns a redirectUrl and appToken. The merchant opens redirectUrl in an in-app browser and passes appToken as X-ShopBack-App-Token.
post/tokenized-payment/v1/link-sessions/link
Request body
Example request
{
"callbackUrl": "https://merchant-name.sg/link/callback",
"state": "a8f3c2e1d7b4509f",
"merchantUserId": "merchant_user_42",
"userHint": {
"phone": "+6591xxxx67",
"email": "r***@example.com"
}
}Response
Link session created; merchant should redirect user to redirectUrl.
Example response
{
"linkToken": "550e8400-e29b-41d4-a716-446655440000",
"redirectUrl": "https://pay.shopback.com/link",
"expiresAt": "2026-04-30T10:20:00.000Z",
"appToken": "<HS256-signed-jwt>"
}