/billing/sources/{id}Set default payment source
Base URL https://api.vseepreview.com/api_v3
Authentication: User Token — Requires a user access token from login or SSO.
Set a payment source as default
| Name | In | Type | Required | Enum | Default | Description |
|---|---|---|---|---|---|---|
X-ApiToken | header | string | yes | API token (e.g. your_api_token) | ||
X-AccountCode | header | string | yes | Account code (e.g. vclinic) | ||
id | path | string | yes | Payment source ID (e.g. card_19DrgXBY2jn2BCqQNpjjzuay) |
Content type: application/json
| Field | Type | Required | Enum | Description |
|---|---|---|---|---|
is_default | boolean | no | ||
room_code | string | no | ||
provider_id | string | no |
Example:
{
"is_default": true,
"room_code": "string",
"provider_id": "string"
}
200 — Successful updateUpdated
{
"data": {
"id": "card_19DrgXBY2jn2BCqQNpjjzuay",
"type": "card",
"brand": "Visa",
"exp_month": 8,
"exp_year": 2017,
"last4": "4242",
"is_default": true
}
}
Machine-readable: OpenAPI JSON