Skip to main content
POST
Generate Card Update Link

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:

"pm_1234567890"

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"