Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization
header in the form "Basic {credentials}"
.
The value of {credentials}
should be your username/id and your password, joined with a colon (:),
and then base64-encoded.
All authenticated endpoints are marked with a requires authentication
badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Pets
Add Pet
add new pet
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/add" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vel\",
\"age\": \"quia\",
\"sex\": \"iusto\"
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/add"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vel",
"age": "quia",
"sex": "iusto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"Pet Added"
],
"data": {
"email": "test2@gc.com",
"pet": {
"name": "abcd 411",
"species": "cat",
"age": "2 years",
"breed": "horny",
"color": "Brown",
"weight": "111",
"sex": "Female",
"sex_type": "Spayed",
"user_id": 2845,
"model_id": 2845,
"model_type": "App\\VetCareUser",
"updated_at": "2023-07-26 18:07:16",
"created_at": "2023-07-26 18:07:16",
"id": 11579,
"veterians": null,
"medicals": null,
"insurnaces": null,
"pet_veterians": [],
"pet_medicals": [],
"pet_insurnaces": []
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Pet
update pet
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"jordan03@example.com\",
\"pet_id\": 10,
\"pet\": {
\"name\": \"officiis\",
\"color\": \"iste\",
\"sex\": \"ipsum\",
\"sex_type\": \"dolor\",
\"species\": \"quod\",
\"weight\": 15
}
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "jordan03@example.com",
"pet_id": 10,
"pet": {
"name": "officiis",
"color": "iste",
"sex": "ipsum",
"sex_type": "dolor",
"species": "quod",
"weight": 15
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"Pet Added"
],
"data": {
"email": "test2@gc.com",
"pet": {
"name": "abcd 411",
"species": "cat",
"age": "2 years",
"breed": "horny",
"color": "Brown",
"weight": "111",
"sex": "Female",
"sex_type": "Spayed",
"user_id": 2845,
"model_id": 2845,
"model_type": "App\\VetCareUser",
"updated_at": "2023-07-26 18:07:16",
"created_at": "2023-07-26 18:07:16",
"id": 11579,
"veterians": null,
"medicals": null,
"insurnaces": null,
"pet_veterians": [],
"pet_medicals": [],
"pet_insurnaces": []
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove Pet
remove pet by user email and pet Id
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/remove" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"bkoch@example.org\",
\"pet_id\": 9
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/remove"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "bkoch@example.org",
"pet_id": 9
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"Pet data deleted successfully"
],
"data": true
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Pets
list of pets
Example request:
curl --request GET \
--get "https://itmedicalvetsolutions.com/client/user/1/v2/pet/list?search_value=omnis&search_by=ullam&page=3&pagination=1&perPage=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/list"
);
const params = {
"search_value": "omnis",
"search_by": "ullam",
"page": "3",
"pagination": "1",
"perPage": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"pet list"
],
"data": {
"list": [
{
"id": 11578,
"user_id": 2845,
"name": "Spank",
"species": "cat",
"age": "1 year",
"breed": "Nut",
"color": "Brown",
"weight": "15 lbs",
"sex": "Male",
"sex_type": "spayed",
"profile": null,
"is_dead": "0",
"updated_at": "2023-07-26 18:07:04",
"deleted_at": null,
"created_at": "2023-07-26 17:07:28",
"model_id": 2845,
"model_type": "App\\VetCareUser",
"veterians": null,
"medicals": null,
"insurnaces": null,
"pet_veterians": [],
"pet_medicals": [],
"pet_insurnaces": []
},
{
"id": 11579,
"user_id": 2845,
"name": "abcd 411",
"species": "cat",
"age": "2 years",
"breed": "horny",
"color": "Brown",
"weight": "111",
"sex": "Female",
"sex_type": "Spayed",
"profile": null,
"is_dead": "0",
"updated_at": "2023-07-26 18:07:16",
"deleted_at": null,
"created_at": "2023-07-26 18:07:16",
"model_id": 2845,
"model_type": "App\\VetCareUser",
"veterians": null,
"medicals": null,
"insurnaces": null,
"pet_veterians": [],
"pet_medicals": [],
"pet_insurnaces": []
}
]
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reports
users
users list
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/report/user/list" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"search_value\": \"mollitia\",
\"date_from\": \"ipsam\",
\"date_to\": \"facilis\",
\"page\": true,
\"pagination\": 8,
\"user_id\": 6
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/report/user/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"search_value": "mollitia",
"date_from": "ipsam",
"date_to": "facilis",
"page": true,
"pagination": 8,
"user_id": 6
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"User Record Fetched Successfully."
],
"data": {
"list": [
{
"user_id": 2845,
"email": "test2@gc.com",
"first_name": "test",
"last_name": "testt",
"user_details": {
"zip_code": "x3Sd3",
"phone_no": "12345678"
},
"extra": null,
"package_name": "",
"package_type": "",
"role": "protect_users",
"default_pet": {
"id": 11578,
"user_id": 2845,
"name": "Spank",
"species": "Dog",
"age": "1 year",
"breed": "Nut",
"color": "Brown",
"weight": "10 lbs",
"sex": "Male",
"sex_type": "spayed",
"profile": null,
"is_dead": "0",
"updated_at": "2023-07-26 17:07:28",
"deleted_at": null,
"created_at": "2023-07-26 17:07:28",
"model_id": 2845,
"model_type": "App\\VetCareUser",
"veterians": null,
"medicals": null,
"insurnaces": null,
"pivot": {
"vet_care_user_id": 2845,
"pet_id": 11578
},
"pet_veterians": [],
"pet_medicals": [],
"pet_insurnaces": []
},
"all_pets": [
{
"id": 11578,
"user_id": 2845,
"name": "Spank",
"species": "Dog",
"age": "1 year",
"breed": "Nut",
"color": "Brown",
"weight": "10 lbs",
"sex": "Male",
"sex_type": "spayed",
"profile": null,
"is_dead": "0",
"updated_at": "2023-07-26 17:07:28",
"deleted_at": null,
"created_at": "2023-07-26 17:07:28",
"model_id": 2845,
"model_type": "App\\VetCareUser",
"veterians": null,
"medicals": null,
"insurnaces": null,
"pet_veterians": [],
"pet_medicals": [],
"pet_insurnaces": []
}
],
"usage_subscription": [],
"user_subscription_status": "subscribed",
"joining_date": "2023-07-26T17:50:26.000000Z"
}
],
"pagination": {
"total": 1,
"current": 1,
"first": 1,
"last": 1,
"previous": 0,
"next": 1,
"pages": [
1
],
"from": 1,
"to": 1
}
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Payments
payment list
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/report/payment/list" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"search_value\": \"laborum\",
\"search_by\": \"dolores\",
\"page\": 12,
\"pagination\": true,
\"app_id\": 1,
\"export\": \"fugiat\",
\"date_from\": \"blanditiis\",
\"date_to\": \"sed\",
\"status\": \"veritatis\"
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/report/payment/list"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"search_value": "laborum",
"search_by": "dolores",
"page": 12,
"pagination": true,
"app_id": 1,
"export": "fugiat",
"date_from": "blanditiis",
"date_to": "sed",
"status": "veritatis"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"Payment Record Fetched Successfully."
],
"data": [
{
"payment_id": 10292,
"amount": "0",
"user_id": 2759,
"status": "accepted",
"email": "testingdp1@yopmail.com",
"first_name": "testing no card",
"last_name": "testing no card",
"next_emergency_activation_date": null,
"payment_initiated_time": "2023-07-06T14:46:39.000000Z",
"role": "users",
"package_name": "no card with default",
"package_type": "non-credit"
},
{
"payment_id": 10296,
"amount": "0",
"user_id": 2770,
"status": "accepted",
"email": "testingusernocard@ypomail.com",
"first_name": "testing user",
"last_name": "testing user",
"next_emergency_activation_date": null,
"payment_initiated_time": "2023-07-07T13:58:17.000000Z",
"role": "users",
"package_name": "no card with default",
"package_type": "non-credit"
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Vet Feedback
list of feedbacks
Example request:
curl --request GET \
--get "https://itmedicalvetsolutions.com/client/user/1/v2/vet/feedbacks" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"search_value\": \"aut\",
\"search_by\": \"modi\",
\"page\": 11,
\"pagination\": false
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/vet/feedbacks"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"search_value": "aut",
"search_by": "modi",
"page": 11,
"pagination": false
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"Record Fetched Successfully ."
],
"data": [
{
"id": 4214,
"app_id": 5,
"app_name": "petcube",
"type": "chat",
"recommendation": "Recomended to see vet immediately",
"reason": "Ear infections ",
"feedback_date": "2023-07-26 19:21:59",
"vet_id": 152,
"vet_first_name": "GoodCharlie",
"vet_last_name": "Test",
"vet_email": "goodcharlie@vet.com",
"user_id": 3572,
"user_first_name": "New",
"user_last_name": "umbrella",
"user_email": "testgoodcharlievmp@mailinator.co",
"user_role": null
},
{
"id": 4213,
"app_id": 5,
"app_name": "petcube",
"type": "chat",
"recommendation": "Recomended to see vet immediately",
"reason": "Mass or Growth ",
"feedback_date": "2023-06-19 10:10:53",
"vet_id": 63,
"vet_first_name": "Petcube",
"vet_last_name": "Doctor",
"vet_email": "petcube@doctor.com",
"user_id": 3487,
"user_first_name": "vo",
"user_last_name": "471",
"user_email": "vo+471@petcube.com",
"user_role": null
},
{
"id": 4212,
"app_id": 5,
"app_name": "petcube",
"type": "chat",
"recommendation": "fsdf",
"reason": "Mass or Growth ",
"feedback_date": "2023-06-19 09:57:00",
"vet_id": 63,
"vet_first_name": "Petcube",
"vet_last_name": "Doctor",
"vet_email": "petcube@doctor.com",
"user_id": 3533,
"user_first_name": "vo",
"user_last_name": "476",
"user_email": "vo+476@petcube.com",
"user_role": null
}
]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Switch Default Pet
Switch Default Pet
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/switch?email=abshire.marcelo%40example.net&pet_id=2" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/pet/switch"
);
const params = {
"email": "abshire.marcelo@example.net",
"pet_id": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"Pet Switched Successfully"
],
"data": {
"attached": [],
"detached": [],
"updated": []
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User
Register User VetCare
add new user of vet care user
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/register-user" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"E:;<>,\\/|]$\\/u\",
\"last_name\": \"p:;<>,\\/|]]$\\/u\",
\"email\": \"ibeier@example.org\",
\"password\": \"ea\",
\"device_token\": \"ut\",
\"api_key\": \"numquam\",
\"dev_type\": \"laboriosam\",
\"other\": \"enim\",
\"profile\": \"sed\",
\"status\": \"upgrade\",
\"type\": \"monthly\",
\"gender\": \"quidem\",
\"name\": \"officiis\",
\"species\": \"voluptates\",
\"age\": \"ipsum\",
\"color\": \"et\",
\"sex\": \"alias\",
\"number\": \"earum\",
\"exp_month\": \"aut\",
\"exp_year\": \"quas\",
\"cvc\": \"reiciendis\",
\"package_id\": \"delectus\",
\"price\": \"eum\",
\"is_addOn\": \"aperiam\",
\"addOn_package_id\": \"ab\",
\"addOn_price\": \"doloribus\"
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/register-user"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "E:;<>,\/|]$\/u",
"last_name": "p:;<>,\/|]]$\/u",
"email": "ibeier@example.org",
"password": "ea",
"device_token": "ut",
"api_key": "numquam",
"dev_type": "laboriosam",
"other": "enim",
"profile": "sed",
"status": "upgrade",
"type": "monthly",
"gender": "quidem",
"name": "officiis",
"species": "voluptates",
"age": "ipsum",
"color": "et",
"sex": "alias",
"number": "earum",
"exp_month": "aut",
"exp_year": "quas",
"cvc": "reiciendis",
"package_id": "delectus",
"price": "eum",
"is_addOn": "aperiam",
"addOn_package_id": "ab",
"addOn_price": "doloribus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"User Created Successfully"
],
"data": {
"stringify_response": "{\"token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vdmV0cy1iYWNrZW5kLXVwZGF0ZWQubG9jYWwvY2xpZW50L3VzZXIvcGV0Y3ViZS92Mi9yZWdpc3Rlci11c2VyIiwiaWF0IjoxNjkwMzkzODI4LCJleHAiOjE3MjY2ODE4MjgsIm5iZiI6MTY5MDM5MzgyOCwianRpIjoiRkdhQ3N2Q3RnR1JZY2U1YiIsInN1YiI6IjI4NDUiLCJwcnYiOiI5Yzc5NWYzYjUzZTRmYTJhNjVmMjQzMTFkYzVhYzUzZjVlYTk5NWEyIn0.nYSUc2g_I-ZrO5qgpm46MmqcDpwQjoafMKQBeiUCi5o\",\"twilioToken\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6InR3aWxpby1mcGE7dj0xIn0.eyJqdGkiOiJTS2YwZmYwMWVjMWJkYzkyN2ZkZmViYjI5NTkxZmYwMmY2LTE2OTAzOTM4MjkiLCJpc3MiOiJTS2YwZmYwMWVjMWJkYzkyN2ZkZmViYjI5NTkxZmYwMmY2Iiwic3ViIjoiQUMxZmIxZWU4OTAxOGEzZDg2ZmJlNWRiNjVhZmQ5NjQ2MCIsImV4cCI6MTY5MDQ3OTgyOSwiZ3JhbnRzIjp7ImlkZW50aXR5IjoibG9jYWwtYXBwLTVfdXNlci0yODQ1IiwiY2hhdCI6eyJzZXJ2aWNlX3NpZCI6IklTYmFhNDg4NDNiYjc1NDQ1MTlkNTg3ZTVlOTIxODI5OTMifSwidmlkZW8iOnt9fX0.p7s4G2QDca-GfsUMyFxQUcWqpzgdCaprVOaJCNSXQ-0\",\"user\":{\"first_name\":\"user test v2\",\"last_name\":\"HandShake\",\"email\":\"test2@gc.com\",\"status\":\"subscribed\",\"app_id\":5,\"updated_at\":\"2023-07-26 17:07:26\",\"created_at\":\"2023-07-26 17:07:26\",\"id\":2845,\"role_names\":[\"users\"],\"app\":[\"petcube\"],\"notesEmergency\":null,\"emergency\":null,\"roles\":[{\"id\":6,\"name\":\"users\",\"guard_name\":\"vcusers\",\"created_at\":\"2021-08-02T16:06:08.000000Z\",\"updated_at\":\"2021-08-02T16:06:10.000000Z\",\"pivot\":{\"model_id\":2845,\"role_id\":6,\"model_type\":\"App\\\\VetCareUser\"}}],\"devices\":[{\"id\":28815,\"rec_id\":2845,\"device_token\":\"35909205046537454324\",\"udid\":\"8240af75-2163-40b7-b320-7e81cb0f3e44\",\"dev_type\":\"web\",\"model_id\":2845,\"model_type\":\"App\\\\VetCareUser\",\"app_version\":\"1.0.1\",\"created_at\":\"2023-07-26 17:07:28\",\"updated_at\":\"2023-07-26 17:07:28\",\"deleted_at\":null}],\"user_details\":{\"id\":3409,\"vet_care_user_id\":2845,\"profile\":null,\"other\":{\"zip_code\":\"x3Sd3\",\"phone_no\":\"12345678\"},\"phone_no\":null,\"created_at\":\"2023-07-26 17:07:28\",\"updated_at\":\"2023-07-26 17:07:28\",\"deleted_at\":null},\"default_pet\":[{\"id\":11578,\"user_id\":2845,\"name\":\"Spank\",\"species\":\"Dog\",\"age\":\"1 year\",\"breed\":\"Nut\",\"color\":\"Brown\",\"weight\":\"10 lbs\",\"sex\":\"Male\",\"sex_type\":\"spayed\",\"profile\":null,\"is_dead\":\"0\",\"updated_at\":\"2023-07-26 17:07:28\",\"deleted_at\":null,\"created_at\":\"2023-07-26 17:07:28\",\"model_id\":2845,\"model_type\":\"App\\\\VetCareUser\",\"veterians\":null,\"medicals\":null,\"insurnaces\":null,\"pivot\":{\"vet_care_user_id\":2845,\"pet_id\":11578},\"pet_veterians\":[],\"pet_medicals\":[],\"pet_insurnaces\":[]}],\"user_app_statuses\":{\"id\":140746,\"user_id\":2845,\"app_id\":120,\"status\":\"subscribed\",\"type\":\"monthly\",\"created_at\":\"2022-10-27 02:10:49\",\"updated_at\":\"2022-10-27 02:10:49\",\"date_time\":\"2022-10-26 10:07:49\"}}}"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
talk to Vet
chat with vet
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/talk-to-vet" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"first_name\": \"_:;<>,,\\/|]]]$\\/u\",
\"last_name\": \"&:;<>,\\/|]]$\\/u\",
\"email\": \"tkuvalis@example.org\",
\"password\": \"consequatur\",
\"device_token\": \"excepturi\",
\"api_key\": \"corrupti\",
\"dev_type\": \"quia\",
\"other\": \"officiis\",
\"profile\": \"rem\",
\"status\": \"cancelled\",
\"type\": \"monthly\",
\"gender\": \"aut\",
\"name\": \"voluptas\",
\"species\": \"voluptas\",
\"age\": \"eaque\",
\"breed\": \"ut\",
\"color\": \"totam\",
\"sex\": \"veniam\",
\"number\": \"est\",
\"exp_month\": \"neque\",
\"exp_year\": \"illum\",
\"cvc\": \"veritatis\",
\"package_id\": \"sapiente\",
\"price\": \"laborum\",
\"is_addOn\": \"excepturi\",
\"addOn_package_id\": \"unde\",
\"addOn_price\": \"sit\"
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/talk-to-vet"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"first_name": "_:;<>,,\/|]]]$\/u",
"last_name": "&:;<>,\/|]]$\/u",
"email": "tkuvalis@example.org",
"password": "consequatur",
"device_token": "excepturi",
"api_key": "corrupti",
"dev_type": "quia",
"other": "officiis",
"profile": "rem",
"status": "cancelled",
"type": "monthly",
"gender": "aut",
"name": "voluptas",
"species": "voluptas",
"age": "eaque",
"breed": "ut",
"color": "totam",
"sex": "veniam",
"number": "est",
"exp_month": "neque",
"exp_year": "illum",
"cvc": "veritatis",
"package_id": "sapiente",
"price": "laborum",
"is_addOn": "excepturi",
"addOn_package_id": "unde",
"addOn_price": "sit"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"User Found Successfully"
],
"data": {
"stringify_response": "{\"token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vdmV0cy1iYWNrZW5kLXVwZGF0ZWQubG9jYWwvY2xpZW50L3VzZXIvcGV0Y3ViZS92Mi90YWxrLXRvLXZldCIsImlhdCI6MTY5MDM5NDEyMywiZXhwIjoxNzI2NjgyMTIzLCJuYmYiOjE2OTAzOTQxMjMsImp0aSI6IkJZSTVVeTFocmsxVTduVEciLCJzdWIiOiIyODQ1IiwicHJ2IjoiOWM3OTVmM2I1M2U0ZmEyYTY1ZjI0MzExZGM1YWM1M2Y1ZWE5OTVhMiJ9.6wmpBGQMXY5H3ajGn-wbsqHoJxmQFkAbAlhT_rO7mgY\",\"twilioToken\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6InR3aWxpby1mcGE7dj0xIn0.eyJqdGkiOiJTS2YwZmYwMWVjMWJkYzkyN2ZkZmViYjI5NTkxZmYwMmY2LTE2OTAzOTQxMjQiLCJpc3MiOiJTS2YwZmYwMWVjMWJkYzkyN2ZkZmViYjI5NTkxZmYwMmY2Iiwic3ViIjoiQUMxZmIxZWU4OTAxOGEzZDg2ZmJlNWRiNjVhZmQ5NjQ2MCIsImV4cCI6MTY5MDQ4MDEyNCwiZ3JhbnRzIjp7ImlkZW50aXR5IjoibG9jYWwtYXBwLTVfdXNlci0yODQ1IiwiY2hhdCI6eyJzZXJ2aWNlX3NpZCI6IklTYmFhNDg4NDNiYjc1NDQ1MTlkNTg3ZTVlOTIxODI5OTMifSwidmlkZW8iOnt9fX0.0AexUxjs5haMb2yg-y12DTJDNWx4uzBkEVBh7YaSKSc\",\"user\":{\"id\":2845,\"email\":\"test2@gc.com\",\"email_verified_at\":null,\"app_id\":5,\"first_name\":\"user test v2\",\"last_name\":\"HandShake\",\"is_online\":null,\"status\":\"subscribed\",\"extra\":null,\"is_senior_program_user\":null,\"stripe_id\":null,\"card_id\":null,\"anet_customer_payment_profile_id\":null,\"anet_customer_profile_id\":null,\"anet_customer_address_id\":null,\"trail_ends_at\":null,\"next_emergency_activation_date\":null,\"pet_tracking_code\":null,\"created_at\":\"2023-07-26 17:07:26\",\"updated_at\":\"2023-07-26 17:07:26\",\"deleted_at\":null,\"is_deleted_by\":\"admin\",\"stax_customer_id\":null,\"stax_payment_method_id\":null,\"role_names\":[\"users\"],\"app\":[\"petcube\"],\"notesEmergency\":null,\"emergency\":null,\"default_pet\":[{\"id\":11578,\"user_id\":2845,\"name\":\"Spank\",\"species\":\"Dog\",\"age\":\"1 year\",\"breed\":\"Nut\",\"color\":\"Brown\",\"weight\":\"10 lbs\",\"sex\":\"Male\",\"sex_type\":\"spayed\",\"profile\":null,\"is_dead\":\"0\",\"updated_at\":\"2023-07-26 17:07:28\",\"deleted_at\":null,\"created_at\":\"2023-07-26 17:07:28\",\"model_id\":2845,\"model_type\":\"App\\\\VetCareUser\",\"veterians\":null,\"medicals\":null,\"insurnaces\":null,\"pivot\":{\"vet_care_user_id\":2845,\"pet_id\":11578},\"pet_veterians\":[],\"pet_medicals\":[],\"pet_insurnaces\":[]}],\"devices\":[{\"id\":28815,\"rec_id\":2845,\"device_token\":\"35909205046537454324\",\"udid\":null,\"dev_type\":\"web\",\"model_id\":2845,\"model_type\":\"App\\\\VetCareUser\",\"app_version\":null,\"created_at\":\"2023-07-26 17:07:28\",\"updated_at\":\"2023-07-26 17:07:23\",\"deleted_at\":null}],\"user_details\":{\"id\":3409,\"vet_care_user_id\":2845,\"profile\":null,\"other\":{\"zip_code\":\"x3Sd3\",\"phone_no\":\"12345678\"},\"phone_no\":null,\"created_at\":\"2023-07-26 17:07:28\",\"updated_at\":\"2023-07-26 17:07:28\",\"deleted_at\":null},\"user_app_statuses\":{\"id\":140746,\"user_id\":2845,\"app_id\":120,\"status\":\"subscribed\",\"type\":\"monthly\",\"created_at\":\"2022-10-27 02:10:49\",\"updated_at\":\"2022-10-27 02:10:49\",\"date_time\":\"2022-10-26 10:07:49\"},\"roles\":[{\"id\":6,\"name\":\"users\",\"guard_name\":\"vcusers\",\"created_at\":\"2021-08-02T16:06:08.000000Z\",\"updated_at\":\"2021-08-02T16:06:10.000000Z\",\"pivot\":{\"model_id\":2845,\"role_id\":6,\"model_type\":\"App\\\\VetCareUser\"}}]}}"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Action
update user status
Example request:
curl --request POST \
"https://itmedicalvetsolutions.com/client/user/1/v2/actions" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"api_key\": \"necessitatibus\",
\"email\": \"et\",
\"status\": \"et\"
}"
const url = new URL(
"https://itmedicalvetsolutions.com/client/user/1/v2/actions"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"api_key": "necessitatibus",
"email": "et",
"status": "et"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"success": true,
"status_code": 200,
"message": [
"User action successful"
],
"data": {
"email": "test2@gc.com",
"registration": "2023-07-26T17:50:26.000000Z",
"status": "subscribed",
"role": "protect_users"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.