MENU navbar-image

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": []
        }
    }
}
 

Request      

POST client/user/{name}/v2/pet/add

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

name   string   

Example: vel

species   string  optional  
age   string   

Example: quia

breed   string  optional  
color   string  optional  
weight   string  optional  
sex   string   

Example: iusto

sex_type   string  optional  
dob   string  optional  

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": []
        }
    }
}
 

Request      

POST client/user/{name}/v2/pet/update

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

email   string   

Example=example@gmail.com Example: jordan03@example.com

pet_id   integer   

Example=12 Example: 10

pet   object  optional  
name   string  optional  

Example: officiis

color   string  optional  

Example: iste

sex   string  optional  

Example: ipsum

sex_type   string  optional  

Example: dolor

species   string   

ie: dog|cat Example: quod

weight   integer  optional  
  • Example: 15

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
}
 

Request      

POST client/user/{name}/v2/pet/remove

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

email   string   

Example=example@gmail.com Example: bkoch@example.org

pet_id   integer   

Example=12 Example: 9

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": []
            }
        ]
    }
}
 

Request      

GET client/user/{name}/v2/pet/list

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Query Parameters

search_value   string  optional  

Example: omnis

search_by   string  optional  

Example: ullam

page   integer  optional  

Example: 3

pagination   boolean  optional  

Example: true

perPage   integer  optional  

Example: 1

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
        }
    }
}
 

Request      

POST client/user/{name}/v2/report/user/list

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

search_value   string  optional  

Search by firstname , lastname , email Example: mollitia

date_from   string  optional  

not work stand alone - date_to is required Example: ipsam

date_to   string  optional  

not work stand alone - date_from is required Example: facilis

page   boolean  optional  

page no | 1 if not given Example: true

pagination   integer  optional  

no of records you wnna fetch Example: 8

user_id   integer  optional  

record of specific user by user_id Example: 6

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"
        }
    ]
}
 

Request      

POST client/user/{name}/v2/report/payment/list

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

search_value   string  optional  

Example: laborum

search_by   string  optional  

Example: dolores

page   integer  optional  

Example: 12

pagination   boolean  optional  

Example: true

app_id   integer  optional  

Example: 1

export   string  optional  

Example: fugiat

date_from   string  optional  

Example: blanditiis

date_to   string  optional  

Example: sed

status   string  optional  

Example: veritatis

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
        }
    ]
}
 

Request      

GET client/user/{name}/v2/vet/feedbacks

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

search_value   string  optional  

search by first_name , last_name , email ( of vets or users ) Example: aut

search_by   string  optional  

Example: modi

page   integer  optional  

Specific Page Example: 11

pagination   boolean  optional  

To get paginated records Example: false

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": []
    }
}
 

Request      

POST client/user/{name}/v2/pet/switch

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Query Parameters

email   string  optional  

Example: abshire.marcelo@example.net

pet_id   integer  optional  

Example: 2

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\"}}}"
    }
}
 

Request      

POST client/user/{name}/v2/register-user

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

first_name   string   

Must match the regex /^[a-zA-Z0-9\s’\sΔ±ΔŸΓΌΕŸΓΆΓ§Δ°ΔžΓœΕžΓ–Γ‡'"!@#$%^&*()_+{}[]:;<>,.?\/|]+$/u. Example: E:;<>,/|]$/u

last_name   string   

Must match the regex /^[a-zA-Z0-9\s’\sΔ±ΔŸΓΌΕŸΓΆΓ§Δ°ΔžΓœΕžΓ–Γ‡'"!@#$%^&*()_+{}[]:;<>,.?\/|]+$/u. Example: p:;<>,/|]]$/u

email   string   

Must be a valid email address. Example: ibeier@example.org

password   string   

Example: ea

phone_no   string  optional  
dob   string  optional  
device_token   string   

Example: ut

api_key   string   

Example: numquam

dev_type   string   

Example: laboriosam

country   string  optional  
city   string  optional  
zip_code   string  optional  
other   string   

Example: enim

profile   string   

Example: sed

status   string   

Must be one of subscribed, cancelled, or upgrade. Example: upgrade

type   string   

Must be one of monthly or yearly. Example: monthly

gender   string   

Example: quidem

name   string   

Example: officiis

species   string   

Example: voluptates

age   string   

Example: ipsum

breed   string  optional  
color   string   

Example: et

weight   string  optional  
sex   string   

Example: alias

sex_type   string  optional  
number   string   

Example: earum

exp_month   string   

Example: aut

exp_year   string   

Example: quas

cvc   string   

Example: reiciendis

code   string  optional  
package_id   string   

Example: delectus

price   string   

Example: eum

is_addOn   string   

Example: aperiam

addOn_package_id   string   

Example: ab

addOn_price   string   

Example: doloribus

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\"}}]}}"
    }
}
 

Request      

POST client/user/{name}/v2/talk-to-vet

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

first_name   string  optional  

Must match the regex /^[a-zA-Z0-9\s’\sΔ±ΔŸΓΌΕŸΓΆΓ§Δ°ΔžΓœΕžΓ–Γ‡'"!@#$%^&*()+{}[]:;<>,.?\/|]+$/u. Example: `:;<>,,/|]]]$/u`

last_name   string  optional  

Must match the regex /^[a-zA-Z0-9\s’\sΔ±ΔŸΓΌΕŸΓΆΓ§Δ°ΔžΓœΕžΓ–Γ‡'"!@#$%^&*()_+{}[]:;<>,.?\/|]+$/u. Example: &:;<>,/|]]$/u

email   string   

Must be a valid email address. Example: tkuvalis@example.org

password   string   

Example: consequatur

phone_no   string  optional  
dob   string  optional  
device_token   string   

Example: excepturi

api_key   string   

Example: corrupti

dev_type   string   

Example: quia

country   string  optional  
city   string  optional  
zip_code   string  optional  
other   string   

Example: officiis

profile   string   

Example: rem

status   string   

Must be one of subscribed, cancelled, or upgrade. Example: cancelled

type   string   

Must be one of monthly or yearly. Example: monthly

gender   string   

Example: aut

name   string   

Example: voluptas

species   string   

Example: voluptas

age   string   

Example: eaque

breed   string   

Example: ut

color   string   

Example: totam

weight   string  optional  
sex   string   

Example: veniam

sex_type   string  optional  
number   string   

Example: est

exp_month   string   

Example: neque

exp_year   string   

Example: illum

cvc   string   

Example: veritatis

code   string  optional  
package_id   string   

Example: sapiente

price   string   

Example: laborum

is_addOn   string   

Example: excepturi

addOn_package_id   string   

Example: unde

addOn_price   string   

Example: sit

pet_tracking_code   string  optional  
location_email   string  optional  
end_chat_details   string  optional  

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"
    }
}
 

Request      

POST client/user/{name}/v2/actions

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

name   integer   

Example: 1

Body Parameters

api_key   string   

Example: necessitatibus

email   string   

Example: et

first_name   string  optional  
last_name   string  optional  
status   string   

Example: et

your_registration_date   string  optional  
phone_no   string  optional  
role   string  optional  
type   string  optional