MENU navbar-image

Introduction

This documentation provides all the information you will need to work with WELLNESS PLUS API. The application is built with Laravel 8 PHP framework & is systematically versioned (SEMVER) to replace CUPID API v1.

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

This API is not authenticated.

Admin Endpoints

Get all Enrollees.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/enrollees" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/enrollees"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/enrollees

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get a specific Enrollee by id.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/enrollees/iusto" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/enrollees/iusto"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/enrollees/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the enrollee. Example: iusto

Update pending code request.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/non-enrollees/et" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/non-enrollees/et"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/non-enrollees/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the non enrollee. Example: et

Get card request by id.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/enrollees/request-card/ipsam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/enrollees/request-card/ipsam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/enrollees/request-card/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the request card. Example: ipsam

Get code request by id.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/enrollees/request-code/voluptas" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/enrollees/request-code/voluptas"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/enrollees/request-code/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the request code. Example: voluptas

Get drug refill by id.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/enrollees/drug-refills/quis" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/enrollees/drug-refills/quis"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/enrollees/drug-refills/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the drug refill. Example: quis

Get hospital appointment by id.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/enrollees/hmo/appointments/ullam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/enrollees/hmo/appointments/ullam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/enrollees/hmo/appointments/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the appointment. Example: ullam

Get all Non Enrollees.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/non-enrollees" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/non-enrollees"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/non-enrollees

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Accept PendingEnrollees.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/admin/enrollees/eius" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"enrollee_id\": \"quaerat\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/enrollees/eius"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "enrollee_id": "quaerat"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/admin/enrollees/{enrollee_primary_key}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

enrollee_primary_key   string   

Example: eius

Body Parameters

enrollee_id   string   

Example: quaerat

Get all card requests.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/request-card/consectetur" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/request-card/consectetur"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/request-card/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

status   string   

Example: consectetur

Update pending card request.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/admin/request-card/assumenda/sit" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/request-card/assumenda/sit"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/admin/request-card/{card_request_id}/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

card_request_id   string   

The ID of the card request. Example: assumenda

status   string   

Example: sit

Get code request.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/request-code/mollitia" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/request-code/mollitia"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/request-code/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

status   string   

Example: mollitia

Update pending code request.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/admin/request-code/culpa/rerum" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/request-code/culpa/rerum"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/admin/request-code/{code_request_id}/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

code_request_id   string   

The ID of the code request. Example: culpa

status   string   

Example: rerum

Dashboard.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/dashboard" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/dashboard"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/dashboard

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Approve or Decline drug refill.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/admin/drug-refills/deleniti/inventore" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/drug-refills/deleniti/inventore"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/admin/drug-refills/{drug_refill_id}/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

drug_refill_id   string   

The ID of the drug refill. Example: deleniti

status   string   

Example: inventore

View drug refills.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/drug-refills/sint" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/drug-refills/sint"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/drug-refills/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

status   string   

Example: sint

Approve or Decline hospital appointments.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/admin/hospital-appointments/asperiores/natus" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/hospital-appointments/asperiores/natus"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/admin/hospital-appointments/{hospital_appointment_id}/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

hospital_appointment_id   string   

The ID of the hospital appointment. Example: asperiores

status   string   

Example: natus

View hospital appointments.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/hospital-appointments/velit" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/hospital-appointments/velit"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/hospital-appointments/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

status   string   

Example: velit

Get all Request Audit

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/admin/request-audit?term=nostrum&per_page=4" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/request-audit"
);

const params = {
    "term": "nostrum",
    "per_page": "4",
};
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 (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/admin/request-audit

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

term   string  optional  

Search query parameter Example: nostrum

per_page   integer  optional  

Items per page Example: 4

Get all users.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/users"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/users

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get single user appointments history.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/users/sunt" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/users/sunt"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/users/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the user. Example: sunt

Get filtered health care appointments.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/appointments/voluptas/quia" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/appointments/voluptas/quia"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/appointments/{type}/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: voluptas

status   string   

Example: quia

Get appointment details.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/appointment-details/esse" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/appointment-details/esse"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/appointment-details/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the appointment detail. Example: esse

Update appointment status.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v2/admin/appointment/request-code/quisquam/et" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/appointment/request-code/quisquam/et"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v2/admin/appointment/request-code/{appointment_id}/{status}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

appointment_id   string   

The ID of the appointment. Example: quisquam

status   string   

Example: et

Hospitals Module Functions.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/settings/hospitals" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/settings/hospitals"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/settings/hospitals

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get hospital by id.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/settings/hospitals/sed" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/settings/hospitals/sed"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/settings/hospitals/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the hospital. Example: sed

Dashboard function.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/dashboard" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/dashboard"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/dashboard

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get Hospital levels.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/hospital-levels" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/hospital-levels"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/hospital-levels

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Hospitals Module Functions.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/hospitals" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/hospitals"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/hospitals

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Store a newly created hospital in storage.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/admin/hospitals" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"pqmpfdkrncg\",
    \"address\": \"fqpfgbywaprrfvkcefzlqp\",
    \"location\": \"daihhjbp\",
    \"plan\": \"gzomhqlf\",
    \"level\": 975523.075581
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/hospitals"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "pqmpfdkrncg",
    "address": "fqpfgbywaprrfvkcefzlqp",
    "location": "daihhjbp",
    "plan": "gzomhqlf",
    "level": 975523.075581
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/admin/hospitals

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Must not be greater than 255 characters. Example: pqmpfdkrncg

address   string   

Must not be greater than 255 characters. Example: fqpfgbywaprrfvkcefzlqp

location   string   

Must not be greater than 100 characters. Example: daihhjbp

plan   string   

Must not be greater than 20 characters. Example: gzomhqlf

level   number   

Example: 975523.075581

Display a specified hospital.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/hospitals/culpa" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/hospitals/culpa"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/hospitals/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the hospital. Example: culpa

Update the specified hospital in storage.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v2/admin/hospitals/minima" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"umzvvyfrrmuzahf\",
    \"address\": \"f\",
    \"location\": \"ydfcmrpbbxrgfmibqxuzh\",
    \"plan\": \"lqgllnqayyqd\",
    \"level\": 85.4547626
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/hospitals/minima"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "umzvvyfrrmuzahf",
    "address": "f",
    "location": "ydfcmrpbbxrgfmibqxuzh",
    "plan": "lqgllnqayyqd",
    "level": 85.4547626
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v2/admin/hospitals/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the hospital. Example: minima

Body Parameters

name   string   

Must not be greater than 255 characters. Example: umzvvyfrrmuzahf

address   string   

Must not be greater than 255 characters. Example: f

location   string   

Must not be greater than 100 characters. Example: ydfcmrpbbxrgfmibqxuzh

plan   string   

Must not be greater than 20 characters. Example: lqgllnqayyqd

level   number   

Example: 85.4547626

Remove the specified hospital from storage.

Example request:
curl --request DELETE \
    "https://api.wellnessplus.io/api/v2/admin/hospitals/praesentium" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/hospitals/praesentium"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v2/admin/hospitals/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the hospital. Example: praesentium

Get services.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/services" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/services"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/services

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Store a newly created service in storage.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/admin/services" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"djts\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/services"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "djts"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/admin/services

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string   

Must not be greater than 255 characters. Example: djts

Display a specified service

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/services/ipsam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/services/ipsam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/services/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the service. Example: ipsam

Update the specified service in storage.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v2/admin/services/aut" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"kqmbnhv\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/services/aut"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "kqmbnhv"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v2/admin/services/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the service. Example: aut

Body Parameters

name   string   

Must not be greater than 255 characters. Example: kqmbnhv

Remove the specified service from storage.

Example request:
curl --request DELETE \
    "https://api.wellnessplus.io/api/v2/admin/services/non" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/services/non"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v2/admin/services/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the service. Example: non

Function to get health service providers.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/health-service-providers" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/health-service-providers"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/health-service-providers

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Store a newly created health service provider in storage.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/admin/health-service-providers" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"location\": \"kthx\",
    \"name\": \"gkcamxuo\",
    \"address\": \"aeysvrxujlqdmoc\",
    \"service_id\": 292454.8678
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/health-service-providers"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "location": "kthx",
    "name": "gkcamxuo",
    "address": "aeysvrxujlqdmoc",
    "service_id": 292454.8678
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/admin/health-service-providers

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

location   string   

Must not be greater than 100 characters. Example: kthx

name   string   

Must not be greater than 255 characters. Example: gkcamxuo

address   string   

Must not be greater than 255 characters. Example: aeysvrxujlqdmoc

service_id   number   

Example: 292454.8678

Display a specified health service provider.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/health-service-providers/sint" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/health-service-providers/sint"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/health-service-providers/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the health service provider. Example: sint

Update the specified health service provider in storage.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v2/admin/health-service-providers/error" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"fjwyztluvbgykcpfetb\",
    \"address\": \"mb\",
    \"location\": \"twrgpmfg\",
    \"service_id\": 1755.1518399
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/health-service-providers/error"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "fjwyztluvbgykcpfetb",
    "address": "mb",
    "location": "twrgpmfg",
    "service_id": 1755.1518399
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v2/admin/health-service-providers/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the health service provider. Example: error

Body Parameters

name   string   

Must not be greater than 255 characters. Example: fjwyztluvbgykcpfetb

address   string   

Must not be greater than 255 characters. Example: mb

location   string   

Must not be greater than 100 characters. Example: twrgpmfg

service_id   number   

Example: 1755.1518399

Remove the specified health service provider from storage.

Example request:
curl --request DELETE \
    "https://api.wellnessplus.io/api/v2/admin/health-service-providers/doloribus" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/health-service-providers/doloribus"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v2/admin/health-service-providers/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the health service provider. Example: doloribus

View comment.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/comment/all" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/comment/all"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/comment/all

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get user basic plan.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/basic_plans/tenetur" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/basic_plans/tenetur"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/basic_plans/{user_id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_id   string   

The ID of the user. Example: tenetur

Update the specified resource in storage.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v2/admin/basic_plans/eos" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/basic_plans/eos"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v2/admin/basic_plans/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the basic plan. Example: eos

Appointments Endpoints

GET api/v2/appointments/history/{type}

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/appointments/history/repellendus" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/appointments/history/repellendus"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/appointments/history/{type}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: repellendus

GET api/v2/appointments/latest

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/appointments/latest" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/appointments/latest"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/appointments/latest

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Auth Endpoints

Store a new User.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"innqyvkxxcsqvqnvqymwhc\",
    \"last_name\": \"mpofaqnhk\",
    \"email\": \"darion27@example.net\",
    \"phone_number\": \"yc\",
    \"user_agent\": \"doctor_app\",
    \"role_name\": \"neque\",
    \"password\": \"_N&wAkaom]:\",
    \"is_enrollee\": true,
    \"is_verified\": false,
    \"insurance_no\": \"doloribus\",
    \"specializations\": [
        \"soluta\"
    ]
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/register"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "innqyvkxxcsqvqnvqymwhc",
    "last_name": "mpofaqnhk",
    "email": "darion27@example.net",
    "phone_number": "yc",
    "user_agent": "doctor_app",
    "role_name": "neque",
    "password": "_N&wAkaom]:",
    "is_enrollee": true,
    "is_verified": false,
    "insurance_no": "doloribus",
    "specializations": [
        "soluta"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/register

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_name   string   

Must not be greater than 50 characters. Example: innqyvkxxcsqvqnvqymwhc

last_name   string   

Must not be greater than 50 characters. Example: mpofaqnhk

email   string   

Must be a valid email address. Example: darion27@example.net

phone_number   string   

Must not be greater than 14 characters. Example: yc

user_agent   string  optional  

Example: doctor_app

Must be one of:
  • doctor_app
role_name   string  optional  

This field is required when user_agent is doctor_app. The name of an existing record in the roles table. Example: neque

password   string   

Must be at least 6 characters. Example: _N&wAkaom]:

is_enrollee   boolean  optional  

Example: true

is_verified   boolean  optional  

Example: false

insurance_no   string  optional  

This field is required when is_enrollee is true. Example: doloribus

specializations   string[]  optional  

This field is required when specializations is present. The name of an existing record in the specializations table.

Confirm mobile number.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/confirm" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/confirm"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/confirm

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Attempt login user.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Attempt login user.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/admin/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/admin/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/admin/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Send OTP code.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/otp-code" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/otp-code"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/otp-code

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Verify a user account.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/otp-code/verify" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/otp-code/verify"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/otp-code/verify

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Resend OTP code.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/forgot-pwd" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"oschultz@example.net\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/forgot-pwd"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "oschultz@example.net"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/forgot-pwd

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

Must be a valid email address. Example: oschultz@example.net

Verify reset code

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/verify-reset-pwd-code" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"schamberger.maryjane@example.net\",
    \"reset_code\": \"rerum\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/verify-reset-pwd-code"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "schamberger.maryjane@example.net",
    "reset_code": "rerum"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/verify-reset-pwd-code

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

Must be a valid email address. Example: schamberger.maryjane@example.net

reset_code   string   

Example: rerum

Update password

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/update-pwd" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"isabell91@example.com\",
    \"password\": \"9lEy8[YLc-`r;F*\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/update-pwd"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "isabell91@example.com",
    "password": "9lEy8[YLc-`r;F*"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/update-pwd

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

email   string   

Must be a valid email address. Example: isabell91@example.com

password   string   

Must be at least 6 characters. Example: 9lEy8[YLc-r;F*`

Get authenticated user.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/users/authenticate" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/users/authenticate"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/users/authenticate

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Basic Plan Endpoints

Create a basic plan.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/basic_plan" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 2,
    \"basic_plan_demographics\": \"[\\\"voluptatem\\\",\\\"dolor\\\"]\",
    \"price\": \"15000\",
    \"status\": \"active\",
    \"sex\": \"maiores\",
    \"transaction_id\": \"quia\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/basic_plan"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 2,
    "basic_plan_demographics": "[\"voluptatem\",\"dolor\"]",
    "price": "15000",
    "status": "active",
    "sex": "maiores",
    "transaction_id": "quia"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/basic_plan

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer   

The id of an existing record in the users table. Example: 2

basic_plan_demographics   string  optional  

Must be a valid JSON string. Example: ["voluptatem","dolor"]

price   integer   

Example: 15000

Must be one of:
  • 15000
status   string   

Example: active

Must be one of:
  • active
  • inactive
  • pending
sex   string   

Example: maiores

transaction_id   string   

Example: quia

Get a list of benefits.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/basic_plan/benefits" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/basic_plan/benefits"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/basic_plan/benefits

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get specific User basic Plan

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/basic_plan/user" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/basic_plan/user"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/basic_plan/user

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Cancer Screening

Get cancer screenings.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/cancer/quidem" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/cancer/quidem"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/cancer/{type}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: quidem

Create a cancer screening.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/cancer/create" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"services\": \"aut\",
    \"transaction_id\": \"occaecati\",
    \"amount_paid\": 167.83266223,
    \"hospital_name\": \"consequatur\",
    \"hospital_location\": \"modi\",
    \"hospital_address\": \"dolor\",
    \"appointment_date\": \"2024-12-17T07:30:23\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/cancer/create"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "services": "aut",
    "transaction_id": "occaecati",
    "amount_paid": 167.83266223,
    "hospital_name": "consequatur",
    "hospital_location": "modi",
    "hospital_address": "dolor",
    "appointment_date": "2024-12-17T07:30:23"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/cancer/create

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

services   string   

Example: aut

transaction_id   string   

Example: occaecati

amount_paid   number   

Example: 167.83266223

hospital_name   string   

Example: consequatur

hospital_location   string   

Example: modi

hospital_address   string   

Example: dolor

appointment_date   string   

Must be a valid date. Example: 2024-12-17T07:30:23

Comprehensive Check

Get comprehensive check.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/comprehensive/care/qui" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/comprehensive/care/qui"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/comprehensive/care/{type}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: qui

Create a comprehensive check.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/comprehensive/care/create" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"services\": \"itaque\",
    \"transaction_id\": \"iste\",
    \"amount_paid\": 5.865245,
    \"hospital_name\": \"distinctio\",
    \"hospital_location\": \"quis\",
    \"hospital_address\": \"sed\",
    \"appointment_date\": \"2024-12-17T07:30:23\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/comprehensive/care/create"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "services": "itaque",
    "transaction_id": "iste",
    "amount_paid": 5.865245,
    "hospital_name": "distinctio",
    "hospital_location": "quis",
    "hospital_address": "sed",
    "appointment_date": "2024-12-17T07:30:23"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/comprehensive/care/create

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

services   string   

Example: itaque

transaction_id   string   

Example: iste

amount_paid   number   

Example: 5.865245

hospital_name   string   

Example: distinctio

hospital_location   string   

Example: quis

hospital_address   string   

Example: sed

appointment_date   string   

Must be a valid date. Example: 2024-12-17T07:30:23

Dental Optical Endpoints

Get dental and optical primary care.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/dental-optical/care/sint" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/dental-optical/care/sint"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/dental-optical/care/{type}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: sint

Get other dental and optical services.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/dental-optical/care/accusantium" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/dental-optical/care/accusantium"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v2/dental-optical/care/{type}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: accusantium

Create dental and optical services.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/dental-optical/care/create/id" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"services\": \"incidunt\",
    \"transaction_id\": \"et\",
    \"amount_paid\": 209962067.92,
    \"hospital_name\": \"beatae\",
    \"hospital_location\": \"itaque\",
    \"hospital_address\": \"voluptatem\",
    \"appointment_date\": \"2024-12-17T07:30:23\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/dental-optical/care/create/id"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "services": "incidunt",
    "transaction_id": "et",
    "amount_paid": 209962067.92,
    "hospital_name": "beatae",
    "hospital_location": "itaque",
    "hospital_address": "voluptatem",
    "appointment_date": "2024-12-17T07:30:23"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/dental-optical/care/create/{type}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: id

Body Parameters

services   string   

Example: incidunt

transaction_id   string   

Example: et

amount_paid   number   

Example: 209962067.92

hospital_name   string   

Example: beatae

hospital_location   string   

Example: itaque

hospital_address   string   

Example: voluptatem

appointment_date   string   

Must be a valid date. Example: 2024-12-17T07:30:23

Dependant Endpoints

Get dependants.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/users/dependents" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/users/dependents"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/users/dependents

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Create dependants Request.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/users/dependents" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"officiis\",
    \"middle_name\": \"officia\",
    \"last_name\": \"quod\",
    \"gender\": \"tempore\",
    \"dob\": \"2024-12-17T07:30:25\",
    \"reason\": \"placeat\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/users/dependents"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "officiis",
    "middle_name": "officia",
    "last_name": "quod",
    "gender": "tempore",
    "dob": "2024-12-17T07:30:25",
    "reason": "placeat"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/users/dependents

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

first_name   string   

Example: officiis

middle_name   string  optional  

Example: officia

last_name   string   

Example: quod

gender   string   

Example: tempore

dob   string   

Must be a valid date. Example: 2024-12-17T07:30:25

reason   string  optional  

Example: placeat

Device Reading Endpoints

Record a device reading.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/users/device-readings" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"blood_pressure_readings\": \"quia\",
    \"weight_readings\": \"excepturi\",
    \"pulse_readings\": \"nam\",
    \"temperature_readings\": \"aperiam\",
    \"blood_sugar_readings\": \"nesciunt\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/users/device-readings"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "blood_pressure_readings": "quia",
    "weight_readings": "excepturi",
    "pulse_readings": "nam",
    "temperature_readings": "aperiam",
    "blood_sugar_readings": "nesciunt"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/users/device-readings

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

blood_pressure_readings   string   

Example: quia

weight_readings   string   

Example: excepturi

pulse_readings   string   

Example: nam

temperature_readings   string   

Example: aperiam

blood_sugar_readings   string   

Example: nesciunt

View device reading.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/users/device-readings" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/users/device-readings"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/users/device-readings

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Doctor's Endpoints

Get all Specializations.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/specializations" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/specializations"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/specializations

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Create Doctors profile Details.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/doctor-profile" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name_of_university\": \"doloremque\",
    \"year_of_graduation\": \"ut\",
    \"year_of_collection\": \"placeat\",
    \"certificate\": \"tenetur\",
    \"liencence\": \"fuga\",
    \"gender\": \"et\",
    \"nationalty\": \"asperiores\",
    \"country_of_birth\": \"qui\",
    \"state_of_birth\": \"cumque\",
    \"mother_madien_name\": \"quasi\",
    \"dob\": \"numquam\",
    \"residential_address\": \"quaerat\",
    \"bio\": \"quos\",
    \"image\": \"est\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/doctor-profile"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name_of_university": "doloremque",
    "year_of_graduation": "ut",
    "year_of_collection": "placeat",
    "certificate": "tenetur",
    "liencence": "fuga",
    "gender": "et",
    "nationalty": "asperiores",
    "country_of_birth": "qui",
    "state_of_birth": "cumque",
    "mother_madien_name": "quasi",
    "dob": "numquam",
    "residential_address": "quaerat",
    "bio": "quos",
    "image": "est"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/doctor-profile

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name_of_university   string   

Example: doloremque

year_of_graduation   string   

Example: ut

year_of_collection   string   

Example: placeat

certificate   string   

Example: tenetur

liencence   string   

Example: fuga

gender   string  optional  

Example: et

nationalty   string  optional  

Example: asperiores

country_of_birth   string  optional  

Example: qui

state_of_birth   string  optional  

Example: cumque

mother_madien_name   string  optional  

Example: quasi

dob   string  optional  

Must be a valid date. Example: numquam

residential_address   string  optional  

Example: quaerat

bio   string  optional  

Example: quos

specilizations   object  optional  

The id of an existing record in the specializations table.

image   string  optional  

Example: est

Doctors bank details.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/bank-detail" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"bank_id\": \"et\",
    \"account_number\": \"dolore\",
    \"account_name\": \"repellendus\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/bank-detail"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "bank_id": "et",
    "account_number": "dolore",
    "account_name": "repellendus"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/bank-detail

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

bank_id   string   

Example: et

account_number   string   

Example: dolore

account_name   string   

Example: repellendus

Doctors next of kin.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/nextofkin" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"firstname\": \"quo\",
    \"lastname\": \"rerum\",
    \"dateofbirth\": \"sit\",
    \"email\": \"botsford.santino@example.org\",
    \"phone\": \"dolorem\",
    \"gender\": \"tenetur\",
    \"relationship\": \"suscipit\",
    \"nationality\": \"eaque\",
    \"address\": \"rerum\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/nextofkin"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "firstname": "quo",
    "lastname": "rerum",
    "dateofbirth": "sit",
    "email": "botsford.santino@example.org",
    "phone": "dolorem",
    "gender": "tenetur",
    "relationship": "suscipit",
    "nationality": "eaque",
    "address": "rerum"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/nextofkin

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

firstname   string   

Example: quo

lastname   string   

Example: rerum

dateofbirth   string   

Example: sit

email   string   

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

phone   string   

Example: dolorem

gender   string   

Example: tenetur

relationship   string   

Example: suscipit

nationality   string   

Example: eaque

address   string   

Example: rerum

Doctors payment rate.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/paymentrate" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rate\": \"incidunt\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/paymentrate"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "rate": "incidunt"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/paymentrate

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

rate   string   

Example: incidunt

specilization_id   string  optional  

Create Doctors bio data.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/biodata" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"nationalty\": \"impedit\",
    \"stateoforigin\": \"voluptatem\",
    \"phone\": \"magnam\",
    \"mothermaidenname\": \"fuga\",
    \"address\": \"ullam\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/biodata"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "nationalty": "impedit",
    "stateoforigin": "voluptatem",
    "phone": "magnam",
    "mothermaidenname": "fuga",
    "address": "ullam"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/biodata

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

nationalty   string   

Example: impedit

stateoforigin   string   

Example: voluptatem

phone   string   

Example: magnam

mothermaidenname   string   

Example: fuga

address   string   

Example: ullam

Doctors medical information.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/medicalinformation" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"year_of_experience\": \"neque\",
    \"comment\": \"incidunt\",
    \"workmedium\": []
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/medicalinformation"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "year_of_experience": "neque",
    "comment": "incidunt",
    "workmedium": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/medicalinformation

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

year_of_experience   string   

Example: neque

comment   string   

Example: incidunt

workmedium   object   

Doctors medical report.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/doctorreport" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": \"earum\",
    \"comment\": \"magnam\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/doctorreport"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": "earum",
    "comment": "magnam"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/doctorreport

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   string   

Example: earum

comment   string   

Example: magnam

Get all doctor's reports.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/doctorreport" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/doctorreport"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/doctorreport

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get doctors profile.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/doctor_details" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/doctor_details"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/doctor_details

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Doctors availability schedule.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/availableschedule" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"availability_schedule\": [
        {
            \"id\": 14,
            \"day\": \"Sunday\",
            \"start_time\": \"07:30:15\",
            \"end_time\": \"2103-01-19\"
        }
    ]
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/availableschedule"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "availability_schedule": [
        {
            "id": 14,
            "day": "Sunday",
            "start_time": "07:30:15",
            "end_time": "2103-01-19"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/availableschedule

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

availability_schedule   object[]   
id   integer  optional  

The id of an existing record in the availability_schedule table. Example: 14

day   string   

Example: Sunday

Must be one of:
  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
start_time   string   

Must be a valid date in the format H:i:s. Example: 07:30:15

end_time   string   

Must be a valid date in the format H:i:s. Must be a date after start_time. Example: 2103-01-19

Get doctor's schedule.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/availableschedule" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/availableschedule"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/availableschedule

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get patient's doctor reports.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/get_pationt_report/soluta" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/get_pationt_report/soluta"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/get_pationt_report/{patient_id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

patient_id   string   

The ID of the patient. Example: soluta

Get all Doctor's Appointments.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/appointments?status=pending+or+approved" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/appointments"
);

const params = {
    "status": "pending or approved",
};
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 (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/appointments

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

status   string   

this filters by the status of the appointment Example: pending or approved

Update specific appointment Appointments.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/appointments/labore" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"approved\",
    \"reschedule_comment\": \"molestias\",
    \"appointment_date\": \"2024-12-17\",
    \"new_start_time\": \"07:30:16\",
    \"new_end_time\": \"2064-12-28\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/appointments/labore"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "approved",
    "reschedule_comment": "molestias",
    "appointment_date": "2024-12-17",
    "new_start_time": "07:30:16",
    "new_end_time": "2064-12-28"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/appointments/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the appointment. Example: labore

Body Parameters

status   string   

Example: approved

Must be one of:
  • approved
  • rescheduled
reschedule_comment   string  optional  

This field is required when status is rescheduled. Example: molestias

appointment_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2024-12-17

new_start_time   string  optional  

This field is required when status is rescheduled. Must be a valid date in the format H:i:s. Example: 07:30:16

new_end_time   string  optional  

This field is required when status is rescheduled. Must be a valid date in the format H:i:s. Must be a date after new_start_time. Example: 2064-12-28

Get doctor's total earnings.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/totalearning" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/totalearning"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/totalearning

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get Available Instant Service For Doctors.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/pending_instant_service" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/pending_instant_service"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/pending_instant_service

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get All Instant Service For Doctors.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/doctors_instant_service" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/doctors_instant_service"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/doctors_instant_service

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Accept an Instant Service For Doctors.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/accept_instant_service" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"appointment_id\": 6
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/accept_instant_service"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "appointment_id": 6
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/accept_instant_service

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

appointment_id   integer   

Example: 6

Doctor end call update.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/doctors_end_call_update" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"appointment_id\": 7
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/doctors_end_call_update"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "appointment_id": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/doctors_end_call_update

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

appointment_id   integer   

Example: 7

Get banks.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/bank" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/bank"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/bank

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

User Request Log.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/request_log" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"request_type\": \"eos\",
    \"request_details\": \"nemo\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/request_log"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "request_type": "eos",
    "request_details": "nemo"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/request_log

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

request_type   string   

Example: eos

request_details   string   

Example: nemo

Endpoints

Update User Profile image.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/update_profile_image" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"image\": \"nobis\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/update_profile_image"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "image": "nobis"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/update_profile_image

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

image   string   

Example: nobis

Enrollee Endpoints

Validate Enrollee id for sign up flow.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/get_enrollee_details" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"insurance_no\": \"vel\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/get_enrollee_details"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "insurance_no": "vel"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/get_enrollee_details

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

insurance_no   string   

Example: vel

Verify a non Enrollee to Enrollee with their Enrollee ID.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/verify_non_enrollee" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"insurance_no\": \"provident\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/verify_non_enrollee"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "insurance_no": "provident"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/verify_non_enrollee

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

insurance_no   string   

Example: provident

Validate enrollee id.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/users/enrollees/retrieve" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"insurance_no\": \"nostrum\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/users/enrollees/retrieve"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "insurance_no": "nostrum"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/users/enrollees/retrieve

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

insurance_no   string   

Example: nostrum

POST api/v1/users/enrollees/verify

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/users/enrollees/verify" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/users/enrollees/verify"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/users/enrollees/verify

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get enrollee plan benefits.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/users/enrollees/hmo-plan-benefits" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/users/enrollees/hmo-plan-benefits"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/users/enrollees/hmo-plan-benefits

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Store request code.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/users/enrollees/request-code" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hospital_name\": \"vero\",
    \"request_message\": \"adipisci\",
    \"booking_for_dependent\": true,
    \"dependent_name\": \"totam\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/users/enrollees/request-code"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hospital_name": "vero",
    "request_message": "adipisci",
    "booking_for_dependent": true,
    "dependent_name": "totam"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/users/enrollees/request-code

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

hospital_name   string   

Example: vero

request_message   string   

Example: adipisci

booking_for_dependent   boolean   

Example: true

dependent_name   string  optional  

This field is required when booking_for_dependent is true. Example: totam

Store card request.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/users/enrollees/request-card" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"card_collected\": false,
    \"passport_url\": \"http:\\/\\/www.daniel.com\\/expedita-harum-minus-quia-ut\",
    \"payment_name\": \"sapiente\",
    \"payment_amount\": 16,
    \"payment_type\": \"veritatis\",
    \"transaction_id\": \"quam\",
    \"address\": \"quisquam\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/users/enrollees/request-card"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "card_collected": false,
    "passport_url": "http:\/\/www.daniel.com\/expedita-harum-minus-quia-ut",
    "payment_name": "sapiente",
    "payment_amount": 16,
    "payment_type": "veritatis",
    "transaction_id": "quam",
    "address": "quisquam"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/users/enrollees/request-card

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

card_collected   boolean   

Example: false

passport_url   string  optional  

Example: http://www.daniel.com/expedita-harum-minus-quia-ut

payment_name   string  optional  

Example: sapiente

payment_amount   integer  optional  

Example: 16

payment_type   string  optional  

Example: veritatis

transaction_id   string  optional  

Example: quam

address   string   

Example: quisquam

Validate if User has an existing plan.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/verify_plan" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/verify_plan"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/verify_plan

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get all benefits.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/allbenefits/hmo-plan" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/allbenefits/hmo-plan"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/allbenefits/hmo-plan

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Store a new User.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/promo" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/promo"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/promo

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Update the status of a User.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v2/promo" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/promo"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v2/promo

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

HMO Endpoints

Book a hospital appointment for the user.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/hmo/appointments" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"hospital_name\": \"assumenda\",
    \"appointment_date\": \"2024-12-17T07:30:10\",
    \"comment\": \"dolor\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hmo/appointments"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "hospital_name": "assumenda",
    "appointment_date": "2024-12-17T07:30:10",
    "comment": "dolor"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/hmo/appointments

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

hospital_name   string   

Example: assumenda

appointment_date   string   

Must be a valid date. Example: 2024-12-17T07:30:10

comment   string   

Example: dolor

Reschedule hospital appointment.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/hmo/appointments/quo" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"appointment_date\": \"2024-12-17T07:30:10\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hmo/appointments/quo"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "appointment_date": "2024-12-17T07:30:10"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/hmo/appointments/{hospital_appointment_id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

hospital_appointment_id   string   

The ID of the hospital appointment. Example: quo

Body Parameters

appointment_date   string   

Must be a valid date. Example: 2024-12-17T07:30:10

Cancel hospital appointment.

Example request:
curl --request DELETE \
    "https://api.wellnessplus.io/api/v1/hmo/appointments/occaecati" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hmo/appointments/occaecati"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/hmo/appointments/{hospital_appointment_id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

hospital_appointment_id   string   

The ID of the hospital appointment. Example: occaecati

View hospital appointments.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/hmo/appointments/pariatur" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hmo/appointments/pariatur"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/hmo/appointments/{type}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: pariatur

Request for a drug refill.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/hmo/drug-refills" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"doloribus\",
    \"drug_name\": \"est\",
    \"dependent_code\": \"vitae\",
    \"image\": \"occaecati\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hmo/drug-refills"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "reason": "doloribus",
    "drug_name": "est",
    "dependent_code": "vitae",
    "image": "occaecati"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/hmo/drug-refills

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

reason   string   

Example: doloribus

drug_name   string   

Example: est

dependent_code   string  optional  

Example: vitae

image   string  optional  

Example: occaecati

View telemedicine.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/hmo/tele-med" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hmo/tele-med"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/hmo/tele-med

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Comments.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/hmo/comments" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hmo/comments"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/hmo/comments

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Buy plan for others endpoint.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/plans/purchase-for-others" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"request_type\": \"custom\",
    \"data\": {
        \"first_name\": \"exercitationem\",
        \"last_name\": \"nostrum\",
        \"email\": \"hobart.becker@example.com\",
        \"phone\": \"mollitia\",
        \"request_type\": \"custom\",
        \"amount_paid\": 150669.8998354,
        \"transaction_id\": \"rerum\"
    }
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/plans/purchase-for-others"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "request_type": "custom",
    "data": {
        "first_name": "exercitationem",
        "last_name": "nostrum",
        "email": "hobart.becker@example.com",
        "phone": "mollitia",
        "request_type": "custom",
        "amount_paid": 150669.8998354,
        "transaction_id": "rerum"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/plans/purchase-for-others

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

request_type   string   

Example: custom

Must be one of:
  • mb
  • mp
  • wb
  • wp
  • bc
  • pe
  • csm
  • csw
  • optical
  • dental
  • standard
  • basic
  • custom
data   object   
first_name   string   

Example: exercitationem

last_name   string   

Example: nostrum

email   string   

Must be a valid email address. Example: hobart.becker@example.com

phone   string   

Example: mollitia

request_type   string   

Example: custom

Must be one of:
  • mb
  • mp
  • wb
  • wp
  • bc
  • pe
  • csm
  • csw
  • optical
  • dental
  • standard
  • basic
  • custom
amount_paid   number   

Example: 150669.8998354

transaction_id   string   

Example: rerum

Get plan and services bought for others endpoint.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/plans/purchase-for-others" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/plans/purchase-for-others"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/plans/purchase-for-others

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get plan and services bought for others endpoint for admin.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/purchase-for-others" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/purchase-for-others"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/purchase-for-others

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Health Center Location

Get healthcare locations.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/health-centre/locations/et" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/health-centre/locations/et"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/health-centre/locations/{type}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: et

Get healthcare centers by location.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/health-centre/locations/et/consectetur" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/health-centre/locations/et/consectetur"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/health-centre/locations/{type}/{location}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: et

location   string   

Example: consectetur

Hospital Endpoints

Get all location for non-enrollees .

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/hospital/locations" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hospital/locations"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/hospital/locations

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get all hospitals by location for non-enrollees .

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/hospital/locations/provident" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hospital/locations/provident"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/hospital/locations/{location}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

location   string   

The location. Example: provident

Get all hospitals by plan_type for enrollees .

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/hospital/plan" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"plan_name\": \"occaecati\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hospital/plan"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "plan_name": "occaecati"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/hospital/plan

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

plan_name   string   

Example: occaecati

Get all locations for Enrollees.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/hospital/enrollees/locations" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hospital/enrollees/locations"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/hospital/enrollees/locations

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get hospitals by location for enrollees .

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/hospital/enrollees/locations/assumenda" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/hospital/enrollees/locations/assumenda"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/hospital/enrollees/locations/{location}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

location   string   

The location. Example: assumenda

Insurance Calculator

Create Health Insurance.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/insurance-calculator" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"qui\",
    \"sex\": \"illum\",
    \"benefits\": \"et\",
    \"demographics\": \"nihil\",
    \"transaction_id\": \"magnam\",
    \"amount_paid\": 8799.7,
    \"hospital\": \"eos\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/insurance-calculator"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "qui",
    "sex": "illum",
    "benefits": "et",
    "demographics": "nihil",
    "transaction_id": "magnam",
    "amount_paid": 8799.7,
    "hospital": "eos"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/insurance-calculator

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

type   string   

Example: qui

sex   string   

Example: illum

benefits   string   

Example: et

demographics   string   

Example: nihil

transaction_id   string   

Example: magnam

amount_paid   number   

Example: 8799.7

hospital   string   

Example: eos

Get insurance calculator.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/insurance-calculator/ex/est" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/insurance-calculator/ex/est"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/insurance-calculator/{type}/{sex}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: ex

sex   string   

Example: est

Get insurance calculator.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/insurance-calculator-buy-for-others/assumenda/quos" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/insurance-calculator-buy-for-others/assumenda/quos"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/insurance-calculator-buy-for-others/{type}/{sex}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: assumenda

sex   string   

Example: quos

Insurance calculator updated.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/insurance-calculator/voluptates/officia/in" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/insurance-calculator/voluptates/officia/in"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/insurance-calculator/{type}/{sex}/{spouse_sex}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: voluptates

sex   string   

Example: officia

spouse_sex   string   

Example: in

Insurance calculator updated.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/insurance-calculator-buy-for-others/rerum/modi/quibusdam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/insurance-calculator-buy-for-others/rerum/modi/quibusdam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/insurance-calculator-buy-for-others/{type}/{sex}/{spouse_sex}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

type   string   

Example: rerum

sex   string   

Example: modi

spouse_sex   string   

Example: quibusdam

Patient's Endpoints

Create or update patient medical history.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/medical_history" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"blood_type\": \"ut\",
    \"asthmatic\": false,
    \"diabetic_history\": true,
    \"major_illness\": true,
    \"allergic_to_any_drug\": false,
    \"list_of_allergic_drugs\": \"[\\\"facere\\\",\\\"accusamus\\\"]\",
    \"list_of_current_medications\": \"[\\\"sit\\\",\\\"quis\\\"]\",
    \"health_status\": \"nostrum\",
    \"care_giver_phone\": \"autem\",
    \"comment\": \"laborum\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/medical_history"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "blood_type": "ut",
    "asthmatic": false,
    "diabetic_history": true,
    "major_illness": true,
    "allergic_to_any_drug": false,
    "list_of_allergic_drugs": "[\"facere\",\"accusamus\"]",
    "list_of_current_medications": "[\"sit\",\"quis\"]",
    "health_status": "nostrum",
    "care_giver_phone": "autem",
    "comment": "laborum"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/medical_history

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

blood_type   string   

Example: ut

asthmatic   boolean   

Example: false

diabetic_history   boolean   

Example: true

major_illness   boolean   

Example: true

allergic_to_any_drug   boolean   

Example: false

list_of_allergic_drugs   string  optional  

Must be a valid JSON string. Example: ["facere","accusamus"]

list_of_current_medications   string  optional  

Must be a valid JSON string. Example: ["sit","quis"]

health_status   string   

Example: nostrum

care_giver_name   string  optional  
care_giver_phone   string  optional  

Example: autem

comment   string  optional  

Example: laborum

Create or update patient medical history.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/medical_history" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"blood_type\": \"neque\",
    \"asthmatic\": true,
    \"diabetic_history\": true,
    \"major_illness\": false,
    \"allergic_to_any_drug\": false,
    \"list_of_allergic_drugs\": \"[\\\"quia\\\",\\\"sequi\\\"]\",
    \"list_of_current_medications\": \"[\\\"cum\\\",\\\"assumenda\\\"]\",
    \"health_status\": \"quis\",
    \"care_giver_phone\": \"facilis\",
    \"comment\": \"voluptatibus\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/medical_history"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "blood_type": "neque",
    "asthmatic": true,
    "diabetic_history": true,
    "major_illness": false,
    "allergic_to_any_drug": false,
    "list_of_allergic_drugs": "[\"quia\",\"sequi\"]",
    "list_of_current_medications": "[\"cum\",\"assumenda\"]",
    "health_status": "quis",
    "care_giver_phone": "facilis",
    "comment": "voluptatibus"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/medical_history

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

blood_type   string   

Example: neque

asthmatic   boolean   

Example: true

diabetic_history   boolean   

Example: true

major_illness   boolean   

Example: false

allergic_to_any_drug   boolean   

Example: false

list_of_allergic_drugs   string  optional  

Must be a valid JSON string. Example: ["quia","sequi"]

list_of_current_medications   string  optional  

Must be a valid JSON string. Example: ["cum","assumenda"]

health_status   string   

Example: quis

care_giver_name   string  optional  
care_giver_phone   string  optional  

Example: facilis

comment   string  optional  

Example: voluptatibus

GET api/v1/medical_history

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/medical_history" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/medical_history"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/medical_history

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Book Patient Telemedicine appointment.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/book_appointment" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"appointment_date\": \"2024-12-17\",
    \"start_time\": \"07:30:18\",
    \"end_time\": \"2106-07-25\",
    \"doctor_id\": 13,
    \"amount\": \"aut\",
    \"email\": \"durward41@example.org\",
    \"currency\": \"tenetur\",
    \"payment_ref\": \"quia\",
    \"payment_date\": \"2024-12-17\",
    \"payment_status\": \"tenetur\",
    \"comment\": \"et\",
    \"specialization_name\": \"ullam\",
    \"appointment_type\": \"illum\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/book_appointment"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "appointment_date": "2024-12-17",
    "start_time": "07:30:18",
    "end_time": "2106-07-25",
    "doctor_id": 13,
    "amount": "aut",
    "email": "durward41@example.org",
    "currency": "tenetur",
    "payment_ref": "quia",
    "payment_date": "2024-12-17",
    "payment_status": "tenetur",
    "comment": "et",
    "specialization_name": "ullam",
    "appointment_type": "illum"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/book_appointment

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

appointment_date   string   

Must be a valid date in the format Y-m-d. Example: 2024-12-17

start_time   string   

Must be a valid date in the format H:i:s. Example: 07:30:18

end_time   string  optional  

Must be a valid date in the format H:i:s. Must be a date after start_time. Example: 2106-07-25

doctor_id   integer   

The id of an existing record in the users table. Example: 13

amount   string   

Example: aut

email   string   

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

currency   string   

Example: tenetur

payment_ref   string   

Example: quia

payment_date   string   

Must be a valid date in the format Y-m-d. Example: 2024-12-17

payment_status   string   

Example: tenetur

comment   string   

Example: et

specialization_name   string   

Example: ullam

appointment_type   string   

Example: illum

Get all Patient's Appointments.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/book_appointment?status=pending+or+approved" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/book_appointment"
);

const params = {
    "status": "pending or approved",
};
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 (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/book_appointment

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

status   string   

this filters by the status of the appointment Example: pending or approved

Get all Patient's Appointments.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/get_book_appointment/omnis?status=pending+or+approved" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/get_book_appointment/omnis"
);

const params = {
    "status": "pending or approved",
};
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 (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/get_book_appointment/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the get book appointment. Example: omnis

Query Parameters

status   string   

this filters by the status of the appointment Example: pending or approved

Reschedule Patient's Appointments.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v1/book_appointment/reiciendis" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"rescheduled\",
    \"reschedule_comment\": \"ut\",
    \"appointment_date\": \"2024-12-17\",
    \"new_start_time\": \"07:30:19\",
    \"new_end_time\": \"2096-07-07\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/book_appointment/reiciendis"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": "rescheduled",
    "reschedule_comment": "ut",
    "appointment_date": "2024-12-17",
    "new_start_time": "07:30:19",
    "new_end_time": "2096-07-07"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

PATCH api/v1/book_appointment/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the book appointment. Example: reiciendis

Body Parameters

status   string   

Example: rescheduled

Must be one of:
  • rescheduled
reschedule_comment   string  optional  

This field is required when status is rescheduled. Example: ut

appointment_date   string  optional  

Must be a valid date in the format Y-m-d. Example: 2024-12-17

new_start_time   string  optional  

This field is required when status is rescheduled. Must be a valid date in the format H:i:s. Example: 07:30:19

new_end_time   string  optional  

This field is required when status is rescheduled. Must be a valid date in the format H:i:s. Must be a date after new_start_time. Example: 2096-07-07

Book Patient instant service.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/instance_service" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"healthissue\": \"porro\",
    \"phone\": \"tenetur\",
    \"doctor_id\": 20,
    \"amount\": \"corporis\",
    \"email\": \"ncremin@example.org\",
    \"currency\": \"omnis\",
    \"payment_ref\": \"quod\",
    \"payment_date\": \"quidem\",
    \"payment_status\": \"qui\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/instance_service"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "healthissue": "porro",
    "phone": "tenetur",
    "doctor_id": 20,
    "amount": "corporis",
    "email": "ncremin@example.org",
    "currency": "omnis",
    "payment_ref": "quod",
    "payment_date": "quidem",
    "payment_status": "qui"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/instance_service

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

healthissue   string   

Example: porro

phone   string   

Example: tenetur

doctor_id   integer  optional  

The id of an existing record in the users table. Example: 20

amount   string   

Example: corporis

email   string   

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

currency   string   

Example: omnis

payment_ref   string   

Example: quod

payment_date   string   

Example: quidem

payment_status   string   

Example: qui

comments   string  optional  

Redial for instant service.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/redial_instance_service" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"request_id\": 20
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/redial_instance_service"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "request_id": 20
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/redial_instance_service

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

request_id   integer   

Example: 20

Get Patient instant service.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/instance_service" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/instance_service"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/instance_service

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get Patient latest instant service.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/latest_instance_service" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/latest_instance_service"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/latest_instance_service

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get all doctors for Telemedicine.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/doctors" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"specialization\": \"corporis\",
    \"home_visit\": true
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/doctors"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "specialization": "corporis",
    "home_visit": true
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/doctors

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

specialization   string  optional  

The name of an existing record in the specializations table. Example: corporis

home_visit   boolean  optional  

Example: true

Get all doctors by rating for Telemedicine.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/top_doctors" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"specialization\": \"nihil\",
    \"home_visit\": false
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/top_doctors"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "specialization": "nihil",
    "home_visit": false
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/top_doctors

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

specialization   string  optional  

The name of an existing record in the specializations table. Example: nihil

home_visit   boolean  optional  

Example: false

GET api/v1/test_email

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v1/test_email" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/test_email"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v1/test_email

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Patient end call update.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v1/patients_end_call_update" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"appointment_id\": 7
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v1/patients_end_call_update"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "appointment_id": 7
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/patients_end_call_update

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

appointment_id   integer   

Example: 7

Create or update patient medical history.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/admin/settings/medical_history" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"blood_type\": \"quia\",
    \"asthmatic\": false,
    \"diabetic_history\": true,
    \"major_illness\": true,
    \"allergic_to_any_drug\": true,
    \"list_of_allergic_drugs\": \"[\\\"debitis\\\",\\\"consequuntur\\\"]\",
    \"list_of_current_medications\": \"[\\\"et\\\",\\\"atque\\\"]\",
    \"health_status\": \"rerum\",
    \"care_giver_phone\": \"doloribus\",
    \"comment\": \"officiis\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/settings/medical_history"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "blood_type": "quia",
    "asthmatic": false,
    "diabetic_history": true,
    "major_illness": true,
    "allergic_to_any_drug": true,
    "list_of_allergic_drugs": "[\"debitis\",\"consequuntur\"]",
    "list_of_current_medications": "[\"et\",\"atque\"]",
    "health_status": "rerum",
    "care_giver_phone": "doloribus",
    "comment": "officiis"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/admin/settings/medical_history

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

blood_type   string   

Example: quia

asthmatic   boolean   

Example: false

diabetic_history   boolean   

Example: true

major_illness   boolean   

Example: true

allergic_to_any_drug   boolean   

Example: true

list_of_allergic_drugs   string  optional  

Must be a valid JSON string. Example: ["debitis","consequuntur"]

list_of_current_medications   string  optional  

Must be a valid JSON string. Example: ["et","atque"]

health_status   string   

Example: rerum

care_giver_name   string  optional  
care_giver_phone   string  optional  

Example: doloribus

comment   string  optional  

Example: officiis

Create a rating for an appointment.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/rating" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"doctor_id\": 17,
    \"patient_id\": 3,
    \"appointment_id\": 1,
    \"comment\": \"non\",
    \"hospital_name\": \"pariatur\",
    \"rating\": 16,
    \"type\": \"home_visit\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/rating"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "doctor_id": 17,
    "patient_id": 3,
    "appointment_id": 1,
    "comment": "non",
    "hospital_name": "pariatur",
    "rating": 16,
    "type": "home_visit"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/rating

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

doctor_id   integer  optional  

The id of an existing record in the users table. The value and patient_id must be different. Example: 17

patient_id   integer   

The id of an existing record in the users table. The value and doctor_id must be different. Example: 3

appointment_id   integer   

Example: 1

comment   string  optional  

Example: non

hospital_name   string  optional  

Example: pariatur

rating   integer   

Example: 16

type   string   

Example: home_visit

Must be one of:
  • dental
  • optical
  • cancer
  • pre_employment
  • basic_health_check
  • comprehensive_check
  • home_visit
  • instant_service
  • cancer_male
  • cancer_female
  • comprehensive_men_below_40
  • comprehensive_men_above_40
  • comprehensive_female_below_40
  • comprehensive_female_above_40
  • appointment

PushNotifications Endpoints

Create a new User Device Token

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/push_notification/store_user_device_token" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 5,
    \"device_token\": \"doloremque\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/push_notification/store_user_device_token"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 5,
    "device_token": "doloremque"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 132,
            "user_id": 8,
            "device_token": "inventore",
            "created_at": "2024-12-17T07:30:27.000000Z",
            "updated_at": "2024-12-17T07:30:27.000000Z",
            "deleted_at": "2024-12-17T07:30:27.000000Z"
        },
        {
            "user_id": 845634263,
            "device_token": "in",
            "created_at": "2024-12-17T07:30:29.000000Z",
            "updated_at": "2024-12-17T07:30:29.000000Z",
            "deleted_at": "2024-12-17T07:30:29.000000Z"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "/",
        "per_page": "20",
        "to": 2,
        "total": 2
    }
}
 

Request      

POST api/v2/push_notification/store_user_device_token

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer  optional  

The id of an existing record in the users table. Example: 5

device_token   string  optional  

Example: doloremque

Update a new User Device Token

Example request:
curl --request PUT \
    "https://api.wellnessplus.io/api/v2/push_notification/store_user_device_token" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/push_notification/store_user_device_token"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "user_id": 119119313,
            "device_token": "fugiat",
            "created_at": "2024-12-17T07:30:29.000000Z",
            "updated_at": "2024-12-17T07:30:29.000000Z",
            "deleted_at": "2024-12-17T07:30:29.000000Z"
        },
        {
            "user_id": 9036,
            "device_token": "voluptatem",
            "created_at": "2024-12-17T07:30:29.000000Z",
            "updated_at": "2024-12-17T07:30:29.000000Z",
            "deleted_at": "2024-12-17T07:30:29.000000Z"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "/",
        "per_page": "20",
        "to": 2,
        "total": 2
    }
}
 

Request      

PUT api/v2/push_notification/store_user_device_token

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Display a listing of the User Push Notification Message.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/push_notification/push_notification_message?per_page=14" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/push_notification/push_notification_message"
);

const params = {
    "per_page": "14",
};
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):


{
    "data": [
        {
            "user_id": 826,
            "title": "provident",
            "message": "ad",
            "is_read": false,
            "created_at": "2024-12-17T07:30:30.000000Z",
            "updated_at": "2024-12-17T07:30:30.000000Z",
            "deleted_at": "2024-12-17T07:30:30.000000Z"
        },
        {
            "user_id": 234,
            "title": "doloribus",
            "message": "facilis",
            "is_read": false,
            "created_at": "2024-12-17T07:30:30.000000Z",
            "updated_at": "2024-12-17T07:30:30.000000Z",
            "deleted_at": "2024-12-17T07:30:30.000000Z"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "/",
        "per_page": "20",
        "to": 2,
        "total": 2
    }
}
 

Request      

GET api/v2/push_notification/push_notification_message

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

per_page   integer  optional  

Items per page Example: 14

Update the group of Push Notification Messages.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v2/push_notification/push_notification_message" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": [
        15
    ],
    \"is_read\": false
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/push_notification/push_notification_message"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": [
        15
    ],
    "is_read": false
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "user_id": 37350749,
            "title": "modi",
            "message": "sapiente",
            "is_read": true,
            "created_at": "2024-12-17T07:30:31.000000Z",
            "updated_at": "2024-12-17T07:30:31.000000Z",
            "deleted_at": "2024-12-17T07:30:31.000000Z"
        },
        {
            "id": 136,
            "user_id": 31,
            "title": "distinctio",
            "message": "qui",
            "is_read": false,
            "created_at": "2024-12-17T07:30:31.000000Z",
            "updated_at": "2024-12-17T07:30:31.000000Z",
            "deleted_at": "2024-12-17T07:30:31.000000Z"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "/",
        "per_page": "20",
        "to": 2,
        "total": 2
    }
}
 

Request      

PATCH api/v2/push_notification/push_notification_message

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the NFC tag Example: 9

Body Parameters

id   integer[]  optional  

The id of an existing record in the push_notification_messages table.

is_read   boolean  optional  

Example: false

Delete a group of Push Notification Messages.

Example request:
curl --request DELETE \
    "https://api.wellnessplus.io/api/v2/push_notification/push_notification_message/17" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/push_notification/push_notification_message/17"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v2/push_notification/push_notification_message/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the NFC tag Example: 17

Standard Plan Endpoints

Store a newly created standard plan in storage.

Example request:
curl --request POST \
    "https://api.wellnessplus.io/api/v2/standard_plans" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 9,
    \"health_plan_id\": 5,
    \"health_plan_benefit_plan_id\": 18,
    \"health_plan_price_type\": \"vel\",
    \"health_plan_demographics\": \"[\\\"et\\\",\\\"nemo\\\"]\",
    \"status\": \"active\",
    \"sex\": \"sint\",
    \"transaction_id\": \"et\"
}"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/standard_plans"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": 9,
    "health_plan_id": 5,
    "health_plan_benefit_plan_id": 18,
    "health_plan_price_type": "vel",
    "health_plan_demographics": "[\"et\",\"nemo\"]",
    "status": "active",
    "sex": "sint",
    "transaction_id": "et"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v2/standard_plans

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

user_id   integer   

The id of an existing record in the users table. Example: 9

health_plan_id   integer   

The id of an existing record in the health_plans table. Example: 5

health_plan_benefit_plan_id   integer   

The id of an existing record in the health_plans table. The value and health_plan_id must match. Example: 18

health_plan_price_type   string   

Example: vel

health_plan_demographics   string  optional  

Must be a valid JSON string. Example: ["et","nemo"]

status   string  optional  

Example: active

Must be one of:
  • active
  • inactive
  • pending
sex   string   

Example: sint

transaction_id   string   

Example: et

amount_paid   string  optional  

Get user standard plan.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/standard_plans/user" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/standard_plans/user"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/standard_plans/user

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get Health plans.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/standard_plans/plan_types" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/standard_plans/plan_types"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/standard_plans/plan_types

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Get provider's benefits.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/standard_plans/providers_benefits" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/standard_plans/providers_benefits"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/standard_plans/providers_benefits

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Display the specified standard plan.

Example request:
curl --request GET \
    --get "https://api.wellnessplus.io/api/v2/admin/standard_plans/aut" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/standard_plans/aut"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "error": "invalid_url",
    "message": "The requested URL was not found on this server."
}
 

Request      

GET api/v2/admin/standard_plans/{user_id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

user_id   string   

The ID of the user. Example: aut

Update the specified standard plan.

Example request:
curl --request PATCH \
    "https://api.wellnessplus.io/api/v2/admin/standard_plans/culpa" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.wellnessplus.io/api/v2/admin/standard_plans/culpa"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v2/admin/standard_plans/{id}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the standard plan. Example: culpa