Skip to main content
POST
/
api
/
recovery
/
update-card
/
generate
Generate Card Update Link
curl --request POST \
  --url https://api.revtain.com/api/recovery/update-card/generate \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "paymentMethodToken": "01KKZ10AD66A3VX260WKM0YFPG"
}
'
{
  "url": "https://pay.yourdomain.com/api/recovery/update-card/abc123xyz...",
  "token": "abc123xyz...",
  "expiresAt": "2026-04-23T14:30:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.revtain.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Your Revtain API key (format: rev_xxx). Provided during onboarding.

Body

application/json
paymentMethodToken
string
required

The token for the card that needs updating.

Example:

"01KKZ10AD66A3VX260WKM0YFPG"

Response

Card update link created

url
string<uri>
Example:

"https://pay.yourdomain.com/api/recovery/update-card/abc123xyz..."

token
string
Example:

"abc123xyz..."

expiresAt
string<date-time>
Example:

"2026-04-23T14:30:00.000Z"