Skip to content

Patient Statuse List

Get List Of Languages Endpoint

Summary

This endpoint allows you to get list Patient Statuses of your MetoCrm account.

HTTP Method

  • GET

API Endpoint

https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/patient-statuses-meta

Authentication

  • Use Webhook type private key.
  • Include the api-key in the header.

Request Parameters

No Parameter Required.

Example Requests

Curl

curl --location 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/patient-statuses-meta' \
--header 'api-key: {private-key}'

JavaScript

const axios = require('axios');

let config = {
    method: 'get',
    maxBodyLength: Infinity,
    url: 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/patient-statuses-meta',
    headers: {
        'api-key': '{private-key}'
    }
};

axios.request(config)
        .then((response) => {
            console.log(JSON.stringify(response.data));
        })
        .catch((error) => {
            console.log(error);
        });

PHP

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://app.metocrm.com/api/third-parties-api-gateway/v1/custom/patient-statuses-meta',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'api-key: {private-key}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Response Format

  • JSON

Responses

Example Success Response

Status Code : 200
Format : JSON
Message :

[
    {
        "id": 1,
        "title": "Active",
        "code": "active"
    },
    {
        "id": 2,
        "title": "Passive",
        "code": "passive"
    },
    {
        "id": 3,
        "title": "Archived",
        "code": "archived"
    },
    {
        "id": 4,
        "title": "in the clinic",
        "code": "in-clinic"
    },
    {
        "id": 5,
        "title": "waiting for transfer",
        "code": "waiting-for-transfer"
    },
    {
        "id": 6,
        "title": "At accounting",
        "code": "at-accounting"
    },
    {
        "id": 7,
        "title": "in the waiting room",
        "code": "in-the-waiting-room"
    },
    {
        "id": 8,
        "title": "in x-ray",
        "code": "in-x-ray"
    },
    {
        "id": 9,
        "title": "Blocked",
        "code": "blocked"
    }
]