Card Linking
Initializing a card linking request
Endpoint: POST /api/cardtoken/init/{customerKey}
Request:
| Field | Required | Type | Description |
|---|---|---|---|
| return_url | ✅ | string (url) | Redirect URL after successful linking |
| lead_id | If client_id is not specified | int | Lead ID |
| client_id | If lead_id is not specified | int | Client ID |
| pay_system | ❌ | string | Payment gateway code name. Check with your manager for the name |
Response:
json
{
"status": "ok",
"timestamp": "1646914328000",
"data": {
"url": "" // Card linking form URL
}
}