/billing/invoices/processProcess invoice
Base URL https://api.vseepreview.com/api_v3
Authentication: User Token — Requires a user access token from login or SSO.
Process an invoice with optional coupon code
Process an invoice, optionally applying a promo/coupon code.
Parameters:
promo_code — Coupon codeintake_id — Required — intake ID to apply the coupon tocreate_invoice — Set to 1 to create the invoice| 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) |
Content type: application/json
| Field | Type | Required | Enum | Description |
|---|---|---|---|---|
promo_code | string | no | ||
intake_id | string | yes | ||
create_invoice | integer | no |
Example:
{
"promo_code": "string",
"intake_id": "string",
"create_invoice": 0
}
200 — Successful processingInvoice Processed
{
"data": {
"currency": "USD",
"consultation": {
"description": "30 mins",
"amount": 30,
"duration": 30,
"id": "58244a53-0f28-4ff9-bdbc-7468ac1f0144"
},
"coupon": {
"id": "10_percents_1479363579",
"percent_off": 10,
"valid": true
},
"amount_due": 27
}
}
Machine-readable: OpenAPI JSON