/billing/sourcesAdd payment source
Base URL https://api.vseepreview.com/api_v3
Authentication: User Token — Requires a user access token from login or SSO.
Add a new payment source to user account
| 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) | ||
room_code | query | string | yes | Room code to scope the payment source (e.g. abc) | ||
provider_id | query | string | no | Provider ID (optional) to scope the payment source (e.g. 12312) |
Content type: application/json
| Field | Type | Required | Enum | Description |
|---|---|---|---|---|
type | string | yes | Payment type (e.g. 'card') | |
token | string | yes | Token from Stripe |
Example:
{
"type": "string",
"token": "string"
}
200 — Successful creationCard Added
{
"data": {
"id": "card_19DrgXBY2jn2BCqQNpjjzuay",
"type": "card",
"brand": "Visa",
"exp_month": 8,
"exp_year": 2017,
"last4": "4242",
"is_default": true
}
}
Machine-readable: OpenAPI JSON