Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl -k -X POST -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" -H "X-AccountCode: vclinic" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "id=14" "https://api.vsee.me/api_v3/visits/close"

{
  "data": {
        "id": "1525"
  }
}

POST /visits/add_econsult

Create an asynchronous e-consult visit. The econsult will be created without scheduling, the providers will see it on their dashboards and will need to accept it.

Parameters

Parameter

Type

Description

intake_id

String

The ID of the intake

room_code

String

Room code (required)

Response

Code Block
curl --location --request POST 'https://api.vsee.me/api_v3/visits/add_econsult' \
--header 'X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb' \
--header 'X-AccountCode: vclinic' \
--header 'X-ApiKey: 44c4d9bec884a8ca356177bebd59551d' \
--header 'Content-Type: application/json' \
--data-raw '{
   "intake_id": "6050d1a8-b120-45b4-a568-61a664457b11",
   "room_code": "vclinic_room_code"
}'


{
   "data": {
       "incharge": false,
       "isEditExpired": false,
       "id": "14814100",
       "member_id": 14396847,
       "provider_id": 0,
       "account_code": "vclinic",
       "code": "6050d2e590d847429d312c8664457b11",
       "start": 1615909605,
       "end": 1615910505,
       "actual_start": null,
       "actual_end": null,
       "specialty_id": null,
       "state": "--",
       "type": 3,
       "status": 20,
       "completed_by": null,
       "room_id": 10019500,
       "room_code": "vclinic_room_code",
       "member": {
           "id": "14396847",
           "code": "member_01",
           "type": "200",
           "subtype": "",
           "first_name": "Ligeng",
           "last_name": "Member 01",
           "full_name": "Ligeng Member 01",
           "active": true,
           "vseeid": "cmo+604ef759ccd04d859847431864457b13"
       },
       "pending_actions": [],
       "invoice": {
           "user_id": 14396847,
           "status": 10,
           "currency": "USD",
           "livemode": false,
           "amount_due": 0,
           "visit_id": "14814100",
           "modified": 1615909605,
           "created": 1615909605,
           "id": "6050d2e5-f680-4695-b284-2c8664457b11"
       },
       "creator": {
           "id": "14396847",
           "code": "member_01",
           "vseeid": "cmo+604ef759ccd04d859847431864457b13",
           "type": 200,
           "subtype": "",
           "first_name": "Ligeng",
           "last_name": "Member 01",
           "account_code": "vclinic"
       },
       "invoice_id": "6050d2e5-f680-4695-b284-2c8664457b11",
       "intake_id": "6050d1a8-b120-45b4-a568-61a664457b11",
       "postvisit": {
           "member_id": "14396847",
           "class_id": null,
           "visit_id": "14814100",
           "modified": 1615909605,
           "created": 1615909605
       },
       "account": {
           "domain": null,
           "code": "vclinic",
           "name": "VClinic"
       },
       "room": {
           "id": "10019500",
           "code": "vclinic_room_code",
           "name": "VClinic UAT Room"
       },
       "intake": {
           "reason_for_visit": "This is to test the API",
           "question_1": "Answer 1",
           "question_2": "Answer 2",
           "location": "--",
           "modified": 1615909288,
           "created": 1615909288,
           "visit_id": "14814100",
           "invoice_id": "6050d2e5-f680-4695-b284-2c8664457b11",
           "id": "6050d1a8-b120-45b4-a568-61a664457b11"
       },
       "subtype": 4,
       "expiry": 1615924905
   }
}

Appointment API

GET /availability

...