Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token.
Endpoints
GET api/payments-methods
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/payments-methods" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/payments-methods"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/payments-methods';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/payments-methods'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
vary: Origin
{
"status": false,
"errors": [],
"message": "Access denied contact the administrator"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/confirm-cash-payment/{reference}
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/confirm-cash-payment/quaerat" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/confirm-cash-payment/quaerat"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/confirm-cash-payment/quaerat';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/confirm-cash-payment/quaerat'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/cancel-cash-payment/{reference}
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/cancel-cash-payment/voluptas" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/cancel-cash-payment/voluptas"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/cancel-cash-payment/voluptas';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/cancel-cash-payment/voluptas'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/details-cash-transaction/{reference}
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/details-cash-transaction/ipsam" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/details-cash-transaction/ipsam"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/details-cash-transaction/ipsam';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/details-cash-transaction/ipsam'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-cash-payment
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-cash-payment" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-cash-payment"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-cash-payment';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-cash-payment'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/list-refund-admin
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/list-refund-admin" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/list-refund-admin"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/list-refund-admin';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/list-refund-admin'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/approve-refund/{id}
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/approve-refund/et" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/approve-refund/et"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/approve-refund/et';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/approve-refund/et'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/reject-refund/{id}
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/reject-refund/dolores" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"rejection_reason\": \"dolor\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/reject-refund/dolores"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rejection_reason": "dolor"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/reject-refund/dolores';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'rejection_reason' => 'dolor',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/reject-refund/dolores'
payload = {
"rejection_reason": "dolor"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/ask-payment/{prestation_id}
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/ask-payment/et" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/ask-payment/et"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/ask-payment/et';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/ask-payment/et'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/list-refund-souscripteur
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/list-refund-souscripteur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/list-refund-souscripteur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/list-refund-souscripteur';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/list-refund-souscripteur'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/pay-as-cash
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/pay-as-cash" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "total_amount=non"\
--form "description=Deleniti omnis ut fugit a et."\
--form "prestation_id=ullam"\
--form "photo=@/tmp/phpexsBSu" const url = new URL(
"https://staging-api.services4aged.com/api/pay-as-cash"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('total_amount', 'non');
body.append('description', 'Deleniti omnis ut fugit a et.');
body.append('prestation_id', 'ullam');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/pay-as-cash';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'total_amount',
'contents' => 'non'
],
[
'name' => 'description',
'contents' => 'Deleniti omnis ut fugit a et.'
],
[
'name' => 'prestation_id',
'contents' => 'ullam'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpexsBSu', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/pay-as-cash'
files = {
'total_amount': (None, 'non'),
'description': (None, 'Deleniti omnis ut fugit a et.'),
'prestation_id': (None, 'ullam'),
'photo': open('/tmp/phpexsBSu', 'rb')}
payload = {
"total_amount": "non",
"description": "Deleniti omnis ut fugit a et.",
"prestation_id": "ullam"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Store a newly created refund request in storage.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/refund-requests" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"molestiae\",
\"prestation_id\": \"quo\",
\"amount\": \"id\",
\"phone\": \"quia\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/refund-requests"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "molestiae",
"prestation_id": "quo",
"amount": "id",
"phone": "quia"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/refund-requests';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'reason' => 'molestiae',
'prestation_id' => 'quo',
'amount' => 'id',
'phone' => 'quia',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/refund-requests'
payload = {
"reason": "molestiae",
"prestation_id": "quo",
"amount": "id",
"phone": "quia"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Evenement
Récupère tous les événements de l'utilisateur authentifié.
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/events" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/events"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/events';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/events'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Récupère les détails d'un événement spécifique.
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/events/esse" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/events/esse"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/events/esse';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/events/esse'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Crée un nouvel événement avec les détails fournis.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/events" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"xwnesysonxuvoykybsvgdk\",
\"description\": \"Omnis esse voluptatem cumque placeat voluptates error.\",
\"start_date\": \"2024-09-26T17:31:29\",
\"end_date\": \"2061-02-24\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/events"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "xwnesysonxuvoykybsvgdk",
"description": "Omnis esse voluptatem cumque placeat voluptates error.",
"start_date": "2024-09-26T17:31:29",
"end_date": "2061-02-24"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/events';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'xwnesysonxuvoykybsvgdk',
'description' => 'Omnis esse voluptatem cumque placeat voluptates error.',
'start_date' => '2024-09-26T17:31:29',
'end_date' => '2061-02-24',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/events'
payload = {
"title": "xwnesysonxuvoykybsvgdk",
"description": "Omnis esse voluptatem cumque placeat voluptates error.",
"start_date": "2024-09-26T17:31:29",
"end_date": "2061-02-24"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Met à jour les détails d'un événement spécifique.
requires authentication
Example request:
curl --request PUT \
"https://staging-api.services4aged.com/api/events/in" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"nlqcavrlzjmpvznskkewnrwka\",
\"description\": \"Accusantium facere veniam sunt omnis laborum.\",
\"start_date\": \"2024-09-26T17:31:29\",
\"end_date\": \"2031-02-09\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/events/in"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "nlqcavrlzjmpvznskkewnrwka",
"description": "Accusantium facere veniam sunt omnis laborum.",
"start_date": "2024-09-26T17:31:29",
"end_date": "2031-02-09"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/events/in';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'nlqcavrlzjmpvznskkewnrwka',
'description' => 'Accusantium facere veniam sunt omnis laborum.',
'start_date' => '2024-09-26T17:31:29',
'end_date' => '2031-02-09',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/events/in'
payload = {
"title": "nlqcavrlzjmpvznskkewnrwka",
"description": "Accusantium facere veniam sunt omnis laborum.",
"start_date": "2024-09-26T17:31:29",
"end_date": "2031-02-09"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Supprime un événement spécifique.
requires authentication
Example request:
curl --request DELETE \
"https://staging-api.services4aged.com/api/events/quia" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/events/quia"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/events/quia';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/events/quia'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module Authentification
POST api/logout
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/logout" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/logout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/logout';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/logout'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/login
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"jade02@example.org\",
\"password\": \"3?bk)1JWQe6\\\"a+5\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "jade02@example.org",
"password": "3?bk)1JWQe6\"a+5"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/login';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'jade02@example.org',
'password' => '3?bk)1JWQe6"a+5',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/login'
payload = {
"email": "jade02@example.org",
"password": "3?bk)1JWQe6\"a+5"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/forgot-password
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/forgot-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"parker.suzanne@example.org\",
\"device\": \"eaque\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/forgot-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "parker.suzanne@example.org",
"device": "eaque"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/forgot-password';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'parker.suzanne@example.org',
'device' => 'eaque',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/forgot-password'
payload = {
"email": "parker.suzanne@example.org",
"device": "eaque"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/reset-password
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/reset-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"device\": \"mobile\",
\"email\": \"dayna.rogahn@example.org\",
\"password\": \"provident\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/reset-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"device": "mobile",
"email": "dayna.rogahn@example.org",
"password": "provident"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/reset-password';
$response = $client->post(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'device' => 'mobile',
'email' => 'dayna.rogahn@example.org',
'password' => 'provident',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/reset-password'
payload = {
"device": "mobile",
"email": "dayna.rogahn@example.org",
"password": "provident"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/verify-token
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/verify-token" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/verify-token"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/verify-token';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/verify-token'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/verify-otp-password
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/verify-otp-password" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"cathy.corkery@example.net\",
\"otp\": \"ex\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/verify-otp-password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "cathy.corkery@example.net",
"otp": "ex"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/verify-otp-password';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'cathy.corkery@example.net',
'otp' => 'ex',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/verify-otp-password'
payload = {
"email": "cathy.corkery@example.net",
"otp": "ex"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verify email
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/verify-email/fugiat/unde" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/verify-email/fugiat/unde"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/verify-email/fugiat/unde';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/verify-email/fugiat/unde'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Resend email verification
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/email/resend-verification-notification" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/email/resend-verification-notification"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/email/resend-verification-notification';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/email/resend-verification-notification'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module Beneficiaire
Mise à jour information bénéficiaire
requires authentication
Example request:
curl --request PATCH \
"https://staging-api.services4aged.com/api/update-beneficiary-information" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=John"\
--form "last_name=Doe"\
--form "phone=696661135"\
--form "country_residence=Cameroun"\
--form "city_residence=Yaoundé"\
--form "date_birth=1996-03-11"\
--form "email=nativemind@google.com"\
--form "password=Admin@1234"\
--form "lang=consequatur"\
--form "photo=@/tmp/phpm9V6RN" \
--form "file_antecedent_medicaux=@/tmp/phpbvUWUW" const url = new URL(
"https://staging-api.services4aged.com/api/update-beneficiary-information"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'John');
body.append('last_name', 'Doe');
body.append('phone', '696661135');
body.append('country_residence', 'Cameroun');
body.append('city_residence', 'Yaoundé');
body.append('date_birth', '1996-03-11');
body.append('email', 'nativemind@google.com');
body.append('password', 'Admin@1234');
body.append('lang', 'consequatur');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
body.append('file_antecedent_medicaux', document.querySelector('input[name="file_antecedent_medicaux"]').files[0]);
fetch(url, {
method: "PATCH",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-beneficiary-information';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'John'
],
[
'name' => 'last_name',
'contents' => 'Doe'
],
[
'name' => 'phone',
'contents' => '696661135'
],
[
'name' => 'country_residence',
'contents' => 'Cameroun'
],
[
'name' => 'city_residence',
'contents' => 'Yaoundé'
],
[
'name' => 'date_birth',
'contents' => '1996-03-11'
],
[
'name' => 'email',
'contents' => 'nativemind@google.com'
],
[
'name' => 'password',
'contents' => 'Admin@1234'
],
[
'name' => 'lang',
'contents' => 'consequatur'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpm9V6RN', 'r')
],
[
'name' => 'file_antecedent_medicaux',
'contents' => fopen('/tmp/phpbvUWUW', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-beneficiary-information'
files = {
'name': (None, 'John'),
'last_name': (None, 'Doe'),
'phone': (None, '696661135'),
'country_residence': (None, 'Cameroun'),
'city_residence': (None, 'Yaoundé'),
'date_birth': (None, '1996-03-11'),
'email': (None, 'nativemind@google.com'),
'password': (None, 'Admin@1234'),
'lang': (None, 'consequatur'),
'photo': open('/tmp/phpm9V6RN', 'rb'),
'file_antecedent_medicaux': open('/tmp/phpbvUWUW', 'rb')}
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"email": "nativemind@google.com",
"password": "Admin@1234",
"lang": "consequatur"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Mise à jour information bénéficiaire
requires authentication
Example request:
curl --request PATCH \
"https://staging-api.services4aged.com/api/souscripteur-update-beneficiary" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=John"\
--form "last_name=Doe"\
--form "phone=696661135"\
--form "country_residence=Cameroun"\
--form "city_residence=Yaoundé"\
--form "date_birth=1996-03-11"\
--form "email=nativemind@google.com"\
--form "password=Admin@1234"\
--form "lang=dolore"\
--form "photo=@/tmp/phpgmfEwO" \
--form "file_antecedent_medicaux=@/tmp/phpKPPWQJ" const url = new URL(
"https://staging-api.services4aged.com/api/souscripteur-update-beneficiary"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'John');
body.append('last_name', 'Doe');
body.append('phone', '696661135');
body.append('country_residence', 'Cameroun');
body.append('city_residence', 'Yaoundé');
body.append('date_birth', '1996-03-11');
body.append('email', 'nativemind@google.com');
body.append('password', 'Admin@1234');
body.append('lang', 'dolore');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
body.append('file_antecedent_medicaux', document.querySelector('input[name="file_antecedent_medicaux"]').files[0]);
fetch(url, {
method: "PATCH",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/souscripteur-update-beneficiary';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'John'
],
[
'name' => 'last_name',
'contents' => 'Doe'
],
[
'name' => 'phone',
'contents' => '696661135'
],
[
'name' => 'country_residence',
'contents' => 'Cameroun'
],
[
'name' => 'city_residence',
'contents' => 'Yaoundé'
],
[
'name' => 'date_birth',
'contents' => '1996-03-11'
],
[
'name' => 'email',
'contents' => 'nativemind@google.com'
],
[
'name' => 'password',
'contents' => 'Admin@1234'
],
[
'name' => 'lang',
'contents' => 'dolore'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpgmfEwO', 'r')
],
[
'name' => 'file_antecedent_medicaux',
'contents' => fopen('/tmp/phpKPPWQJ', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/souscripteur-update-beneficiary'
files = {
'name': (None, 'John'),
'last_name': (None, 'Doe'),
'phone': (None, '696661135'),
'country_residence': (None, 'Cameroun'),
'city_residence': (None, 'Yaoundé'),
'date_birth': (None, '1996-03-11'),
'email': (None, 'nativemind@google.com'),
'password': (None, 'Admin@1234'),
'lang': (None, 'dolore'),
'photo': open('/tmp/phpgmfEwO', 'rb'),
'file_antecedent_medicaux': open('/tmp/phpKPPWQJ', 'rb')}
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"email": "nativemind@google.com",
"password": "Admin@1234",
"lang": "dolore"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module Note
Note prestataire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/note-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"external_id\": 2,
\"prestation_id\": 2,
\"type\": \"prestaire\",
\"tag\": \"un commentaire\",
\"rate\": 6
}"
const url = new URL(
"https://staging-api.services4aged.com/api/note-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"external_id": 2,
"prestation_id": 2,
"type": "prestaire",
"tag": "un commentaire",
"rate": 6
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/note-prestataire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'external_id' => 2,
'prestation_id' => 2,
'type' => 'prestaire',
'tag' => 'un commentaire',
'rate' => 6,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/note-prestataire'
payload = {
"external_id": 2,
"prestation_id": 2,
"type": "prestaire",
"tag": "un commentaire",
"rate": 6
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Note prestation
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/note-prestation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"external_id\": 2,
\"prestation_id\": 2,
\"type\": \"prestaire\",
\"tag\": \"un commentaire\",
\"rate\": 6
}"
const url = new URL(
"https://staging-api.services4aged.com/api/note-prestation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"external_id": 2,
"prestation_id": 2,
"type": "prestaire",
"tag": "un commentaire",
"rate": 6
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/note-prestation';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'external_id' => 2,
'prestation_id' => 2,
'type' => 'prestaire',
'tag' => 'un commentaire',
'rate' => 6,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/note-prestation'
payload = {
"external_id": 2,
"prestation_id": 2,
"type": "prestaire",
"tag": "un commentaire",
"rate": 6
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/note-exist/{prestataire_id}/{prestation_id}
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/note-exist/saepe/libero" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/note-exist/saepe/libero"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/note-exist/saepe/libero';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/note-exist/saepe/libero'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module Partenaire
Inscription d'un partenaire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/create-partenaire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=John"\
--form "last_name=Doe"\
--form "phone=696661135"\
--form "country_residence=Cameroun"\
--form "city_residence=Yaoundé"\
--form "date_birth=1996-03-11"\
--form "lang=fr"\
--form "accept_term_condition=1"\
--form "email=nativemind@google.com"\
--form "password=Admin@1234"\
--form "password_confirmation=Admin@1234"\
--form "photo=@/tmp/phpRttt2L" const url = new URL(
"https://staging-api.services4aged.com/api/create-partenaire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'John');
body.append('last_name', 'Doe');
body.append('phone', '696661135');
body.append('country_residence', 'Cameroun');
body.append('city_residence', 'Yaoundé');
body.append('date_birth', '1996-03-11');
body.append('lang', 'fr');
body.append('accept_term_condition', '1');
body.append('email', 'nativemind@google.com');
body.append('password', 'Admin@1234');
body.append('password_confirmation', 'Admin@1234');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/create-partenaire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'John'
],
[
'name' => 'last_name',
'contents' => 'Doe'
],
[
'name' => 'phone',
'contents' => '696661135'
],
[
'name' => 'country_residence',
'contents' => 'Cameroun'
],
[
'name' => 'city_residence',
'contents' => 'Yaoundé'
],
[
'name' => 'date_birth',
'contents' => '1996-03-11'
],
[
'name' => 'lang',
'contents' => 'fr'
],
[
'name' => 'accept_term_condition',
'contents' => '1'
],
[
'name' => 'email',
'contents' => 'nativemind@google.com'
],
[
'name' => 'password',
'contents' => 'Admin@1234'
],
[
'name' => 'password_confirmation',
'contents' => 'Admin@1234'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpRttt2L', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/create-partenaire'
files = {
'name': (None, 'John'),
'last_name': (None, 'Doe'),
'phone': (None, '696661135'),
'country_residence': (None, 'Cameroun'),
'city_residence': (None, 'Yaoundé'),
'date_birth': (None, '1996-03-11'),
'lang': (None, 'fr'),
'accept_term_condition': (None, '1'),
'email': (None, 'nativemind@google.com'),
'password': (None, 'Admin@1234'),
'password_confirmation': (None, 'Admin@1234'),
'photo': open('/tmp/phpRttt2L', 'rb')}
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"lang": "fr",
"accept_term_condition": true,
"email": "nativemind@google.com",
"password": "Admin@1234",
"password_confirmation": "Admin@1234"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module Prestataire
store prestataire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/create-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=John"\
--form "last_name=Doe"\
--form "phone=696661135"\
--form "country_residence=Cameroun"\
--form "city_residence=Yaoundé"\
--form "date_birth=1996-03-11"\
--form "accept_term_condition=1"\
--form "email=nativemind@google.com"\
--form "password=Admin@1234"\
--form "password_confirmation=Admin@1234"\
--form "professional_experience=3 years"\
--form "shool_level=O level"\
--form "specific_skill=manager"\
--form "speciality=3"\
--form "cni_number=3216586158"\
--form "category_prestataire_id=2"\
--form "profession_id=3"\
--form "payment_method_id=5"\
--form "image=@/tmp/phpA4rjuK" const url = new URL(
"https://staging-api.services4aged.com/api/create-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'John');
body.append('last_name', 'Doe');
body.append('phone', '696661135');
body.append('country_residence', 'Cameroun');
body.append('city_residence', 'Yaoundé');
body.append('date_birth', '1996-03-11');
body.append('accept_term_condition', '1');
body.append('email', 'nativemind@google.com');
body.append('password', 'Admin@1234');
body.append('password_confirmation', 'Admin@1234');
body.append('professional_experience', '3 years');
body.append('shool_level', 'O level');
body.append('specific_skill', 'manager');
body.append('speciality', '3');
body.append('cni_number', '3216586158');
body.append('category_prestataire_id', '2');
body.append('profession_id', '3');
body.append('payment_method_id', '5');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/create-prestataire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'John'
],
[
'name' => 'last_name',
'contents' => 'Doe'
],
[
'name' => 'phone',
'contents' => '696661135'
],
[
'name' => 'country_residence',
'contents' => 'Cameroun'
],
[
'name' => 'city_residence',
'contents' => 'Yaoundé'
],
[
'name' => 'date_birth',
'contents' => '1996-03-11'
],
[
'name' => 'accept_term_condition',
'contents' => '1'
],
[
'name' => 'email',
'contents' => 'nativemind@google.com'
],
[
'name' => 'password',
'contents' => 'Admin@1234'
],
[
'name' => 'password_confirmation',
'contents' => 'Admin@1234'
],
[
'name' => 'professional_experience',
'contents' => '3 years'
],
[
'name' => 'shool_level',
'contents' => 'O level'
],
[
'name' => 'specific_skill',
'contents' => 'manager'
],
[
'name' => 'speciality',
'contents' => '3'
],
[
'name' => 'cni_number',
'contents' => '3216586158'
],
[
'name' => 'category_prestataire_id',
'contents' => '2'
],
[
'name' => 'profession_id',
'contents' => '3'
],
[
'name' => 'payment_method_id',
'contents' => '5'
],
[
'name' => 'image',
'contents' => fopen('/tmp/phpA4rjuK', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/create-prestataire'
files = {
'name': (None, 'John'),
'last_name': (None, 'Doe'),
'phone': (None, '696661135'),
'country_residence': (None, 'Cameroun'),
'city_residence': (None, 'Yaoundé'),
'date_birth': (None, '1996-03-11'),
'accept_term_condition': (None, '1'),
'email': (None, 'nativemind@google.com'),
'password': (None, 'Admin@1234'),
'password_confirmation': (None, 'Admin@1234'),
'professional_experience': (None, '3 years'),
'shool_level': (None, 'O level'),
'specific_skill': (None, 'manager'),
'speciality': (None, '3'),
'cni_number': (None, '3216586158'),
'category_prestataire_id': (None, '2'),
'profession_id': (None, '3'),
'payment_method_id': (None, '5'),
'image': open('/tmp/phpA4rjuK', 'rb')}
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"accept_term_condition": true,
"email": "nativemind@google.com",
"password": "Admin@1234",
"password_confirmation": "Admin@1234",
"professional_experience": "3 years",
"shool_level": "O level",
"specific_skill": "manager",
"speciality": "3",
"cni_number": "3216586158",
"category_prestataire_id": 2,
"profession_id": 3,
"payment_method_id": 5
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show prestataire
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-one-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-one-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-one-prestataire';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-one-prestataire'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update prestataire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/update-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=John"\
--form "last_name=Doe"\
--form "phone=696661135"\
--form "lang=iusto"\
--form "country_residence=Cameroun"\
--form "city_residence=Yaoundé"\
--form "date_birth=1996-03-11"\
--form "accept_term_condition=1"\
--form "professional_experience=officiis"\
--form "specific_skill=non"\
--form "cni_number=iusto"\
--form "category_prestataire_id=365.16"\
--form "profession_id=2580969.4510293"\
--form "phone_payment=3216586158"\
--form "photo=@/tmp/phpPzji7r" const url = new URL(
"https://staging-api.services4aged.com/api/update-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'John');
body.append('last_name', 'Doe');
body.append('phone', '696661135');
body.append('lang', 'iusto');
body.append('country_residence', 'Cameroun');
body.append('city_residence', 'Yaoundé');
body.append('date_birth', '1996-03-11');
body.append('accept_term_condition', '1');
body.append('professional_experience', 'officiis');
body.append('specific_skill', 'non');
body.append('cni_number', 'iusto');
body.append('category_prestataire_id', '365.16');
body.append('profession_id', '2580969.4510293');
body.append('phone_payment', '3216586158');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-prestataire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'John'
],
[
'name' => 'last_name',
'contents' => 'Doe'
],
[
'name' => 'phone',
'contents' => '696661135'
],
[
'name' => 'lang',
'contents' => 'iusto'
],
[
'name' => 'country_residence',
'contents' => 'Cameroun'
],
[
'name' => 'city_residence',
'contents' => 'Yaoundé'
],
[
'name' => 'date_birth',
'contents' => '1996-03-11'
],
[
'name' => 'accept_term_condition',
'contents' => '1'
],
[
'name' => 'professional_experience',
'contents' => 'officiis'
],
[
'name' => 'specific_skill',
'contents' => 'non'
],
[
'name' => 'cni_number',
'contents' => 'iusto'
],
[
'name' => 'category_prestataire_id',
'contents' => '365.16'
],
[
'name' => 'profession_id',
'contents' => '2580969.4510293'
],
[
'name' => 'phone_payment',
'contents' => '3216586158'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpPzji7r', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-prestataire'
files = {
'name': (None, 'John'),
'last_name': (None, 'Doe'),
'phone': (None, '696661135'),
'lang': (None, 'iusto'),
'country_residence': (None, 'Cameroun'),
'city_residence': (None, 'Yaoundé'),
'date_birth': (None, '1996-03-11'),
'accept_term_condition': (None, '1'),
'professional_experience': (None, 'officiis'),
'specific_skill': (None, 'non'),
'cni_number': (None, 'iusto'),
'category_prestataire_id': (None, '365.16'),
'profession_id': (None, '2580969.4510293'),
'phone_payment': (None, '3216586158'),
'photo': open('/tmp/phpPzji7r', 'rb')}
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"lang": "iusto",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"accept_term_condition": true,
"professional_experience": "officiis",
"specific_skill": "non",
"cni_number": "iusto",
"category_prestataire_id": 365.16,
"profession_id": 2580969.45102934,
"phone_payment": "3216586158"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module Profession
All professions
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/professions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/professions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/professions';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/professions'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 55
vary: Origin
{
"status": false,
"errors": [],
"message": "Access denied contact the administrator"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module Souscripteur
GET api/get-beneficiary-details/{id}
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-beneficiary-details/neque" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-beneficiary-details/neque"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-beneficiary-details/neque';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-beneficiary-details/neque'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Creer un souscripteur
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/create-soubscripteur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=John"\
--form "last_name=Doe"\
--form "phone=696661135"\
--form "country_residence=Cameroun"\
--form "city_residence=Yaoundé"\
--form "date_birth=1996-03-11"\
--form "lang=fr"\
--form "accept_term_condition=1"\
--form "email=nativemind@google.com"\
--form "password=Admin@1234"\
--form "password_confirmation=Admin@1234"\
--form "photo=@/tmp/phpwY5vvq" const url = new URL(
"https://staging-api.services4aged.com/api/create-soubscripteur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'John');
body.append('last_name', 'Doe');
body.append('phone', '696661135');
body.append('country_residence', 'Cameroun');
body.append('city_residence', 'Yaoundé');
body.append('date_birth', '1996-03-11');
body.append('lang', 'fr');
body.append('accept_term_condition', '1');
body.append('email', 'nativemind@google.com');
body.append('password', 'Admin@1234');
body.append('password_confirmation', 'Admin@1234');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/create-soubscripteur';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'John'
],
[
'name' => 'last_name',
'contents' => 'Doe'
],
[
'name' => 'phone',
'contents' => '696661135'
],
[
'name' => 'country_residence',
'contents' => 'Cameroun'
],
[
'name' => 'city_residence',
'contents' => 'Yaoundé'
],
[
'name' => 'date_birth',
'contents' => '1996-03-11'
],
[
'name' => 'lang',
'contents' => 'fr'
],
[
'name' => 'accept_term_condition',
'contents' => '1'
],
[
'name' => 'email',
'contents' => 'nativemind@google.com'
],
[
'name' => 'password',
'contents' => 'Admin@1234'
],
[
'name' => 'password_confirmation',
'contents' => 'Admin@1234'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpwY5vvq', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/create-soubscripteur'
files = {
'name': (None, 'John'),
'last_name': (None, 'Doe'),
'phone': (None, '696661135'),
'country_residence': (None, 'Cameroun'),
'city_residence': (None, 'Yaoundé'),
'date_birth': (None, '1996-03-11'),
'lang': (None, 'fr'),
'accept_term_condition': (None, '1'),
'email': (None, 'nativemind@google.com'),
'password': (None, 'Admin@1234'),
'password_confirmation': (None, 'Admin@1234'),
'photo': open('/tmp/phpwY5vvq', 'rb')}
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"lang": "fr",
"accept_term_condition": true,
"email": "nativemind@google.com",
"password": "Admin@1234",
"password_confirmation": "Admin@1234"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Créer un beneficiaire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/create-beneficiary" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=x"\
--form "last_name=eptv"\
--form "phone=adxjwx"\
--form "country_residence=facilis"\
--form "city_residence=aut"\
--form "date_birth=2024-09-26T17:31:28"\
--form "lang=en"\
--form "accept_term_condition=1"\
--form "email=tjacobs@example.com"\
--form "password=perspiciatis"\
--form "password_confirmation=doloribus"\
--form "name_contact=et"\
--form "phone_contact=enim"\
--form "parenter=minima"\
--form "photo=@/tmp/phpUS3WpV" \
--form "file_antecedent_medicaux=@/tmp/phpjxiOmX" const url = new URL(
"https://staging-api.services4aged.com/api/create-beneficiary"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'x');
body.append('last_name', 'eptv');
body.append('phone', 'adxjwx');
body.append('country_residence', 'facilis');
body.append('city_residence', 'aut');
body.append('date_birth', '2024-09-26T17:31:28');
body.append('lang', 'en');
body.append('accept_term_condition', '1');
body.append('email', 'tjacobs@example.com');
body.append('password', 'perspiciatis');
body.append('password_confirmation', 'doloribus');
body.append('name_contact', 'et');
body.append('phone_contact', 'enim');
body.append('parenter', 'minima');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
body.append('file_antecedent_medicaux', document.querySelector('input[name="file_antecedent_medicaux"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/create-beneficiary';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'x'
],
[
'name' => 'last_name',
'contents' => 'eptv'
],
[
'name' => 'phone',
'contents' => 'adxjwx'
],
[
'name' => 'country_residence',
'contents' => 'facilis'
],
[
'name' => 'city_residence',
'contents' => 'aut'
],
[
'name' => 'date_birth',
'contents' => '2024-09-26T17:31:28'
],
[
'name' => 'lang',
'contents' => 'en'
],
[
'name' => 'accept_term_condition',
'contents' => '1'
],
[
'name' => 'email',
'contents' => 'tjacobs@example.com'
],
[
'name' => 'password',
'contents' => 'perspiciatis'
],
[
'name' => 'password_confirmation',
'contents' => 'doloribus'
],
[
'name' => 'name_contact',
'contents' => 'et'
],
[
'name' => 'phone_contact',
'contents' => 'enim'
],
[
'name' => 'parenter',
'contents' => 'minima'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpUS3WpV', 'r')
],
[
'name' => 'file_antecedent_medicaux',
'contents' => fopen('/tmp/phpjxiOmX', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/create-beneficiary'
files = {
'name': (None, 'x'),
'last_name': (None, 'eptv'),
'phone': (None, 'adxjwx'),
'country_residence': (None, 'facilis'),
'city_residence': (None, 'aut'),
'date_birth': (None, '2024-09-26T17:31:28'),
'lang': (None, 'en'),
'accept_term_condition': (None, '1'),
'email': (None, 'tjacobs@example.com'),
'password': (None, 'perspiciatis'),
'password_confirmation': (None, 'doloribus'),
'name_contact': (None, 'et'),
'phone_contact': (None, 'enim'),
'parenter': (None, 'minima'),
'photo': open('/tmp/phpUS3WpV', 'rb'),
'file_antecedent_medicaux': open('/tmp/phpjxiOmX', 'rb')}
payload = {
"name": "x",
"last_name": "eptv",
"phone": "adxjwx",
"country_residence": "facilis",
"city_residence": "aut",
"date_birth": "2024-09-26T17:31:28",
"lang": "en",
"accept_term_condition": true,
"email": "tjacobs@example.com",
"password": "perspiciatis",
"password_confirmation": "doloribus",
"name_contact": "et",
"phone_contact": "enim",
"parenter": "minima"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste beneficiaire souscripteur
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-beneficiary" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-beneficiary"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-beneficiary';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-beneficiary'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete Beneficiary
requires authentication
Example request:
curl --request DELETE \
"https://staging-api.services4aged.com/api/delete-beneficiary/quod" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/delete-beneficiary/quod"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/delete-beneficiary/quod';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/delete-beneficiary/quod'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Metre à jour un souscripteur
requires authentication
Example request:
curl --request PATCH \
"https://staging-api.services4aged.com/api/update-souscripteur-information" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=John"\
--form "last_name=Doe"\
--form "phone=696661135"\
--form "country_residence=Cameroun"\
--form "city_residence=Yaoundé"\
--form "date_birth=1996-03-11"\
--form "email=nativemind@google.com"\
--form "password=Admin@1234"\
--form "lang=dolorem"\
--form "photo=@/tmp/phph22dmA" \
--form "file_antecedent_medicaux=@/tmp/phpYDzP1e" const url = new URL(
"https://staging-api.services4aged.com/api/update-souscripteur-information"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'John');
body.append('last_name', 'Doe');
body.append('phone', '696661135');
body.append('country_residence', 'Cameroun');
body.append('city_residence', 'Yaoundé');
body.append('date_birth', '1996-03-11');
body.append('email', 'nativemind@google.com');
body.append('password', 'Admin@1234');
body.append('lang', 'dolorem');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
body.append('file_antecedent_medicaux', document.querySelector('input[name="file_antecedent_medicaux"]').files[0]);
fetch(url, {
method: "PATCH",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-souscripteur-information';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'John'
],
[
'name' => 'last_name',
'contents' => 'Doe'
],
[
'name' => 'phone',
'contents' => '696661135'
],
[
'name' => 'country_residence',
'contents' => 'Cameroun'
],
[
'name' => 'city_residence',
'contents' => 'Yaoundé'
],
[
'name' => 'date_birth',
'contents' => '1996-03-11'
],
[
'name' => 'email',
'contents' => 'nativemind@google.com'
],
[
'name' => 'password',
'contents' => 'Admin@1234'
],
[
'name' => 'lang',
'contents' => 'dolorem'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phph22dmA', 'r')
],
[
'name' => 'file_antecedent_medicaux',
'contents' => fopen('/tmp/phpYDzP1e', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-souscripteur-information'
files = {
'name': (None, 'John'),
'last_name': (None, 'Doe'),
'phone': (None, '696661135'),
'country_residence': (None, 'Cameroun'),
'city_residence': (None, 'Yaoundé'),
'date_birth': (None, '1996-03-11'),
'email': (None, 'nativemind@google.com'),
'password': (None, 'Admin@1234'),
'lang': (None, 'dolorem'),
'photo': open('/tmp/phph22dmA', 'rb'),
'file_antecedent_medicaux': open('/tmp/phpYDzP1e', 'rb')}
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"email": "nativemind@google.com",
"password": "Admin@1234",
"lang": "dolorem"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/restrict-souscripteur/{souscripteur_id}
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/restrict-souscripteur/itaque" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/restrict-souscripteur/itaque"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/restrict-souscripteur/itaque';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/restrict-souscripteur/itaque'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/get-my-souscripteur
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-my-souscripteur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-my-souscripteur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-my-souscripteur';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-my-souscripteur'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Remove restrict souscripteur
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/remove-restriction/non" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/remove-restriction/non"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/remove-restriction/non';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/remove-restriction/non'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module administrateur
Liste des prestataires inactif
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-unactived-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-unactived-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-unactived-prestataire';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-unactived-prestataire'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste des prestataires inactif
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/get-unactived-prestataire-filter" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2024-09-26T17:31:28\",
\"end_date\": \"2058-05-18\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/get-unactived-prestataire-filter"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2058-05-18"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-unactived-prestataire-filter';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'start_date' => '2024-09-26T17:31:28',
'end_date' => '2058-05-18',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-unactived-prestataire-filter'
payload = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2058-05-18"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activer un prestataire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/active-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"prestataire_id\": 14
}"
const url = new URL(
"https://staging-api.services4aged.com/api/active-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prestataire_id": 14
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/active-prestataire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'prestataire_id' => 14,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/active-prestataire'
payload = {
"prestataire_id": 14
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Désactiver un prestataire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/unactive-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"prestataire_id\": 5
}"
const url = new URL(
"https://staging-api.services4aged.com/api/unactive-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prestataire_id": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/unactive-prestataire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'prestataire_id' => 5,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/unactive-prestataire'
payload = {
"prestataire_id": 5
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete du prestataire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/delete-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"prestataire_id\": 15
}"
const url = new URL(
"https://staging-api.services4aged.com/api/delete-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prestataire_id": 15
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/delete-prestataire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'prestataire_id' => 15,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/delete-prestataire'
payload = {
"prestataire_id": 15
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste des prestataires
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-all-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-all-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-all-prestataire';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-all-prestataire'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste des souscripteurs
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-all-souscripteur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-all-souscripteur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-all-souscripteur';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-all-souscripteur'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste des bénéficiaires
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-all-beneficiaries" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-all-beneficiaries"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-all-beneficiaries';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-all-beneficiaries'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Details d'un souscripteur
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-details-souscripteur/qui" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-details-souscripteur/qui"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-details-souscripteur/qui';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-details-souscripteur/qui'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Details d'un beneficiaire
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-details-beneficiary/est" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-details-beneficiary/est"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-details-beneficiary/est';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-details-beneficiary/est'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detail du prestataire
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/details-prestataire/ut" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/details-prestataire/ut"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/details-prestataire/ut';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/details-prestataire/ut'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/beneficiaires-filter
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/beneficiaires-filter" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2024-09-26T17:31:28\",
\"end_date\": \"2049-10-31\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/beneficiaires-filter"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2049-10-31"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/beneficiaires-filter';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'start_date' => '2024-09-26T17:31:28',
'end_date' => '2049-10-31',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/beneficiaires-filter'
payload = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2049-10-31"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/souscripteurs-filter
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/souscripteurs-filter" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2024-09-26T17:31:28\",
\"end_date\": \"2074-01-22\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/souscripteurs-filter"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2074-01-22"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/souscripteurs-filter';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'start_date' => '2024-09-26T17:31:28',
'end_date' => '2074-01-22',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/souscripteurs-filter'
payload = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2074-01-22"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/prestataires-filter
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/prestataires-filter" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2024-09-26T17:31:28\",
\"end_date\": \"2059-12-12\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/prestataires-filter"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2059-12-12"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/prestataires-filter';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'start_date' => '2024-09-26T17:31:28',
'end_date' => '2059-12-12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/prestataires-filter'
payload = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2059-12-12"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all Prestation for specific prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-prestataires-for-prestation/libero" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-prestataires-for-prestation/libero"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-prestataires-for-prestation/libero';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-prestataires-for-prestation/libero'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all Prestation for sollicitation of specific prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-prestataires-for-prestation-sollicitation/ut" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-prestataires-for-prestation-sollicitation/ut"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-prestataires-for-prestation-sollicitation/ut';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-prestataires-for-prestation-sollicitation/ut'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/sollicitation/{id}
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/sollicitation/voluptatum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/sollicitation/voluptatum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/sollicitation/voluptatum';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/sollicitation/voluptatum'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste prestation non cloturer
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/list-prestation-assigner" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/list-prestation-assigner"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/list-prestation-assigner';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/list-prestation-assigner'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Liste prestation en attente
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/list-prestation-en-attente" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/list-prestation-en-attente"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/list-prestation-en-attente';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/list-prestation-en-attente'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Assigner prestation
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/assign-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"prestation_id\": 4,
\"prestataire_id\": 13
}"
const url = new URL(
"https://staging-api.services4aged.com/api/assign-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"prestation_id": 4,
"prestataire_id": 13
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/assign-prestataire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'prestation_id' => 4,
'prestataire_id' => 13,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/assign-prestataire'
payload = {
"prestation_id": 4,
"prestataire_id": 13
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module category Prestation
Categories Prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/categories-prestations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/categories-prestations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/categories-prestations';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/categories-prestations'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 54
vary: Origin
{
"status": false,
"errors": [],
"message": "Access denied contact the administrator"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module package
Details of the package
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/package-details/cum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/package-details/cum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/package-details/cum';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/package-details/cum'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
vary: Origin
{
"status": false,
"errors": [],
"message": "Access denied contact the administrator"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all package
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/list-all-package" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/list-all-package"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/list-all-package';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/list-all-package'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
vary: Origin
{
"status": false,
"errors": [],
"message": "Access denied contact the administrator"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Details of the package
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-package-details-souscription" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-package-details-souscription"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-package-details-souscription';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-package-details-souscription'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (403):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
vary: Origin
{
"status": false,
"errors": [],
"message": "Access denied contact the administrator"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create package
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/create-package" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "title=Premium"\
--form "category_prestation_id=2"\
--form "missions=Guard patient"\
--form "price=5000"\
--form "duration=79"\
--form "type=mensuel"\
--form "amount_prestataire=71"\
--form "disabled_at=2053-02-13"\
--form "photo=@/tmp/phpqc4EPS" const url = new URL(
"https://staging-api.services4aged.com/api/create-package"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('title', 'Premium');
body.append('category_prestation_id', '2');
body.append('missions', 'Guard patient');
body.append('price', '5000');
body.append('duration', '79');
body.append('type', 'mensuel');
body.append('amount_prestataire', '71');
body.append('disabled_at', '2053-02-13');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/create-package';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'title',
'contents' => 'Premium'
],
[
'name' => 'category_prestation_id',
'contents' => '2'
],
[
'name' => 'missions',
'contents' => 'Guard patient'
],
[
'name' => 'price',
'contents' => '5000'
],
[
'name' => 'duration',
'contents' => '79'
],
[
'name' => 'type',
'contents' => 'mensuel'
],
[
'name' => 'amount_prestataire',
'contents' => '71'
],
[
'name' => 'disabled_at',
'contents' => '2053-02-13'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpqc4EPS', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/create-package'
files = {
'title': (None, 'Premium'),
'category_prestation_id': (None, '2'),
'missions': (None, 'Guard patient'),
'price': (None, '5000'),
'duration': (None, '79'),
'type': (None, 'mensuel'),
'amount_prestataire': (None, '71'),
'disabled_at': (None, '2053-02-13'),
'photo': open('/tmp/phpqc4EPS', 'rb')}
payload = {
"title": "Premium",
"category_prestation_id": 2,
"missions": "Guard patient",
"price": 5000,
"duration": 79,
"type": "mensuel",
"amount_prestataire": 71,
"disabled_at": "2053-02-13"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update package
requires authentication
Example request:
curl --request PATCH \
"https://staging-api.services4aged.com/api/update-package/harum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "title=quo"\
--form "category_prestation_id=9"\
--form "missions=possimus"\
--form "price=18"\
--form "duration=8"\
--form "type=mensuel"\
--form "amount_prestataire=20"\
--form "disabled_at=2030-01-22"\
--form "photo=@/tmp/phpHc4ffu" const url = new URL(
"https://staging-api.services4aged.com/api/update-package/harum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('title', 'quo');
body.append('category_prestation_id', '9');
body.append('missions', 'possimus');
body.append('price', '18');
body.append('duration', '8');
body.append('type', 'mensuel');
body.append('amount_prestataire', '20');
body.append('disabled_at', '2030-01-22');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "PATCH",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-package/harum';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'title',
'contents' => 'quo'
],
[
'name' => 'category_prestation_id',
'contents' => '9'
],
[
'name' => 'missions',
'contents' => 'possimus'
],
[
'name' => 'price',
'contents' => '18'
],
[
'name' => 'duration',
'contents' => '8'
],
[
'name' => 'type',
'contents' => 'mensuel'
],
[
'name' => 'amount_prestataire',
'contents' => '20'
],
[
'name' => 'disabled_at',
'contents' => '2030-01-22'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpHc4ffu', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-package/harum'
files = {
'title': (None, 'quo'),
'category_prestation_id': (None, '9'),
'missions': (None, 'possimus'),
'price': (None, '18'),
'duration': (None, '8'),
'type': (None, 'mensuel'),
'amount_prestataire': (None, '20'),
'disabled_at': (None, '2030-01-22'),
'photo': open('/tmp/phpHc4ffu', 'rb')}
payload = {
"title": "quo",
"category_prestation_id": 9,
"missions": "possimus",
"price": 18,
"duration": 8,
"type": "mensuel",
"amount_prestataire": 20,
"disabled_at": "2030-01-22"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete package
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/supprimer-un-package/sed" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/supprimer-un-package/sed"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/supprimer-un-package/sed';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/supprimer-un-package/sed'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/update-amount-prestataire
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/update-amount-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/update-amount-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-amount-prestataire';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-amount-prestataire'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module prestation
Confirmed Prestation by admin.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/isConfirmed/et" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/isConfirmed/et"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/isConfirmed/et';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/isConfirmed/et'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
listing available prestation by prestataire
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/isAvailablePrestation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/isAvailablePrestation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/isAvailablePrestation';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/isAvailablePrestation'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Details prestataire prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/details-mission-prestataire/nihil/quia" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/details-mission-prestataire/nihil/quia"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/details-mission-prestataire/nihil/quia';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/details-mission-prestataire/nihil/quia'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Close Prestation.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/isClosed/dolor" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"isClosed\": false
}"
const url = new URL(
"https://staging-api.services4aged.com/api/isClosed/dolor"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"isClosed": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/isClosed/dolor';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'isClosed' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/isClosed/dolor'
payload = {
"isClosed": false
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Candidate Prestation.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/isCandidate/iste" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"isDisponible\": \"eos\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/isCandidate/iste"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"isDisponible": "eos"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/isCandidate/iste';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'isDisponible' => 'eos',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/isCandidate/iste'
payload = {
"isDisponible": "eos"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Cancel Candidate Prestation.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/CancelIsCandidate/occaecati" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/CancelIsCandidate/occaecati"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/CancelIsCandidate/occaecati';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/CancelIsCandidate/occaecati'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/update-phone-number
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/update-phone-number" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone_payment\": \"aut\",
\"confirm_phone_payment\": \"ufvylcufikdzqmfniujsycaf\",
\"name_account\": \"mbx\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/update-phone-number"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone_payment": "aut",
"confirm_phone_payment": "ufvylcufikdzqmfniujsycaf",
"name_account": "mbx"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-phone-number';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'phone_payment' => 'aut',
'confirm_phone_payment' => 'ufvylcufikdzqmfniujsycaf',
'name_account' => 'mbx',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-phone-number'
payload = {
"phone_payment": "aut",
"confirm_phone_payment": "ufvylcufikdzqmfniujsycaf",
"name_account": "mbx"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Details prestataire prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/detailsPrestation/quo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/detailsPrestation/quo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/detailsPrestation/quo';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/detailsPrestation/quo'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Details prestataire prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/details-patient-rapport/in/distinctio" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/details-patient-rapport/in/distinctio"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/details-patient-rapport/in/distinctio';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/details-patient-rapport/in/distinctio'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Pending prestataire prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/listPendingPrestation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/listPendingPrestation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/listPendingPrestation';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/listPendingPrestation'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Pending prestataire prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/listPostulationPrestation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/listPostulationPrestation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/listPostulationPrestation';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/listPostulationPrestation'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Pending prestataire prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/prestationsYouCanCandidate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/prestationsYouCanCandidate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/prestationsYouCanCandidate';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/prestationsYouCanCandidate'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Search prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/searchPrestations/sint" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/searchPrestations/sint"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/searchPrestations/sint';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/searchPrestations/sint'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Follow prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/suivi-prestation-by-prestataire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/suivi-prestation-by-prestataire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/suivi-prestation-by-prestataire';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/suivi-prestation-by-prestataire'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Available Prestation.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/isAvailable/labore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"isAvailable\": true,
\"isDisponible\": \"autem\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/isAvailable/labore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"isAvailable": true,
"isDisponible": "autem"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/isAvailable/labore';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'isAvailable' => true,
'isDisponible' => 'autem',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/isAvailable/labore'
payload = {
"isAvailable": true,
"isDisponible": "autem"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Choose Prestation.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/createPrestation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"beneficiaire_id\": 4,
\"package_id\": 2,
\"start_date\": \"01\\/07\\/2023\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/createPrestation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"beneficiaire_id": 4,
"package_id": 2,
"start_date": "01\/07\/2023"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/createPrestation';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'beneficiaire_id' => 4,
'package_id' => 2,
'start_date' => '01/07/2023',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/createPrestation'
payload = {
"beneficiaire_id": 4,
"package_id": 2,
"start_date": "01\/07\/2023"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Listing prestation area nearby
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-area-prestation-nearby" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-area-prestation-nearby"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-area-prestation-nearby';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-area-prestation-nearby'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
all prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/all-prestations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/all-prestations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/all-prestations';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/all-prestations'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
all prestation
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/all-prestations-filter" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2024-09-26T17:31:28\",
\"end_date\": \"2102-11-23\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/all-prestations-filter"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2102-11-23"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/all-prestations-filter';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'start_date' => '2024-09-26T17:31:28',
'end_date' => '2102-11-23',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/all-prestations-filter'
payload = {
"start_date": "2024-09-26T17:31:28",
"end_date": "2102-11-23"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Prolonger une Prestation.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/prolonger-prestation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"package_id\": 2,
\"prestation_id\": 2,
\"start_date\": \"01\\/07\\/2023\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/prolonger-prestation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"package_id": 2,
"prestation_id": 2,
"start_date": "01\/07\/2023"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/prolonger-prestation';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'package_id' => 2,
'prestation_id' => 2,
'start_date' => '01/07/2023',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/prolonger-prestation'
payload = {
"package_id": 2,
"prestation_id": 2,
"start_date": "01\/07\/2023"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Souscripteur prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/list-prestation-souscripteur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/list-prestation-souscripteur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/list-prestation-souscripteur';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/list-prestation-souscripteur'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Follow prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/suivi-prestation-by-souscripteur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/suivi-prestation-by-souscripteur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/suivi-prestation-by-souscripteur';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/suivi-prestation-by-souscripteur'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Choose Prestation.
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/update-date-prestation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"package_duration\": \"quos\",
\"prestation_id\": \"repudiandae\",
\"start_date\": \"2024-09-26T17:31:29\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/update-date-prestation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"package_duration": "quos",
"prestation_id": "repudiandae",
"start_date": "2024-09-26T17:31:29"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-date-prestation';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'package_duration' => 'quos',
'prestation_id' => 'repudiandae',
'start_date' => '2024-09-26T17:31:29',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-date-prestation'
payload = {
"package_duration": "quos",
"prestation_id": "repudiandae",
"start_date": "2024-09-26T17:31:29"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/update-souscripteur-phone-number
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/update-souscripteur-phone-number" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone_payment\": \"quia\",
\"confirm_phone_payment\": \"njzcesacajbu\",
\"name_account\": \"gdnpusg\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/update-souscripteur-phone-number"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone_payment": "quia",
"confirm_phone_payment": "njzcesacajbu",
"name_account": "gdnpusg"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-souscripteur-phone-number';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'phone_payment' => 'quia',
'confirm_phone_payment' => 'njzcesacajbu',
'name_account' => 'gdnpusg',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-souscripteur-phone-number'
payload = {
"phone_payment": "quia",
"confirm_phone_payment": "njzcesacajbu",
"name_account": "gdnpusg"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Souscripteur prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/list-prestation-beneficiaire" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/list-prestation-beneficiaire"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/list-prestation-beneficiaire';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/list-prestation-beneficiaire'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Paiement Module
Get transaction status
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/payment/getTransactionStatus/dolorum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/payment/getTransactionStatus/dolorum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/payment/getTransactionStatus/dolorum';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/payment/getTransactionStatus/dolorum'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Generate payment link
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/link-payment-generate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount\": \"5000\",
\"currency\": \"XAF\",
\"description\": \"Payment de la facture No-YH789\",
\"external_reference\": \"1\",
\"redirect_url\": \"1\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/link-payment-generate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": "5000",
"currency": "XAF",
"description": "Payment de la facture No-YH789",
"external_reference": "1",
"redirect_url": "1"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/link-payment-generate';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'amount' => '5000',
'currency' => 'XAF',
'description' => 'Payment de la facture No-YH789',
'external_reference' => '1',
'redirect_url' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/link-payment-generate'
payload = {
"amount": "5000",
"currency": "XAF",
"description": "Payment de la facture No-YH789",
"external_reference": "1",
"redirect_url": "1"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Withdraw OM/MOMO
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/withdrawl" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount\": \"5000\",
\"to\": 237693468041,
\"description\": \"Payment de la facture No-YH789\",
\"prestation_id\": 17
}"
const url = new URL(
"https://staging-api.services4aged.com/api/withdrawl"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": "5000",
"to": 237693468041,
"description": "Payment de la facture No-YH789",
"prestation_id": 17
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/withdrawl';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'amount' => '5000',
'to' => 237693468041,
'description' => 'Payment de la facture No-YH789',
'prestation_id' => 17,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/withdrawl'
payload = {
"amount": "5000",
"to": 237693468041,
"description": "Payment de la facture No-YH789",
"prestation_id": 17
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Payment Visa/MasterCard
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/stripe-checkout" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_email\": \"schamberger.beulah@example.org\",
\"product_name\": \"nqtxtqpqtuaotuvrleaun\",
\"description\": \"Inventore voluptatem id sed quis sed fuga.\",
\"total_amount\": \"voluptas\",
\"currency\": \"xaf\",
\"prestation_id\": \"explicabo\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/stripe-checkout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_email": "schamberger.beulah@example.org",
"product_name": "nqtxtqpqtuaotuvrleaun",
"description": "Inventore voluptatem id sed quis sed fuga.",
"total_amount": "voluptas",
"currency": "xaf",
"prestation_id": "explicabo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/stripe-checkout';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'customer_email' => 'schamberger.beulah@example.org',
'product_name' => 'nqtxtqpqtuaotuvrleaun',
'description' => 'Inventore voluptatem id sed quis sed fuga.',
'total_amount' => 'voluptas',
'currency' => 'xaf',
'prestation_id' => 'explicabo',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/stripe-checkout'
payload = {
"customer_email": "schamberger.beulah@example.org",
"product_name": "nqtxtqpqtuaotuvrleaun",
"description": "Inventore voluptatem id sed quis sed fuga.",
"total_amount": "voluptas",
"currency": "xaf",
"prestation_id": "explicabo"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Payment OM/MOMO
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/checkout" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount\": \"5000\",
\"from\": \"237693468041\",
\"description\": \"Payment de la facture No-YH789\",
\"prestation_id\": \"earum\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/checkout"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": "5000",
"from": "237693468041",
"description": "Payment de la facture No-YH789",
"prestation_id": "earum"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/checkout';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'amount' => '5000',
'from' => '237693468041',
'description' => 'Payment de la facture No-YH789',
'prestation_id' => 'earum',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/checkout'
payload = {
"amount": "5000",
"from": "237693468041",
"description": "Payment de la facture No-YH789",
"prestation_id": "earum"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Report
Get unvalidated report
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-unvalidated-report" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-unvalidated-report"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-unvalidated-report';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-unvalidated-report'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get validated report
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-validated-report" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-validated-report"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-validated-report';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-validated-report'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validated report
requires authentication
Example request:
curl --request PATCH \
"https://staging-api.services4aged.com/api/validated-report/in" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/validated-report/in"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/validated-report/in';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/validated-report/in'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unvalidated report
requires authentication
Example request:
curl --request PATCH \
"https://staging-api.services4aged.com/api/unvalidated-report/excepturi" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/unvalidated-report/excepturi"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/unvalidated-report/excepturi';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/unvalidated-report/excepturi'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get all report of my prestation
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-patient-report/sapiente" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-patient-report/sapiente"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-patient-report/sapiente';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-patient-report/sapiente'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get report of my patient
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-report-of-my-patient/nemo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-report-of-my-patient/nemo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-report-of-my-patient/nemo';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-report-of-my-patient/nemo'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get one report
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-one-report/reprehenderit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-one-report/reprehenderit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-one-report/reprehenderit';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-one-report/reprehenderit'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get beneficiaury report
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/get-beneficiairy-report" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/get-beneficiairy-report"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/get-beneficiairy-report';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/get-beneficiairy-report'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Super administrator management
Admin lists
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/liste-des-administrateurs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/liste-des-administrateurs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/liste-des-administrateurs';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/liste-des-administrateurs'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create admin
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/creer-un-administrateur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=John"\
--form "last_name=Doe"\
--form "phone=696661135"\
--form "country_residence=Cameroun"\
--form "city_residence=Yaoundé"\
--form "date_birth=1996-03-11"\
--form "lang=en"\
--form "accept_term_condition=1"\
--form "email=nativemind@google.com"\
--form "password=Admin@1234"\
--form "password_confirmation=Admin@1234"\
--form "photo=@/tmp/phpNYkKve" const url = new URL(
"https://staging-api.services4aged.com/api/creer-un-administrateur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'John');
body.append('last_name', 'Doe');
body.append('phone', '696661135');
body.append('country_residence', 'Cameroun');
body.append('city_residence', 'Yaoundé');
body.append('date_birth', '1996-03-11');
body.append('lang', 'en');
body.append('accept_term_condition', '1');
body.append('email', 'nativemind@google.com');
body.append('password', 'Admin@1234');
body.append('password_confirmation', 'Admin@1234');
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/creer-un-administrateur';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'name',
'contents' => 'John'
],
[
'name' => 'last_name',
'contents' => 'Doe'
],
[
'name' => 'phone',
'contents' => '696661135'
],
[
'name' => 'country_residence',
'contents' => 'Cameroun'
],
[
'name' => 'city_residence',
'contents' => 'Yaoundé'
],
[
'name' => 'date_birth',
'contents' => '1996-03-11'
],
[
'name' => 'lang',
'contents' => 'en'
],
[
'name' => 'accept_term_condition',
'contents' => '1'
],
[
'name' => 'email',
'contents' => 'nativemind@google.com'
],
[
'name' => 'password',
'contents' => 'Admin@1234'
],
[
'name' => 'password_confirmation',
'contents' => 'Admin@1234'
],
[
'name' => 'photo',
'contents' => fopen('/tmp/phpNYkKve', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/creer-un-administrateur'
files = {
'name': (None, 'John'),
'last_name': (None, 'Doe'),
'phone': (None, '696661135'),
'country_residence': (None, 'Cameroun'),
'city_residence': (None, 'Yaoundé'),
'date_birth': (None, '1996-03-11'),
'lang': (None, 'en'),
'accept_term_condition': (None, '1'),
'email': (None, 'nativemind@google.com'),
'password': (None, 'Admin@1234'),
'password_confirmation': (None, 'Admin@1234'),
'photo': open('/tmp/phpNYkKve', 'rb')}
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"lang": "en",
"accept_term_condition": true,
"email": "nativemind@google.com",
"password": "Admin@1234",
"password_confirmation": "Admin@1234"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update admin
requires authentication
Example request:
curl --request PATCH \
"https://staging-api.services4aged.com/api/modifier-un-administrateur/aut" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"John\",
\"last_name\": \"Doe\",
\"phone\": \"696661135\",
\"country_residence\": \"Cameroun\",
\"city_residence\": \"Yaoundé\",
\"date_birth\": \"1996-03-11\",
\"email\": \"nativemind@google.com\",
\"password\": \"Admin@1234\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/modifier-un-administrateur/aut"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"email": "nativemind@google.com",
"password": "Admin@1234"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/modifier-un-administrateur/aut';
$response = $client->patch(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'John',
'last_name' => 'Doe',
'phone' => '696661135',
'country_residence' => 'Cameroun',
'city_residence' => 'Yaoundé',
'date_birth' => '1996-03-11',
'email' => 'nativemind@google.com',
'password' => 'Admin@1234',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/modifier-un-administrateur/aut'
payload = {
"name": "John",
"last_name": "Doe",
"phone": "696661135",
"country_residence": "Cameroun",
"city_residence": "Yaoundé",
"date_birth": "1996-03-11",
"email": "nativemind@google.com",
"password": "Admin@1234"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete admin
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/supprimer-un-administrateur/sint" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/supprimer-un-administrateur/sint"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/supprimer-un-administrateur/sint';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/supprimer-un-administrateur/sint'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
User management
POST api/check-exist-email
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/check-exist-email" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"bednar.darrion@example.com\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/check-exist-email"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "bednar.darrion@example.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/check-exist-email';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'email' => 'bednar.darrion@example.com',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/check-exist-email'
payload = {
"email": "bednar.darrion@example.com"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Display the specified User information.
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/user/auth" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/user/auth"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/user/auth';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/user/auth'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update the User information
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/user-update-info" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/user-update-info"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/user-update-info';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/user-update-info'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Change Avatar user
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/change-avatar" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "photo=@/tmp/php8Brz5E" const url = new URL(
"https://staging-api.services4aged.com/api/change-avatar"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('photo', document.querySelector('input[name="photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/change-avatar';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'multipart/form-data',
'Accept' => 'application/json',
],
'multipart' => [
[
'name' => 'photo',
'contents' => fopen('/tmp/php8Brz5E', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/change-avatar'
files = {
'photo': open('/tmp/php8Brz5E', 'rb')}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'multipart/form-data',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, files=files)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/change-lang
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/change-lang" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"lang\": \"en\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/change-lang"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"lang": "en"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/change-lang';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'lang' => 'en',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/change-lang'
payload = {
"lang": "en"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Verify email with otp code
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/verify-email-with-otp" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/verify-email-with-otp"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/verify-email-with-otp';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/verify-email-with-otp'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Module Appoitment
List all appoitments
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/all-appointment" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/all-appointment"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/all-appointment';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/all-appointment'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create appoitment
requires authentication
Example request:
curl --request POST \
"https://staging-api.services4aged.com/api/store-appoitment" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"url\": \"\",
\"titre\": 2,
\"label\": \"Consultation à domicile\",
\"date_debut\": \"09\\/10\\/2023\",
\"date_fin\": \"09\\/10\\/2023\",
\"allDay\": true,
\"patient_id\": 10,
\"localisation\": \"New localisation\",
\"description_localisation\": \"Description New localisation\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/store-appoitment"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"url": "",
"titre": 2,
"label": "Consultation à domicile",
"date_debut": "09\/10\/2023",
"date_fin": "09\/10\/2023",
"allDay": true,
"patient_id": 10,
"localisation": "New localisation",
"description_localisation": "Description New localisation"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/store-appoitment';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'url' => '',
'titre' => 2,
'label' => 'Consultation à domicile',
'date_debut' => '09/10/2023',
'date_fin' => '09/10/2023',
'allDay' => true,
'patient_id' => 10,
'localisation' => 'New localisation',
'description_localisation' => 'Description New localisation',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/store-appoitment'
payload = {
"url": "",
"titre": 2,
"label": "Consultation à domicile",
"date_debut": "09\/10\/2023",
"date_fin": "09\/10\/2023",
"allDay": true,
"patient_id": 10,
"localisation": "New localisation",
"description_localisation": "Description New localisation"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Show one appoitment
requires authentication
Example request:
curl --request GET \
--get "https://staging-api.services4aged.com/api/one-appoitment/fugit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/one-appoitment/fugit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/one-appoitment/fugit';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/one-appoitment/fugit'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update appoitment
requires authentication
Example request:
curl --request PUT \
"https://staging-api.services4aged.com/api/update-appointment/quo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"url\": \"\",
\"titre\": 2,
\"label\": \"Consultation à domicile\",
\"date_debut\": \"09\\/10\\/2023\",
\"date_fin\": \"09\\/10\\/2023\",
\"allDay\": true,
\"patient_id\": 10,
\"localisation\": \"New localisation\",
\"description_localisation\": \"Description New localisation\"
}"
const url = new URL(
"https://staging-api.services4aged.com/api/update-appointment/quo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"url": "",
"titre": 2,
"label": "Consultation à domicile",
"date_debut": "09\/10\/2023",
"date_fin": "09\/10\/2023",
"allDay": true,
"patient_id": 10,
"localisation": "New localisation",
"description_localisation": "Description New localisation"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/update-appointment/quo';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'url' => '',
'titre' => 2,
'label' => 'Consultation à domicile',
'date_debut' => '09/10/2023',
'date_fin' => '09/10/2023',
'allDay' => true,
'patient_id' => 10,
'localisation' => 'New localisation',
'description_localisation' => 'Description New localisation',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/update-appointment/quo'
payload = {
"url": "",
"titre": 2,
"label": "Consultation à domicile",
"date_debut": "09\/10\/2023",
"date_fin": "09\/10\/2023",
"allDay": true,
"patient_id": 10,
"localisation": "New localisation",
"description_localisation": "Description New localisation"
}
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Destroy one appoitment
requires authentication
Example request:
curl --request DELETE \
"https://staging-api.services4aged.com/api/delete-appointment/eos" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-api.services4aged.com/api/delete-appointment/eos"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());$client = new \GuzzleHttp\Client();
$url = 'https://staging-api.services4aged.com/api/delete-appointment/eos';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));import requests
import json
url = 'https://staging-api.services4aged.com/api/delete-appointment/eos'
headers = {
'Authorization': 'Bearer {YOUR_AUTH_KEY}',
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.