Wazen API Documentation

MENU navbar-image

Introduction

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

Authenticating requests

To authenticate requests, include an Authorization header 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.

Accident Bookplace Management

API for managing accident bookplaces

Display a listing of the accident bookplaces.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book?perPage=20&page=2&company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 14,
    \"per_page\": 7,
    \"page\": 3
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book"
);

const params = {
    "perPage": "20",
    "page": "2",
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 14,
    "per_page": 7,
    "page": 3
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '20',
            'page' => '2',
            'company_no' => '123',
        ],
        'json' => [
            'company_no' => 14,
            'per_page' => 7,
            'page' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book'
payload = {
    "company_no": 14,
    "per_page": 7,
    "page": 3
}
params = {
  'perPage': '20',
  'page': '2',
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "message": "AcdntBookplace list",
    "data": [
        {
            "id": 1,
            "Cmp_No": 123,
            "AcdnStu_No": 456,
            "AcdnStu_NmAr": "اسم الحالة",
            "AcdnStu_NmEn": "Accident Status"
        }
    ],
    "pagination": {
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "lastPage": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/car_book

Headers

Query Parameters

Body Parameters

Store a newly created accident bookplace in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CarBokplc_No\": 101,
    \"CarBokplc_NmAr\": \"\\\"موقف السيارات\\\"\",
    \"CarBokplc_NmEn\": \"\\\"Car Bookplace\\\"\",
    \"CarBokplc_adrs\": \"\\\"123 Main St\\\"\",
    \"CarBokplc_Tel\": \"\\\"0123456789\\\"\",
    \"Notes\": \"\\\"Located near the service area.\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book"
);

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

let body = {
    "Cmp_No": 123,
    "CarBokplc_No": 101,
    "CarBokplc_NmAr": "\"موقف السيارات\"",
    "CarBokplc_NmEn": "\"Car Bookplace\"",
    "CarBokplc_adrs": "\"123 Main St\"",
    "CarBokplc_Tel": "\"0123456789\"",
    "Notes": "\"Located near the service area.\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CarBokplc_No' => 101,
            'CarBokplc_NmAr' => '"موقف السيارات"',
            'CarBokplc_NmEn' => '"Car Bookplace"',
            'CarBokplc_adrs' => '"123 Main St"',
            'CarBokplc_Tel' => '"0123456789"',
            'Notes' => '"Located near the service area."',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book'
payload = {
    "Cmp_No": 123,
    "CarBokplc_No": 101,
    "CarBokplc_NmAr": "\"موقف السيارات\"",
    "CarBokplc_NmEn": "\"Car Bookplace\"",
    "CarBokplc_adrs": "\"123 Main St\"",
    "CarBokplc_Tel": "\"0123456789\"",
    "Notes": "\"Located near the service area.\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):


{
    "status": true,
    "message": "AcdntBookplace created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/accidents-settings/car_book

Headers

Body Parameters

Display the specified accident bookplace.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/hic" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/hic"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/hic';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/hic'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "carbook": {
        "Cmp_No": 123,
        "CarBokplc_No": 101,
        "CarBokplc_NmAr": "موقف السيارات",
        "CarBokplc_NmEn": "Car Bookplace"
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/car_book/{id}

Headers

URL Parameters

Update the specified accident bookplace in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/ut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CarBokplc_No\": 101,
    \"CarBokplc_NmAr\": \"\\\"موقف السيارات\\\"\",
    \"CarBokplc_NmEn\": \"\\\"Car Bookplace\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/ut"
);

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

let body = {
    "Cmp_No": 123,
    "CarBokplc_No": 101,
    "CarBokplc_NmAr": "\"موقف السيارات\"",
    "CarBokplc_NmEn": "\"Car Bookplace\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/ut';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CarBokplc_No' => 101,
            'CarBokplc_NmAr' => '"موقف السيارات"',
            'CarBokplc_NmEn' => '"Car Bookplace"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/ut'
payload = {
    "Cmp_No": 123,
    "CarBokplc_No": 101,
    "CarBokplc_NmAr": "\"موقف السيارات\"",
    "CarBokplc_NmEn": "\"Car Bookplace\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "AcdntBookplace updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/accidents-settings/car_book/{id}

PATCH api/v1/base/settings/setting-cars/accidents-settings/car_book/{id}

Headers

URL Parameters

Body Parameters

Remove the specified accident bookplace from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/facere" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/facere"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/facere';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/car_book/facere'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "AcdntBookplace deleted successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/accidents-settings/car_book/{id}

Headers

URL Parameters

Accidents Management

Accident Investigation Officer Management

Display a listing of accident investigation officers.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth?company_no=123&perPage=20&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth"
);

const params = {
    "company_no": "123",
    "perPage": "20",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '20',
            'page' => '2',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth'
params = {
  'company_no': '123',
  'perPage': '20',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "status": true,
    "message": "Acdntinvstgtionoffcr list",
    "data": [
        {
            "id": 1,
            "Cmp_No": 123,
            "InvstOffcr_No": 456,
            "InvstOffcr_NmAr": "اسم الضابط",
            "InvstOffcr_NmEn": "Officer Name"
        }
    ],
    "pagination": {
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "lastPage": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/Invest_auth

Headers

Query Parameters

Store a newly created accident investigation officer.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"InvstOffcr_No\": 456,
    \"InvstOffcr_NmAr\": \"\\\"اسم الضابط\\\"\",
    \"InvstOffcr_NmEn\": \"\\\"Officer Name\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth"
);

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

let body = {
    "Cmp_No": 123,
    "InvstOffcr_No": 456,
    "InvstOffcr_NmAr": "\"اسم الضابط\"",
    "InvstOffcr_NmEn": "\"Officer Name\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'InvstOffcr_No' => 456,
            'InvstOffcr_NmAr' => '"اسم الضابط"',
            'InvstOffcr_NmEn' => '"Officer Name"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth'
payload = {
    "Cmp_No": 123,
    "InvstOffcr_No": 456,
    "InvstOffcr_NmAr": "\"اسم الضابط\"",
    "InvstOffcr_NmEn": "\"Officer Name\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "InvstOffcr_NmAr": [
            "The Arabic name is required."
        ]
    }
}
 

Request      

POST api/v1/base/settings/setting-cars/accidents-settings/Invest_auth

Headers

Body Parameters

Display the specified accident investigation officer.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/5"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/5';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/5'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "investAuth": {
        "id": 1,
        "Cmp_No": 123,
        "InvstOffcr_No": 456,
        "InvstOffcr_NmAr": "اسم الضابط",
        "InvstOffcr_NmEn": "Officer Name"
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/{ID_No}

Headers

URL Parameters

Update the specified accident investigation officer.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"InvstOffcr_No\": 456,
    \"InvstOffcr_NmAr\": \"\\\"اسم الضابط\\\"\",
    \"InvstOffcr_NmEn\": \"\\\"Officer Name\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/15"
);

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

let body = {
    "Cmp_No": 123,
    "InvstOffcr_No": 456,
    "InvstOffcr_NmAr": "\"اسم الضابط\"",
    "InvstOffcr_NmEn": "\"Officer Name\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/15';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'InvstOffcr_No' => 456,
            'InvstOffcr_NmAr' => '"اسم الضابط"',
            'InvstOffcr_NmEn' => '"Officer Name"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/15'
payload = {
    "Cmp_No": 123,
    "InvstOffcr_No": 456,
    "InvstOffcr_NmAr": "\"اسم الضابط\"",
    "InvstOffcr_NmEn": "\"Officer Name\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "InvstOffcr_NmAr": [
            "The Arabic name is required."
        ]
    }
}
 

Request      

PUT api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/{ID_No}

PATCH api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/{ID_No}

Headers

URL Parameters

Body Parameters

Remove the specified accident investigation officer.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/9"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/9';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/9'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": 1
}
 

Example response (400):


{
    "status": 0,
    "message": "Failed to delete."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/accidents-settings/Invest_auth/{ID_No}

Headers

URL Parameters

Display a listing of accident types.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 16,
    \"per_page\": 19,
    \"page\": 8
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 16,
    "per_page": 19,
    "page": 8
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 16,
            'per_page' => 19,
            'page' => 8,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type'
payload = {
    "company_no": 16,
    "per_page": 19,
    "page": 8
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "message": "Acdntypes list",
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "Acdnty_No": 456,
            "Acdnty_NmAr": "نوع الحادث",
            "Acdnty_NmEn": "Accident Type"
        }
    ],
    "pagination": {
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "lastPage": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/accident_type

Headers

Query Parameters

Body Parameters

Store a newly created accident type.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Acdnty_No\": 456,
    \"Acdnty_NmAr\": \"\\\"نوع الحادث\\\"\",
    \"Acdnty_NmEn\": \"\\\"Accident Type\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type"
);

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

let body = {
    "Cmp_No": 123,
    "Acdnty_No": 456,
    "Acdnty_NmAr": "\"نوع الحادث\"",
    "Acdnty_NmEn": "\"Accident Type\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Acdnty_No' => 456,
            'Acdnty_NmAr' => '"نوع الحادث"',
            'Acdnty_NmEn' => '"Accident Type"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type'
payload = {
    "Cmp_No": 123,
    "Acdnty_No": 456,
    "Acdnty_NmAr": "\"نوع الحادث\"",
    "Acdnty_NmEn": "\"Accident Type\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "Acdnty_NmAr": [
            "The Arabic name is required."
        ]
    }
}
 

Request      

POST api/v1/base/settings/setting-cars/accidents-settings/accident_type

Headers

Body Parameters

Display the specified accident type.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "accidtype": {
        "ID_No": 1,
        "Cmp_No": 123,
        "Acdnty_No": 456,
        "Acdnty_NmAr": "نوع الحادث",
        "Acdnty_NmEn": "Accident Type"
    },
    "url": "https://example.com/api/v1/settings/accidents/accident-type/1/update"
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/accident_type/{id}

Headers

URL Parameters

Update the specified accident type.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Acdnty_No\": 456,
    \"Acdnty_NmAr\": \"\\\"نوع الحادث\\\"\",
    \"Acdnty_NmEn\": \"\\\"Accident Type\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1"
);

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

let body = {
    "Cmp_No": 123,
    "Acdnty_No": 456,
    "Acdnty_NmAr": "\"نوع الحادث\"",
    "Acdnty_NmEn": "\"Accident Type\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Acdnty_No' => 456,
            'Acdnty_NmAr' => '"نوع الحادث"',
            'Acdnty_NmEn' => '"Accident Type"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1'
payload = {
    "Cmp_No": 123,
    "Acdnty_No": 456,
    "Acdnty_NmAr": "\"نوع الحادث\"",
    "Acdnty_NmEn": "\"Accident Type\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "Acdnty_NmAr": [
            "The Arabic name is required."
        ]
    }
}
 

Request      

PUT api/v1/base/settings/setting-cars/accidents-settings/accident_type/{id}

PATCH api/v1/base/settings/setting-cars/accidents-settings/accident_type/{id}

Headers

URL Parameters

Body Parameters

Remove the specified accident type.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_type/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": 1
}
 

Example response (400):


{
    "status": 0,
    "message": "Failed to delete."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/accidents-settings/accident_type/{id}

Headers

URL Parameters

Display a listing of the accident statuses.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 12,
    \"per_page\": 8,
    \"page\": 16
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 12,
    "per_page": 8,
    "page": 16
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 12,
            'per_page' => 8,
            'page' => 16,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status'
payload = {
    "company_no": 12,
    "per_page": 8,
    "page": 16
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "message": "AcdntStatus list",
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "AcdnStu_No": 456,
            "AcdnStu_NmAr": "حالة الحادث",
            "AcdnStu_NmEn": "Accident Status"
        }
    ],
    "pagination": {
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "lastPage": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/accident_status

Headers

Query Parameters

Body Parameters

Store a newly created accident status.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"AcdnStu_No\": 456,
    \"AcdnStu_NmAr\": \"\\\"حالة الحادث\\\"\",
    \"AcdnStu_NmEn\": \"\\\"Accident Status\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status"
);

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

let body = {
    "Cmp_No": 123,
    "AcdnStu_No": 456,
    "AcdnStu_NmAr": "\"حالة الحادث\"",
    "AcdnStu_NmEn": "\"Accident Status\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'AcdnStu_No' => 456,
            'AcdnStu_NmAr' => '"حالة الحادث"',
            'AcdnStu_NmEn' => '"Accident Status"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status'
payload = {
    "Cmp_No": 123,
    "AcdnStu_No": 456,
    "AcdnStu_NmAr": "\"حالة الحادث\"",
    "AcdnStu_NmEn": "\"Accident Status\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "AcdnStu_NmAr": [
            "The Arabic name is required."
        ]
    }
}
 

Request      

POST api/v1/base/settings/setting-cars/accidents-settings/accident_status

Headers

Body Parameters

Display the specified accident status.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "acdntStatus": {
        "ID_No": 1,
        "Cmp_No": 123,
        "AcdnStu_No": 456,
        "AcdnStu_NmAr": "حالة الحادث",
        "AcdnStu_NmEn": "Accident Status"
    },
    "url": "https://example.com/api/v1/settings/accidents/accident-status/1/update"
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/accident_status/{id}

Headers

URL Parameters

Update the specified accident status.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"AcdnStu_No\": 456,
    \"AcdnStu_NmAr\": \"\\\"حالة الحادث\\\"\",
    \"AcdnStu_NmEn\": \"\\\"Accident Status\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1"
);

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

let body = {
    "Cmp_No": 123,
    "AcdnStu_No": 456,
    "AcdnStu_NmAr": "\"حالة الحادث\"",
    "AcdnStu_NmEn": "\"Accident Status\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'AcdnStu_No' => 456,
            'AcdnStu_NmAr' => '"حالة الحادث"',
            'AcdnStu_NmEn' => '"Accident Status"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1'
payload = {
    "Cmp_No": 123,
    "AcdnStu_No": 456,
    "AcdnStu_NmAr": "\"حالة الحادث\"",
    "AcdnStu_NmEn": "\"Accident Status\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "AcdnStu_NmAr": [
            "The Arabic name is required."
        ]
    }
}
 

Request      

PUT api/v1/base/settings/setting-cars/accidents-settings/accident_status/{id}

PATCH api/v1/base/settings/setting-cars/accidents-settings/accident_status/{id}

Headers

URL Parameters

Body Parameters

Remove the specified accident status.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/accident_status/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": 1
}
 

Example response (400):


{
    "status": 0,
    "message": "Failed to delete."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/accidents-settings/accident_status/{id}

Headers

URL Parameters

Display a listing of the traffic departments.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 9,
    \"per_page\": 6,
    \"page\": 11
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 9,
    "per_page": 6,
    "page": 11
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 9,
            'per_page' => 6,
            'page' => 11,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec'
payload = {
    "company_no": 9,
    "per_page": 6,
    "page": 11
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "message": "AcdntTrficDepm list",
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "TrficDepm_No": 456,
            "TrficDepm_NmAr": "قسم المرور",
            "TrficDepm_NmEn": "Traffic Department"
        }
    ],
    "pagination": {
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "lastPage": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/traffic_sec

Headers

Query Parameters

Body Parameters

Store a newly created traffic department.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"TrficDepm_No\": 456,
    \"TrficDepm_NmAr\": \"\\\"قسم المرور\\\"\",
    \"TrficDepm_NmEn\": \"\\\"Traffic Department\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec"
);

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

let body = {
    "Cmp_No": 123,
    "TrficDepm_No": 456,
    "TrficDepm_NmAr": "\"قسم المرور\"",
    "TrficDepm_NmEn": "\"Traffic Department\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'TrficDepm_No' => 456,
            'TrficDepm_NmAr' => '"قسم المرور"',
            'TrficDepm_NmEn' => '"Traffic Department"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec'
payload = {
    "Cmp_No": 123,
    "TrficDepm_No": 456,
    "TrficDepm_NmAr": "\"قسم المرور\"",
    "TrficDepm_NmEn": "\"Traffic Department\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "TrficDepm_NmAr": [
            "The Arabic name is required."
        ]
    }
}
 

Request      

POST api/v1/base/settings/setting-cars/accidents-settings/traffic_sec

Headers

Body Parameters

Display the specified traffic department.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "trafficsec": {
        "ID_No": 1,
        "Cmp_No": 123,
        "TrficDepm_No": 456,
        "TrficDepm_NmAr": "قسم المرور",
        "TrficDepm_NmEn": "Traffic Department"
    },
    "url": "https://example.com/api/v1/settings/accidents/traffic-department/1/update"
}
 

Request      

GET api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/{id}

Headers

URL Parameters

Update the specified traffic department.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"TrficDepm_No\": 456,
    \"TrficDepm_NmAr\": \"\\\"قسم المرور\\\"\",
    \"TrficDepm_NmEn\": \"\\\"Traffic Department\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1"
);

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

let body = {
    "Cmp_No": 123,
    "TrficDepm_No": 456,
    "TrficDepm_NmAr": "\"قسم المرور\"",
    "TrficDepm_NmEn": "\"Traffic Department\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'TrficDepm_No' => 456,
            'TrficDepm_NmAr' => '"قسم المرور"',
            'TrficDepm_NmEn' => '"Traffic Department"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1'
payload = {
    "Cmp_No": 123,
    "TrficDepm_No": 456,
    "TrficDepm_NmAr": "\"قسم المرور\"",
    "TrficDepm_NmEn": "\"Traffic Department\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "TrficDepm_NmAr": [
            "The Arabic name is required."
        ]
    }
}
 

Request      

PUT api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/{id}

PATCH api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/{id}

Headers

URL Parameters

Body Parameters

Remove the specified traffic department.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": 1
}
 

Example response (400):


{
    "status": 0,
    "message": "Failed to delete."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/accidents-settings/traffic_sec/{id}

Headers

URL Parameters

Accounts

API for managing Accounts in the system

Initialize journal type data.

requires authentication

This endpoint retrieves a list of journal types not yet associated with a specific company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 101
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/init-data"
);

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

let body = {
    "company_no": 101
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 101,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/init-data'
payload = {
    "company_no": 101
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "initData": {
        "jrlType": [
            {
                "Jr_Ty": "General",
                "Jrty_NmAr": "النوع العام",
                "Jrty_NmEn": "General Type"
            },
            {
                "Jr_Ty": "Special",
                "Jrty_NmAr": "النوع الخاص",
                "Jrty_NmEn": "Special Type"
            }
        ]
    }
}
 

Example response (404):


{
    "message": "No data found for the specified company."
}
 

Request      

GET api/v1/base/settings/accounts/daily-limitation-types/init-data

Headers

Body Parameters

Get a list of daily limitation types.

requires authentication

This endpoint retrieves a paginated list of daily limitation types for a company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types?perPage=10&page=2&company_no=101" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 19,
    \"per_page\": 10,
    \"page\": 5
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types"
);

const params = {
    "perPage": "10",
    "page": "2",
    "company_no": "101",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 19,
    "per_page": 10,
    "page": 5
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '10',
            'page' => '2',
            'company_no' => '101',
        ],
        'json' => [
            'company_no' => 19,
            'per_page' => 10,
            'page' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types'
payload = {
    "company_no": 19,
    "per_page": 10,
    "page": 5
}
params = {
  'perPage': '10',
  'page': '2',
  'company_no': '101',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "message": "CmpDailyLimitationTypes list",
    "data": [
        {
            "id": 1,
            "Cmp_No": 101,
            "Jr_Ty": "General",
            "uuid": "1",
            "Jrty_NmAr": "النوع العام",
            "Jrty_NmEn": "General Type",
            "active": true
        }
    ],
    "pagination": {
        "total": 100,
        "count": 10,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 10
    }
}
 

Request      

GET api/v1/base/settings/accounts/daily-limitation-types

Headers

Query Parameters

Body Parameters

Store daily limitation types.

requires authentication

This endpoint creates new daily limitation types for a company.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"restore\": true,
    \"company_no\": 101,
    \"data\": [
        \"mollitia\"
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types"
);

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

let body = {
    "restore": true,
    "company_no": 101,
    "data": [
        "mollitia"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'restore' => true,
            'company_no' => 101,
            'data' => [
                'mollitia',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types'
payload = {
    "restore": true,
    "company_no": 101,
    "data": [
        "mollitia"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Successfully added!",
    "data": null
}
 

Example response (422):


{
    "error": "Duplicate entry for UUID.",
    "message": "An unknown error occurred."
}
 

Request      

POST api/v1/base/settings/accounts/daily-limitation-types

Headers

Body Parameters

Update a daily limitation type.

requires authentication

This endpoint updates the active status of a specific daily limitation type.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/quidem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/quidem"
);

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

let body = {
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/quidem';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/quidem'
payload = {
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Updated successfully.",
    "data": {
        "id": 1,
        "Cmp_No": 101,
        "Jr_Ty": "General",
        "uuid": "550e8400-e29b-41d4-a716-446655440000",
        "Jrty_NmAr": "النوع العام",
        "Jrty_NmEn": "General Type",
        "active": true
    },
    "status": "200",
    "status_code": 200
}
 

Example response (404):


{
    "message": "Daily limitation type not found."
}
 

Request      

PUT api/v1/base/settings/accounts/daily-limitation-types/{dailyLimitationTypes}

PATCH api/v1/base/settings/accounts/daily-limitation-types/{dailyLimitationTypes}

Headers

URL Parameters

Body Parameters

Soft delete a daily limitation type.

requires authentication

This endpoint deactivates a specific daily limitation type by setting its active status to 0.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/quos" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/quos"
);

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 = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/quos';
$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 = 'http://wazen.test/api/v1/base/settings/accounts/daily-limitation-types/quos'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Deleted successfully."
}
 

Example response (422):


{
    "error": "Database error message.",
    "message": "An unknown error occurred."
}
 

Request      

DELETE api/v1/base/settings/accounts/daily-limitation-types/{dailyLimitationTypes}

Headers

URL Parameters

Branches

Branches Api

Remove the specified resource from storage.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/branches/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/branches/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/branches/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/branches/init-data'
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
x-request-id: 68e554dd-eec7-4e3c-9633-d0e8efa0817c
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/branches/init-data

Headers

List Branches.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/branches?page=1&per_page=15&company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 15,
    \"per_page\": 10,
    \"page\": 13
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/branches"
);

const params = {
    "page": "1",
    "per_page": "15",
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 15,
    "per_page": 10,
    "page": 13
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/branches';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'per_page' => '15',
            'company_no' => '123',
        ],
        'json' => [
            'company_no' => 15,
            'per_page' => 10,
            'page' => 13,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/branches'
payload = {
    "company_no": 15,
    "per_page": 10,
    "page": 13
}
params = {
  'page': '1',
  'per_page': '15',
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "id": 1,
            "no": 101,
            "name": "Main Branch",
            "name_ar": "الفرع الرئيسي",
            "name_en": "Main Branch",
            "company": {
                "id": 1,
                "company_no": 123,
                "name_ar": "شركة",
                "name_en": "Company"
            }
        }
    ],
    "message": "Branches list",
    "pagination": {
        "count": 1,
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1,
        "links": {}
    }
}
 

Request      

GET api/v1/base/settings/branches

Headers

Query Parameters

Body Parameters

Create Branch

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/branches" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"nameAr\": \"الفرع الرئيسي\",
    \"nameEn\": \"Main Branch\",
    \"longitude\": 46.6753,
    \"latitude\": 24.7136,
    \"address\": \"1234 Main St\",
    \"phone\": \"+966123456789\",
    \"clone\": true,
    \"clone_from_branch_id\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/branches"
);

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

let body = {
    "nameAr": "الفرع الرئيسي",
    "nameEn": "Main Branch",
    "longitude": 46.6753,
    "latitude": 24.7136,
    "address": "1234 Main St",
    "phone": "+966123456789",
    "clone": true,
    "clone_from_branch_id": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/branches';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'nameAr' => 'الفرع الرئيسي',
            'nameEn' => 'Main Branch',
            'longitude' => 46.6753,
            'latitude' => 24.7136,
            'address' => '1234 Main St',
            'phone' => '+966123456789',
            'clone' => true,
            'clone_from_branch_id' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/branches'
payload = {
    "nameAr": "الفرع الرئيسي",
    "nameEn": "Main Branch",
    "longitude": 46.6753,
    "latitude": 24.7136,
    "address": "1234 Main St",
    "phone": "+966123456789",
    "clone": true,
    "clone_from_branch_id": 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()

Example response (200):


{
    "status": "success",
    "data": {
        "id": 1,
        "no": 101,
        "name": "Main Branch",
        "name_ar": "الفرع الرئيسي",
        "name_en": "Main Branch",
        "company": {
            "id": 1,
            "company_no": 123,
            "name_ar": "شركة",
            "name_en": "Company"
        }
    },
    "message": "Branch created successfully"
}
 

Request      

POST api/v1/base/settings/branches

Headers

Body Parameters

Branch Details

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/branches/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/branches/1"
);

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 = 'http://wazen.test/api/v1/base/settings/branches/1';
$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 = 'http://wazen.test/api/v1/base/settings/branches/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "status": "success",
  "message": "Branch Details",
{
"id": 1,
"no": 101,
"name": "Main Branch",
"name_ar": "الفرع الرئيسي",
"name_en": "Main Branch",
"company": {
"id": 1,
"company_no": 123,
"name_ar": "شركة",
"name_en": "Company"
}
}
 

Request      

GET api/v1/base/settings/branches/{id}

Headers

URL Parameters

DELETE api/v1/base/settings/branches/{id}

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/branches/dolorem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/branches/dolorem"
);

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 = 'http://wazen.test/api/v1/base/settings/branches/dolorem';
$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 = 'http://wazen.test/api/v1/base/settings/branches/dolorem'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/branches/{id}

Headers

URL Parameters

Car Categories Management

API for managing car categories

Display a listing of the car categories.

requires authentication

Retrieves a list of car categories filtered by the company number.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-category?company_no=1&per_page=10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 16,
    \"per_page\": 3,
    \"page\": 13
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-category"
);

const params = {
    "company_no": "1",
    "per_page": "10",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 16,
    "per_page": 3,
    "page": 13
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '1',
            'per_page' => '10',
        ],
        'json' => [
            'company_no' => 16,
            'per_page' => 3,
            'page' => 13,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category'
payload = {
    "company_no": 16,
    "per_page": 3,
    "page": 13
}
params = {
  'company_no': '1',
  'per_page': '10',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "data": [
        {
            "id": 1,
            "Cmp_No": 1,
            "Carctg_NmAr": "الفئة 1",
            "Carctg_NmEn": "Category 1"
        }
    ]
}
 

Request      

GET api/v1/base/settings/setting-cars/car-category

Headers

Query Parameters

Body Parameters

Store a newly created car category in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-category" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Carctg_NmAr\": \"\\\"الفئة\\\"\",
    \"Carctg_NmEn\": \"\\\"Category\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-category"
);

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

let body = {
    "Carctg_NmAr": "\"الفئة\"",
    "Carctg_NmEn": "\"Category\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Carctg_NmAr' => '"الفئة"',
            'Carctg_NmEn' => '"Category"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category'
payload = {
    "Carctg_NmAr": "\"الفئة\"",
    "Carctg_NmEn": "\"Category\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):


{
    "status": true,
    "message": "Car category created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/car-category

Headers

Body Parameters

Update the specified car category in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-category/consequatur" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Carctg_NmAr\": \"\\\"الفئة\\\"\",
    \"Carctg_NmEn\": \"\\\"Category\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-category/consequatur"
);

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

let body = {
    "Carctg_NmAr": "\"الفئة\"",
    "Carctg_NmEn": "\"Category\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category/consequatur';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Carctg_NmAr' => '"الفئة"',
            'Carctg_NmEn' => '"Category"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category/consequatur'
payload = {
    "Carctg_NmAr": "\"الفئة\"",
    "Carctg_NmEn": "\"Category\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Car category updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-category/{carCategory}

PATCH api/v1/base/settings/setting-cars/car-category/{carCategory}

Headers

URL Parameters

Body Parameters

Remove the specified car category from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-category/dolorem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-category/dolorem"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category/dolorem';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category/dolorem'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Car category deleted successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-category/{carCategory}

Headers

URL Parameters

Print a journal row for the specified car category.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-category/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-category/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-category/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "<html of the printed journal row>"
}
 

Request      

GET api/v1/base/settings/setting-cars/car-category/print/{id}

Headers

URL Parameters

Car Models Management

API for managing car models

Get a listing of car models.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/models?company_no=1&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 19,
    \"per_page\": 7,
    \"page\": 4
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/models"
);

const params = {
    "company_no": "1",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 19,
    "per_page": 7,
    "page": 4
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/models';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '1',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 19,
            'per_page' => 7,
            'page' => 4,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/models'
payload = {
    "company_no": 19,
    "per_page": 7,
    "page": 4
}
params = {
  'company_no': '1',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "data": [
        {
            "id": 1,
            "CarModel_NmAr": "موديل سيارة",
            "CarModel_NmEn": "Car Model",
            "CarModel_Active": 1
        }
    ],
    "pagination": {
        "total": 10,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/models

Headers

Query Parameters

Body Parameters

Store a newly created car model in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/models" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"CarModel_NmAr\": \"\\\"موديل سيارة\\\"\",
    \"CarModel_NmEn\": \"\\\"Car Model\\\"\",
    \"CarModel_Active\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/models"
);

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

let body = {
    "CarModel_NmAr": "\"موديل سيارة\"",
    "CarModel_NmEn": "\"Car Model\"",
    "CarModel_Active": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/models';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'CarModel_NmAr' => '"موديل سيارة"',
            'CarModel_NmEn' => '"Car Model"',
            'CarModel_Active' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/models'
payload = {
    "CarModel_NmAr": "\"موديل سيارة\"",
    "CarModel_NmEn": "\"Car Model\"",
    "CarModel_Active": 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()

Example response (201):


{
    "status": true,
    "message": "Car model created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/models

Headers

Body Parameters

Update the specified car model in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/models/ipsum" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"CarModel_NmAr\": \"\\\"موديل سيارة\\\"\",
    \"CarModel_NmEn\": \"\\\"Car Model\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/models/ipsum"
);

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

let body = {
    "CarModel_NmAr": "\"موديل سيارة\"",
    "CarModel_NmEn": "\"Car Model\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/models/ipsum';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'CarModel_NmAr' => '"موديل سيارة"',
            'CarModel_NmEn' => '"Car Model"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/models/ipsum'
payload = {
    "CarModel_NmAr": "\"موديل سيارة\"",
    "CarModel_NmEn": "\"Car Model\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Car model updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/models/{colors}

PATCH api/v1/base/settings/setting-cars/models/{colors}

Headers

URL Parameters

Body Parameters

Remove the specified car model from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/models/ratione" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/models/ratione"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/models/ratione';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/models/ratione'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Car model deactivated successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/models/{colors}

Headers

URL Parameters

Print the journal row for the specified car model.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/models/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/models/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/models/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/models/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "<html of the printed journal row>"
}
 

Request      

GET api/v1/base/settings/setting-cars/models/print/{id}

Headers

URL Parameters

Get the list of available car models.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/models/get-car-models?Cmp_No=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/models/get-car-models"
);

const params = {
    "Cmp_No": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/models/get-car-models';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/models/get-car-models'
params = {
  'Cmp_No': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "categories": [
        {
            "CarModel_No": 1,
            "CarModel_NmAr": "موديل سيارة",
            "CarModel_NmEn": "Car Model"
        }
    ],
    "companyName": "شركة 1",
    "activityName": "نشاط الشركة"
}
 

Request      

POST api/v1/base/settings/setting-cars/models/get-car-models

Headers

Query Parameters

Car Rental

Classification Renters Management

Display a listing of the classification renters.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 14,
    \"per_page\": 12,
    \"page\": 7
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 14,
    "per_page": 12,
    "page": 7
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 14,
            'per_page' => 12,
            'page' => 7,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters'
payload = {
    "company_no": 14,
    "per_page": 12,
    "page": 7
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/car-rental/classification-renters

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/classification-renters

Headers

Body Parameters

Update the specified classification renter.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/expedita" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/expedita"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/expedita';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/expedita'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-rental/classification-renters/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/car-rental/classification-renters/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/velit" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/velit"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/velit';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/velit'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-rental/classification-renters/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/init-data?company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/classification-renters/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/classification-renters/init-data

Headers

Query Parameters

Display a listing of the classification renters.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 15,
    \"per_page\": 4,
    \"page\": 17
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 15,
    "per_page": 4,
    "page": 17
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 15,
            'per_page' => 4,
            'page' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters'
payload = {
    "company_no": 15,
    "per_page": 4,
    "page": 17
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/car-rental/types-contracts-renters

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/types-contracts-renters

Headers

Body Parameters

Update the specified classification renter.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/commodi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/commodi"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/commodi';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/commodi'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/quia" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/quia'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/init-data?company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/types-contracts-renters/init-data

Headers

Query Parameters

Display a listing of the classification renters.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"per_page\": 9,
    \"page\": 8
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 1,
    "per_page": 9,
    "page": 8
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 1,
            'per_page' => 9,
            'page' => 8,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters'
payload = {
    "company_no": 1,
    "per_page": 9,
    "page": 8
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/car-rental/categories-renters

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/categories-renters

Headers

Body Parameters

Update the specified classification renter.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/voluptatem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/voluptatem"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/voluptatem';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/voluptatem'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-rental/categories-renters/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/car-rental/categories-renters/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/rerum" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/rerum"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/rerum';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/rerum'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-rental/categories-renters/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/init-data?company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-renters/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/categories-renters/init-data

Headers

Query Parameters

Display a listing of the classification renters.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"per_page\": 6,
    \"page\": 14
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 1,
    "per_page": 6,
    "page": 14
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 1,
            'per_page' => 6,
            'page' => 14,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type'
payload = {
    "company_no": 1,
    "per_page": 6,
    "page": 14
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/car-rental/rental-type

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/rental-type

Headers

Body Parameters

Update the specified classification renter.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/ex" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/ex"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/ex';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/ex'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-rental/rental-type/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/car-rental/rental-type/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/saepe" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/saepe"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/saepe';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/saepe'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-rental/rental-type/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/init-data?company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/rental-type/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/rental-type/init-data

Headers

Query Parameters

Display a listing of the classification renters.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 7,
    \"per_page\": 19,
    \"page\": 8
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 7,
    "per_page": 19,
    "page": 8
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 7,
            'per_page' => 19,
            'page' => 8,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses'
payload = {
    "company_no": 7,
    "per_page": 19,
    "page": 8
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/car-rental/types-driving-licenses

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/types-driving-licenses

Headers

Body Parameters

Update the specified classification renter.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/qui" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/qui"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/qui';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/qui'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/ad" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/ad"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/ad';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/ad'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/init-data?company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/types-driving-licenses/init-data

Headers

Query Parameters

Display a listing of the classification renters.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 6,
    \"per_page\": 6,
    \"page\": 17
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 6,
    "per_page": 6,
    "page": 17
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 6,
            'per_page' => 6,
            'page' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode'
payload = {
    "company_no": 6,
    "per_page": 6,
    "page": 17
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/car-rental/car-mode

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/car-mode

Headers

Body Parameters

Update the specified classification renter.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/porro" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/porro"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/porro';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/porro'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-rental/car-mode/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/car-rental/car-mode/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/voluptatem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/voluptatem"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/voluptatem';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/voluptatem'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-rental/car-mode/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/init-data?company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/car-mode/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/car-mode/init-data

Headers

Query Parameters

Display a listing of the classification renters.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 3,
    \"per_page\": 10,
    \"page\": 9
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 3,
    "per_page": 10,
    "page": 9
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 3,
            'per_page' => 10,
            'page' => 9,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent'
payload = {
    "company_no": 3,
    "per_page": 10,
    "page": 9
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/car-rental/categories-cars-rent

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/categories-cars-rent

Headers

Body Parameters

Update the specified classification renter.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/et"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/et';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/et'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/autem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/autem"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/autem';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/autem'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/init-data?company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/categories-cars-rent/init-data

Headers

Query Parameters

Display a listing of the classification renters.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms?company_no=123&perPage=10&page=2" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 14,
    \"per_page\": 17,
    \"page\": 18
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 14,
    "per_page": 17,
    "page": 18
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 14,
            'per_page' => 17,
            'page' => 18,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms'
payload = {
    "company_no": 14,
    "per_page": 17,
    "page": 18
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms

Headers

Body Parameters

Update the specified classification renter.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/quas" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/quas"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/quas';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/quas'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/libero" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/libero"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/libero';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/libero'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/init-data?company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/setting-cars/car-rental/renters-penalties-terms/init-data

Headers

Query Parameters

Cars Management

API for managing car models and categories

Get all car models for a company.

requires authentication

Returns a list of car models for the specified company.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/get-models?Cmp_No=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/get-models"
);

const params = {
    "Cmp_No": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/get-models';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/get-models'
params = {
  'Cmp_No': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "models": [
        {
            "CarModel_No": 1,
            "name": "Car Model 1"
        }
    ]
}
 

Request      

POST api/v1/base/settings/setting-cars/cars/get-models

Headers

Query Parameters

Initialize the car model chart.

requires authentication

Prepares the chart structure for car models associated with a company.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/init-chart-model" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/init-chart-model"
);

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

let body = {
    "Cmp_No": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/init-chart-model';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/init-chart-model'
payload = {
    "Cmp_No": 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()

Example response (200):


{
    "status": "success",
    "message": "Chart initialized."
}
 

Request      

POST api/v1/base/settings/setting-cars/cars/init-chart-model

Headers

Body Parameters

Get the details of a specific car model.

requires authentication

Returns the details of a car model based on the provided model and company number.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/get-edit-model?Model_No=1&Cmp_No=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/get-edit-model"
);

const params = {
    "Model_No": "1",
    "Cmp_No": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/get-edit-model';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Model_No' => '1',
            'Cmp_No' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/get-edit-model'
params = {
  'Model_No': '1',
  'Cmp_No': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "model": {
        "CarModel_No": 1,
        "CarModel_NmAr": "موديل سيارة",
        "CarModel_NmEn": "Car Model"
    }
}
 

Request      

POST api/v1/base/settings/setting-cars/cars/get-edit-model

Headers

Query Parameters

Create a new car model structure.

requires authentication

Initializes a new car model structure and links it to a parent model if provided.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/create-new-model" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 1,
    \"Parent_Model\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/create-new-model"
);

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

let body = {
    "Cmp_No": 1,
    "Parent_Model": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/create-new-model';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 1,
            'Parent_Model' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/create-new-model'
payload = {
    "Cmp_No": 1,
    "Parent_Model": 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()

Example response (201):


{
    "status": "success",
    "message": "New car model created."
}
 

Request      

POST api/v1/base/settings/setting-cars/cars/create-new-model

Headers

Body Parameters

Import car models.

requires authentication

Imports a set of car models into the system.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/cars/import-model" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"models\": [
        {
            \"Model_No\": 1,
            \"Model_NmAr\": \"موديل 1\",
            \"Model_NmEn\": \"Model 1\"
        }
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/import-model"
);

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

let body = {
    "models": [
        {
            "Model_No": 1,
            "Model_NmAr": "موديل 1",
            "Model_NmEn": "Model 1"
        }
    ]
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/import-model';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
            $o = [
                clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
            ],
            null,
            [
                'stdClass' => [
                    'Model_No' => [
                        1,
                    ],
                    'Model_NmAr' => [
                        'موديل 1',
                    ],
                    'Model_NmEn' => [
                        'Model 1',
                    ],
                ],
            ],
            [
                'models' => [
                    $o[0],
                ],
            ],
            []
        ),
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/import-model'
payload = {
    "models": [
        {
            "Model_No": 1,
            "Model_NmAr": "موديل 1",
            "Model_NmEn": "Model 1"
        }
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "message": "Models imported successfully."
}
 

Request      

GET api/v1/base/settings/setting-cars/cars/import-model

Headers

Body Parameters

Store multiple car models.

requires authentication

Stores multiple car models in the system.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/store-model" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"models\": [
        {
            \"Model_No\": 1,
            \"Model_NmAr\": \"موديل 1\",
            \"Model_NmEn\": \"Model 1\"
        }
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/store-model"
);

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

let body = {
    "models": [
        {
            "Model_No": 1,
            "Model_NmAr": "موديل 1",
            "Model_NmEn": "Model 1"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/store-model';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
            $o = [
                clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
            ],
            null,
            [
                'stdClass' => [
                    'Model_No' => [
                        1,
                    ],
                    'Model_NmAr' => [
                        'موديل 1',
                    ],
                    'Model_NmEn' => [
                        'Model 1',
                    ],
                ],
            ],
            [
                'models' => [
                    $o[0],
                ],
            ],
            []
        ),
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/store-model'
payload = {
    "models": [
        {
            "Model_No": 1,
            "Model_NmAr": "موديل 1",
            "Model_NmEn": "Model 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()

Example response (201):


{
    "status": "success",
    "message": "Car models stored successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/cars/store-model

Headers

Body Parameters

Get the account center for a car model.

requires authentication

Retrieves account center details for a specific car model.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/get-account-cost?Cmp_No=1&Model_No=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/get-account-cost"
);

const params = {
    "Cmp_No": "1",
    "Model_No": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/get-account-cost';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '1',
            'Model_No' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/get-account-cost'
params = {
  'Cmp_No': '1',
  'Model_No': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "newChartAcc": 123456,
    "newCostAcc": 123456,
    "newAssetAcc": 123456
}
 

Request      

POST api/v1/base/settings/setting-cars/cars/get-account-cost

Headers

Query Parameters

Get all car models and categories.

requires authentication

Retrieves a list of car models and categories associated with the current company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/cars" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/cars';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/cars'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "models": [
        {
            "CarModel_No": 1,
            "name": "Car Model 1"
        }
    ],
    "categories": [
        {
            "Carctg_No": 1,
            "name": "Category 1"
        }
    ],
    "title": "Car Models and Categories"
}
 

Request      

GET api/v1/base/settings/setting-cars/cars

Headers

Store a new car model.

requires authentication

Creates a new car model and associates it with a company. The car model is stored in the database.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 1,
    \"Model_NmAr\": \"\\\"موديل سيارة\\\"\",
    \"Model_NmEn\": \"\\\"Car Model\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars"
);

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

let body = {
    "Cmp_No": 1,
    "Model_NmAr": "\"موديل سيارة\"",
    "Model_NmEn": "\"Car Model\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 1,
            'Model_NmAr' => '"موديل سيارة"',
            'Model_NmEn' => '"Car Model"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars'
payload = {
    "Cmp_No": 1,
    "Model_NmAr": "\"موديل سيارة\"",
    "Model_NmEn": "\"Car Model\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):


{
    "status": "success",
    "message": "Car model created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/cars

Headers

Body Parameters

Update an existing car model.

requires authentication

Modifies the details of an existing car model based on the provided model number.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/praesentium" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Model_No\": 1,
    \"Model_NmAr\": \"\\\"موديل سيارة\\\"\",
    \"Model_NmEn\": \"\\\"Car Model\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/praesentium"
);

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

let body = {
    "Model_No": 1,
    "Model_NmAr": "\"موديل سيارة\"",
    "Model_NmEn": "\"Car Model\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/praesentium';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Model_No' => 1,
            'Model_NmAr' => '"موديل سيارة"',
            'Model_NmEn' => '"Car Model"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/praesentium'
payload = {
    "Model_No": 1,
    "Model_NmAr": "\"موديل سيارة\"",
    "Model_NmEn": "\"Car Model\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "message": "Car model updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/cars/{id}

PATCH api/v1/base/settings/setting-cars/cars/{id}

Headers

URL Parameters

Body Parameters

Delete a specific car model.

requires authentication

Removes a car model from the database based on the provided ID.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/cars/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/cars/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "message": "Car model deleted successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/cars/{id}

Headers

URL Parameters

Chart Clone Management

API for managing chart clones and tree structures

Display a listing of resources.

requires authentication

Retrieves a list of resources, including tree data and initialization information.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/chart?id=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/chart"
);

const params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/chart';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'id' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/chart'
params = {
  'id': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "data": {
    "id": null,
    "initData": {
      "categories": [...],
      "models": [...]
    },
    "treeData": [...]
  }
}
 

Request      

GET api/v1/base/settings/setting-cars/chart

Headers

Query Parameters

Store a newly created resource.

requires authentication

Stores a new chart clone resource in the database.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/chart" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 1,
    \"Acc_No\": 12345,
    \"Acc_NmAr\": \"\\\"الحساب\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/chart"
);

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

let body = {
    "Cmp_No": 1,
    "Acc_No": 12345,
    "Acc_NmAr": "\"الحساب\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/chart';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 1,
            'Acc_No' => 12345,
            'Acc_NmAr' => '"الحساب"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/chart'
payload = {
    "Cmp_No": 1,
    "Acc_No": 12345,
    "Acc_NmAr": "\"الحساب\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):


{
  "success": true,
  "treeData": [...]
}
 

Request      

POST api/v1/base/settings/setting-cars/chart

Headers

Body Parameters

Show a specific resource.

requires authentication

Retrieves detailed information for a specific chart clone.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/chart/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/chart/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/chart/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/chart/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "success": true,
  "output": "<HTML of the resource>",
  "thing": {...}
}
 

Request      

GET api/v1/base/settings/setting-cars/chart/{id}

Headers

URL Parameters

Update an existing resource.

requires authentication

Updates the specified chart clone in storage.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/chart/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Acc_No\": 12345,
    \"Acc_NmAr\": \"\\\"الحساب\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/chart/1"
);

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

let body = {
    "Acc_No": 12345,
    "Acc_NmAr": "\"الحساب\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/chart/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Acc_No' => 12345,
            'Acc_NmAr' => '"الحساب"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/chart/1'
payload = {
    "Acc_No": 12345,
    "Acc_NmAr": "\"الحساب\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
  "success": true,
  "treeData": [...]
}
 

Request      

PUT api/v1/base/settings/setting-cars/chart/{id}

PATCH api/v1/base/settings/setting-cars/chart/{id}

Headers

URL Parameters

Body Parameters

Delete a resource.

requires authentication

Deletes a specific chart clone from the database.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/chart/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/chart/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/chart/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/chart/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
  "success": true,
  "treeData": [...]
}
 

Request      

DELETE api/v1/base/settings/setting-cars/chart/{id}

Headers

URL Parameters

Get the categories tree.

requires authentication

Retrieves a tree structure of categories associated with the company.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/chart/get-tree?Cmp_No=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/chart/get-tree"
);

const params = {
    "Cmp_No": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/chart/get-tree';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/chart/get-tree'
params = {
  'Cmp_No': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "success": true,
    "treeData": [
        {
            "id": "1",
            "text": "Category 1",
            "children": true
        }
    ]
}
 

Request      

POST api/v1/base/settings/setting-cars/chart/get-tree

Headers

Query Parameters

Cities

Cities API

Generate PDF of cities and states

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/cities/pdf" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 5
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/cities/pdf"
);

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

let body = {
    "Cmp_No": 5
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/cities/pdf';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/cities/pdf'
payload = {
    "Cmp_No": 5
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


application/pdf
 

Request      

GET api/v1/base/settings/cities/pdf

Headers

Body Parameters

Initialize data for cities and states.

requires authentication

Loads essential data required for setting up and managing cities and states, including lists of cities, account types, city types, and branches associated with the specified company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/cities/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 4
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/cities/init-data"
);

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

let body = {
    "company_no": 4
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/cities/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 4,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/cities/init-data'
payload = {
    "company_no": 4
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
 "initData": {
     "cities": [
         {
             "Level_No": 1,
             "name": "City Example",
             ...
         }
     ],
     "accountTypes": [
         {
             "value": "account_type_value",
             "key": "account_type_key",
             "description": "Account type description"
         }
     ],
     "cityTypes": [
         {
             "value": "city_type_value",
             "key": "city_type_key",
             "description": "City type description"
         }
     ],
     "branches": [
         {
             "Brn_No": 1,
             "name": "Branch Name"
         }
     ],
     "countZeros": 2
 }
}
 

Request      

GET api/v1/base/settings/cities/init-data

Headers

Body Parameters

Restore cities and regions for a given city.

requires authentication

This endpoint restores cities and regions for the specified city number if no child cities exist.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/cities/restoreCitiesRegions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"city_no\": 5
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/cities/restoreCitiesRegions"
);

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

let body = {
    "city_no": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/cities/restoreCitiesRegions';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'city_no' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/cities/restoreCitiesRegions'
payload = {
    "city_no": 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()

Example response (200):


{
    "status": 200,
    "message": "Regions and cities restored successfully"
}
 

Example response (400):


{
    "status": 400,
    "message": "This country does not have any regions or cities"
}
 

Example response (400):


{
    "status": 400,
    "message": "Country must be empty to make restoration"
}
 

Example response (400):


{
    "status": 400,
    "message": "You must add this country first"
}
 

Request      

POST api/v1/base/settings/cities/restoreCitiesRegions

Headers

Body Parameters

Retrieve a list of cities with their children.

requires authentication

This endpoint returns a list of cities filtered by company number and their child cities.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/cities?company_no=5" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/cities"
);

const params = {
    "company_no": "5",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/cities';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '5',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/cities'
params = {
  'company_no': '5',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Cities list",
    "data": [
        {
            "id": 1,
            "name": "City Example",
            "children": [
                {
                    "id": 2,
                    "name": "Child City Example"
                }
            ]
        }
    ]
}
 

Example response (400):


{
    "status": 0,
    "message": "No cities found for the given company."
}
 

Request      

GET api/v1/base/settings/cities

Headers

Query Parameters

Store a new city or state

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/cities" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"City_No\": 19,
    \"City_NmAr\": \"esse\",
    \"City_NmEn\": \"soluta\",
    \"Cty_typ\": 12,
    \"Level_No\": 19
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/cities"
);

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

let body = {
    "City_No": 19,
    "City_NmAr": "esse",
    "City_NmEn": "soluta",
    "Cty_typ": 12,
    "Level_No": 19
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/cities';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'City_No' => 19,
            'City_NmAr' => 'esse',
            'City_NmEn' => 'soluta',
            'Cty_typ' => 12,
            'Level_No' => 19,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/cities'
payload = {
    "City_No": 19,
    "City_NmAr": "esse",
    "City_NmEn": "soluta",
    "Cty_typ": 12,
    "Level_No": 19
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

POST api/v1/base/settings/cities

Headers

Body Parameters

Update a city or state

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/cities/quia" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"City_No\": 14,
    \"City_NmAr\": \"velit\",
    \"City_NmEn\": \"quos\",
    \"Cty_typ\": 7,
    \"Level_No\": 4
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/cities/quia"
);

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

let body = {
    "City_No": 14,
    "City_NmAr": "velit",
    "City_NmEn": "quos",
    "Cty_typ": 7,
    "Level_No": 4
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/cities/quia';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'City_No' => 14,
            'City_NmAr' => 'velit',
            'City_NmEn' => 'quos',
            'Cty_typ' => 7,
            'Level_No' => 4,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/cities/quia'
payload = {
    "City_No": 14,
    "City_NmAr": "velit",
    "City_NmEn": "quos",
    "Cty_typ": 7,
    "Level_No": 4
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

PUT api/v1/base/settings/cities/{cities}

PATCH api/v1/base/settings/cities/{cities}

Headers

URL Parameters

Body Parameters

Delete a city or state

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/cities/laudantium" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/cities/laudantium"
);

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 = 'http://wazen.test/api/v1/base/settings/cities/laudantium';
$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 = 'http://wazen.test/api/v1/base/settings/cities/laudantium'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "message": "Cannot delete because it contains other areas."
}
 

Request      

DELETE api/v1/base/settings/cities/{cities}

Headers

URL Parameters

Classification Transport Management

API for managing customs clearance and transport classifications

Get a listing of the classification transport records.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport?company_no=1&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 10,
    \"per_page\": 4,
    \"page\": 19
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport"
);

const params = {
    "company_no": "1",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 10,
    "per_page": 4,
    "page": 19
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '1',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 10,
            'per_page' => 4,
            'page' => 19,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport'
payload = {
    "company_no": 10,
    "per_page": 4,
    "page": 19
}
params = {
  'company_no': '1',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "data": [
        {
            "ID_No": 1,
            "LockupCustoms_DscAR": "تصنيف النقل",
            "LockupCustoms_DscEN": "Transport Classification",
            "LockupCustoms_Actv": 1
        }
    ],
    "pagination": {
        "total": 10,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/classification-transport

Headers

Query Parameters

Body Parameters

Store a newly created classification transport record in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"تصنيف النقل\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Transport Classification\\\"\",
    \"LockupCustoms_Actv\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport"
);

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

let body = {
    "LockupCustoms_DscAR": "\"تصنيف النقل\"",
    "LockupCustoms_DscEN": "\"Transport Classification\"",
    "LockupCustoms_Actv": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"تصنيف النقل"',
            'LockupCustoms_DscEN' => '"Transport Classification"',
            'LockupCustoms_Actv' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport'
payload = {
    "LockupCustoms_DscAR": "\"تصنيف النقل\"",
    "LockupCustoms_DscEN": "\"Transport Classification\"",
    "LockupCustoms_Actv": 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()

Example response (201):


{
    "status": true,
    "message": "Classification transport created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/classification-transport

Headers

Body Parameters

Update the specified classification transport record in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/beatae" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"تصنيف النقل\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Transport Classification\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/beatae"
);

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

let body = {
    "LockupCustoms_DscAR": "\"تصنيف النقل\"",
    "LockupCustoms_DscEN": "\"Transport Classification\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/beatae';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"تصنيف النقل"',
            'LockupCustoms_DscEN' => '"Transport Classification"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/beatae'
payload = {
    "LockupCustoms_DscAR": "\"تصنيف النقل\"",
    "LockupCustoms_DscEN": "\"Transport Classification\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Classification transport updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/customs-clearance/classification-transport/{classificationTransport}

PATCH api/v1/base/settings/setting-cars/customs-clearance/classification-transport/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification transport record from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/velit" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/velit"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/velit';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/velit'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Classification transport deactivated successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/customs-clearance/classification-transport/{classificationTransport}

Headers

URL Parameters

Print the journal row for the specified classification transport record.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "<html of the printed journal row>"
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/classification-transport/print/{id}

Headers

URL Parameters

Initialize data for classification transport.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/init-data?Cmp_No=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/init-data"
);

const params = {
    "Cmp_No": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/classification-transport/init-data'
params = {
  'Cmp_No': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "categories": [
        {
            "LockupCustoms_No": 1,
            "LockupCustoms_DscAR": "تصنيف النقل",
            "LockupCustoms_DscEN": "Transport Classification"
        }
    ],
    "companyName": "شركة 1",
    "activityName": "نشاط الشركة"
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/classification-transport/init-data

Headers

Query Parameters

Colors

Company Colors Management API

Initialize data for company colors.

requires authentication

This endpoint retrieves available colors that are not associated with the current company and generates a new ID for the next color.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/colors/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/colors/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/colors/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/colors/init-data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
 "initData": {
     "colors": [
         {
             "Color_No": 2,
             "Color_NmAr": "أخضر",
             "Color_NmEn": "Green"
         },
         ...
     ],
     "idGenerate": 3
 }
}
 

Request      

GET api/v1/base/settings/colors/init-data

Headers

Retrieve a list of company colors.

requires authentication

This endpoint retrieves a paginated list of colors for the specified company. It supports filtering and searching based on color number and names in Arabic and English.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/colors" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"per_page\": 12,
    \"page\": 10,
    \"query\": \"enim\",
    \"Color_No\": \"quia\",
    \"Color_NmAr\": \"corrupti\",
    \"Color_NmEn\": \"qui\",
    \"sort\": \"ut\",
    \"perPage\": 13
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/colors"
);

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

let body = {
    "company_no": 1,
    "per_page": 12,
    "page": 10,
    "query": "enim",
    "Color_No": "quia",
    "Color_NmAr": "corrupti",
    "Color_NmEn": "qui",
    "sort": "ut",
    "perPage": 13
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/colors';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 1,
            'per_page' => 12,
            'page' => 10,
            'query' => 'enim',
            'Color_No' => 'quia',
            'Color_NmAr' => 'corrupti',
            'Color_NmEn' => 'qui',
            'sort' => 'ut',
            'perPage' => 13,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/colors'
payload = {
    "company_no": 1,
    "per_page": 12,
    "page": 10,
    "query": "enim",
    "Color_No": "quia",
    "Color_NmAr": "corrupti",
    "Color_NmEn": "qui",
    "sort": "ut",
    "perPage": 13
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
 "status": 1,
 "message": "CmpColors list",
 "data": [
     {
         "id": 1,
         "Cmp_No": 123,
         "Color_No": 1,
         "Color_NmAr": "أحمر",
         "Color_NmEn": "Red",
         "Color_Active": true
     },
     ...
 ],
 "pagination": {
     "total": 100,
     "per_page": 15,
     "current_page": 1,
     "last_page": 7,
     "from": 1,
     "to": 15
 }
}
 

Example response (422):


{
    "status": 0,
    "message": "Validation error message"
}
 

Request      

GET api/v1/base/settings/colors

Headers

Body Parameters

Store a new color or restore existing colors.

requires authentication

This endpoint allows for the addition of new colors or the restoration of existing colors based on the provided data.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/colors" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"restore\": true,
    \"data\": [
        \"optio\"
    ],
    \"Color_NmAr\": \"\\\"أزرق\\\"\",
    \"Color_NmEn\": \"\\\"Blue\\\"\",
    \"Color_Active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/colors"
);

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

let body = {
    "company_no": 1,
    "restore": true,
    "data": [
        "optio"
    ],
    "Color_NmAr": "\"أزرق\"",
    "Color_NmEn": "\"Blue\"",
    "Color_Active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/colors';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 1,
            'restore' => true,
            'data' => [
                'optio',
            ],
            'Color_NmAr' => '"أزرق"',
            'Color_NmEn' => '"Blue"',
            'Color_Active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/colors'
payload = {
    "company_no": 1,
    "restore": true,
    "data": [
        "optio"
    ],
    "Color_NmAr": "\"أزرق\"",
    "Color_NmEn": "\"Blue\"",
    "Color_Active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Color added successfully",
    "data": {
        "Color_No": 2,
        "Color_NmAr": "أزرق",
        "Color_NmEn": "Blue",
        "Color_Active": true
    }
}
 

Example response (422):


{
    "status": 0,
    "message": "The Color_NmAr field is required."
}
 

Request      

POST api/v1/base/settings/colors

Headers

Body Parameters

Update a company color.

requires authentication

This endpoint updates the details of a specific company color.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/colors/optio" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Color_NmAr\": \"qui\",
    \"Color_NmEn\": \"earum\",
    \"Color_Active\": false
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/colors/optio"
);

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

let body = {
    "Color_NmAr": "qui",
    "Color_NmEn": "earum",
    "Color_Active": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/colors/optio';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Color_NmAr' => 'qui',
            'Color_NmEn' => 'earum',
            'Color_Active' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/colors/optio'
payload = {
    "Color_NmAr": "qui",
    "Color_NmEn": "earum",
    "Color_Active": false
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Updated successfully",
    "data": {
        "id": 1,
        "Cmp_No": 123,
        "Color_No": 1,
        "Color_NmAr": "أحمر",
        "Color_NmEn": "Red",
        "Color_Active": true
    }
}
 

Example response (422):


{
    "status": 0,
    "message": "Validation error message"
}
 

Request      

PUT api/v1/base/settings/colors/{colors}

PATCH api/v1/base/settings/colors/{colors}

Headers

URL Parameters

Body Parameters

Soft delete a company color.

requires authentication

This endpoint marks a specific company color as inactive (soft delete).

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/colors/quos" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/colors/quos"
);

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 = 'http://wazen.test/api/v1/base/settings/colors/quos';
$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 = 'http://wazen.test/api/v1/base/settings/colors/quos'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Successfully deleted"
}
 

Example response (422):


{
    "error": "Error message",
    "message": "An unknown error occurred"
}
 

Request      

DELETE api/v1/base/settings/colors/{colors}

Headers

URL Parameters

CompanySettings

CompanySettings Api

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/company-settings/itaque" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"dolorem\",
    \"Brn_No\": \"et\",
    \"Period_SubNo\": 12,
    \"Period_No\": 7,
    \"Period_NmAr\": \"elrii\",
    \"Period_NmEn\": \"bwmfepailsmiaedbe\",
    \"Start_Time\": \"voluptate\",
    \"End_Time\": \"aspernatur\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/company-settings/itaque"
);

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

let body = {
    "Cmp_No": "dolorem",
    "Brn_No": "et",
    "Period_SubNo": 12,
    "Period_No": 7,
    "Period_NmAr": "elrii",
    "Period_NmEn": "bwmfepailsmiaedbe",
    "Start_Time": "voluptate",
    "End_Time": "aspernatur"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/company-settings/itaque';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'dolorem',
            'Brn_No' => 'et',
            'Period_SubNo' => 12,
            'Period_No' => 7,
            'Period_NmAr' => 'elrii',
            'Period_NmEn' => 'bwmfepailsmiaedbe',
            'Start_Time' => 'voluptate',
            'End_Time' => 'aspernatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/company-settings/itaque'
payload = {
    "Cmp_No": "dolorem",
    "Brn_No": "et",
    "Period_SubNo": 12,
    "Period_No": 7,
    "Period_NmAr": "elrii",
    "Period_NmEn": "bwmfepailsmiaedbe",
    "Start_Time": "voluptate",
    "End_Time": "aspernatur"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request      

PUT api/v1/base/settings/company-settings/{id}

PATCH api/v1/base/settings/company-settings/{id}

Headers

URL Parameters

Body Parameters

Container Classification Management

API for managing container classifications in customs clearance

Get a listing of the container classifications.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification?company_no=1&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 10,
    \"per_page\": 15,
    \"page\": 5
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification"
);

const params = {
    "company_no": "1",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 10,
    "per_page": 15,
    "page": 5
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '1',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 10,
            'per_page' => 15,
            'page' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification'
payload = {
    "company_no": 10,
    "per_page": 15,
    "page": 5
}
params = {
  'company_no': '1',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "data": [
        {
            "ID_No": 1,
            "LockupCustoms_DscAR": "تصنيف الحاوية",
            "LockupCustoms_DscEN": "Container Classification",
            "LockupCustoms_Actv": 1
        }
    ],
    "pagination": {
        "total": 10,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/container-classification

Headers

Query Parameters

Body Parameters

Store a newly created container classification record in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"تصنيف الحاوية\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Container Classification\\\"\",
    \"LockupCustoms_Actv\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification"
);

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

let body = {
    "LockupCustoms_DscAR": "\"تصنيف الحاوية\"",
    "LockupCustoms_DscEN": "\"Container Classification\"",
    "LockupCustoms_Actv": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"تصنيف الحاوية"',
            'LockupCustoms_DscEN' => '"Container Classification"',
            'LockupCustoms_Actv' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification'
payload = {
    "LockupCustoms_DscAR": "\"تصنيف الحاوية\"",
    "LockupCustoms_DscEN": "\"Container Classification\"",
    "LockupCustoms_Actv": 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()

Example response (201):


{
    "status": true,
    "message": "Container classification created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/container-classification

Headers

Body Parameters

Update the specified container classification record in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/enim" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"تصنيف الحاوية\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Container Classification\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/enim"
);

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

let body = {
    "LockupCustoms_DscAR": "\"تصنيف الحاوية\"",
    "LockupCustoms_DscEN": "\"Container Classification\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/enim';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"تصنيف الحاوية"',
            'LockupCustoms_DscEN' => '"Container Classification"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/enim'
payload = {
    "LockupCustoms_DscAR": "\"تصنيف الحاوية\"",
    "LockupCustoms_DscEN": "\"Container Classification\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Container classification updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/customs-clearance/container-classification/{containerClassification}

PATCH api/v1/base/settings/setting-cars/customs-clearance/container-classification/{containerClassification}

Headers

URL Parameters

Body Parameters

Remove the specified container classification record from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/dicta" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/dicta"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/dicta';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/dicta'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Container classification deactivated successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/customs-clearance/container-classification/{containerClassification}

Headers

URL Parameters

Print the journal row for the specified container classification record.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "<html of the printed journal row>"
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/container-classification/print/{id}

Headers

URL Parameters

Initialize data for container classification.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/init-data?Cmp_No=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/init-data"
);

const params = {
    "Cmp_No": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-classification/init-data'
params = {
  'Cmp_No': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "categories": [
        {
            "LockupCustoms_No": 1,
            "LockupCustoms_DscAR": "تصنيف الحاوية",
            "LockupCustoms_DscEN": "Container Classification"
        }
    ],
    "companyName": "شركة 1",
    "activityName": "نشاط الشركة"
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/container-classification/init-data

Headers

Query Parameters

Container Types Management

API for managing container types in customs clearance

Get a listing of the container types.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types?company_no=1&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 2,
    \"per_page\": 3,
    \"page\": 17
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types"
);

const params = {
    "company_no": "1",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 2,
    "per_page": 3,
    "page": 17
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '1',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 2,
            'per_page' => 3,
            'page' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types'
payload = {
    "company_no": 2,
    "per_page": 3,
    "page": 17
}
params = {
  'company_no': '1',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "data": [
        {
            "ID_No": 1,
            "LockupCustoms_DscAR": "نوع الحاوية",
            "LockupCustoms_DscEN": "Container Type",
            "LockupCustoms_Actv": 1
        }
    ],
    "pagination": {
        "total": 10,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/container-types

Headers

Query Parameters

Body Parameters

Store a newly created container type record in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"نوع الحاوية\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Container Type\\\"\",
    \"LockupCustoms_Actv\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types"
);

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

let body = {
    "LockupCustoms_DscAR": "\"نوع الحاوية\"",
    "LockupCustoms_DscEN": "\"Container Type\"",
    "LockupCustoms_Actv": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"نوع الحاوية"',
            'LockupCustoms_DscEN' => '"Container Type"',
            'LockupCustoms_Actv' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types'
payload = {
    "LockupCustoms_DscAR": "\"نوع الحاوية\"",
    "LockupCustoms_DscEN": "\"Container Type\"",
    "LockupCustoms_Actv": 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()

Example response (201):


{
    "status": true,
    "message": "Container type created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/container-types

Headers

Body Parameters

Update the specified container type record in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/sit" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"نوع الحاوية\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Container Type\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/sit"
);

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

let body = {
    "LockupCustoms_DscAR": "\"نوع الحاوية\"",
    "LockupCustoms_DscEN": "\"Container Type\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/sit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"نوع الحاوية"',
            'LockupCustoms_DscEN' => '"Container Type"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/sit'
payload = {
    "LockupCustoms_DscAR": "\"نوع الحاوية\"",
    "LockupCustoms_DscEN": "\"Container Type\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Container type updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/customs-clearance/container-types/{containerTypes}

PATCH api/v1/base/settings/setting-cars/customs-clearance/container-types/{containerTypes}

Headers

URL Parameters

Body Parameters

Remove the specified container type record from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/qui" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/qui"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/qui';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/qui'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Container type deactivated successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/customs-clearance/container-types/{containerTypes}

Headers

URL Parameters

Print the journal row for the specified container type record.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "<html of the printed journal row>"
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/container-types/print/{id}

Headers

URL Parameters

Initialize data for container type.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/init-data?Cmp_No=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/init-data"
);

const params = {
    "Cmp_No": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/container-types/init-data'
params = {
  'Cmp_No': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "categories": [
        {
            "LockupCustoms_No": 1,
            "LockupCustoms_DscAR": "نوع الحاوية",
            "LockupCustoms_DscEN": "Container Type"
        }
    ],
    "companyName": "شركة 1",
    "activityName": "نشاط الشركة"
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/container-types/init-data

Headers

Query Parameters

Countries

Countries API

Initialize country data.

requires authentication

Fetch the necessary data for initializing country settings.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/countries/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 123
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/countries/init-data"
);

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

let body = {
    "company_no": 123
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/countries/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 123,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/countries/init-data'
payload = {
    "company_no": 123
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "countries": [
        {
            "id": 1,
            "Cntry_NmAr": "الولايات المتحدة",
            "Cntry_NmEn": "United States"
        }
    ],
    "countriesInCompany": [
        {
            "id": 2,
            "Cntry_NmAr": "المملكة العربية السعودية",
            "Cntry_NmEn": "Saudi Arabia"
        }
    ]
}
 

Request      

GET api/v1/base/settings/countries/init-data

Headers

Body Parameters

Create a new country.

requires authentication

This endpoint creates a new country record for the company.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/countries" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": {
        \"country_code\": \"US\",
        \"Cntry_NmAr\": \"الولايات المتحدة\",
        \"Cntry_NmEn\": \"United States\"
    }
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/countries"
);

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

let body = {
    "data": {
        "country_code": "US",
        "Cntry_NmAr": "الولايات المتحدة",
        "Cntry_NmEn": "United States"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/countries';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
            $o = [
                clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
            ],
            null,
            [
                'stdClass' => [
                    'country_code' => [
                        'US',
                    ],
                    'Cntry_NmAr' => [
                        'الولايات المتحدة',
                    ],
                    'Cntry_NmEn' => [
                        'United States',
                    ],
                ],
            ],
            [
                'data' => $o[0],
            ],
            []
        ),
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/countries'
payload = {
    "data": {
        "country_code": "US",
        "Cntry_NmAr": "الولايات المتحدة",
        "Cntry_NmEn": "United States"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Country created successfully."
}
 

Request      

POST api/v1/base/settings/countries

Headers

Body Parameters

Update an existing country.

requires authentication

Update the details of a specific country.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/countries/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"data\": {
        \"Cntry_NmAr\": \"الولايات المتحدة\",
        \"Cntry_NmEn\": \"United States\",
        \"country_code\": \"US\"
    }
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/countries/1"
);

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

let body = {
    "data": {
        "Cntry_NmAr": "الولايات المتحدة",
        "Cntry_NmEn": "United States",
        "country_code": "US"
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/countries/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
            $o = [
                clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
            ],
            null,
            [
                'stdClass' => [
                    'Cntry_NmAr' => [
                        'الولايات المتحدة',
                    ],
                    'Cntry_NmEn' => [
                        'United States',
                    ],
                    'country_code' => [
                        'US',
                    ],
                ],
            ],
            [
                'data' => $o[0],
            ],
            []
        ),
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/countries/1'
payload = {
    "data": {
        "Cntry_NmAr": "الولايات المتحدة",
        "Cntry_NmEn": "United States",
        "country_code": "US"
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Country updated successfully."
}
 

Request      

PUT api/v1/base/settings/countries/{id}

PATCH api/v1/base/settings/countries/{id}

Headers

URL Parameters

Body Parameters

Delete a country.

requires authentication

Remove a country record from the system.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/countries/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/countries/1"
);

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 = 'http://wazen.test/api/v1/base/settings/countries/1';
$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 = 'http://wazen.test/api/v1/base/settings/countries/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Country deleted successfully."
}
 

Example response (400):


{
    "message": "Cannot delete country as it has associated records."
}
 

Request      

DELETE api/v1/base/settings/countries/{id}

Headers

URL Parameters

Currencies

Currencies API

Initialize data for cities and states.

requires authentication

Load initial data required for setting up and managing cities and states, including active currencies not associated with the specified company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/currencies/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 5
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/currencies/init-data"
);

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

let body = {
    "company_no": 5
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/currencies/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/currencies/init-data'
payload = {
    "company_no": 5
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
 "initData": {
     "currencies": [
         {
             "id": 1,
             "Curncy_No": "USD",
             "Curncy_Actv": 1,
             // additional currency fields
         },
         {
             "id": 2,
             "Curncy_No": "EUR",
             "Curncy_Actv": 1,
             // additional currency fields
         }
     ]
 }
}
 

Request      

GET api/v1/base/settings/currencies/init-data

Headers

Body Parameters

Display a listing of currencies

requires authentication

Get a list of all currencies associated with the company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/currencies?company_no=6&per_page=3&page=4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"per_page\": 13,
    \"page\": 20
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/currencies"
);

const params = {
    "company_no": "6",
    "per_page": "3",
    "page": "4",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 1,
    "per_page": 13,
    "page": 20
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/currencies';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '6',
            'per_page' => '3',
            'page' => '4',
        ],
        'json' => [
            'company_no' => 1,
            'per_page' => 13,
            'page' => 20,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/currencies'
payload = {
    "company_no": 1,
    "per_page": 13,
    "page": 20
}
params = {
  'company_no': '6',
  'per_page': '3',
  'page': '4',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "id": 1,
            "Curncy_NmAr": "الدولار",
            "Curncy_NmEn": "Dollar",
            "Curncy_Rate": 3.75,
            "Curncy_Code": "USD"
        }
    ],
    "pagination": {
        "total": 10,
        "count": 1,
        "per_page": 15,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/currencies

Headers

Query Parameters

Body Parameters

Store a newly created currency

requires authentication

Create a new currency record for the company.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/currencies" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"companyNumber\": 17,
    \"data\": [
        {
            \"Curncy_NmAr\": \"دولار\",
            \"Curncy_NmEn\": \"Dollar\",
            \"Curncy_Rate\": 3.75,
            \"Curncy_Code\": \"USD\",
            \"currencyId\": 1
        }
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/currencies"
);

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

let body = {
    "companyNumber": 17,
    "data": [
        {
            "Curncy_NmAr": "دولار",
            "Curncy_NmEn": "Dollar",
            "Curncy_Rate": 3.75,
            "Curncy_Code": "USD",
            "currencyId": 1
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/currencies';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
            $o = [
                clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
            ],
            null,
            [
                'stdClass' => [
                    'Curncy_NmAr' => [
                        'دولار',
                    ],
                    'Curncy_NmEn' => [
                        'Dollar',
                    ],
                    'Curncy_Rate' => [
                        3.75,
                    ],
                    'Curncy_Code' => [
                        'USD',
                    ],
                    'currencyId' => [
                        1,
                    ],
                ],
            ],
            [
                'companyNumber' => 17,
                'data' => [
                    $o[0],
                ],
            ],
            []
        ),
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/currencies'
payload = {
    "companyNumber": 17,
    "data": [
        {
            "Curncy_NmAr": "دولار",
            "Curncy_NmEn": "Dollar",
            "Curncy_Rate": 3.75,
            "Curncy_Code": "USD",
            "currencyId": 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()

Example response (200):


{
    "message": "تم انشاء العملة بنجاح"
}
 

Request      

POST api/v1/base/settings/currencies

Headers

Body Parameters

Update a currency

requires authentication

Update the details of a currency.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/currencies/17" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Curncy_Rate\": 3.75,
    \"Curncy_Actv\": true,
    \"Local_currency\": false
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/currencies/17"
);

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

let body = {
    "Curncy_Rate": 3.75,
    "Curncy_Actv": true,
    "Local_currency": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/currencies/17';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Curncy_Rate' => 3.75,
            'Curncy_Actv' => true,
            'Local_currency' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/currencies/17'
payload = {
    "Curncy_Rate": 3.75,
    "Curncy_Actv": true,
    "Local_currency": false
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "تم تعديل العملة بنجاح"
}
 

Request      

PUT api/v1/base/settings/currencies/{id}

PATCH api/v1/base/settings/currencies/{id}

Headers

URL Parameters

Body Parameters

Delete a currency

requires authentication

Remove a currency from the system.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/currencies/18" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/currencies/18"
);

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 = 'http://wazen.test/api/v1/base/settings/currencies/18';
$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 = 'http://wazen.test/api/v1/base/settings/currencies/18'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "تم ازاله العملة بنجاح"
}
 

Example response (404):


{
    "message": "العملة غير موجوده!. حاول مره اخرى"
}
 

Request      

DELETE api/v1/base/settings/currencies/{id}

Headers

URL Parameters

Customer-Supplier Activities

API for managing Customer-Supplier Activities

Initialize Data This endpoint initializes data based on the given company number. It fetches activities that have a specific UUID condition and filters out activities based on certain criteria.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/init-data?company_no=16" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/init-data"
);

const params = {
    "company_no": "16",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '16',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/init-data'
params = {
  'company_no': '16',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "initData": {
    "activities": [
      {
        "ID_No": "12345",
        "Nutr_Actv": 1,
        "Nutr_NmAr": "Nutr_NmAr",
        "Nutr_NmEn": "Nutr_NmEn",
        // other fields...
      },
      {
        "ID_No": "67890",
        "Nutr_Actv": 1,
        "Nutr_NmAr": "Nutr_NmAr",
        "Nutr_NmEn": "Nutr_NmEn",
        // other fields...
      }
    ]
  }
}
 

Request      

GET api/v1/base/settings/customers-suppliers-settings/activity/init-data

Headers

Query Parameters

Get a list of customer-supplier activities.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 17,
    \"per_page\": 12,
    \"page\": 17
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 17,
    "per_page": 12,
    "page": 17
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 17,
            'per_page' => 12,
            'page' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity'
payload = {
    "company_no": 17,
    "per_page": 12,
    "page": 17
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "AstCmpCustSuppActivity list",
    "data": [
        {
            "Nutr_No": 12345,
            "Nutr_NmAr": "نشاط",
            "Nutr_NmEn": "Activity",
            "act_customer": true,
            "act_supplier": true,
            "Nutr_Actv": true
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/customers-suppliers-settings/activity

Headers

Query Parameters

Body Parameters

Store new customer-supplier activities.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 123,
    \"data\": [
        {
            \"Nutr_NmAr\": \"النشاط 1\",
            \"Nutr_NmEn\": \"Activity 1\",
            \"Short_Ar\": \"نشاط 1\",
            \"Short_En\": \"Activity 1\",
            \"Nutr_Actv\": 1,
            \"act_customer\": 1,
            \"act_supplier\": 1,
            \"activityId\": 1
        }
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity"
);

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

let body = {
    "company_no": 123,
    "data": [
        {
            "Nutr_NmAr": "النشاط 1",
            "Nutr_NmEn": "Activity 1",
            "Short_Ar": "نشاط 1",
            "Short_En": "Activity 1",
            "Nutr_Actv": 1,
            "act_customer": 1,
            "act_supplier": 1,
            "activityId": 1
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
            $o = [
                clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
            ],
            null,
            [
                'stdClass' => [
                    'Nutr_NmAr' => [
                        'النشاط 1',
                    ],
                    'Nutr_NmEn' => [
                        'Activity 1',
                    ],
                    'Short_Ar' => [
                        'نشاط 1',
                    ],
                    'Short_En' => [
                        'Activity 1',
                    ],
                    'Nutr_Actv' => [
                        1,
                    ],
                    'act_customer' => [
                        1,
                    ],
                    'act_supplier' => [
                        1,
                    ],
                    'activityId' => [
                        1,
                    ],
                ],
            ],
            [
                'company_no' => 123,
                'data' => [
                    $o[0],
                ],
            ],
            []
        ),
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity'
payload = {
    "company_no": 123,
    "data": [
        {
            "Nutr_NmAr": "النشاط 1",
            "Nutr_NmEn": "Activity 1",
            "Short_Ar": "نشاط 1",
            "Short_En": "Activity 1",
            "Nutr_Actv": 1,
            "act_customer": 1,
            "act_supplier": 1,
            "activityId": 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()

Example response (200):


{
    "message": "تم الحفظ بنجاح"
}
 

Example response (400):


{
    "error": {
        "Nutr_NmAr": [
            "The Arabic name is required."
        ],
        "Nutr_NmEn": [
            "The English name is required."
        ]
    }
}
 

Request      

POST api/v1/base/settings/customers-suppliers-settings/activity

Headers

Body Parameters

Update existing customer-supplier activity.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Nutr_NmAr\": \"\\\"النشاط\\\"\",
    \"Nutr_NmEn\": \"\\\"Activity\\\"\",
    \"Short_Ar\": \"\\\"نشاط\\\"\",
    \"Short_En\": \"\\\"Act\\\"\",
    \"Nutr_Actv\": true,
    \"act_customer\": true,
    \"act_supplier\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/10"
);

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

let body = {
    "Nutr_NmAr": "\"النشاط\"",
    "Nutr_NmEn": "\"Activity\"",
    "Short_Ar": "\"نشاط\"",
    "Short_En": "\"Act\"",
    "Nutr_Actv": true,
    "act_customer": true,
    "act_supplier": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/10';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Nutr_NmAr' => '"النشاط"',
            'Nutr_NmEn' => '"Activity"',
            'Short_Ar' => '"نشاط"',
            'Short_En' => '"Act"',
            'Nutr_Actv' => true,
            'act_customer' => true,
            'act_supplier' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/10'
payload = {
    "Nutr_NmAr": "\"النشاط\"",
    "Nutr_NmEn": "\"Activity\"",
    "Short_Ar": "\"نشاط\"",
    "Short_En": "\"Act\"",
    "Nutr_Actv": true,
    "act_customer": true,
    "act_supplier": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "تم تعديل بنجاح"
}
 

Example response (400):


{
    "error": {
        "Nutr_NmAr": [
            "The Arabic name is required."
        ],
        "Nutr_NmEn": [
            "The English name is required."
        ]
    }
}
 

Request      

PUT api/v1/base/settings/customers-suppliers-settings/activity/{id}

PATCH api/v1/base/settings/customers-suppliers-settings/activity/{id}

Headers

URL Parameters

Body Parameters

Delete customer-supplier activity.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/10"
);

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 = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/10';
$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 = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/activity/10'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "message": "النشاط غير موجوده!. حاول مره اخرى"
}
 

Request      

DELETE api/v1/base/settings/customers-suppliers-settings/activity/{id}

Headers

URL Parameters

Customer-Supplier Categories

API for managing Customer-Supplier Categories

GET api/v1/base/settings/customers-suppliers-settings/suppCategory/init-data

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/init-data'
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
x-request-id: 57f97400-bd9c-4f95-84ce-ec4a2ef568a4
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/customers-suppliers-settings/suppCategory/init-data

Headers

Get a list of customer-supplier categories.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 12,
    \"per_page\": 7,
    \"page\": 8
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 12,
    "per_page": 7,
    "page": 8
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 12,
            'per_page' => 7,
            'page' => 8,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory'
payload = {
    "company_no": 12,
    "per_page": 7,
    "page": 8
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "AstCmpCustSuppCategory list",
    "data": [
        {
            "Supctg_No": 12345,
            "Supctg_NmAr": "التصنيف",
            "Supctg_NmEn": "Category",
            "act_customer": true,
            "Supctg_Actv": true
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/customers-suppliers-settings/suppCategory

Headers

Query Parameters

Body Parameters

Store new customer-supplier category.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 123,
    \"data\": [
        {
            \"Supctg_NmAr\": \"التصنيف\",
            \"Supctg_NmEn\": \"Category\",
            \"act_customer\": 1,
            \"Supctg_Actv\": 1,
            \"categoryId\": 1
        }
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory"
);

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

let body = {
    "company_no": 123,
    "data": [
        {
            "Supctg_NmAr": "التصنيف",
            "Supctg_NmEn": "Category",
            "act_customer": 1,
            "Supctg_Actv": 1,
            "categoryId": 1
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => \Symfony\Component\VarExporter\Internal\Hydrator::hydrate(
            $o = [
                clone (\Symfony\Component\VarExporter\Internal\Registry::$prototypes['stdClass'] ?? \Symfony\Component\VarExporter\Internal\Registry::p('stdClass')),
            ],
            null,
            [
                'stdClass' => [
                    'Supctg_NmAr' => [
                        'التصنيف',
                    ],
                    'Supctg_NmEn' => [
                        'Category',
                    ],
                    'act_customer' => [
                        1,
                    ],
                    'Supctg_Actv' => [
                        1,
                    ],
                    'categoryId' => [
                        1,
                    ],
                ],
            ],
            [
                'company_no' => 123,
                'data' => [
                    $o[0],
                ],
            ],
            []
        ),
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory'
payload = {
    "company_no": 123,
    "data": [
        {
            "Supctg_NmAr": "التصنيف",
            "Supctg_NmEn": "Category",
            "act_customer": 1,
            "Supctg_Actv": 1,
            "categoryId": 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()

Example response (200):


{
    "message": "تم الحفظ بنجاح"
}
 

Example response (400):


{
    "error": {
        "Supctg_NmAr": [
            "The Arabic name is required."
        ],
        "Supctg_NmEn": [
            "The English name is required."
        ]
    }
}
 

Request      

POST api/v1/base/settings/customers-suppliers-settings/suppCategory

Headers

Body Parameters

Update existing customer-supplier category.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Supctg_NmAr\": \"\\\"التصنيف\\\"\",
    \"Supctg_NmEn\": \"\\\"Category\\\"\",
    \"Supctg_Actv\": true,
    \"act_customer\": true,
    \"act_supplier\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/10"
);

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

let body = {
    "Supctg_NmAr": "\"التصنيف\"",
    "Supctg_NmEn": "\"Category\"",
    "Supctg_Actv": true,
    "act_customer": true,
    "act_supplier": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/10';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Supctg_NmAr' => '"التصنيف"',
            'Supctg_NmEn' => '"Category"',
            'Supctg_Actv' => true,
            'act_customer' => true,
            'act_supplier' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/10'
payload = {
    "Supctg_NmAr": "\"التصنيف\"",
    "Supctg_NmEn": "\"Category\"",
    "Supctg_Actv": true,
    "act_customer": true,
    "act_supplier": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "تم تعديل بنجاح"
}
 

Example response (400):


{
    "error": {
        "Supctg_NmAr": [
            "The Arabic name is required."
        ],
        "Supctg_NmEn": [
            "The English name is required."
        ]
    }
}
 

Request      

PUT api/v1/base/settings/customers-suppliers-settings/suppCategory/{id}

PATCH api/v1/base/settings/customers-suppliers-settings/suppCategory/{id}

Headers

URL Parameters

Body Parameters

Delete customer-supplier category.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/10" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/10"
);

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 = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/10';
$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 = 'http://wazen.test/api/v1/base/settings/customers-suppliers-settings/suppCategory/10'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "message": "التصنيف غير موجوده!. حاول مره اخرى"
}
 

Request      

DELETE api/v1/base/settings/customers-suppliers-settings/suppCategory/{id}

Headers

URL Parameters

Customers

List Customers.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/customers" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/customers"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/customers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/customers'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "id": 1,
            "customer_no": "25100001",
            "name_ar": "العميل",
            "name_en": "Customer",
            "mobile": "123456789",
            "address": "123 Main St",
            "active": true,
            "customer_class": "VIP",
            "account_no": "ACC123",
            "created_at": "2023-01-01T00:00:00Z",
            "updated_at": "2023-01-01T00:00:00Z",
            "company": {
                "id": 1,
                "company_no": 123,
                "name_ar": "شركة",
                "name_en": "Company"
            },
            "branch": {
                "id": 1,
                "branch_no": "123",
                "name_ar": "فرع",
                "name_en": "Branch"
            },
            "user": {
                "id": 1,
                "email": "[email protected]",
                "username": "user1"
            }
        }
    ],
    "message": "customers list",
    "pagination": {
        "count": 1,
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1,
        "links": {}
    }
}
 

Request      

GET api/v1/base/customers

Headers

Endpoints

Display a listing of the classification renters.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/identity-type?company_no=123&perPage=10&page=2" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 5,
    \"per_page\": 2,
    \"page\": 19
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/identity-type"
);

const params = {
    "company_no": "123",
    "perPage": "10",
    "page": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 5,
    "per_page": 2,
    "page": 19
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/identity-type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'perPage' => '10',
            'page' => '2',
        ],
        'json' => [
            'company_no' => 5,
            'per_page' => 2,
            'page' => 19,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/identity-type'
payload = {
    "company_no": 5,
    "per_page": 2,
    "page": 19
}
params = {
  'company_no': '123',
  'perPage': '10',
  'page': '2',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
  "status": true,
  "message": "CmpClassificationRenters list",
  "data": [...],
  "pagination": {...}
}
 

Request      

GET api/v1/base/settings/identity-type

Headers

Query Parameters

Body Parameters

Store a newly created classification renter.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/identity-type" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/identity-type"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/identity-type';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/identity-type'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

POST api/v1/base/settings/identity-type

Headers

Body Parameters

Update the specified classification renter.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/identity-type/amet" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CaRent_Ty\": 1,
    \"CaRent_NmAr\": \"\\\"إيجار السيارة\\\"\",
    \"CaRent_NmEn\": \"\\\"Car Rent\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/identity-type/amet"
);

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

let body = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/identity-type/amet';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CaRent_Ty' => 1,
            'CaRent_NmAr' => '"إيجار السيارة"',
            'CaRent_NmEn' => '"Car Rent"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/identity-type/amet'
payload = {
    "Cmp_No": 123,
    "CaRent_Ty": 1,
    "CaRent_NmAr": "\"إيجار السيارة\"",
    "CaRent_NmEn": "\"Car Rent\""
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
  "status": 0,
  "errors": {...}
}
 

Request      

PUT api/v1/base/settings/identity-type/{classificationTransport}

PATCH api/v1/base/settings/identity-type/{classificationTransport}

Headers

URL Parameters

Body Parameters

Remove the specified classification renter.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/identity-type/voluptates" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/identity-type/voluptates"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/identity-type/voluptates';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/identity-type/voluptates'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/identity-type/{classificationTransport}

Headers

URL Parameters

Initialize classification renter data.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/identity-type/init-data?company_no=123" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/identity-type/init-data"
);

const params = {
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/identity-type/init-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/identity-type/init-data'
params = {
  'company_no': '123',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "categories": [...],
  "companyName": "Company XYZ",
  "activityName": "Renting"
}
 

Request      

POST api/v1/base/settings/identity-type/init-data

Headers

Query Parameters

GET api/v1/base/settings/personnel-settings/test

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/test" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/test"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/test';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/test'
headers = {
  '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
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
x-request-id: 960ff466-8220-497b-8651-af714925d08e
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/personnel-settings/test

Headers

Display a listing of the resource.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 5,
    \"per_page\": 4,
    \"page\": 17
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types"
);

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

let body = {
    "company_no": 5,
    "per_page": 4,
    "page": 17
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 5,
            'per_page' => 4,
            'page' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types'
payload = {
    "company_no": 5,
    "per_page": 4,
    "page": 17
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 55
x-request-id: e2280391-d540-4ffa-a6d4-8aeea39b5c91
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/accounts/journal-ac-types

Headers

Body Parameters

Store a newly created resource in storage.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/accounts/journal-ac-types

Headers

Update the specified resource in storage.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/minus" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/minus"
);

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

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/minus';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/minus'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request      

PUT api/v1/base/settings/accounts/journal-ac-types/{journalAcTypes}

PATCH api/v1/base/settings/accounts/journal-ac-types/{journalAcTypes}

Headers

URL Parameters

Remove the specified resource from storage.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/aut" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/aut"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/aut';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/aut'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/accounts/journal-ac-types/{journalAcTypes}

Headers

URL Parameters

GET api/v1/base/settings/accounts/journal-ac-types/print/{id}

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/print/ut" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/print/ut"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/print/ut';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/print/ut'
headers = {
  '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
x-ratelimit-limit: 60
x-ratelimit-remaining: 54
x-request-id: 87f43420-d774-4945-be2b-76931cdf34b8
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/accounts/journal-ac-types/print/{id}

Headers

URL Parameters

POST api/v1/base/settings/accounts/journal-ac-types/get-journal-ac-types

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/get-journal-ac-types" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/get-journal-ac-types"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/get-journal-ac-types';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/journal-ac-types/get-journal-ac-types'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/accounts/journal-ac-types/get-journal-ac-types

Headers

GET api/v1/base/settings/accounts/account-result-settings

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/account-result-settings" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 5,
    \"per_page\": 9,
    \"page\": 18
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings"
);

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

let body = {
    "company_no": 5,
    "per_page": 9,
    "page": 18
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 5,
            'per_page' => 9,
            'page' => 18,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings'
payload = {
    "company_no": 5,
    "per_page": 9,
    "page": 18
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 53
x-request-id: 20bfc817-afdc-4539-b6fa-a300fdb71ef6
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/accounts/account-result-settings

Headers

Body Parameters

POST api/v1/base/settings/accounts/account-result-settings

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/accounts/account-result-settings

Headers

PUT api/v1/base/settings/accounts/account-result-settings/{accountResultSettings}

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings/quo" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings/quo"
);

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

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings/quo';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings/quo'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request      

PUT api/v1/base/settings/accounts/account-result-settings/{accountResultSettings}

PATCH api/v1/base/settings/accounts/account-result-settings/{accountResultSettings}

Headers

URL Parameters

Remove the specified resource from storage.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings/est" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings/est"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings/est';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings/est'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/accounts/account-result-settings/{accountResultSettings}

Headers

URL Parameters

GET api/v1/base/settings/accounts/account-result-settings/print/{id}

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/account-result-settings/print/quibusdam" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings/print/quibusdam"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings/print/quibusdam';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings/print/quibusdam'
headers = {
  '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
x-ratelimit-limit: 60
x-ratelimit-remaining: 52
x-request-id: db618efd-b3cb-4544-b35c-0539628f34b7
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/accounts/account-result-settings/print/{id}

Headers

URL Parameters

POST api/v1/base/settings/accounts/account-result-settings/get-acc-result-settings

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings/get-acc-result-settings" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/account-result-settings/get-acc-result-settings"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings/get-acc-result-settings';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/account-result-settings/get-acc-result-settings'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/accounts/account-result-settings/get-acc-result-settings

Headers

Display a listing of the resource.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/cost-centers" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers'
headers = {
  '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
x-ratelimit-limit: 60
x-ratelimit-remaining: 51
x-request-id: bc58a786-7807-418c-8a37-c3f7d295e36a
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/accounts/cost-centers

Headers

Update the specified resource in storage.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/recusandae" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"mollitia\",
    \"Costcntr_No\": 2248.893395368,
    \"Level_No\": 8825.61548959,
    \"Costcntr_Nmar\": \"qui\",
    \"Costcntr_Nmen\": \"vel\",
    \"Costcntr_Ty\": 22.283598,
    \"Fbal_DB\": \"668.6\",
    \"Fbal_CR\": \"5\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/recusandae"
);

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

let body = {
    "Cmp_No": "mollitia",
    "Costcntr_No": 2248.893395368,
    "Level_No": 8825.61548959,
    "Costcntr_Nmar": "qui",
    "Costcntr_Nmen": "vel",
    "Costcntr_Ty": 22.283598,
    "Fbal_DB": "668.6",
    "Fbal_CR": "5"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/recusandae';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'mollitia',
            'Costcntr_No' => 2248.893395368,
            'Level_No' => 8825.61548959,
            'Costcntr_Nmar' => 'qui',
            'Costcntr_Nmen' => 'vel',
            'Costcntr_Ty' => 22.283598,
            'Fbal_DB' => '668.6',
            'Fbal_CR' => '5',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/recusandae'
payload = {
    "Cmp_No": "mollitia",
    "Costcntr_No": 2248.893395368,
    "Level_No": 8825.61548959,
    "Costcntr_Nmar": "qui",
    "Costcntr_Nmen": "vel",
    "Costcntr_Ty": 22.283598,
    "Fbal_DB": "668.6",
    "Fbal_CR": "5"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request      

PUT api/v1/base/settings/accounts/cost-centers/{id}

PATCH api/v1/base/settings/accounts/cost-centers/{id}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/nihil" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/nihil"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/nihil';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/nihil'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/accounts/cost-centers/{id}

Headers

URL Parameters

Update the specified resource in storage.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/amet" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"nulla\",
    \"Costcntr_No\": 850653.47,
    \"Level_No\": 26.597,
    \"Costcntr_Nmar\": \"aut\",
    \"Costcntr_Nmen\": \"dolorum\",
    \"Costcntr_Ty\": 167024698.46489722,
    \"Fbal_DB\": \"1432.4029\",
    \"Fbal_CR\": \"6740608.3\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/amet"
);

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

let body = {
    "Cmp_No": "nulla",
    "Costcntr_No": 850653.47,
    "Level_No": 26.597,
    "Costcntr_Nmar": "aut",
    "Costcntr_Nmen": "dolorum",
    "Costcntr_Ty": 167024698.46489722,
    "Fbal_DB": "1432.4029",
    "Fbal_CR": "6740608.3"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/amet';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'nulla',
            'Costcntr_No' => 850653.47,
            'Level_No' => 26.597,
            'Costcntr_Nmar' => 'aut',
            'Costcntr_Nmen' => 'dolorum',
            'Costcntr_Ty' => 167024698.46489722,
            'Fbal_DB' => '1432.4029',
            'Fbal_CR' => '6740608.3',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/amet'
payload = {
    "Cmp_No": "nulla",
    "Costcntr_No": 850653.47,
    "Level_No": 26.597,
    "Costcntr_Nmar": "aut",
    "Costcntr_Nmen": "dolorum",
    "Costcntr_Ty": 167024698.46489722,
    "Fbal_DB": "1432.4029",
    "Fbal_CR": "6740608.3"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request      

PUT api/v1/base/settings/accounts/cost-centers/{}

PATCH api/v1/base/settings/accounts/cost-centers/{}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/et" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/et"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/et';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/et'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/accounts/cost-centers/{}

Headers

URL Parameters

POST api/v1/base/settings/accounts/cost-centers/get-tree

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/get-tree" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/get-tree"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/get-tree';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/get-tree'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/accounts/cost-centers/get-tree

Headers

Show the form for editing the specified resource.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/edit-blade" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/edit-blade"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/edit-blade';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/edit-blade'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/accounts/cost-centers/edit-blade

Headers

POST api/v1/base/settings/accounts/cost-centers/export-data

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/export-data" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/cost-centers/export-data"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/export-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/cost-centers/export-data'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/accounts/cost-centers/export-data

Headers

GET api/v1/base/settings/accounts/banks

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/banks" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 3,
    \"per_page\": 4,
    \"page\": 7
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/banks"
);

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

let body = {
    "company_no": 3,
    "per_page": 4,
    "page": 7
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/banks';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 3,
            'per_page' => 4,
            'page' => 7,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/banks'
payload = {
    "company_no": 3,
    "per_page": 4,
    "page": 7
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 50
x-request-id: 1bbd57dc-eaa9-4e3c-8f81-ebc501b5d8a7
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/accounts/banks

Headers

Body Parameters

Store a newly created resource in storage.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/banks" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"cupiditate\",
    \"Acc_No\": \"eos\",
    \"Acc_NmAr\": \"libero\",
    \"Acc_NmEn\": \"et\",
    \"short_cut_name\": \"repellendus\",
    \"Acc_Bank_No\": 17,
    \"RcpCsh_Voucher\": 18,
    \"PymCsh_voucher\": 16,
    \"DB_Note\": 2,
    \"RcpChk_Voucher\": 8,
    \"PymChk_Voucher\": 13,
    \"Bank_No\": 4,
    \"Pur_stu\": 4,
    \"Sal_stu\": 20,
    \"CR_Note\": 9,
    \"Cash_Rpt\": 20,
    \"emp_salaries\": 18,
    \"active\": 12
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/banks"
);

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

let body = {
    "Cmp_No": "cupiditate",
    "Acc_No": "eos",
    "Acc_NmAr": "libero",
    "Acc_NmEn": "et",
    "short_cut_name": "repellendus",
    "Acc_Bank_No": 17,
    "RcpCsh_Voucher": 18,
    "PymCsh_voucher": 16,
    "DB_Note": 2,
    "RcpChk_Voucher": 8,
    "PymChk_Voucher": 13,
    "Bank_No": 4,
    "Pur_stu": 4,
    "Sal_stu": 20,
    "CR_Note": 9,
    "Cash_Rpt": 20,
    "emp_salaries": 18,
    "active": 12
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/banks';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'cupiditate',
            'Acc_No' => 'eos',
            'Acc_NmAr' => 'libero',
            'Acc_NmEn' => 'et',
            'short_cut_name' => 'repellendus',
            'Acc_Bank_No' => 17,
            'RcpCsh_Voucher' => 18,
            'PymCsh_voucher' => 16,
            'DB_Note' => 2,
            'RcpChk_Voucher' => 8,
            'PymChk_Voucher' => 13,
            'Bank_No' => 4,
            'Pur_stu' => 4,
            'Sal_stu' => 20,
            'CR_Note' => 9,
            'Cash_Rpt' => 20,
            'emp_salaries' => 18,
            'active' => 12,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/banks'
payload = {
    "Cmp_No": "cupiditate",
    "Acc_No": "eos",
    "Acc_NmAr": "libero",
    "Acc_NmEn": "et",
    "short_cut_name": "repellendus",
    "Acc_Bank_No": 17,
    "RcpCsh_Voucher": 18,
    "PymCsh_voucher": 16,
    "DB_Note": 2,
    "RcpChk_Voucher": 8,
    "PymChk_Voucher": 13,
    "Bank_No": 4,
    "Pur_stu": 4,
    "Sal_stu": 20,
    "CR_Note": 9,
    "Cash_Rpt": 20,
    "emp_salaries": 18,
    "active": 12
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request      

POST api/v1/base/settings/accounts/banks

Headers

Body Parameters

Display the specified resource.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/banks/praesentium" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/banks/praesentium"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/banks/praesentium';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/banks/praesentium'
headers = {
  '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
x-ratelimit-limit: 60
x-ratelimit-remaining: 49
x-request-id: 0455be5e-bfb3-4be9-9d6a-8fc2e75cfb72
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/accounts/banks/{id}

Headers

URL Parameters

Update the specified resource in storage.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/accounts/banks/omnis" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"facere\",
    \"Acc_No\": \"laborum\",
    \"Acc_NmAr\": \"nisi\",
    \"Acc_NmEn\": \"illo\",
    \"short_cut_name\": \"ad\",
    \"Acc_Bank_No\": 18,
    \"RcpCsh_Voucher\": 14,
    \"PymCsh_voucher\": 3,
    \"DB_Note\": 19,
    \"RcpChk_Voucher\": 7,
    \"PymChk_Voucher\": 11,
    \"Bank_No\": 12,
    \"Pur_stu\": 19,
    \"Sal_stu\": 4,
    \"CR_Note\": 12,
    \"Cash_Rpt\": 17,
    \"emp_salaries\": 13,
    \"active\": 10
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/banks/omnis"
);

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

let body = {
    "Cmp_No": "facere",
    "Acc_No": "laborum",
    "Acc_NmAr": "nisi",
    "Acc_NmEn": "illo",
    "short_cut_name": "ad",
    "Acc_Bank_No": 18,
    "RcpCsh_Voucher": 14,
    "PymCsh_voucher": 3,
    "DB_Note": 19,
    "RcpChk_Voucher": 7,
    "PymChk_Voucher": 11,
    "Bank_No": 12,
    "Pur_stu": 19,
    "Sal_stu": 4,
    "CR_Note": 12,
    "Cash_Rpt": 17,
    "emp_salaries": 13,
    "active": 10
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/banks/omnis';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'facere',
            'Acc_No' => 'laborum',
            'Acc_NmAr' => 'nisi',
            'Acc_NmEn' => 'illo',
            'short_cut_name' => 'ad',
            'Acc_Bank_No' => 18,
            'RcpCsh_Voucher' => 14,
            'PymCsh_voucher' => 3,
            'DB_Note' => 19,
            'RcpChk_Voucher' => 7,
            'PymChk_Voucher' => 11,
            'Bank_No' => 12,
            'Pur_stu' => 19,
            'Sal_stu' => 4,
            'CR_Note' => 12,
            'Cash_Rpt' => 17,
            'emp_salaries' => 13,
            'active' => 10,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/banks/omnis'
payload = {
    "Cmp_No": "facere",
    "Acc_No": "laborum",
    "Acc_NmAr": "nisi",
    "Acc_NmEn": "illo",
    "short_cut_name": "ad",
    "Acc_Bank_No": 18,
    "RcpCsh_Voucher": 14,
    "PymCsh_voucher": 3,
    "DB_Note": 19,
    "RcpChk_Voucher": 7,
    "PymChk_Voucher": 11,
    "Bank_No": 12,
    "Pur_stu": 19,
    "Sal_stu": 4,
    "CR_Note": 12,
    "Cash_Rpt": 17,
    "emp_salaries": 13,
    "active": 10
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request      

PUT api/v1/base/settings/accounts/banks/{id}

PATCH api/v1/base/settings/accounts/banks/{id}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/accounts/banks/dolore" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/banks/dolore"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/banks/dolore';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/banks/dolore'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/accounts/banks/{id}

Headers

URL Parameters

GET api/v1/base/settings/accounts/banks/print/{id}

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/accounts/banks/print/tenetur" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/banks/print/tenetur"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/banks/print/tenetur';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/banks/print/tenetur'
headers = {
  '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
x-ratelimit-limit: 60
x-ratelimit-remaining: 48
x-request-id: 7a1241b6-2ac4-4e81-a76a-9ee58cd921e8
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/accounts/banks/print/{id}

Headers

URL Parameters

POST api/v1/base/settings/accounts/banks/get-charts

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/accounts/banks/get-charts" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/accounts/banks/get-charts"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/accounts/banks/get-charts';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/accounts/banks/get-charts'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/accounts/banks/get-charts

Headers

GET api/v1/base/settings/assets/assets-types/getAssetsTypesData

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/assets/assets-types/getAssetsTypesData" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-types/getAssetsTypesData"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/getAssetsTypesData';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/getAssetsTypesData'
headers = {
  '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
x-ratelimit-limit: 60
x-ratelimit-remaining: 47
x-request-id: 918301e0-471c-4913-ae85-ef62519ca9d9
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/assets/assets-types/getAssetsTypesData

Headers

GET api/v1/base/settings/assets/assets-types/assets-types

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 5,
    \"per_page\": 10,
    \"page\": 18
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types"
);

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

let body = {
    "company_no": 5,
    "per_page": 10,
    "page": 18
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 5,
            'per_page' => 10,
            'page' => 18,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types'
payload = {
    "company_no": 5,
    "per_page": 10,
    "page": 18
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 46
x-request-id: 151e8273-06eb-4ebe-9b61-543d97895aae
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/assets/assets-types/assets-types

Headers

Body Parameters

Store a newly created resource in storage.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/assets/assets-types/assets-types

Headers

Update the specified resource in storage.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types/rerum" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types/rerum"
);

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

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types/rerum';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types/rerum'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request      

PUT api/v1/base/settings/assets/assets-types/assets-types/{id}

PATCH api/v1/base/settings/assets/assets-types/assets-types/{id}

Headers

URL Parameters

Remove the specified resource from storage.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types/voluptates" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types/voluptates"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types/voluptates';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-types/assets-types/voluptates'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/assets/assets-types/assets-types/{id}

Headers

URL Parameters

POST api/v1/base/settings/assets/assets-locs/get-tree

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/get-tree" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/get-tree"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/get-tree';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/get-tree'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/assets/assets-locs/get-tree

Headers

Show the form for editing the specified resource.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/edit-blade" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/edit-blade"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/edit-blade';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/edit-blade'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/assets/assets-locs/edit-blade

Headers

POST api/v1/base/settings/assets/assets-locs/export-data

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/export-data" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/export-data"
);

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

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/export-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/export-data'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request      

POST api/v1/base/settings/assets/assets-locs/export-data

Headers

Display a listing of the resource.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/assets/assets-locs" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-locs"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs'
headers = {
  '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
x-ratelimit-limit: 60
x-ratelimit-remaining: 45
x-request-id: 5c851bf5-910d-42ce-9de3-50b29ed093a4
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/assets/assets-locs

Headers

Update the specified resource in storage.

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/ut" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/ut"
);

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

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/ut';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/ut'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request      

PUT api/v1/base/settings/assets/assets-locs/{assetsLocs}

PATCH api/v1/base/settings/assets/assets-locs/{assetsLocs}

Headers

URL Parameters

Remove the specified resource from storage.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/labore" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/assets/assets-locs/labore"
);

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

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/labore';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/assets/assets-locs/labore'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/assets/assets-locs/{assetsLocs}

Headers

URL Parameters

External Costs

External Costs Management API

Initialize data for the resource.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/external-cost/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/external-cost/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/external-cost/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/external-cost/init-data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "initData": {
        "accounts": [
            // Structure of accounts data
        ],
        "idGenerate": "generatedId",
        "AstLcItemexp": [
            // Structure of AstLcItemexp data
        ]
    }
}
 

Request      

GET api/v1/base/settings/external-cost/init-data

Headers

List external costs.

requires authentication

This endpoint retrieves a paginated list of external costs for a specific company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/external-cost" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": \"et\",
    \"per_page\": 1,
    \"page\": 16,
    \"perPage\": 5,
    \"query\": \"quia\",
    \"sort\": \"laudantium\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/external-cost"
);

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

let body = {
    "company_no": "et",
    "per_page": 1,
    "page": 16,
    "perPage": 5,
    "query": "quia",
    "sort": "laudantium"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/external-cost';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 'et',
            'per_page' => 1,
            'page' => 16,
            'perPage' => 5,
            'query' => 'quia',
            'sort' => 'laudantium',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/external-cost'
payload = {
    "company_no": "et",
    "per_page": 1,
    "page": 16,
    "perPage": 5,
    "query": "quia",
    "sort": "laudantium"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
 "status": 1,
 "message": "CmpExternalCost list",
 "data": [
     {
         "LCItm_No": "1",
         "LCItm_NmAr": "التكلفة الخارجية",
         "LCItm_NmEn": "External Cost",
         "Acc_No": "12345",
         ...
     },
     ...
 ],
 "pagination": {
     "count": 10,
     "total": 50,
     "pageSize": 15,
     "currentPage": 1,
     "totalPages": 4,
     "links": {
         "next": "http://api.example.com/external-costs?page=2"
     }
 }
}
 

Example response (422):


{
    "status": 0,
    "message": "Validation error message"
}
 

Request      

GET api/v1/base/settings/external-cost

Headers

Body Parameters

Store a new resource in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/external-cost" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LCItm_NmAr\": \"\\\"اسم البيان بالعربى\\\"\",
    \"LCItm_NmEn\": \"\\\"Item Name in English\\\"\",
    \"Acc_No\": \"\\\"12345\\\"\",
    \"LCItm_Act\": \"\\\"Active\\\"\",
    \"Lc_othrfees\": \"\\\"100\\\"\",
    \"Main_Acc\": \"\\\"54321\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/external-cost"
);

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

let body = {
    "LCItm_NmAr": "\"اسم البيان بالعربى\"",
    "LCItm_NmEn": "\"Item Name in English\"",
    "Acc_No": "\"12345\"",
    "LCItm_Act": "\"Active\"",
    "Lc_othrfees": "\"100\"",
    "Main_Acc": "\"54321\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/external-cost';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LCItm_NmAr' => '"اسم البيان بالعربى"',
            'LCItm_NmEn' => '"Item Name in English"',
            'Acc_No' => '"12345"',
            'LCItm_Act' => '"Active"',
            'Lc_othrfees' => '"100"',
            'Main_Acc' => '"54321"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/external-cost'
payload = {
    "LCItm_NmAr": "\"اسم البيان بالعربى\"",
    "LCItm_NmEn": "\"Item Name in English\"",
    "Acc_No": "\"12345\"",
    "LCItm_Act": "\"Active\"",
    "Lc_othrfees": "\"100\"",
    "Main_Acc": "\"54321\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Success message",
    "data": {
        // Structure of the created resource
    }
}
 

Example response (400):


{
    "message": {
        "LCItm_NmAr": [
            "يجب عليك ادخال اسم البيان بالعربى"
        ],
        "LCItm_NmEn": [
            "يجب عليك ادخال اسم البيان بالنجليزى"
        ],
        "Acc_No": [
            "يجب عليك ادخال رقم الحساب"
        ]
    }
}
 

Example response (422):


{
    "error": "Error message",
    "message": "Unknown error"
}
 

Request      

POST api/v1/base/settings/external-cost

Headers

Body Parameters

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/external-cost/aperiam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LCItm_NmAr\": \"\\\"اسم البيان بالعربى\\\"\",
    \"LCItm_NmEn\": \"\\\"Item Name in English\\\"\",
    \"Acc_No\": \"\\\"12345\\\"\",
    \"LCItm_Act\": \"\\\"Active\\\"\",
    \"Lc_othrfees\": \"\\\"100\\\"\",
    \"Main_Acc\": \"\\\"54321\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/external-cost/aperiam"
);

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

let body = {
    "LCItm_NmAr": "\"اسم البيان بالعربى\"",
    "LCItm_NmEn": "\"Item Name in English\"",
    "Acc_No": "\"12345\"",
    "LCItm_Act": "\"Active\"",
    "Lc_othrfees": "\"100\"",
    "Main_Acc": "\"54321\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/external-cost/aperiam';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LCItm_NmAr' => '"اسم البيان بالعربى"',
            'LCItm_NmEn' => '"Item Name in English"',
            'Acc_No' => '"12345"',
            'LCItm_Act' => '"Active"',
            'Lc_othrfees' => '"100"',
            'Main_Acc' => '"54321"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/external-cost/aperiam'
payload = {
    "LCItm_NmAr": "\"اسم البيان بالعربى\"",
    "LCItm_NmEn": "\"Item Name in English\"",
    "Acc_No": "\"12345\"",
    "LCItm_Act": "\"Active\"",
    "Lc_othrfees": "\"100\"",
    "Main_Acc": "\"54321\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Success message",
    "data": {
        // Structure of the updated resource
    }
}
 

Example response (400):


{
    "message": {
        "LCItm_NmAr": [
            "يجب عليك ادخال اسم البيان بالعربى"
        ],
        "LCItm_NmEn": [
            "يجب عليك ادخال اسم البيان بالنجليزى"
        ],
        "Acc_No": [
            "يجب عليك ادخال رقم الحساب"
        ]
    }
}
 

Example response (422):


{
    "error": "Error message",
    "message": "Unknown error"
}
 

Request      

PUT api/v1/base/settings/external-cost/{id}

PATCH api/v1/base/settings/external-cost/{id}

Headers

URL Parameters

Body Parameters

Delete an external cost.

requires authentication

Remove an external cost from the system.

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/external-cost/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/external-cost/1"
);

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 = 'http://wazen.test/api/v1/base/settings/external-cost/1';
$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 = 'http://wazen.test/api/v1/base/settings/external-cost/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "تم حذف التكلفة الخارجية بنجاح"
}
 

Example response (400):


{
    "message": "يجب عليك الحذف اولا من دليل الحسابات"
}
 

Request      

DELETE api/v1/base/settings/external-cost/{id}

Headers

URL Parameters

Gold Prices

API for managing gold prices settings

Get list of Gold Prices.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/gold-setting/gold-price?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 12,
    \"per_page\": 19,
    \"page\": 10
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 12,
    "per_page": 19,
    "page": 10
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 12,
            'per_page' => 19,
            'page' => 10,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price'
payload = {
    "company_no": 12,
    "per_page": 19,
    "page": 10
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CmpGoldPrice list",
    "data": [
        {
            "date": "2024-09-30",
            "TGold18": 750.5,
            "TGold21": 900.25,
            "TGold24": 1050.75,
            "KGold": 24,
            "company_name": "Gold Company Ltd"
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/gold-setting/gold-price

Headers

Query Parameters

Body Parameters

Store a new Gold Price entry.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"TGold18\": \"750.5\",
    \"TGold21\": \"900.25\",
    \"TGold24\": \"1050.75\",
    \"KGold\": \"24\",
    \"date\": \"2024-09-30\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price"
);

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

let body = {
    "Cmp_No": 123,
    "TGold18": "750.5",
    "TGold21": "900.25",
    "TGold24": "1050.75",
    "KGold": "24",
    "date": "2024-09-30"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'TGold18' => '750.5',
            'TGold21' => '900.25',
            'TGold24' => '1050.75',
            'KGold' => '24',
            'date' => '2024-09-30',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price'
payload = {
    "Cmp_No": 123,
    "TGold18": "750.5",
    "TGold21": "900.25",
    "TGold24": "1050.75",
    "KGold": "24",
    "date": "2024-09-30"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true
}
 

Example response (400):


{
    "success": false,
    "errors": "The company number is required."
}
 

Request      

POST api/v1/base/settings/gold-setting/gold-price

Headers

Body Parameters

Update an existing Gold Price entry.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price/ducimus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"TGold18\": \"750.5\",
    \"TGold21\": \"900.25\",
    \"TGold24\": \"1050.75\",
    \"KGold\": \"24\",
    \"date\": \"2024-09-30\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price/ducimus"
);

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

let body = {
    "TGold18": "750.5",
    "TGold21": "900.25",
    "TGold24": "1050.75",
    "KGold": "24",
    "date": "2024-09-30"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price/ducimus';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'TGold18' => '750.5',
            'TGold21' => '900.25',
            'TGold24' => '1050.75',
            'KGold' => '24',
            'date' => '2024-09-30',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price/ducimus'
payload = {
    "TGold18": "750.5",
    "TGold21": "900.25",
    "TGold24": "1050.75",
    "KGold": "24",
    "date": "2024-09-30"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true
}
 

Example response (400):


{
    "success": false,
    "errors": "Validation failed for required fields."
}
 

Request      

PUT api/v1/base/settings/gold-setting/gold-price/{goldPrice}

PATCH api/v1/base/settings/gold-setting/gold-price/{goldPrice}

Headers

URL Parameters

Body Parameters

Get the latest prices for the last 7 days.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price/get-latest-prices?Cmp_No=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price/get-latest-prices"
);

const params = {
    "Cmp_No": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price/get-latest-prices';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price/get-latest-prices'
params = {
  'Cmp_No': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "success": true,
    "prices": [
        {
            "date": "2024-09-30",
            "TGold18": 750.5,
            "TGold21": 900.25,
            "TGold24": 1050.75,
            "KGold": 24
        }
    ],
    "currentDate": "2024-09-30"
}
 

Request      

POST api/v1/base/settings/gold-setting/gold-price/get-latest-prices

Headers

Query Parameters

Update after login for Gold Prices.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price/update-after-login" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"date\": \"2024-09-30\",
    \"change\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price/update-after-login"
);

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

let body = {
    "Cmp_No": 123,
    "date": "2024-09-30",
    "change": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price/update-after-login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'date' => '2024-09-30',
            'change' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price/update-after-login'
payload = {
    "Cmp_No": 123,
    "date": "2024-09-30",
    "change": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true,
    "successMsg": "Date updated successfully."
}
 

Request      

POST api/v1/base/settings/gold-setting/gold-price/update-after-login

Headers

Body Parameters

Private login for Gold Prices.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price/private-login" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 1,
    \"pass\": \"\\\"secretpassword\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-price/private-login"
);

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

let body = {
    "id": 1,
    "pass": "\"secretpassword\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price/private-login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 1,
            'pass' => '"secretpassword"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-price/private-login'
payload = {
    "id": 1,
    "pass": "\"secretpassword\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true
}
 

Example response (400):


{
    "success": false,
    "errorMsg": "Invalid password."
}
 

Request      

POST api/v1/base/settings/gold-setting/gold-price/private-login

Headers

Body Parameters

Gold Settings

API for managing gold karat settings

Initialize data for generating a new ID.

requires authentication

This endpoint initializes data by generating an incremented ID based on the current company number and specific karat type.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/initData?company_no=13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/initData"
);

const params = {
    "company_no": "13",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/initData';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '13',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/initData'
params = {
  'company_no': '13',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "initData": {
        "idGenerate": 101
    }
}
 

Request      

GET api/v1/base/settings/gold-setting/gold-karat/initData

Headers

Query Parameters

List all Gold Karat entries.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 19,
    \"per_page\": 19,
    \"page\": 3
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 19,
    "per_page": 19,
    "page": 3
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 19,
            'per_page' => 19,
            'page' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat'
payload = {
    "company_no": 19,
    "per_page": 19,
    "page": 3
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CmpGoldKarat list",
    "data": [
        {
            "id": 1,
            "Cmp_No": 123,
            "KT_No": 1,
            "KT_Ty": 1,
            "KT_NmAr": "عيار 24",
            "KT_NmEn": "Karat 24",
            "Purity": "99.9",
            "Ratio_Kgm": "0.999",
            "active": true
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/gold-setting/gold-karat

Headers

Query Parameters

Body Parameters

Create a new Gold Karat entry.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"KT_NmAr\": \"\\\"عيار 24\\\"\",
    \"KT_NmEn\": \"\\\"Karat 24\\\"\",
    \"Purity\": \"\\\"99.9\\\"\",
    \"Ratio_Kgm\": \"\\\"0.999\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat"
);

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

let body = {
    "Cmp_No": 123,
    "KT_NmAr": "\"عيار 24\"",
    "KT_NmEn": "\"Karat 24\"",
    "Purity": "\"99.9\"",
    "Ratio_Kgm": "\"0.999\"",
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'KT_NmAr' => '"عيار 24"',
            'KT_NmEn' => '"Karat 24"',
            'Purity' => '"99.9"',
            'Ratio_Kgm' => '"0.999"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat'
payload = {
    "Cmp_No": 123,
    "KT_NmAr": "\"عيار 24\"",
    "KT_NmEn": "\"Karat 24\"",
    "Purity": "\"99.9\"",
    "Ratio_Kgm": "\"0.999\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "Cmp_No": [
            "The company number is required."
        ],
        "KT_NmAr": [
            "The Arabic name is required."
        ],
        "KT_NmEn": [
            "The English name is required."
        ],
        "Purity": [
            "The purity is required."
        ],
        "Ratio_Kgm": [
            "The gold ratio per kilogram is required."
        ]
    }
}
 

Request      

POST api/v1/base/settings/gold-setting/gold-karat

Headers

Body Parameters

Update an existing Gold Karat entry.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/ut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"KT_NmAr\": \"\\\"عيار 24\\\"\",
    \"KT_NmEn\": \"\\\"Karat 24\\\"\",
    \"Purity\": \"\\\"99.9\\\"\",
    \"Ratio_Kgm\": \"\\\"0.999\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/ut"
);

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

let body = {
    "Cmp_No": 123,
    "KT_NmAr": "\"عيار 24\"",
    "KT_NmEn": "\"Karat 24\"",
    "Purity": "\"99.9\"",
    "Ratio_Kgm": "\"0.999\"",
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/ut';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'KT_NmAr' => '"عيار 24"',
            'KT_NmEn' => '"Karat 24"',
            'Purity' => '"99.9"',
            'Ratio_Kgm' => '"0.999"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/ut'
payload = {
    "Cmp_No": 123,
    "KT_NmAr": "\"عيار 24\"",
    "KT_NmEn": "\"Karat 24\"",
    "Purity": "\"99.9\"",
    "Ratio_Kgm": "\"0.999\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": {
        "Cmp_No": [
            "The company number is required."
        ],
        "KT_NmAr": [
            "The Arabic name is required."
        ],
        "KT_NmEn": [
            "The English name is required."
        ],
        "Purity": [
            "The purity is required."
        ],
        "Ratio_Kgm": [
            "The gold ratio per kilogram is required."
        ]
    }
}
 

Request      

PUT api/v1/base/settings/gold-setting/gold-karat/{goldKarat}

PATCH api/v1/base/settings/gold-setting/gold-karat/{goldKarat}

Headers

URL Parameters

Body Parameters

Delete a Gold Karat entry.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/et"
);

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 = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/et';
$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 = 'http://wazen.test/api/v1/base/settings/gold-setting/gold-karat/et'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (404):


{
    "message": "Gold karat entry not found."
}
 

Request      

DELETE api/v1/base/settings/gold-setting/gold-karat/{goldKarat}

Headers

URL Parameters

Item Store Places

Item Store Places Management API

Initialize data for item store places.

requires authentication

This endpoint fetches the necessary data to initialize item store places.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Brn_No\": 1,
    \"type\": 2,
    \"getStores\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/init-data"
);

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

let body = {
    "Cmp_No": 123,
    "Brn_No": 1,
    "type": 2,
    "getStores": true
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Brn_No' => 1,
            'type' => 2,
            'getStores' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/init-data'
payload = {
    "Cmp_No": 123,
    "Brn_No": 1,
    "type": 2,
    "getStores": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "no": 5,
    "stores": [
        {
            "Dlv_Stor": 10,
            "name": "Main Delivery"
        }
    ]
}
 

Request      

GET api/v1/base/settings/stores-settings/item-store-place/init-data

Headers

Body Parameters

Get a list of item store places.

requires authentication

This endpoint returns a paginated list of item store places.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place?page=1&per_page=15&company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place"
);

const params = {
    "page": "1",
    "per_page": "15",
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'per_page' => '15',
            'company_no' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place'
params = {
  'page': '1',
  'per_page': '15',
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "stor_place_No": 1,
            "stor_place_Nm_Ar": "مستودع 1",
            "stor_place_Nm_En": "Warehouse 1",
            "Dlv_Nm": "Main Delivery",
            "Brn_Nm": "Main Branch"
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "per_page": 15,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/stores-settings/item-store-place

Headers

Query Parameters

Store a newly created item store place.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Brn_No\": 1,
    \"Dlv_Stor\": 10,
    \"stor_place_Ty\": 2,
    \"stor_place_No\": 5,
    \"stor_place_Abv\": \"WH\",
    \"stor_place_Nm_Ar\": \"\\\"مستودع 1\\\"\",
    \"stor_place_Nm_En\": \"\\\"Warehouse 1\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place"
);

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

let body = {
    "Cmp_No": 123,
    "Brn_No": 1,
    "Dlv_Stor": 10,
    "stor_place_Ty": 2,
    "stor_place_No": 5,
    "stor_place_Abv": "WH",
    "stor_place_Nm_Ar": "\"مستودع 1\"",
    "stor_place_Nm_En": "\"Warehouse 1\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Brn_No' => 1,
            'Dlv_Stor' => 10,
            'stor_place_Ty' => 2,
            'stor_place_No' => 5,
            'stor_place_Abv' => 'WH',
            'stor_place_Nm_Ar' => '"مستودع 1"',
            'stor_place_Nm_En' => '"Warehouse 1"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place'
payload = {
    "Cmp_No": 123,
    "Brn_No": 1,
    "Dlv_Stor": 10,
    "stor_place_Ty": 2,
    "stor_place_No": 5,
    "stor_place_Abv": "WH",
    "stor_place_Nm_Ar": "\"مستودع 1\"",
    "stor_place_Nm_En": "\"Warehouse 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()

Example response (200):


{
    "message": "Item store place created successfully."
}
 

Request      

POST api/v1/base/settings/stores-settings/item-store-place

Headers

Body Parameters

Show details of an item store place.

requires authentication

Get the details of a specific item store place by its ID.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/quam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/quam"
);

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 = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/quam';
$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 = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/quam'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "stor_place_No": 1,
    "stor_place_Nm_Ar": "مستودع 1",
    "stor_place_Nm_En": "Warehouse 1",
    "Dlv_Nm": "Main Delivery",
    "Brn_Nm": "Main Branch"
}
 

Request      

GET api/v1/base/settings/stores-settings/item-store-place/{itemStorePlace}

Headers

URL Parameters

Update an existing item store place.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/est" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Brn_No\": 1,
    \"Dlv_Stor\": 10,
    \"stor_place_Ty\": 2,
    \"stor_place_No\": 5,
    \"stor_place_Abv\": \"WH\",
    \"stor_place_Nm_Ar\": \"\\\"مستودع 1\\\"\",
    \"stor_place_Nm_En\": \"\\\"Warehouse 1\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/est"
);

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

let body = {
    "Cmp_No": 123,
    "Brn_No": 1,
    "Dlv_Stor": 10,
    "stor_place_Ty": 2,
    "stor_place_No": 5,
    "stor_place_Abv": "WH",
    "stor_place_Nm_Ar": "\"مستودع 1\"",
    "stor_place_Nm_En": "\"Warehouse 1\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/est';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Brn_No' => 1,
            'Dlv_Stor' => 10,
            'stor_place_Ty' => 2,
            'stor_place_No' => 5,
            'stor_place_Abv' => 'WH',
            'stor_place_Nm_Ar' => '"مستودع 1"',
            'stor_place_Nm_En' => '"Warehouse 1"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/est'
payload = {
    "Cmp_No": 123,
    "Brn_No": 1,
    "Dlv_Stor": 10,
    "stor_place_Ty": 2,
    "stor_place_No": 5,
    "stor_place_Abv": "WH",
    "stor_place_Nm_Ar": "\"مستودع 1\"",
    "stor_place_Nm_En": "\"Warehouse 1\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Item store place updated successfully."
}
 

Request      

PUT api/v1/base/settings/stores-settings/item-store-place/{itemStorePlace}

PATCH api/v1/base/settings/stores-settings/item-store-place/{itemStorePlace}

Headers

URL Parameters

Body Parameters

Delete an item store place.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/molestias" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/molestias"
);

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 = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/molestias';
$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 = 'http://wazen.test/api/v1/base/settings/stores-settings/item-store-place/molestias'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Item store place deleted successfully."
}
 

Example response (400):


{
    "message": "Cannot delete the item store place because it is associated with other records."
}
 

Request      

DELETE api/v1/base/settings/stores-settings/item-store-place/{itemStorePlace}

Headers

URL Parameters

Item Types

API for managing item types settings

Get list of item types.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/item-types?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 17,
    \"per_page\": 2,
    \"page\": 9
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/item-types"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 17,
    "per_page": 2,
    "page": 9
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/item-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 17,
            'per_page' => 2,
            'page' => 9,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/item-types'
payload = {
    "company_no": 17,
    "per_page": 2,
    "page": 9
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CmpItemTypes list",
    "data": [
        {
            "id": 1,
            "Itm_Ty": 1,
            "Cmp_No": 123,
            "ItmTy_DscAr": "الوصف بالعربي",
            "ItmTy_DscEn": "Item Description English",
            "ItmTy_Actv": 1
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/item-types

Headers

Query Parameters

Body Parameters

Store a new item type entry.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/item-types" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Itm_Ty\": 1,
    \"Cmp_No\": 123,
    \"ItmTy_DscAr\": \"\\\"الوصف بالعربي\\\"\",
    \"ItmTy_DscEn\": \"\\\"Item Description English\\\"\",
    \"ItmTy_Actv\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/item-types"
);

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

let body = {
    "Itm_Ty": 1,
    "Cmp_No": 123,
    "ItmTy_DscAr": "\"الوصف بالعربي\"",
    "ItmTy_DscEn": "\"Item Description English\"",
    "ItmTy_Actv": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/item-types';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Itm_Ty' => 1,
            'Cmp_No' => 123,
            'ItmTy_DscAr' => '"الوصف بالعربي"',
            'ItmTy_DscEn' => '"Item Description English"',
            'ItmTy_Actv' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/item-types'
payload = {
    "Itm_Ty": 1,
    "Cmp_No": 123,
    "ItmTy_DscAr": "\"الوصف بالعربي\"",
    "ItmTy_DscEn": "\"Item Description English\"",
    "ItmTy_Actv": 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()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": "Validation errors."
}
 

Request      

POST api/v1/base/settings/item-types

Headers

Body Parameters

Update an existing item type entry.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/item-types/dolore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ItmTy_DscAr\": \"\\\"الوصف بالعربي\\\"\",
    \"ItmTy_DscEn\": \"\\\"Item Description English\\\"\",
    \"ItmTy_Actv\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/item-types/dolore"
);

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

let body = {
    "ItmTy_DscAr": "\"الوصف بالعربي\"",
    "ItmTy_DscEn": "\"Item Description English\"",
    "ItmTy_Actv": 1
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/item-types/dolore';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'ItmTy_DscAr' => '"الوصف بالعربي"',
            'ItmTy_DscEn' => '"Item Description English"',
            'ItmTy_Actv' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/item-types/dolore'
payload = {
    "ItmTy_DscAr": "\"الوصف بالعربي\"",
    "ItmTy_DscEn": "\"Item Description English\"",
    "ItmTy_Actv": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": "Validation errors."
}
 

Request      

PUT api/v1/base/settings/item-types/{itemTypes}

PATCH api/v1/base/settings/item-types/{itemTypes}

Headers

URL Parameters

Body Parameters

Delete an item type entry.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/item-types/cumque" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/item-types/cumque"
);

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 = 'http://wazen.test/api/v1/base/settings/item-types/cumque';
$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 = 'http://wazen.test/api/v1/base/settings/item-types/cumque'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/item-types/{itemTypes}

Headers

URL Parameters

Print a row of item types.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/item-types/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/item-types/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/item-types/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/item-types/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "HTML content of the printed row"
}
 

Request      

GET api/v1/base/settings/item-types/print/{id}

Headers

URL Parameters

Get initial data for item types.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/item-types/get-item-types?Cmp_No=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/item-types/get-item-types"
);

const params = {
    "Cmp_No": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/item-types/get-item-types';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/item-types/get-item-types'
params = {
  'Cmp_No': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "categories": [
        {
            "Itm_Ty": 1,
            "description": "Category Description"
        }
    ],
    "companyName": "Company Name",
    "activityName": "Activity Name"
}
 

Request      

POST api/v1/base/settings/item-types/get-item-types

Headers

Query Parameters

Itineraries

Itinerary Management API

Initialize data for the itinerary.

requires authentication

This endpoint generates a new Route_No and retrieves a list of active cities for the given company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/itinerary/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/itinerary/init-data"
);

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

let body = {
    "company_no": 1
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/itinerary/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/itinerary/init-data'
payload = {
    "company_no": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "initData": {
        "idGenerate": 123,
        "cities": [
            {
                "City_No": 1,
                "City_NmAr": "مدينة 1",
                "City_NmEn": "City 1",
                "name": "City 1"
            },
            {
                "City_No": 2,
                "City_NmAr": "مدينة 2",
                "City_NmEn": "City 2",
                "name": "City 2"
            }
        ]
    }
}
 

Request      

GET api/v1/base/settings/itinerary/init-data

Headers

Body Parameters

Show destinations for an itinerary.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/itinerary/destinations/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/itinerary/destinations/1"
);

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 = 'http://wazen.test/api/v1/base/settings/itinerary/destinations/1';
$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 = 'http://wazen.test/api/v1/base/settings/itinerary/destinations/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1,
    "destinations": [
        {
            "city_name": "City 1",
            "City_Status": "Available"
        }
    ]
}
 

Request      

GET api/v1/base/settings/itinerary/destinations/{id}

Headers

URL Parameters

List all itineraries.

requires authentication

Returns a list of itineraries with pagination.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/itinerary?page=1&per_page=15&company_no=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 17,
    \"per_page\": 13,
    \"page\": 18
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/itinerary"
);

const params = {
    "page": "1",
    "per_page": "15",
    "company_no": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 17,
    "per_page": 13,
    "page": 18
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/itinerary';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'per_page' => '15',
            'company_no' => '123',
        ],
        'json' => [
            'company_no' => 17,
            'per_page' => 13,
            'page' => 18,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/itinerary'
payload = {
    "company_no": 17,
    "per_page": 13,
    "page": 18
}
params = {
  'page': '1',
  'per_page': '15',
  'company_no': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "message": "Itinerary list",
    "data": [
        {
            "id": 1,
            "name": "Sample Itinerary",
            "company": {
                "id": 1,
                "name": "Company Name"
            },
            "destinations": [
                {
                    "id": 1,
                    "name": "Destination Name"
                }
            ]
        }
    ],
    "pagination": {
        "count": 10,
        "total": 100,
        "pageSize": 15,
        "currentPage": 1,
        "totalPages": 7,
        "links": {
            "next": "http://api.example.com/itineraries?page=2"
        }
    }
}
 

Example response (422):


{
    "error": "Validation error",
    "message": {
        "company_no": [
            "The selected company no is invalid."
        ]
    }
}
 

Request      

GET api/v1/base/settings/itinerary

Headers

Query Parameters

Body Parameters

Store a new itinerary.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/itinerary" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Route_NmAr\": \"\\\"طريق 1\\\"\",
    \"Route_NmEn\": \"\\\"Route 1\\\"\",
    \"From_City\": 1,
    \"To_City\": 2,
    \"Exp_DriverCom\": \"\\\"100.50\\\"\",
    \"distance\": \"\\\"500 KM\\\"\",
    \"time\": \"\\\"5 hours\\\"\",
    \"Transport_Cost\": \"\\\"2000\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/itinerary"
);

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

let body = {
    "Cmp_No": 123,
    "Route_NmAr": "\"طريق 1\"",
    "Route_NmEn": "\"Route 1\"",
    "From_City": 1,
    "To_City": 2,
    "Exp_DriverCom": "\"100.50\"",
    "distance": "\"500 KM\"",
    "time": "\"5 hours\"",
    "Transport_Cost": "\"2000\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/itinerary';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Route_NmAr' => '"طريق 1"',
            'Route_NmEn' => '"Route 1"',
            'From_City' => 1,
            'To_City' => 2,
            'Exp_DriverCom' => '"100.50"',
            'distance' => '"500 KM"',
            'time' => '"5 hours"',
            'Transport_Cost' => '"2000"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/itinerary'
payload = {
    "Cmp_No": 123,
    "Route_NmAr": "\"طريق 1\"",
    "Route_NmEn": "\"Route 1\"",
    "From_City": 1,
    "To_City": 2,
    "Exp_DriverCom": "\"100.50\"",
    "distance": "\"500 KM\"",
    "time": "\"5 hours\"",
    "Transport_Cost": "\"2000\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Successfully added.",
    "data": {
        "id": 1,
        "Route_No": 1,
        "Cmp_No": 1,
        "name": "New Itinerary",
        "description": "A description of the itinerary",
        "company": {
            "id": 1,
            "name": "Company Name"
        },
        "destinations": [
            {
                "id": 1,
                "name": "Destination 1"
            },
            {
                "id": 2,
                "name": "Destination 2"
            }
        ]
    }
}
 

Example response (422):


{
    "status": 0,
    "message": {
        "Cmp_No": [
            "The selected company no is invalid."
        ],
        "name": [
            "The name field is required."
        ],
        "destinations": [
            "The destinations field is required."
        ]
    }
}
 

Request      

POST api/v1/base/settings/itinerary

Headers

Body Parameters

Update an existing itinerary.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/itinerary/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Route_NmAr\": \"\\\"طريق 1\\\"\",
    \"Route_NmEn\": \"\\\"Route 1\\\"\",
    \"From_City\": 1,
    \"To_City\": 2,
    \"Exp_DriverCom\": \"\\\"100.50\\\"\",
    \"distance\": \"\\\"500 KM\\\"\",
    \"time\": \"\\\"5 hours\\\"\",
    \"Transport_Cost\": \"\\\"2000\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/itinerary/1"
);

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

let body = {
    "Cmp_No": 123,
    "Route_NmAr": "\"طريق 1\"",
    "Route_NmEn": "\"Route 1\"",
    "From_City": 1,
    "To_City": 2,
    "Exp_DriverCom": "\"100.50\"",
    "distance": "\"500 KM\"",
    "time": "\"5 hours\"",
    "Transport_Cost": "\"2000\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/itinerary/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Route_NmAr' => '"طريق 1"',
            'Route_NmEn' => '"Route 1"',
            'From_City' => 1,
            'To_City' => 2,
            'Exp_DriverCom' => '"100.50"',
            'distance' => '"500 KM"',
            'time' => '"5 hours"',
            'Transport_Cost' => '"2000"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/itinerary/1'
payload = {
    "Cmp_No": 123,
    "Route_NmAr": "\"طريق 1\"",
    "Route_NmEn": "\"Route 1\"",
    "From_City": 1,
    "To_City": 2,
    "Exp_DriverCom": "\"100.50\"",
    "distance": "\"500 KM\"",
    "time": "\"5 hours\"",
    "Transport_Cost": "\"2000\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Successfully updated.",
    "data": {
        "id": 1,
        "Route_No": 1,
        "Cmp_No": 1,
        "name": "Updated Itinerary",
        "description": "An updated description of the itinerary",
        "company": {
            "id": 1,
            "name": "Company Name"
        },
        "destinations": [
            {
                "id": 1,
                "name": "Destination 1"
            },
            {
                "id": 2,
                "name": "Destination 2"
            }
        ]
    }
}
 

Example response (422):


{
    "status": 0,
    "message": {
        "Cmp_No": [
            "The selected company no is invalid."
        ],
        "name": [
            "The name field is required."
        ],
        "destinations": [
            "The destinations field is required."
        ]
    }
}
 

Request      

PUT api/v1/base/settings/itinerary/{id}

PATCH api/v1/base/settings/itinerary/{id}

Headers

URL Parameters

Body Parameters

Delete an existing itinerary.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/itinerary/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/itinerary/1"
);

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 = 'http://wazen.test/api/v1/base/settings/itinerary/1';
$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 = 'http://wazen.test/api/v1/base/settings/itinerary/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Successfully deleted."
}
 

Example response (404):


{
    "status": 0,
    "message": "Itinerary not found."
}
 

Request      

DELETE api/v1/base/settings/itinerary/{id}

Headers

URL Parameters

Journals

List Journals.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/journals" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/journals"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/journals';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/journals'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "data": [
        {
            "id": 1,
            "journal_no": 25100001,
            "journal_type": {
                "id": 1,
                "reference_no": 6,
                "name_ar": "نوع",
                "name_en": "Type"
            },
            "date": {
                "gregorian": "2024-08-11",
                "islamic": "1445-01-28"
            },
            "source": "dashboard",
            "amounts": {
                "debit": 1000,
                "credit": 1000
            },
            "company": {
                "id": 1,
                "company_no": 123,
                "name_ar": "شركة",
                "name_en": "Company"
            },
            "branch": {
                "id": 1,
                "branch_no": 123,
                "name_ar": "فرع",
                "name_en": "Branch"
            },
            "user": {
                "id": 1,
                "email": "[email protected]",
                "username": "user1"
            }
        }
    ],
    "message": "journals list",
    "pagination": {
        "count": 1,
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1,
        "links": {}
    }
}
 

Request      

GET api/v1/base/journals

Headers

Create Journal

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/journals" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"header\": {
        \"type\": 6,
        \"date\": \"2024-01-01\"
    },
    \"lines\": [
        {
            \"debit\": \"5637\",
            \"credit\": \"06\",
            \"desc\": \"incidunt\",
            \"cost_center\": 60027209,
            \"line_no\": 64148.377691,
            \"account_type\": 4112,
            \"account_no\": \"beatae\"
        }
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/journals"
);

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

let body = {
    "header": {
        "type": 6,
        "date": "2024-01-01"
    },
    "lines": [
        {
            "debit": "5637",
            "credit": "06",
            "desc": "incidunt",
            "cost_center": 60027209,
            "line_no": 64148.377691,
            "account_type": 4112,
            "account_no": "beatae"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/journals';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'header' => [
                'type' => 6,
                'date' => '2024-01-01',
            ],
            'lines' => [
                [
                    'debit' => '5637',
                    'credit' => '06',
                    'desc' => 'incidunt',
                    'cost_center' => 60027209.0,
                    'line_no' => 64148.377691,
                    'account_type' => 4112.0,
                    'account_no' => 'beatae',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/journals'
payload = {
    "header": {
        "type": 6,
        "date": "2024-01-01"
    },
    "lines": [
        {
            "debit": "5637",
            "credit": "06",
            "desc": "incidunt",
            "cost_center": 60027209,
            "line_no": 64148.377691,
            "account_type": 4112,
            "account_no": "beatae"
        }
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "id": 1,
        "journal_no": 25100001,
        "journal_type": {
            "id": 1,
            "reference_no": 6,
            "name_ar": "نوع",
            "name_en": "Type"
        },
        "date": {
            "gregorian": "2024-08-11",
            "islamic": "1445-01-28"
        },
        "source": "dashboard",
        "amounts": {
            "debit": 1000,
            "credit": 1000
        },
        "company": {
            "id": 1,
            "company_no": "123",
            "name_ar": "شركة",
            "name_en": "Company"
        },
        "branch": {
            "id": 1,
            "branch_no": "123",
            "name_ar": "فرع",
            "name_en": "Branch"
        },
        "user": {
            "id": 1,
            "email": "[email protected]",
            "username": "user1"
        }
    },
    "message": "journals created successfully"
}
 

Example response (400):


{
    "status": "error",
    "errors": {
        "header.type": [
            "The journal type is required.",
            "The journal type must be a number.",
            "Invalid journal type."
        ],
        "header.date": [
            "The date must be a valid date."
        ],
        "lines.*.debit": [
            "Debit value is required.",
            "Debit value must be a valid number with up to 8 decimal places."
        ],
        "lines.*.credit": [
            "Credit value is required.",
            "Credit value must be a valid number with up to 8 decimal places."
        ],
        "lines.*.desc": [
            "Description must be a string."
        ],
        "lines.*.cost_center": [
            "Cost center must be a number."
        ],
        "lines.*.line_no": [
            "Line number is required.",
            "Line number must be a number."
        ],
        "lines.*.account_no": [
            "Account number is required.",
            "The account number does not exist for the given account type."
        ],
        "lines.*.account_type": [
            "Account type is required.",
            "Account type must be a number."
        ],
        "lines": [
            "The sum of debits must equal the sum of credits.",
            "A line cannot have both debit and credit values.",
            "A line must have either a debit or a credit value."
        ]
    }
}
 

Request      

POST api/v1/base/journals

Headers

Body Parameters

Import journals.

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/journals/import" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"header\": {
        \"type\": 6,
        \"date\": \"2024-08-11\"
    },
    \"lines\": [
        \"hic\"
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/journals/import"
);

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

let body = {
    "header": {
        "type": 6,
        "date": "2024-08-11"
    },
    "lines": [
        "hic"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/journals/import';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'header' => [
                'type' => 6,
                'date' => '2024-08-11',
            ],
            'lines' => [
                'hic',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/journals/import'
payload = {
    "header": {
        "type": 6,
        "date": "2024-08-11"
    },
    "lines": [
        "hic"
    ]
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "data": {
        "id": 1,
        "journal_no": 25100001,
        "journal_type": {
            "id": 1,
            "reference_no": 6,
            "name_ar": "نوع",
            "name_en": "Type"
        },
        "date": {
            "gregorian": "2024-08-11",
            "islamic": "1445-01-28"
        },
        "source": "dashboard",
        "amounts": {
            "debit": 1000,
            "credit": 1000
        },
        "company": {
            "id": 1,
            "company_no": "123",
            "name_ar": "شركة",
            "name_en": "Company"
        },
        "branch": {
            "id": 1,
            "branch_no": "123",
            "name_ar": "فرع",
            "name_en": "Branch"
        },
        "user": {
            "id": 1,
            "email": "[email protected]",
            "username": "user1"
        }
    },
    "message": "journals created successfully"
}
 

Request      

POST api/v1/base/journals/import

Headers

Body Parameters

Karat Prices

API for managing gold karat prices settings

Initialize data for generating a new ID.

requires authentication

This endpoint initializes data by generating an incremented ID based on the current company number and specific karat type.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/gold-setting/karat-price/initData?company_no=20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/karat-price/initData"
);

const params = {
    "company_no": "20",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price/initData';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '20',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price/initData'
params = {
  'company_no': '20',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "initData": {
        "idGenerate": 101
    }
}
 

Request      

GET api/v1/base/settings/gold-setting/karat-price/initData

Headers

Query Parameters

Get list of Karat Prices.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/gold-setting/karat-price?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 17,
    \"per_page\": 2,
    \"page\": 4
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/karat-price"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 17,
    "per_page": 2,
    "page": 4
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 17,
            'per_page' => 2,
            'page' => 4,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price'
payload = {
    "company_no": 17,
    "per_page": 2,
    "page": 4
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CmpKaratPrice list",
    "data": [
        {
            "id": 1,
            "Cmp_No": 123,
            "KT_No": 1,
            "KT_Ty": 2,
            "KT_NmAr": "24 قيراط",
            "KT_NmEn": "24 Karat",
            "Purity": "99.9%",
            "Ratio_Kgm": 24,
            "active": 1
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "per_page": 10,
        "current_page": 1,
        "total_pages": 1
    }
}
 

Request      

GET api/v1/base/settings/gold-setting/karat-price

Headers

Query Parameters

Body Parameters

Store a new Karat Price entry.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/gold-setting/karat-price" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"KT_NmAr\": \"\\\"24 قيراط\\\"\",
    \"KT_NmEn\": \"\\\"24 Karat\\\"\",
    \"Purity\": \"\\\"99.9%\\\"\",
    \"Ratio_Kgm\": \"24.00\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/karat-price"
);

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

let body = {
    "Cmp_No": 123,
    "KT_NmAr": "\"24 قيراط\"",
    "KT_NmEn": "\"24 Karat\"",
    "Purity": "\"99.9%\"",
    "Ratio_Kgm": "24.00"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'KT_NmAr' => '"24 قيراط"',
            'KT_NmEn' => '"24 Karat"',
            'Purity' => '"99.9%"',
            'Ratio_Kgm' => '24.00',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price'
payload = {
    "Cmp_No": 123,
    "KT_NmAr": "\"24 قيراط\"",
    "KT_NmEn": "\"24 Karat\"",
    "Purity": "\"99.9%\"",
    "Ratio_Kgm": "24.00"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": "Validation errors."
}
 

Request      

POST api/v1/base/settings/gold-setting/karat-price

Headers

Body Parameters

Update an existing Karat Price entry.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/gold-setting/karat-price/consequatur" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"KT_NmAr\": \"\\\"24 قيراط\\\"\",
    \"KT_NmEn\": \"\\\"24 Karat\\\"\",
    \"Purity\": \"\\\"99.9%\\\"\",
    \"Ratio_Kgm\": \"24.00\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/karat-price/consequatur"
);

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

let body = {
    "KT_NmAr": "\"24 قيراط\"",
    "KT_NmEn": "\"24 Karat\"",
    "Purity": "\"99.9%\"",
    "Ratio_Kgm": "24.00"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price/consequatur';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'KT_NmAr' => '"24 قيراط"',
            'KT_NmEn' => '"24 Karat"',
            'Purity' => '"99.9%"',
            'Ratio_Kgm' => '24.00',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price/consequatur'
payload = {
    "KT_NmAr": "\"24 قيراط\"",
    "KT_NmEn": "\"24 Karat\"",
    "Purity": "\"99.9%\"",
    "Ratio_Kgm": "24.00"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Example response (400):


{
    "status": 0,
    "errors": "Validation errors."
}
 

Request      

PUT api/v1/base/settings/gold-setting/karat-price/{karatPrice}

PATCH api/v1/base/settings/gold-setting/karat-price/{karatPrice}

Headers

URL Parameters

Body Parameters

Delete a Karat Price entry.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/gold-setting/karat-price/aliquam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/gold-setting/karat-price/aliquam"
);

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 = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price/aliquam';
$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 = 'http://wazen.test/api/v1/base/settings/gold-setting/karat-price/aliquam'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

DELETE api/v1/base/settings/gold-setting/karat-price/{karatPrice}

Headers

URL Parameters

LoadPermissionPrices

Load Permission Price Management API

Display a listing of Load Permission Prices.

requires authentication

This endpoint retrieves a list of Load Permission Prices for a specified company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/load-permission-price" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"per_page\": 15,
    \"page\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/load-permission-price"
);

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

let body = {
    "company_no": 1,
    "per_page": 15,
    "page": 1
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/load-permission-price';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 1,
            'per_page' => 15,
            'page' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/load-permission-price'
payload = {
    "company_no": 1,
    "per_page": 15,
    "page": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "LoadPermissionPrice list",
    "data": [
        {
            // Add fields according to your LoadPermissionPriceResource
        }
    ],
    "pagination": {
        "count": 10,
        "total": 50,
        "pageSize": 15,
        "currentPage": 1,
        "totalPages": 4,
        "links": {
            "next": "http://example.com/api/load-permission-prices?page=2"
        }
    }
}
 

Request      

GET api/v1/base/settings/load-permission-price

Headers

Body Parameters

Store a new load permission price.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/load-permission-price" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"load_number\": 5,
    \"load_price\": \"150.50\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/load-permission-price"
);

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

let body = {
    "load_number": 5,
    "load_price": "150.50"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/load-permission-price';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'load_number' => 5,
            'load_price' => '150.50',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/load-permission-price'
payload = {
    "load_number": 5,
    "load_price": "150.50"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "data": {
        "id": 1,
        "Cmp_No": 123,
        "load_number": 5,
        "load_price": 150.5
    }
}
 

Request      

POST api/v1/base/settings/load-permission-price

Headers

Body Parameters

Update a load permission price.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/load-permission-price/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"load_number\": 5,
    \"load_price\": \"150.50\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/load-permission-price/et"
);

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

let body = {
    "load_number": 5,
    "load_price": "150.50"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/load-permission-price/et';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'load_number' => 5,
            'load_price' => '150.50',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/load-permission-price/et'
payload = {
    "load_number": 5,
    "load_price": "150.50"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "data": {
        "id": 1,
        "Cmp_No": 123,
        "load_number": 5,
        "load_price": 150.5
    }
}
 

Request      

PUT api/v1/base/settings/load-permission-price/{loadPermissionPrice}

PATCH api/v1/base/settings/load-permission-price/{loadPermissionPrice}

Headers

URL Parameters

Body Parameters

Delete a load permission price.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/load-permission-price/ab" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/load-permission-price/ab"
);

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 = 'http://wazen.test/api/v1/base/settings/load-permission-price/ab';
$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 = 'http://wazen.test/api/v1/base/settings/load-permission-price/ab'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

DELETE api/v1/base/settings/load-permission-price/{loadPermissionPrice}

Headers

URL Parameters

Payment Methods

API for managing payment methods

Initialize payment method data. This endpoint retrieves the available payment methods that are not already associated with the current company and generates a new ID for a payment method.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/payment-methods/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/init-data"
);

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

let body = {
    "company_no": 1
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/init-data'
payload = {
    "company_no": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "initData": {
        "payments": [
            {
                "Pym_No": 1,
                "Pym_DscAr": "وصف الدفع",
                "Pym_DscEn": "Payment Description",
                "Pym_Actv": true
            }
        ],
        "idGenerate": 2
    }
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Request      

GET api/v1/base/settings/payment-methods/init-data

Headers

Body Parameters

Get a list of payment methods.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/payment-methods?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 5,
    \"per_page\": 5,
    \"page\": 15
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 5,
    "per_page": 5,
    "page": 15
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 5,
            'per_page' => 5,
            'page' => 15,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods'
payload = {
    "company_no": 5,
    "per_page": 5,
    "page": 15
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": "success",
    "message": "PaymentMethods list",
    "data": [
        {
            "id": "1",
            "Pym_No": "PM001",
            "Pym_DscAr": "وصف الدفع 1",
            "Pym_DscEn": "Payment Description 1",
            "Pym_Actv": true
        },
        // additional payment methods...
    ],
    "pagination": {
        "count": 10,
        "total": 50,
        "pageSize": 15,
        "currentPage": 1,
        "totalPages": 4,
        "links": {
            "next": "http://api.example.com/payment-methods?page=2"
        }
    }
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Request      

GET api/v1/base/settings/payment-methods

Headers

Query Parameters

Body Parameters

Store a new payment method. This endpoint creates a new payment method or restores existing ones based on the request.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/payment-methods" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": \"1\",
    \"restore\": true,
    \"data\": [
        \"molestiae\"
    ],
    \"Pym_DscAr\": \"\\\"وصف الدفع\\\"\",
    \"Pym_DscEn\": \"\\\"Payment Description\\\"\",
    \"Pym_Actv\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods"
);

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

let body = {
    "company_no": "1",
    "restore": true,
    "data": [
        "molestiae"
    ],
    "Pym_DscAr": "\"وصف الدفع\"",
    "Pym_DscEn": "\"Payment Description\"",
    "Pym_Actv": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => '1',
            'restore' => true,
            'data' => [
                'molestiae',
            ],
            'Pym_DscAr' => '"وصف الدفع"',
            'Pym_DscEn' => '"Payment Description"',
            'Pym_Actv' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods'
payload = {
    "company_no": "1",
    "restore": true,
    "data": [
        "molestiae"
    ],
    "Pym_DscAr": "\"وصف الدفع\"",
    "Pym_DscEn": "\"Payment Description\"",
    "Pym_Actv": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "message": "Payment method added successfully",
    "data": {
        "id": "1",
        "Pym_No": "PM001",
        "Pym_DscAr": "وصف الدفع",
        "Pym_DscEn": "Payment Description",
        "Pym_Actv": true,
    }
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Request      

POST api/v1/base/settings/payment-methods

Headers

Body Parameters

Update an existing payment method. This endpoint updates the details of a specified payment method by its ID.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/payment-methods/sit" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 1,
    \"company_no\": \"1\",
    \"Pym_DscAr\": \"\\\"وصف الدفع\\\"\",
    \"Pym_DscEn\": \"\\\"Payment Description\\\"\",
    \"Pym_Actv\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/sit"
);

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

let body = {
    "id": 1,
    "company_no": "1",
    "Pym_DscAr": "\"وصف الدفع\"",
    "Pym_DscEn": "\"Payment Description\"",
    "Pym_Actv": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/sit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 1,
            'company_no' => '1',
            'Pym_DscAr' => '"وصف الدفع"',
            'Pym_DscEn' => '"Payment Description"',
            'Pym_Actv' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/sit'
payload = {
    "id": 1,
    "company_no": "1",
    "Pym_DscAr": "\"وصف الدفع\"",
    "Pym_DscEn": "\"Payment Description\"",
    "Pym_Actv": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "message": "Updated successfully",
    "data": {
        "id": "1",
        "Pym_No": "PM001",
        "Pym_DscAr": "وصف الدفع",
        "Pym_DscEn": "Payment Description",
        "Pym_Actv": true,
    }
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Request      

PUT api/v1/base/settings/payment-methods/{paymentMethods}

PATCH api/v1/base/settings/payment-methods/{paymentMethods}

Headers

URL Parameters

Body Parameters

Deactivate a payment method. This endpoint deactivates a specified payment method by its ID, setting its active status to false.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/payment-methods/vel" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"id\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/vel"
);

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

let body = {
    "id": 1
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/vel';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'id' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/vel'
payload = {
    "id": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": "success",
    "message": "Deleted successfully"
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Request      

DELETE api/v1/base/settings/payment-methods/{paymentMethods}

Headers

URL Parameters

Body Parameters

Initialize data for the electronic payment. This endpoint retrieves initial data including accounts, branches, banks, settings, and generates an ID.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/initData" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": \"1\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/initData"
);

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

let body = {
    "company_no": "1"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/initData';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/initData'
payload = {
    "company_no": "1"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "initData": {
        "accounts": [
            {
                "Acc_No": "123",
                "name": "Account Name"
            }
        ],
        "branches": [
            {
                "Brn_No": -1,
                "name": "All"
            },
            {
                "Brn_No": "1",
                "name": "Branch Name"
            }
        ],
        "banks": [
            {
                "Acc_No": "456",
                "name": "Bank Account Name"
            }
        ],
        "allow_day_closure": true,
        "idGenerate": "unique-id-123",
        "AstElectronicPayment": [
            {
                "ID_No": "789",
                // other fields...
            }
        ]
    }
}
 

Example response (422):


{
    "error": "Error message",
    "message": "Unknown error"
}
 

Request      

GET api/v1/base/settings/payment-methods/electronic-payments/initData

Headers

Body Parameters

Get a list of electronic payments.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"per_page\": 4,
    \"page\": 6
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 1,
    "per_page": 4,
    "page": 6
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 1,
            'per_page' => 4,
            'page' => 6,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments'
payload = {
    "company_no": 1,
    "per_page": 4,
    "page": 6
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "message": "ElectronicPayment list",
    "data": [
        {
            "id": 1,
            "Actvty_No": "activity_number",
            "Cmp_No": "company_number",
            "ELecPymnt_Id": "payment_id",
            "uuid": "unique_identifier",
            "ELecPymnt_Actv": true,
            "name": "Payment Name in Current Language",
            "ELecPymnt_NmAr": "اسم الدفع",
            "ELecPymnt_NmEn": "Payment Name in English",
            "ELecPymnt_Prct": 15,
            "Acc_No": "account_number",
            "bank_no": "bank_number",
            "Brn_Num": "branch_number",
            "Card_Pic": "path_to_card_picture",
            "bank_account": {
                "id": 1,
                "name": "Account Name in Current Language",
                "name_ar": "اسم الحساب",
                "name_en": "Account Name in English",
                "account_no": "account_number",
                "parent_Account": "parent_account_number"
            }
        }
    ],
    "pagination": {
        "count": 10,
        "total": 50,
        "pageSize": 15,
        "currentPage": 1,
        "totalPages": 4,
        "links": {
            "next": "http://example.com/api/electronic-payments?page=2"
        }
    }
}
 

Request      

GET api/v1/base/settings/payment-methods/electronic-payments

Headers

Query Parameters

Body Parameters

Store a newly created electronic payment method.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"restore\": true,
    \"data\": [
        \"qui\"
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments"
);

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

let body = {
    "restore": true,
    "data": [
        "qui"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'restore' => true,
            'data' => [
                'qui',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments'
payload = {
    "restore": true,
    "data": [
        "qui"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Success message.",
    "data": {
        "id": "new_payment_id",
        "Cmp_No": 1,
        "ELecPymnt_Id": "payment_id",
        ...
    }
}
 

Example response (422):


{
    "error": "Error message.",
    "message": "An error occurred while processing your request."
}
 

Request      

POST api/v1/base/settings/payment-methods/electronic-payments

Headers

Body Parameters

Show a specific electronic payment method.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230"
);

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 = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230';
$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 = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "payment": {
        "id": 1,
        "Cmp_No": 1,
        "ELecPymnt_Id": "payment_id",
        "ELecPymnt_NmAr": "اسم الدفع",
        "ELecPymnt_NmEn": "Payment Name",
        "ELecPymnt_Prct": 5,
        "Acc_No": "123456",
        "bank_no": "bank_id",
        "Brn_Num": "branch_number",
        "Card_Pic": "http://example.com/card_pic.png",
        "uuid": "unique-id-string",
        "ELecPymnt_Actv": true,
        "bank_account": {
            "id": 1,
            "name": "Bank Account Name",
            "account_no": "654321",
            "parent_Account": null
        }
    }
}
 

Example response (404):


{
    "message": "The electronic payment not found."
}
 

Request      

GET api/v1/base/settings/payment-methods/electronic-payments/{ID_No}

Headers

URL Parameters

Update the specified Electronic Payment.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 1,
    \"ELecPymnt_Id\": \"\\\"payment_id\\\"\",
    \"ELecPymnt_Actv\": true,
    \"ELecPymnt_NmAr\": \"\\\"اسم الدفع\\\"\",
    \"ELecPymnt_NmEn\": \"\\\"Payment Name\\\"\",
    \"ELecPymnt_Prct\": 5,
    \"Acc_No\": \"\\\"123456\\\"\",
    \"bank_no\": \"\\\"bank_id\\\"\",
    \"Brn_Num\": \"\\\"branch_number\\\"\",
    \"Card_Pic\": \"\\\"http:\\/\\/example.com\\/card_pic.png\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230"
);

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

let body = {
    "Cmp_No": 1,
    "ELecPymnt_Id": "\"payment_id\"",
    "ELecPymnt_Actv": true,
    "ELecPymnt_NmAr": "\"اسم الدفع\"",
    "ELecPymnt_NmEn": "\"Payment Name\"",
    "ELecPymnt_Prct": 5,
    "Acc_No": "\"123456\"",
    "bank_no": "\"bank_id\"",
    "Brn_Num": "\"branch_number\"",
    "Card_Pic": "\"http:\/\/example.com\/card_pic.png\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 1,
            'ELecPymnt_Id' => '"payment_id"',
            'ELecPymnt_Actv' => true,
            'ELecPymnt_NmAr' => '"اسم الدفع"',
            'ELecPymnt_NmEn' => '"Payment Name"',
            'ELecPymnt_Prct' => 5.0,
            'Acc_No' => '"123456"',
            'bank_no' => '"bank_id"',
            'Brn_Num' => '"branch_number"',
            'Card_Pic' => '"http://example.com/card_pic.png"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230'
payload = {
    "Cmp_No": 1,
    "ELecPymnt_Id": "\"payment_id\"",
    "ELecPymnt_Actv": true,
    "ELecPymnt_NmAr": "\"اسم الدفع\"",
    "ELecPymnt_NmEn": "\"Payment Name\"",
    "ELecPymnt_Prct": 5,
    "Acc_No": "\"123456\"",
    "bank_no": "\"bank_id\"",
    "Brn_Num": "\"branch_number\"",
    "Card_Pic": "\"http:\/\/example.com\/card_pic.png\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Updated successfully",
    "data": {
        "id": 1,
        "Cmp_No": 1,
        "ELecPymnt_Id": "payment_id",
        "ELecPymnt_NmAr": "اسم الدفع",
        "ELecPymnt_NmEn": "Payment Name",
        "ELecPymnt_Prct": 5,
        "Acc_No": "123456",
        "bank_no": "bank_id",
        "Brn_Num": "branch_number",
        "Card_Pic": "http://example.com/card_pic.png",
        "bank_account": {
            "id": 1,
            "name": "Bank Account Name",
            "account_no": "654321",
            "parent_Account": null
        }
    }
}
 

Example response (404):


{
    "message": "The electronic payment not found."
}
 

Example response (422):


{
    "error": "Error message",
    "message": "Unknown error"
}
 

Request      

PUT api/v1/base/settings/payment-methods/electronic-payments/{ID_No}

PATCH api/v1/base/settings/payment-methods/electronic-payments/{ID_No}

Headers

URL Parameters

Body Parameters

Delete an electronic payment method.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230"
);

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 = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230';
$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 = 'http://wazen.test/api/v1/base/settings/payment-methods/electronic-payments/2230'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Deleted successfully"
}
 

Example response (400):


{
    "status": "400",
    "message": "This item cannot be deleted because it has related records."
}
 

Example response (404):


{
    "message": "The electronic payment not found."
}
 

Example response (422):


{
    "error": "Error message",
    "message": "Unknown error"
}
 

Request      

DELETE api/v1/base/settings/payment-methods/electronic-payments/{ID_No}

Headers

URL Parameters

Initialize data for payment methods. This endpoint retrieves payment methods related to the current company and generates a new ID for payment processing.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/payment-methods/installments/initData?Cmp_No=13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/installments/initData"
);

const params = {
    "Cmp_No": "13",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/initData';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '13',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/initData'
params = {
  'Cmp_No': '13',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "initData": {
        "idGenerate": 123,
        "installmentsMethods": [
            {
                "id": 1,
                "Pymt_NmAR": "اسم الدفع 1",
                "Pymt_NmEN": "Payment Name 1",
                "uuid": "unique-uuid-1",
                // Other fields as necessary
            },
            // Additional payment methods...
        ]
    }
}
 

Example response (404):


{
    "error": "Not Found",
    "message": "The requested resource could not be found."
}
 

Request      

GET api/v1/base/settings/payment-methods/installments/initData

Headers

Query Parameters

Import multiple installment payment methods.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/payment-methods/installments/import-payments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/installments/import-payments"
);

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 = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/import-payments';
$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 = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/import-payments'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Operation successful."
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Example response (500):


{
    "error": "Update failed",
    "message": "An unknown error occurred."
}
 

Request      

POST api/v1/base/settings/payment-methods/installments/import-payments

Headers

Body Parameters

Get a list of installment payments.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/payment-methods/installments?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 3,
    \"per_page\": 13,
    \"page\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/installments"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 3,
    "per_page": 13,
    "page": 1
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/installments';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 3,
            'per_page' => 13,
            'page' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/installments'
payload = {
    "company_no": 3,
    "per_page": 13,
    "page": 1
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "message": "Installments list",
    "data": [
        {
            "id": 1,
            "Cmp_No": 1,
            "Pymt_Wys2": 2,
            "name": "Payment Method Name",
            "Pymt_NmAR": "اسم طريقة الدفع",
            "Pymt_NmEN": "Payment Method Name",
            "Nof_Month": 12,
            "Nof_Times": 6,
            "uuid": "unique-uuid-string",
            "Pymt_Actv": true
        }
    ],
    "pagination": {
        "count": 1,
        "total": 1,
        "pageSize": 15,
        "currentPage": 1,
        "totalPages": 1,
        "links": {
            "next": null
        }
    }
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Request      

GET api/v1/base/settings/payment-methods/installments

Headers

Query Parameters

Body Parameters

Store a newly created installment payment method. This endpoint allows the creation of a new installment record.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/payment-methods/installments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"Pymt_Wys2\": 2,
    \"Pymt_NmAR\": \"\\\"اسم القسط\\\"\",
    \"Pymt_NmEN\": \"\\\"Installment Name\\\"\",
    \"Nof_Month\": 12,
    \"Nof_Times\": 6,
    \"uuid\": \"\\\"unique-uuid-string\\\"\",
    \"Pymt_Actv\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/installments"
);

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

let body = {
    "company_no": 1,
    "Pymt_Wys2": 2,
    "Pymt_NmAR": "\"اسم القسط\"",
    "Pymt_NmEN": "\"Installment Name\"",
    "Nof_Month": 12,
    "Nof_Times": 6,
    "uuid": "\"unique-uuid-string\"",
    "Pymt_Actv": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/installments';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 1,
            'Pymt_Wys2' => 2,
            'Pymt_NmAR' => '"اسم القسط"',
            'Pymt_NmEN' => '"Installment Name"',
            'Nof_Month' => 12,
            'Nof_Times' => 6,
            'uuid' => '"unique-uuid-string"',
            'Pymt_Actv' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/installments'
payload = {
    "company_no": 1,
    "Pymt_Wys2": 2,
    "Pymt_NmAR": "\"اسم القسط\"",
    "Pymt_NmEN": "\"Installment Name\"",
    "Nof_Month": 12,
    "Nof_Times": 6,
    "uuid": "\"unique-uuid-string\"",
    "Pymt_Actv": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):


{
    "message": "Operation successful.",
    "data": {
        "id": 1,
        "Cmp_No": 1,
        "Pymt_Wys2": 2,
        "name": "Installment Name",
        "Pymt_NmAR": "اسم القسط",
        "Pymt_NmEN": "Installment Name",
        "Nof_Month": 12,
        "Nof_Times": 6,
        "uuid": "unique-uuid-string",
        "Pymt_Actv": true
    }
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Example response (500):


{
    "error": "Creating failed",
    "message": "An unknown error occurred."
}
 

Request      

POST api/v1/base/settings/payment-methods/installments

Headers

Body Parameters

Show a specific installment payment method.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/payment-methods/installments/mollitia" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/installments/mollitia"
);

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 = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/mollitia';
$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 = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/mollitia'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "payment": {
        "Pymt_Wys2": "123",
        "Pymt_NmAR": "طريقة الدفع بالتقسيط",
        "Pymt_NmEN": "Installment Payment",
        "Nof_Month": 6,
        "Nof_Times": 12,
        "Pymt_Actv": true
    }
}
 

Request      

GET api/v1/base/settings/payment-methods/installments/{installments}

Headers

URL Parameters

Update an existing installment payment method. This endpoint allows the modification of an existing installment record.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/payment-methods/installments/illo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"Pymt_Wys2\": 2,
    \"Pymt_NmAR\": \"\\\"اسم القسط\\\"\",
    \"Pymt_NmEN\": \"\\\"Installment Name\\\"\",
    \"Nof_Month\": 12,
    \"Nof_Times\": 6,
    \"uuid\": \"\\\"unique-uuid-string\\\"\",
    \"Pymt_Actv\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/installments/illo"
);

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

let body = {
    "company_no": 1,
    "Pymt_Wys2": 2,
    "Pymt_NmAR": "\"اسم القسط\"",
    "Pymt_NmEN": "\"Installment Name\"",
    "Nof_Month": 12,
    "Nof_Times": 6,
    "uuid": "\"unique-uuid-string\"",
    "Pymt_Actv": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/illo';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 1,
            'Pymt_Wys2' => 2,
            'Pymt_NmAR' => '"اسم القسط"',
            'Pymt_NmEN' => '"Installment Name"',
            'Nof_Month' => 12,
            'Nof_Times' => 6,
            'uuid' => '"unique-uuid-string"',
            'Pymt_Actv' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/illo'
payload = {
    "company_no": 1,
    "Pymt_Wys2": 2,
    "Pymt_NmAR": "\"اسم القسط\"",
    "Pymt_NmEN": "\"Installment Name\"",
    "Nof_Month": 12,
    "Nof_Times": 6,
    "uuid": "\"unique-uuid-string\"",
    "Pymt_Actv": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Operation successful.",
    "data": {
        "id": 1,
        "Cmp_No": 1,
        "Pymt_Wys2": 2,
        "name": "Installment Name",
        "Pymt_NmAR": "اسم القسط",
        "Pymt_NmEN": "Installment Name",
        "Nof_Month": 12,
        "Nof_Times": 6,
        "uuid": "unique-uuid-string",
        "Pymt_Actv": true
    }
}
 

Example response (404):


{
    "error": "Not Found",
    "message": "The specified installment does not exist."
}
 

Example response (422):


{
    "error": "Validation Error",
    "message": "The given data was invalid."
}
 

Example response (500):


{
    "error": "Update failed",
    "message": "An unknown error occurred."
}
 

Request      

PUT api/v1/base/settings/payment-methods/installments/{installments}

PATCH api/v1/base/settings/payment-methods/installments/{installments}

Headers

URL Parameters

Body Parameters

Delete an installment payment method. This endpoint allows for the deletion of a specified installment record.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/payment-methods/installments/aut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/payment-methods/installments/aut"
);

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 = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/aut';
$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 = 'http://wazen.test/api/v1/base/settings/payment-methods/installments/aut'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Operation successful."
}
 

Example response (404):


{
    "error": "Not Found",
    "message": "The specified installment does not exist."
}
 

Example response (500):


{
    "error": "Delete failed",
    "message": "An unknown error occurred."
}
 

Request      

DELETE api/v1/base/settings/payment-methods/installments/{installments}

Headers

URL Parameters

PeriodWork

PeriodWork Api

Get Init Data

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/period-work/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/period-work/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/period-work/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/period-work/init-data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
"initData" => [
     "no" => "20000300001"
     "sub_no" => "1"
 ],
'success'  => TRUE,
}
 

Request      

GET api/v1/base/settings/period-work/init-data

Headers

Get a list of PeriodWork.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/period-work" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/period-work"
);

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 = 'http://wazen.test/api/v1/base/settings/period-work';
$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 = 'http://wazen.test/api/v1/base/settings/period-work'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "status": "success",
  "message": "PeriodWork list",
  "data": [
    {
      "id": 1,
      "Period_No": 20000300001,
      "name": "فترة مسائية",
      "Start_Time": 04:00 PM,
      "End_Time": 11:59 PM,
    }
  ]
}
 

Request      

GET api/v1/base/settings/period-work

Headers

Create a new PeriodWork.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/period-work" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"sint\",
    \"Brn_No\": \"dolorem\",
    \"Period_SubNo\": 16,
    \"Period_No\": 18,
    \"Period_NmAr\": \"lmt\",
    \"Period_NmEn\": \"jrqyfnczoi\",
    \"Start_Time\": \"commodi\",
    \"End_Time\": \"corporis\",
    \"nameAr\": \"فترة مسائية\",
    \"nameEn\": \"Main PeriodWork\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/period-work"
);

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

let body = {
    "Cmp_No": "sint",
    "Brn_No": "dolorem",
    "Period_SubNo": 16,
    "Period_No": 18,
    "Period_NmAr": "lmt",
    "Period_NmEn": "jrqyfnczoi",
    "Start_Time": "commodi",
    "End_Time": "corporis",
    "nameAr": "فترة مسائية",
    "nameEn": "Main PeriodWork"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/period-work';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'sint',
            'Brn_No' => 'dolorem',
            'Period_SubNo' => 16,
            'Period_No' => 18,
            'Period_NmAr' => 'lmt',
            'Period_NmEn' => 'jrqyfnczoi',
            'Start_Time' => 'commodi',
            'End_Time' => 'corporis',
            'nameAr' => 'فترة مسائية',
            'nameEn' => 'Main PeriodWork',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/period-work'
payload = {
    "Cmp_No": "sint",
    "Brn_No": "dolorem",
    "Period_SubNo": 16,
    "Period_No": 18,
    "Period_NmAr": "lmt",
    "Period_NmEn": "jrqyfnczoi",
    "Start_Time": "commodi",
    "End_Time": "corporis",
    "nameAr": "فترة مسائية",
    "nameEn": "Main PeriodWork"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
  "status": "success",
  "message": "PeriodWork created successfully",
  "data": {
    "id": 1,
    "Period_No": 20000300001,
    "Period_SubNo": 1,
    "Period_NmAr": "فترة مسائية",
    "Period_NmEn": "Night Shift",
    "Start_Time": 04:00 PM,
     "End_Time": 11:59 PM,
  }
}
 

Request      

POST api/v1/base/settings/period-work

Headers

Body Parameters

Display a specific PeriodWork.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/period-work/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/period-work/1"
);

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 = 'http://wazen.test/api/v1/base/settings/period-work/1';
$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 = 'http://wazen.test/api/v1/base/settings/period-work/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "status": "success",
  "message": "PeriodWork details retrieved successfully",
  "data": {
    "id": 1,
    "Period_No": 20000300001,
    "Period_SubNo": 1,
    "Period_NmAr": "فترة مسائية",
    "Period_NmEn": "Night Shift",
    "Start_Time": 04:00 PM,
    "End_Time": 11:59 PM,
  }
}
 

Request      

GET api/v1/base/settings/period-work/{id}

Headers

URL Parameters

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/period-work/commodi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"dicta\",
    \"Brn_No\": \"sed\",
    \"Period_SubNo\": 12,
    \"Period_No\": 13,
    \"Period_NmAr\": \"hskifzjnoaqeaydoeisns\",
    \"Period_NmEn\": \"pcobcawwl\",
    \"Start_Time\": \"quas\",
    \"End_Time\": \"dolor\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/period-work/commodi"
);

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

let body = {
    "Cmp_No": "dicta",
    "Brn_No": "sed",
    "Period_SubNo": 12,
    "Period_No": 13,
    "Period_NmAr": "hskifzjnoaqeaydoeisns",
    "Period_NmEn": "pcobcawwl",
    "Start_Time": "quas",
    "End_Time": "dolor"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/period-work/commodi';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'dicta',
            'Brn_No' => 'sed',
            'Period_SubNo' => 12,
            'Period_No' => 13,
            'Period_NmAr' => 'hskifzjnoaqeaydoeisns',
            'Period_NmEn' => 'pcobcawwl',
            'Start_Time' => 'quas',
            'End_Time' => 'dolor',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/period-work/commodi'
payload = {
    "Cmp_No": "dicta",
    "Brn_No": "sed",
    "Period_SubNo": 12,
    "Period_No": 13,
    "Period_NmAr": "hskifzjnoaqeaydoeisns",
    "Period_NmEn": "pcobcawwl",
    "Start_Time": "quas",
    "End_Time": "dolor"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request      

PUT api/v1/base/settings/period-work/{id}

PATCH api/v1/base/settings/period-work/{id}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/period-work/neque" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/period-work/neque"
);

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 = 'http://wazen.test/api/v1/base/settings/period-work/neque';
$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 = 'http://wazen.test/api/v1/base/settings/period-work/neque'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/period-work/{id}

Headers

URL Parameters

Personnel Settings

API for managing job positions in the system

Initialize Data

requires authentication

This endpoint retrieves job data and generates a new job ID for the current company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/jobs/init-data?company_no=14" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/jobs/init-data"
);

const params = {
    "company_no": "14",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '14',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs/init-data'
params = {
  'company_no': '14',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "initData": {
    "jobs": [
      {
        "Job_No": 1,
        "Job_Name": "Manager",
        "Cmp_No": 2,
        ...
      },
      {
        "Job_No": 2,
        "Job_Name": "Accountant",
        "Cmp_No": 2,
        ...
      }
    ],
    "idGenerate": 3
  }
}
 

Request      

GET api/v1/base/settings/personnel-settings/jobs/init-data

Headers

Query Parameters

Get a list of jobs.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/jobs?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 5,
    \"per_page\": 6,
    \"page\": 16
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/jobs"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 5,
    "per_page": 6,
    "page": 16
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 5,
            'per_page' => 6,
            'page' => 16,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs'
payload = {
    "company_no": 5,
    "per_page": 6,
    "page": 16
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CmpJobs list",
    "data": {
        "list": [
            {
                "ID": 1,
                "Cmp_No": 123,
                "Job_No": 1001,
                "Job_NmAr": "مدير",
                "Job_NmEn": "Manager",
                "Job_Typ": "Management",
                "active": true
            }
        ],
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1
        }
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/jobs

Headers

Query Parameters

Body Parameters

Store a newly created job.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/personnel-settings/jobs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Job_NmAr\": \"\\\"مدير\\\"\",
    \"Job_NmEn\": \"\\\"Manager\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/jobs"
);

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

let body = {
    "Cmp_No": 123,
    "Job_NmAr": "\"مدير\"",
    "Job_NmEn": "\"Manager\"",
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Job_NmAr' => '"مدير"',
            'Job_NmEn' => '"Manager"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs'
payload = {
    "Cmp_No": 123,
    "Job_NmAr": "\"مدير\"",
    "Job_NmEn": "\"Manager\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Job created successfully"
}
 

Request      

POST api/v1/base/settings/personnel-settings/jobs

Headers

Body Parameters

Update a job.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/personnel-settings/jobs/numquam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Job_NmAr\": \"\\\"مدير\\\"\",
    \"Job_NmEn\": \"\\\"Manager\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/jobs/numquam"
);

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

let body = {
    "Cmp_No": 123,
    "Job_NmAr": "\"مدير\"",
    "Job_NmEn": "\"Manager\"",
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs/numquam';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Job_NmAr' => '"مدير"',
            'Job_NmEn' => '"Manager"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs/numquam'
payload = {
    "Cmp_No": 123,
    "Job_NmAr": "\"مدير\"",
    "Job_NmEn": "\"Manager\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Job updated successfully"
}
 

Request      

PUT api/v1/base/settings/personnel-settings/jobs/{jobs}

PATCH api/v1/base/settings/personnel-settings/jobs/{jobs}

Headers

URL Parameters

Body Parameters

Delete a job.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/personnel-settings/jobs/commodi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/jobs/commodi"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs/commodi';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/jobs/commodi'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/personnel-settings/jobs/{jobs}

Headers

URL Parameters

Fetch initialization data for departments.

requires authentication

This endpoint retrieves necessary data to initialize departments, including parent employees, job details, department types, and a predefined count of zeros.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/departments/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 101
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/departments/init-data"
);

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

let body = {
    "company_no": 101
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 101,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments/init-data'
payload = {
    "company_no": 101
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "initData": {
        "parentEmployees": [
            {
                "ID_No": 1,
                "Cmp_No": 101,
                "Emp_No": 1001,
                "Emp_NmAr": "اسم الموظف",
                "Emp_NmEn": "Employee Name"
            }
        ],
        "departmentType": [
            {
                "value": 1,
                "key": "type_1",
                "description": "Description of Type 1"
            },
            {
                "value": 2,
                "key": "type_2",
                "description": "Description of Type 2"
            }
        ],
        "jobs": [
            {
                "Cmp_No": 101,
                "Job_No": 1,
                "Job_NmAr": "اسم الوظيفة",
                "Job_NmEn": "Job Name",
                "employees_count": 5,
                "active_employees_count": 3
            }
        ],
        "countZeros": 2
    }
}
 

Example response (422):


{
    "message": "Invalid input data provided.",
    "errors": {
        "company_no": [
            "The selected company_no is invalid."
        ]
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/departments/init-data

Headers

Body Parameters

List all departments with nested structure.

requires authentication

This endpoint retrieves a hierarchical list of departments for a given company, including their jobs and child departments.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/departments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 101
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/departments"
);

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

let body = {
    "company_no": 101
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 101,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments'
payload = {
    "company_no": 101
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "Departments list",
    "data": [
        {
            "id": "root",
            "Cmp_No": 101,
            "Level_Status": 0,
            "name": "Company Name ( 101 )",
            "children": [
                {
                    "id": 1,
                    "Actv_No": 2,
                    "Cmp_No": 101,
                    "DepmLoc_No": "10",
                    "Parnt_DepmLoc": null,
                    "Level_No": 1,
                    "name": "Department Name ( 10 ) 1",
                    "DepmLoc_NmAr": "اسم الإدارة",
                    "DepmLoc_NmEn": "Department Name",
                    "Level_Status": 1,
                    "Ast_Loc": true,
                    "Ownr_No": 5,
                    "DepmLoc_Actv": true,
                    "Parent_Emp_No": 3,
                    "children": [],
                    "departmentsJobs": []
                }
            ],
            "departmentsJobs": []
        }
    ]
}
 

Example response (422):


{
    "message": "Invalid input data provided.",
    "errors": {
        "company_no": [
            "The selected company_no is invalid."
        ]
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/departments

Headers

Body Parameters

Store a newly created department.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/personnel-settings/departments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"DepmLoc_No\": 26520.74,
    \"Parnt_DepmLoc\": 1,
    \"DepmLoc_NmAr\": \"\\\"إدارة الموارد البشرية\\\"\",
    \"DepmLoc_NmEn\": \"\\\"HR Department\\\"\",
    \"Level_No\": 84.05,
    \"Level_Status\": 5569836.72420273,
    \"Ast_Loc\": false,
    \"Ownr_No\": 58306648.7,
    \"DepmLoc_Actv\": false,
    \"Actv_No\": 257882206.2590337,
    \"Parent_Emp_No\": 52647616.33102877,
    \"dataJobs\": [
        \"iure\"
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/departments"
);

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

let body = {
    "Cmp_No": 123,
    "DepmLoc_No": 26520.74,
    "Parnt_DepmLoc": 1,
    "DepmLoc_NmAr": "\"إدارة الموارد البشرية\"",
    "DepmLoc_NmEn": "\"HR Department\"",
    "Level_No": 84.05,
    "Level_Status": 5569836.72420273,
    "Ast_Loc": false,
    "Ownr_No": 58306648.7,
    "DepmLoc_Actv": false,
    "Actv_No": 257882206.2590337,
    "Parent_Emp_No": 52647616.33102877,
    "dataJobs": [
        "iure"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'DepmLoc_No' => 26520.74,
            'Parnt_DepmLoc' => 1,
            'DepmLoc_NmAr' => '"إدارة الموارد البشرية"',
            'DepmLoc_NmEn' => '"HR Department"',
            'Level_No' => 84.05,
            'Level_Status' => 5569836.72420273,
            'Ast_Loc' => false,
            'Ownr_No' => 58306648.7,
            'DepmLoc_Actv' => false,
            'Actv_No' => 257882206.2590337,
            'Parent_Emp_No' => 52647616.33102877,
            'dataJobs' => [
                'iure',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments'
payload = {
    "Cmp_No": 123,
    "DepmLoc_No": 26520.74,
    "Parnt_DepmLoc": 1,
    "DepmLoc_NmAr": "\"إدارة الموارد البشرية\"",
    "DepmLoc_NmEn": "\"HR Department\"",
    "Level_No": 84.05,
    "Level_Status": 5569836.72420273,
    "Ast_Loc": false,
    "Ownr_No": 58306648.7,
    "DepmLoc_Actv": false,
    "Actv_No": 257882206.2590337,
    "Parent_Emp_No": 52647616.33102877,
    "dataJobs": [
        "iure"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true,
    "DepmLoc_No": 1001
}
 

Request      

POST api/v1/base/settings/personnel-settings/departments

Headers

Body Parameters

Update a department.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/personnel-settings/departments/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"DepmLoc_No\": 6359.95028477,
    \"Parnt_DepmLoc\": 1,
    \"DepmLoc_NmAr\": \"\\\"إدارة الموارد البشرية\\\"\",
    \"DepmLoc_NmEn\": \"\\\"HR Department\\\"\",
    \"Level_No\": 7.9,
    \"Level_Status\": 261055.386722401,
    \"Ast_Loc\": true,
    \"Ownr_No\": 52273.773619369,
    \"DepmLoc_Actv\": true,
    \"Actv_No\": 2618029.24115455,
    \"Parent_Emp_No\": 2210.1812252,
    \"dataJobs\": [
        \"quas\"
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/departments/et"
);

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

let body = {
    "Cmp_No": 123,
    "DepmLoc_No": 6359.95028477,
    "Parnt_DepmLoc": 1,
    "DepmLoc_NmAr": "\"إدارة الموارد البشرية\"",
    "DepmLoc_NmEn": "\"HR Department\"",
    "Level_No": 7.9,
    "Level_Status": 261055.386722401,
    "Ast_Loc": true,
    "Ownr_No": 52273.773619369,
    "DepmLoc_Actv": true,
    "Actv_No": 2618029.24115455,
    "Parent_Emp_No": 2210.1812252,
    "dataJobs": [
        "quas"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments/et';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'DepmLoc_No' => 6359.95028477,
            'Parnt_DepmLoc' => 1,
            'DepmLoc_NmAr' => '"إدارة الموارد البشرية"',
            'DepmLoc_NmEn' => '"HR Department"',
            'Level_No' => 7.9,
            'Level_Status' => 261055.386722401,
            'Ast_Loc' => true,
            'Ownr_No' => 52273.773619369,
            'DepmLoc_Actv' => true,
            'Actv_No' => 2618029.24115455,
            'Parent_Emp_No' => 2210.1812252,
            'dataJobs' => [
                'quas',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments/et'
payload = {
    "Cmp_No": 123,
    "DepmLoc_No": 6359.95028477,
    "Parnt_DepmLoc": 1,
    "DepmLoc_NmAr": "\"إدارة الموارد البشرية\"",
    "DepmLoc_NmEn": "\"HR Department\"",
    "Level_No": 7.9,
    "Level_Status": 261055.386722401,
    "Ast_Loc": true,
    "Ownr_No": 52273.773619369,
    "DepmLoc_Actv": true,
    "Actv_No": 2618029.24115455,
    "Parent_Emp_No": 2210.1812252,
    "dataJobs": [
        "quas"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

PUT api/v1/base/settings/personnel-settings/departments/{departments}

PATCH api/v1/base/settings/personnel-settings/departments/{departments}

Headers

URL Parameters

Body Parameters

Delete a department.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/personnel-settings/departments/iusto" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/departments/iusto"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments/iusto';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/departments/iusto'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/personnel-settings/departments/{departments}

Headers

URL Parameters

Initialize Entry and Departure Ports Data

requires authentication

This endpoint retrieves the list of HR ports that are not yet linked with the company’s entry and departure ports. It also generates the next available port ID for the current company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/init-data?company_no=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/init-data"
);

const params = {
    "company_no": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/init-data'
params = {
  'company_no': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
  "initData": {
    "hrAstPorts": [
      {
        "Ports_No": 1,
        "Ports_Name": "Main Gate",
        ...
      },
      {
        "Ports_No": 2,
        "Ports_Name": "East Wing",
        ...
      }
    ],
    "idGenerate": 5
  }
}
 

Request      

GET api/v1/base/settings/personnel-settings/entry-departure-ports/init-data

Headers

Query Parameters

Get a list of entry/departure ports.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 17,
    \"per_page\": 16,
    \"page\": 8
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 17,
    "per_page": 16,
    "page": 8
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 17,
            'per_page' => 16,
            'page' => 8,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports'
payload = {
    "company_no": 17,
    "per_page": 16,
    "page": 8
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CmpEntryDeparturePorts list",
    "data": {
        "list": [
            {
                "id": 1,
                "Cmp_No": 123,
                "Ports_No": 1001,
                "Ports_NmAr": "منفذ دخول",
                "Ports_NmEn": "Entry Port",
                "active": true
            }
        ],
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1
        }
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/entry-departure-ports

Headers

Query Parameters

Body Parameters

Store a newly created entry/departure port.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Ports_NmAr\": \"\\\"منفذ دخول\\\"\",
    \"Ports_NmEn\": \"\\\"Entry Port\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports"
);

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

let body = {
    "Cmp_No": 123,
    "Ports_NmAr": "\"منفذ دخول\"",
    "Ports_NmEn": "\"Entry Port\"",
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Ports_NmAr' => '"منفذ دخول"',
            'Ports_NmEn' => '"Entry Port"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports'
payload = {
    "Cmp_No": 123,
    "Ports_NmAr": "\"منفذ دخول\"",
    "Ports_NmEn": "\"Entry Port\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Entry/Departure port created successfully"
}
 

Request      

POST api/v1/base/settings/personnel-settings/entry-departure-ports

Headers

Body Parameters

Update an entry/departure port.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/aut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"Ports_NmAr\": \"\\\"منفذ دخول\\\"\",
    \"Ports_NmEn\": \"\\\"Entry Port\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/aut"
);

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

let body = {
    "Cmp_No": 123,
    "Ports_NmAr": "\"منفذ دخول\"",
    "Ports_NmEn": "\"Entry Port\"",
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/aut';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'Ports_NmAr' => '"منفذ دخول"',
            'Ports_NmEn' => '"Entry Port"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/aut'
payload = {
    "Cmp_No": 123,
    "Ports_NmAr": "\"منفذ دخول\"",
    "Ports_NmEn": "\"Entry Port\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Entry/Departure port updated successfully"
}
 

Request      

PUT api/v1/base/settings/personnel-settings/entry-departure-ports/{entryDeparturePorts}

PATCH api/v1/base/settings/personnel-settings/entry-departure-ports/{entryDeparturePorts}

Headers

URL Parameters

Body Parameters

Delete an entry/departure port.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/et"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/et';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/entry-departure-ports/et'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/personnel-settings/entry-departure-ports/{entryDeparturePorts}

Headers

URL Parameters

GET api/v1/base/settings/personnel-settings/place-license/init-data

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/place-license/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license/init-data'
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
x-request-id: dffec403-be23-4f3d-a72b-9b22917025f4
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/personnel-settings/place-license/init-data

Headers

Get a list of place licenses.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/place-license?perPage=15&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"State_No\": 5,
    \"State_NmAr\": \"fugiat\",
    \"State_NmEn\": \"quia\",
    \"cty_client\": false,
    \"cty_resident\": true,
    \"cty_drivlic\": true,
    \"cty_jobactv\": false,
    \"cty_Nat_id\": false,
    \"cty_address\": true,
    \"cty_cmp\": true,
    \"cty_actv\": false
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license"
);

const params = {
    "perPage": "15",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "State_No": 5,
    "State_NmAr": "fugiat",
    "State_NmEn": "quia",
    "cty_client": false,
    "cty_resident": true,
    "cty_drivlic": true,
    "cty_jobactv": false,
    "cty_Nat_id": false,
    "cty_address": true,
    "cty_cmp": true,
    "cty_actv": false
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '15',
            'page' => '1',
        ],
        'json' => [
            'State_No' => 5,
            'State_NmAr' => 'fugiat',
            'State_NmEn' => 'quia',
            'cty_client' => false,
            'cty_resident' => true,
            'cty_drivlic' => true,
            'cty_jobactv' => false,
            'cty_Nat_id' => false,
            'cty_address' => true,
            'cty_cmp' => true,
            'cty_actv' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license'
payload = {
    "State_No": 5,
    "State_NmAr": "fugiat",
    "State_NmEn": "quia",
    "cty_client": false,
    "cty_resident": true,
    "cty_drivlic": true,
    "cty_jobactv": false,
    "cty_Nat_id": false,
    "cty_address": true,
    "cty_cmp": true,
    "cty_actv": false
}
params = {
  'perPage': '15',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "success": true,
    "data": [
        {
            "ID": 1,
            "Cmp_No": 123,
            "State_No": 10,
            "State_NmAr": "الرياض",
            "State_NmEn": "Riyadh",
            "cty_client": 1,
            "cty_resident": 1,
            "cty_drivlic": 1,
            "cty_jobactv": 1,
            "cty_Nat_id": 1,
            "cty_address": 1,
            "cty_cmp": 1,
            "cty_actv": 1
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/place-license

Headers

Query Parameters

Body Parameters

Store a newly created place license.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"State_No\": 101,
    \"State_NmAr\": \"\\\"الرياض\\\"\",
    \"State_NmEn\": \"\\\"Riyadh\\\"\",
    \"cty_client\": 1,
    \"cty_resident\": 1,
    \"cty_drivlic\": 1,
    \"cty_jobactv\": 1,
    \"cty_Nat_id\": 1,
    \"cty_address\": 1,
    \"cty_cmp\": 1,
    \"cty_actv\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license"
);

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

let body = {
    "State_No": 101,
    "State_NmAr": "\"الرياض\"",
    "State_NmEn": "\"Riyadh\"",
    "cty_client": 1,
    "cty_resident": 1,
    "cty_drivlic": 1,
    "cty_jobactv": 1,
    "cty_Nat_id": 1,
    "cty_address": 1,
    "cty_cmp": 1,
    "cty_actv": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'State_No' => 101,
            'State_NmAr' => '"الرياض"',
            'State_NmEn' => '"Riyadh"',
            'cty_client' => 1,
            'cty_resident' => 1,
            'cty_drivlic' => 1,
            'cty_jobactv' => 1,
            'cty_Nat_id' => 1,
            'cty_address' => 1,
            'cty_cmp' => 1,
            'cty_actv' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license'
payload = {
    "State_No": 101,
    "State_NmAr": "\"الرياض\"",
    "State_NmEn": "\"Riyadh\"",
    "cty_client": 1,
    "cty_resident": 1,
    "cty_drivlic": 1,
    "cty_jobactv": 1,
    "cty_Nat_id": 1,
    "cty_address": 1,
    "cty_cmp": 1,
    "cty_actv": 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()

Example response (200):


{
    "success": true,
    "message": "تم الحفظ بنجاح"
}
 

Request      

POST api/v1/base/settings/personnel-settings/place-license

Headers

Body Parameters

Show a place license.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/place-license/quibusdam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license/quibusdam"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license/quibusdam';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license/quibusdam'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": 200,
    "data": {
        "ID": 1,
        "Cmp_No": 123,
        "State_No": 10,
        "State_NmAr": "الرياض",
        "State_NmEn": "Riyadh"
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/place-license/{placeLicense}

Headers

URL Parameters

Update a place license.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license/ad" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"State_No\": 12,
    \"State_NmAr\": \"\\\"الرياض\\\"\",
    \"State_NmEn\": \"\\\"Riyadh\\\"\",
    \"cty_client\": 1,
    \"cty_resident\": 1,
    \"cty_drivlic\": 1,
    \"cty_jobactv\": 1,
    \"cty_Nat_id\": 1,
    \"cty_address\": 1,
    \"cty_cmp\": 1,
    \"cty_actv\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license/ad"
);

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

let body = {
    "State_No": 12,
    "State_NmAr": "\"الرياض\"",
    "State_NmEn": "\"Riyadh\"",
    "cty_client": 1,
    "cty_resident": 1,
    "cty_drivlic": 1,
    "cty_jobactv": 1,
    "cty_Nat_id": 1,
    "cty_address": 1,
    "cty_cmp": 1,
    "cty_actv": 1
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license/ad';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'State_No' => 12,
            'State_NmAr' => '"الرياض"',
            'State_NmEn' => '"Riyadh"',
            'cty_client' => 1,
            'cty_resident' => 1,
            'cty_drivlic' => 1,
            'cty_jobactv' => 1,
            'cty_Nat_id' => 1,
            'cty_address' => 1,
            'cty_cmp' => 1,
            'cty_actv' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license/ad'
payload = {
    "State_No": 12,
    "State_NmAr": "\"الرياض\"",
    "State_NmEn": "\"Riyadh\"",
    "cty_client": 1,
    "cty_resident": 1,
    "cty_drivlic": 1,
    "cty_jobactv": 1,
    "cty_Nat_id": 1,
    "cty_address": 1,
    "cty_cmp": 1,
    "cty_actv": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

PUT api/v1/base/settings/personnel-settings/place-license/{placeLicense}

PATCH api/v1/base/settings/personnel-settings/place-license/{placeLicense}

Headers

URL Parameters

Body Parameters

Delete a place license.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license/ut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/place-license/ut"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license/ut';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/place-license/ut'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/personnel-settings/place-license/{placeLicense}

Headers

URL Parameters

Get initial data for company providers and generate a new ID.

requires authentication

This API retrieves the list of HR company providers that are not yet linked to a company, and it generates a new unique ID for a company license.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/init-data?company_no=101" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/init-data"
);

const params = {
    "company_no": "101",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '101',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/init-data'
params = {
  'company_no': '101',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "initData": {
        "companyProviders": [
            {
                "id": 1,
                "CmpLicisu_No": 102,
                "name": "HR Provider 1",
                "active": 1
            },
            {
                "id": 2,
                "CmpLicisu_No": 103,
                "name": "HR Provider 2",
                "active": 1
            }
        ],
        "idGenerate": 201
    }
}
 

Example response (401):


{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/personnel-settings/company-license-providers/init-data

Headers

Query Parameters

Get a list of company license providers.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 2,
    \"per_page\": 6,
    \"page\": 19
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 2,
    "per_page": 6,
    "page": 19
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 2,
            'per_page' => 6,
            'page' => 19,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers'
payload = {
    "company_no": 2,
    "per_page": 6,
    "page": 19
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CompanyLicenseProviders list",
    "data": {
        "list": [
            {
                "ID": 1,
                "Cmp_No": 123,
                "CmpLicisu_No": 1001,
                "CmpLicisu_NmAr": "مزود رخصة",
                "CmpLicisu_NmEn": "License Provider",
                "active": true
            }
        ],
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1
        }
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/company-license-providers

Headers

Query Parameters

Body Parameters

Store a newly created license provider.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CmpLicisu_NmAr\": \"\\\"مزود رخصة\\\"\",
    \"CmpLicisu_NmEn\": \"\\\"License Provider\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers"
);

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

let body = {
    "Cmp_No": 123,
    "CmpLicisu_NmAr": "\"مزود رخصة\"",
    "CmpLicisu_NmEn": "\"License Provider\"",
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CmpLicisu_NmAr' => '"مزود رخصة"',
            'CmpLicisu_NmEn' => '"License Provider"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers'
payload = {
    "Cmp_No": 123,
    "CmpLicisu_NmAr": "\"مزود رخصة\"",
    "CmpLicisu_NmEn": "\"License Provider\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true,
    "message": "تم الحفظ بنجاح"
}
 

Request      

POST api/v1/base/settings/personnel-settings/company-license-providers

Headers

Body Parameters

Display a specific license provider.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/nemo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/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 (200):


{
    "status": 200,
    "data": {
        "ID_No": 1,
        "Cmp_No": 123,
        "CmpLicisu_No": 1001,
        "CmpLicisu_NmAr": "مزود رخصة",
        "CmpLicisu_NmEn": "License Provider",
        "active": true
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/company-license-providers/{companyLicenseProviders}

Headers

URL Parameters

Update a specific license provider.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/qui" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CmpLicisu_NmAr\": \"\\\"مزود رخصة\\\"\",
    \"CmpLicisu_NmEn\": \"\\\"License Provider\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/qui"
);

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

let body = {
    "Cmp_No": 123,
    "CmpLicisu_NmAr": "\"مزود رخصة\"",
    "CmpLicisu_NmEn": "\"License Provider\"",
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/qui';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CmpLicisu_NmAr' => '"مزود رخصة"',
            'CmpLicisu_NmEn' => '"License Provider"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/qui'
payload = {
    "Cmp_No": 123,
    "CmpLicisu_NmAr": "\"مزود رخصة\"",
    "CmpLicisu_NmEn": "\"License Provider\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true,
    "message": "تم التحديث بنجاح"
}
 

Request      

PUT api/v1/base/settings/personnel-settings/company-license-providers/{companyLicenseProviders}

PATCH api/v1/base/settings/personnel-settings/company-license-providers/{companyLicenseProviders}

Headers

URL Parameters

Body Parameters

Delete a specific license provider.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/aspernatur" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/aspernatur"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/aspernatur';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-providers/aspernatur'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/personnel-settings/company-license-providers/{companyLicenseProviders}

Headers

URL Parameters

Get initial data for company types and generate a new ID.

requires authentication

This API retrieves the list of HR company types that are not yet linked to a company, and it generates a new unique ID for a company license type.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/init-data?company_no=101" \
    --header "Authorization: Bearer {token}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/init-data"
);

const params = {
    "company_no": "101",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {token}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '101',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/init-data'
params = {
  'company_no': '101',
}
headers = {
  'Authorization': 'Bearer {token}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "initData": {
        "companyTypes": [
            {
                "id": 1,
                "CmplicTyp_No": 202,
                "name": "HR Company Type 1",
                "active": 1
            },
            {
                "id": 2,
                "CmplicTyp_No": 203,
                "name": "HR Company Type 2",
                "active": 1
            }
        ],
        "idGenerate": 301
    }
}
 

Example response (401):


{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/personnel-settings/company-license-type/init-data

Headers

Query Parameters

Get a list of company license types.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 8,
    \"per_page\": 8,
    \"page\": 12
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 8,
    "per_page": 8,
    "page": 12
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 8,
            'per_page' => 8,
            'page' => 12,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type'
payload = {
    "company_no": 8,
    "per_page": 8,
    "page": 12
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CompanyLicenseType list",
    "data": {
        "list": [
            {
                "ID_No": 1,
                "Cmp_No": 123,
                "CmplicTyp_No": 1001,
                "CmplicTyp_NmAr": "نوع الرخصة",
                "CmplicTyp_NmEn": "License Type",
                "active": true
            }
        ],
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1
        }
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/company-license-type

Headers

Query Parameters

Body Parameters

Store a newly created license type.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CmplicTyp_No\": 8,
    \"CmplicTyp_NmAr\": \"\\\"نوع الرخصة\\\"\",
    \"CmplicTyp_NmEn\": \"\\\"License Type\\\"\",
    \"Start_Date\": \"2024-12-10T18:05:42\",
    \"Start_hijri_Date\": \"2024-12-10T18:05:42\",
    \"End_Date\": \"2024-12-10T18:05:42\",
    \"End_hijri_Date\": \"2024-12-10T18:05:42\",
    \"Fee\": 7,
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type"
);

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

let body = {
    "Cmp_No": 123,
    "CmplicTyp_No": 8,
    "CmplicTyp_NmAr": "\"نوع الرخصة\"",
    "CmplicTyp_NmEn": "\"License Type\"",
    "Start_Date": "2024-12-10T18:05:42",
    "Start_hijri_Date": "2024-12-10T18:05:42",
    "End_Date": "2024-12-10T18:05:42",
    "End_hijri_Date": "2024-12-10T18:05:42",
    "Fee": 7,
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CmplicTyp_No' => 8,
            'CmplicTyp_NmAr' => '"نوع الرخصة"',
            'CmplicTyp_NmEn' => '"License Type"',
            'Start_Date' => '2024-12-10T18:05:42',
            'Start_hijri_Date' => '2024-12-10T18:05:42',
            'End_Date' => '2024-12-10T18:05:42',
            'End_hijri_Date' => '2024-12-10T18:05:42',
            'Fee' => 7,
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type'
payload = {
    "Cmp_No": 123,
    "CmplicTyp_No": 8,
    "CmplicTyp_NmAr": "\"نوع الرخصة\"",
    "CmplicTyp_NmEn": "\"License Type\"",
    "Start_Date": "2024-12-10T18:05:42",
    "Start_hijri_Date": "2024-12-10T18:05:42",
    "End_Date": "2024-12-10T18:05:42",
    "End_hijri_Date": "2024-12-10T18:05:42",
    "Fee": 7,
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true,
    "message": "تم الحفظ بنجاح"
}
 

Request      

POST api/v1/base/settings/personnel-settings/company-license-type

Headers

Body Parameters

Display a specific license type.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/facere" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/facere"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/facere';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/facere'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": 200,
    "data": {
        "ID_No": 1,
        "Cmp_No": 123,
        "CmplicTyp_No": 1001,
        "CmplicTyp_NmAr": "نوع الرخصة",
        "CmplicTyp_NmEn": "License Type",
        "active": true
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/company-license-type/{companyLicenseType}

Headers

URL Parameters

Update a specific license type.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/nisi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"CmplicTyp_No\": 8,
    \"CmplicTyp_NmAr\": \"\\\"نوع الرخصة\\\"\",
    \"CmplicTyp_NmEn\": \"\\\"License Type\\\"\",
    \"Start_Date\": \"2024-12-10T18:05:42\",
    \"Start_hijri_Date\": \"2024-12-10T18:05:42\",
    \"End_Date\": \"2024-12-10T18:05:42\",
    \"End_hijri_Date\": \"2024-12-10T18:05:42\",
    \"Fee\": 20,
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/nisi"
);

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

let body = {
    "Cmp_No": 123,
    "CmplicTyp_No": 8,
    "CmplicTyp_NmAr": "\"نوع الرخصة\"",
    "CmplicTyp_NmEn": "\"License Type\"",
    "Start_Date": "2024-12-10T18:05:42",
    "Start_hijri_Date": "2024-12-10T18:05:42",
    "End_Date": "2024-12-10T18:05:42",
    "End_hijri_Date": "2024-12-10T18:05:42",
    "Fee": 20,
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/nisi';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'CmplicTyp_No' => 8,
            'CmplicTyp_NmAr' => '"نوع الرخصة"',
            'CmplicTyp_NmEn' => '"License Type"',
            'Start_Date' => '2024-12-10T18:05:42',
            'Start_hijri_Date' => '2024-12-10T18:05:42',
            'End_Date' => '2024-12-10T18:05:42',
            'End_hijri_Date' => '2024-12-10T18:05:42',
            'Fee' => 20,
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/nisi'
payload = {
    "Cmp_No": 123,
    "CmplicTyp_No": 8,
    "CmplicTyp_NmAr": "\"نوع الرخصة\"",
    "CmplicTyp_NmEn": "\"License Type\"",
    "Start_Date": "2024-12-10T18:05:42",
    "Start_hijri_Date": "2024-12-10T18:05:42",
    "End_Date": "2024-12-10T18:05:42",
    "End_hijri_Date": "2024-12-10T18:05:42",
    "Fee": 20,
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "success": true,
    "message": "تم التحديث بنجاح"
}
 

Request      

PUT api/v1/base/settings/personnel-settings/company-license-type/{companyLicenseType}

PATCH api/v1/base/settings/personnel-settings/company-license-type/{companyLicenseType}

Headers

URL Parameters

Body Parameters

Delete a specific license type.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/ex" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/ex"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/ex';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/company-license-type/ex'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/personnel-settings/company-license-type/{companyLicenseType}

Headers

URL Parameters

Initialize data for the system.

requires authentication

This endpoint generates and returns the latest attendance/departure ID for the specified company.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/init-data?company_no=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/init-data"
);

const params = {
    "company_no": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/init-data'
params = {
  'company_no': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "initData": {
        "idGenerate": "33000200001"
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/places-attendance-departure/init-data

Headers

Query Parameters

Get a list of attendance and departure places.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure?perPage=15&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 13,
    \"per_page\": 20,
    \"page\": 15
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure"
);

const params = {
    "perPage": "15",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 13,
    "per_page": 20,
    "page": 15
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '15',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 13,
            'per_page' => 20,
            'page' => 15,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure'
payload = {
    "company_no": 13,
    "per_page": 20,
    "page": 15
}
params = {
  'perPage': '15',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "success": true,
    "data": [
        {
            "id": 1,
            "Cmp_No": 123,
            "place_no": 100,
            "place_name_ar": "مكتب",
            "place_name_en": "Office",
            "Active_Loc": 1,
            "distance": 10,
            "latitude": "24.7136",
            "longitude": "46.6753",
            "company": {
                "Cmp_No": 123,
                "Cmp_NmAr": "شركة",
                "Cmp_NmEn": "Company"
            }
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/places-attendance-departure

Headers

Query Parameters

Body Parameters

Store a newly created attendance or departure place.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"place_no\": 101,
    \"place_name_ar\": \"\\\"مكتب\\\"\",
    \"place_name_en\": \"\\\"Office\\\"\",
    \"Active_Loc\": 1,
    \"distance\": 10,
    \"latitude\": \"\\\"24.7136\\\"\",
    \"longitude\": \"\\\"46.6753\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure"
);

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

let body = {
    "place_no": 101,
    "place_name_ar": "\"مكتب\"",
    "place_name_en": "\"Office\"",
    "Active_Loc": 1,
    "distance": 10,
    "latitude": "\"24.7136\"",
    "longitude": "\"46.6753\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'place_no' => 101,
            'place_name_ar' => '"مكتب"',
            'place_name_en' => '"Office"',
            'Active_Loc' => 1,
            'distance' => 10,
            'latitude' => '"24.7136"',
            'longitude' => '"46.6753"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure'
payload = {
    "place_no": 101,
    "place_name_ar": "\"مكتب\"",
    "place_name_en": "\"Office\"",
    "Active_Loc": 1,
    "distance": 10,
    "latitude": "\"24.7136\"",
    "longitude": "\"46.6753\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "تم الحفظ بنجاح"
}
 

Request      

POST api/v1/base/settings/personnel-settings/places-attendance-departure

Headers

Body Parameters

Show a specific attendance or departure place.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/dolorem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/dolorem"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/dolorem';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/dolorem'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "places": {
        "id": 1,
        "Cmp_No": 123,
        "place_no": 100,
        "place_name_ar": "مكتب",
        "place_name_en": "Office",
        "Active_Loc": 1,
        "distance": 10,
        "latitude": "24.7136",
        "longitude": "46.6753"
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/places-attendance-departure/{placesAttendanceDeparture}

Headers

URL Parameters

Update an attendance or departure place.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/autem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"place_no\": 101,
    \"place_name_ar\": \"\\\"مكتب\\\"\",
    \"place_name_en\": \"\\\"Office\\\"\",
    \"Active_Loc\": 1,
    \"distance\": 10,
    \"latitude\": \"\\\"24.7136\\\"\",
    \"longitude\": \"\\\"46.6753\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/autem"
);

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

let body = {
    "place_no": 101,
    "place_name_ar": "\"مكتب\"",
    "place_name_en": "\"Office\"",
    "Active_Loc": 1,
    "distance": 10,
    "latitude": "\"24.7136\"",
    "longitude": "\"46.6753\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/autem';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'place_no' => 101,
            'place_name_ar' => '"مكتب"',
            'place_name_en' => '"Office"',
            'Active_Loc' => 1,
            'distance' => 10,
            'latitude' => '"24.7136"',
            'longitude' => '"46.6753"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/autem'
payload = {
    "place_no": 101,
    "place_name_ar": "\"مكتب\"",
    "place_name_en": "\"Office\"",
    "Active_Loc": 1,
    "distance": 10,
    "latitude": "\"24.7136\"",
    "longitude": "\"46.6753\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "message": "تم التعديل بنجاح"
}
 

Request      

PUT api/v1/base/settings/personnel-settings/places-attendance-departure/{placesAttendanceDeparture}

PATCH api/v1/base/settings/personnel-settings/places-attendance-departure/{placesAttendanceDeparture}

Headers

URL Parameters

Body Parameters

Delete an attendance or departure place.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/illum" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/illum"
);

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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/illum';
$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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/places-attendance-departure/illum'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/personnel-settings/places-attendance-departure/{placesAttendanceDeparture}

Headers

URL Parameters

Get initial data for languages and generate a new ID.

requires authentication

This API retrieves the list of languages that are not yet linked to the current company, and it generates a new unique ID for a company language.

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/init-data?company_no=101" \
    --header "Authorization: Bearer {token}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/init-data"
);

const params = {
    "company_no": "101",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/init-data';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {token}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '101',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/init-data'
params = {
  'company_no': '101',
}
headers = {
  'Authorization': 'Bearer {token}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "initData": {
        "languages": [
            {
                "id": 1,
                "language_no": 301,
                "name": "French",
                "active": 1
            },
            {
                "id": 2,
                "language_no": 302,
                "name": "German",
                "active": 1
            }
        ],
        "idGenerate": 400
    }
}
 

Example response (401):


{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/settings/personnel-settings/cmp-languages/init-data

Headers

Query Parameters

Get a list of company languages.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages?company_no=123&per_page=10&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 7,
    \"per_page\": 12,
    \"page\": 5
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages"
);

const params = {
    "company_no": "123",
    "per_page": "10",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 7,
    "per_page": 12,
    "page": 5
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'company_no' => '123',
            'per_page' => '10',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 7,
            'per_page' => 12,
            'page' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages'
payload = {
    "company_no": 7,
    "per_page": 12,
    "page": 5
}
params = {
  'company_no': '123',
  'per_page': '10',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "status": true,
    "msg": "CmpLanguages list",
    "data": {
        "list": [
            {
                "id": 1,
                "Cmp_No": 123,
                "language_no": 1001,
                "language_name_ar": "العربية",
                "language_name_en": "Arabic",
                "active": true
            }
        ],
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1
        }
    }
}
 

Request      

GET api/v1/base/settings/personnel-settings/cmp-languages

Headers

Query Parameters

Body Parameters

Store a newly created language.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"language_name_ar\": \"\\\"العربية\\\"\",
    \"language_name_en\": \"\\\"Arabic\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages"
);

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

let body = {
    "Cmp_No": 123,
    "language_name_ar": "\"العربية\"",
    "language_name_en": "\"Arabic\"",
    "active": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'language_name_ar' => '"العربية"',
            'language_name_en' => '"Arabic"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages'
payload = {
    "Cmp_No": 123,
    "language_name_ar": "\"العربية\"",
    "language_name_en": "\"Arabic\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Language created successfully"
}
 

Request      

POST api/v1/base/settings/personnel-settings/cmp-languages

Headers

Body Parameters

Update a language.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/eum" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": 123,
    \"language_name_ar\": \"\\\"العربية\\\"\",
    \"language_name_en\": \"\\\"Arabic\\\"\",
    \"active\": true
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/eum"
);

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

let body = {
    "Cmp_No": 123,
    "language_name_ar": "\"العربية\"",
    "language_name_en": "\"Arabic\"",
    "active": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/eum';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 123,
            'language_name_ar' => '"العربية"',
            'language_name_en' => '"Arabic"',
            'active' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/eum'
payload = {
    "Cmp_No": 123,
    "language_name_ar": "\"العربية\"",
    "language_name_en": "\"Arabic\"",
    "active": true
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Language updated successfully"
}
 

Request      

PUT api/v1/base/settings/personnel-settings/cmp-languages/{cmpLanguages}

PATCH api/v1/base/settings/personnel-settings/cmp-languages/{cmpLanguages}

Headers

URL Parameters

Body Parameters

Delete a language.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/eos" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/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 = 'http://wazen.test/api/v1/base/settings/personnel-settings/cmp-languages/eos'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/personnel-settings/cmp-languages/{cmpLanguages}

Headers

URL Parameters

Ports Data Management

API for managing ports data in customs clearance

Retrieve data related to ports.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/get-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/get-data"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/get-data';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/get-data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "countries": "JSON response of port tree structure",
    "ports": "HTML of ports options"
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/get-data

Headers

Restore port data.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Port_No\": 1001
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/restore"
);

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

let body = {
    "Port_No": 1001
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/restore';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Port_No' => 1001,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/restore'
payload = {
    "Port_No": 1001
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1,
    "message": "Ports data restored successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/restore

Headers

Body Parameters

Generate a PDF of the ports data.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/pdf" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/pdf"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/pdf';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/pdf'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


PDF The PDF document.
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/ports-data/pdf

Headers

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Port_NmAr\": \"\\\"ميناء\\\"\",
    \"Port_NmEn\": \"\\\"Port\\\"\",
    \"Port_No\": 1001
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data"
);

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

let body = {
    "Port_NmAr": "\"ميناء\"",
    "Port_NmEn": "\"Port\"",
    "Port_No": 1001
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Port_NmAr' => '"ميناء"',
            'Port_NmEn' => '"Port"',
            'Port_No' => 1001,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data'
payload = {
    "Port_NmAr": "\"ميناء\"",
    "Port_NmEn": "\"Port\"",
    "Port_No": 1001
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):


{
    "status": true,
    "message": "Port created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/ports-data

Headers

Body Parameters

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/sit" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Port_NmAr\": \"\\\"ميناء\\\"\",
    \"Port_NmEn\": \"\\\"Port\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/sit"
);

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

let body = {
    "Port_NmAr": "\"ميناء\"",
    "Port_NmEn": "\"Port\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/sit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Port_NmAr' => '"ميناء"',
            'Port_NmEn' => '"Port"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/sit'
payload = {
    "Port_NmAr": "\"ميناء\"",
    "Port_NmEn": "\"Port\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Port updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/customs-clearance/ports-data/{id}

PATCH api/v1/base/settings/setting-cars/customs-clearance/ports-data/{id}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/ports-data/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Port deleted successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/customs-clearance/ports-data/{id}

Headers

URL Parameters

Real Estate

API for managing real estate floors

Get a list of real estate floors.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/floors?perPage=15&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 12,
    \"per_page\": 13,
    \"page\": 3
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/floors"
);

const params = {
    "perPage": "15",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 12,
    "per_page": 13,
    "page": 3
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/floors';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '15',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 12,
            'per_page' => 13,
            'page' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/floors'
payload = {
    "company_no": 12,
    "per_page": 13,
    "page": 3
}
params = {
  'perPage': '15',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "success": true,
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "LockupRSate_No": 101,
            "LockupRSate_DscAR": "الطابق الأول",
            "LockupRSate_DscEN": "First Floor",
            "LockupRSate_Actv": 1,
            "uuid": "abcd-efgh-ijkl",
            "Clinic": 1,
            "REstate": 1
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1
    }
}
 

Request      

GET api/v1/base/settings/real-estate/floors

Headers

Query Parameters

Body Parameters

Store a newly created floor in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/floors" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"الطابق الأول\\\"\",
    \"LockupRSate_DscEN\": \"\\\"First Floor\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/floors"
);

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

let body = {
    "LockupRSate_DscAR": "\"الطابق الأول\"",
    "LockupRSate_DscEN": "\"First Floor\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/floors';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"الطابق الأول"',
            'LockupRSate_DscEN' => '"First Floor"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/floors'
payload = {
    "LockupRSate_DscAR": "\"الطابق الأول\"",
    "LockupRSate_DscEN": "\"First Floor\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

POST api/v1/base/settings/real-estate/floors

Headers

Body Parameters

Update the specified floor resource.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/real-estate/floors/voluptatem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"الطابق الأول\\\"\",
    \"LockupRSate_DscEN\": \"\\\"First Floor\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/floors/voluptatem"
);

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

let body = {
    "LockupRSate_DscAR": "\"الطابق الأول\"",
    "LockupRSate_DscEN": "\"First Floor\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/floors/voluptatem';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"الطابق الأول"',
            'LockupRSate_DscEN' => '"First Floor"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/floors/voluptatem'
payload = {
    "LockupRSate_DscAR": "\"الطابق الأول\"",
    "LockupRSate_DscEN": "\"First Floor\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

PUT api/v1/base/settings/real-estate/floors/{floors}

PATCH api/v1/base/settings/real-estate/floors/{floors}

Headers

URL Parameters

Body Parameters

Delete the specified floor resource.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/real-estate/floors/delectus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/floors/delectus"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/floors/delectus';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/floors/delectus'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/real-estate/floors/{floors}

Headers

URL Parameters

Print details of a specific floor.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/floors/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/floors/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/floors/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/floors/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "HTML content for the print page"
}
 

Request      

GET api/v1/base/settings/real-estate/floors/print/{id}

Headers

URL Parameters

Import floors from external sources.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/floors/import-floors" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/floors/import-floors"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/floors/import-floors';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/floors/import-floors'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "mode": "import",
    "title": "Import Floors",
    "root_link": "url_to_root_link",
    "root_name": "Floors",
    "getDataRoute": "url_to_get_data",
    "indexRoute": "url_to_index",
    "storeRoute": "url_to_store"
}
 

Request      

GET api/v1/base/settings/real-estate/floors/import-floors

Headers

Get a list of available floors based on the company.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/floors/get-floors?Cmp_No=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/floors/get-floors"
);

const params = {
    "Cmp_No": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/real-estate/floors/get-floors';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/floors/get-floors'
params = {
  'Cmp_No': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "items": [
        {
            "LockupRSate_No": 101,
            "LockupRSate_DscAR": "الطابق الأول",
            "LockupRSate_DscEN": "First Floor"
        }
    ],
    "companyName": "شركة",
    "activityName": "Real Estate"
}
 

Request      

POST api/v1/base/settings/real-estate/floors/get-floors

Headers

Query Parameters

Get a list of unit activities.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/unit-activities?perPage=15&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 1,
    \"per_page\": 4,
    \"page\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities"
);

const params = {
    "perPage": "15",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 1,
    "per_page": 4,
    "page": 1
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '15',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 1,
            'per_page' => 4,
            'page' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities'
payload = {
    "company_no": 1,
    "per_page": 4,
    "page": 1
}
params = {
  'perPage': '15',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "success": true,
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "LockupRSate_No": 101,
            "LockupRSate_DscAR": "نشاط الطابق الأول",
            "LockupRSate_DscEN": "First Floor Activity",
            "LockupRSate_Actv": 1,
            "uuid": "abcd-efgh-ijkl",
            "REstate": 1
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1
    }
}
 

Request      

GET api/v1/base/settings/real-estate/unit-activities

Headers

Query Parameters

Body Parameters

Store a newly created unit activity in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"نشاط الطابق الأول\\\"\",
    \"LockupRSate_DscEN\": \"\\\"First Floor Activity\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities"
);

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

let body = {
    "LockupRSate_DscAR": "\"نشاط الطابق الأول\"",
    "LockupRSate_DscEN": "\"First Floor Activity\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"نشاط الطابق الأول"',
            'LockupRSate_DscEN' => '"First Floor Activity"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities'
payload = {
    "LockupRSate_DscAR": "\"نشاط الطابق الأول\"",
    "LockupRSate_DscEN": "\"First Floor Activity\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

POST api/v1/base/settings/real-estate/unit-activities

Headers

Body Parameters

Update the specified unit activity resource.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/quia" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"نشاط الطابق الأول\\\"\",
    \"LockupRSate_DscEN\": \"\\\"First Floor Activity\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/quia"
);

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

let body = {
    "LockupRSate_DscAR": "\"نشاط الطابق الأول\"",
    "LockupRSate_DscEN": "\"First Floor Activity\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/quia';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"نشاط الطابق الأول"',
            'LockupRSate_DscEN' => '"First Floor Activity"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/quia'
payload = {
    "LockupRSate_DscAR": "\"نشاط الطابق الأول\"",
    "LockupRSate_DscEN": "\"First Floor Activity\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

PUT api/v1/base/settings/real-estate/unit-activities/{unitActivities}

PATCH api/v1/base/settings/real-estate/unit-activities/{unitActivities}

Headers

URL Parameters

Body Parameters

Delete the specified unit activity resource.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/quasi" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/quasi"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/quasi';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/quasi'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/real-estate/unit-activities/{unitActivities}

Headers

URL Parameters

Print details of a specific unit activity.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "HTML content for the print page"
}
 

Request      

GET api/v1/base/settings/real-estate/unit-activities/print/{id}

Headers

URL Parameters

Import unit activities from external sources.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/import-activities" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/import-activities"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/import-activities';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/import-activities'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "mode": "import",
    "title": "Import Unit Activities",
    "root_link": "url_to_root_link",
    "root_name": "Unit Activities",
    "getDataRoute": "url_to_get_data",
    "indexRoute": "url_to_index",
    "storeRoute": "url_to_store"
}
 

Request      

GET api/v1/base/settings/real-estate/unit-activities/import-activities

Headers

Get a list of available unit activities based on the company.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/get-activities?Cmp_No=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/unit-activities/get-activities"
);

const params = {
    "Cmp_No": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/get-activities';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/unit-activities/get-activities'
params = {
  'Cmp_No': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "items": [
        {
            "LockupRSate_No": 101,
            "LockupRSate_DscAR": "نشاط الطابق الأول",
            "LockupRSate_DscEN": "First Floor Activity"
        }
    ],
    "companyName": "شركة",
    "activityName": "Real Estate"
}
 

Request      

POST api/v1/base/settings/real-estate/unit-activities/get-activities

Headers

Query Parameters

Get a list of unit statuses.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-status?perPage=15&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 12,
    \"per_page\": 4,
    \"page\": 3
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-status"
);

const params = {
    "perPage": "15",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 12,
    "per_page": 4,
    "page": 3
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-status';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '15',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 12,
            'per_page' => 4,
            'page' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-status'
payload = {
    "company_no": 12,
    "per_page": 4,
    "page": 3
}
params = {
  'perPage': '15',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "success": true,
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "LockupRSate_No": 100,
            "LockupRSate_DscAR": "حالة الوحدة",
            "LockupRSate_DscEN": "Unit Status",
            "LockupRSate_Actv": 1,
            "uuid": "abcd-efgh-ijkl"
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1
    }
}
 

Request      

GET api/v1/base/settings/real-estate/units-status

Headers

Query Parameters

Body Parameters

Store a newly created unit status.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/units-status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"حالة الوحدة\\\"\",
    \"LockupRSate_DscEN\": \"\\\"Unit Status\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-status"
);

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

let body = {
    "LockupRSate_DscAR": "\"حالة الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Status\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-status';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"حالة الوحدة"',
            'LockupRSate_DscEN' => '"Unit Status"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-status'
payload = {
    "LockupRSate_DscAR": "\"حالة الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Status\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

POST api/v1/base/settings/real-estate/units-status

Headers

Body Parameters

Update the specified unit status.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/real-estate/units-status/ducimus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"حالة الوحدة\\\"\",
    \"LockupRSate_DscEN\": \"\\\"Unit Status\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-status/ducimus"
);

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

let body = {
    "LockupRSate_DscAR": "\"حالة الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Status\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/ducimus';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"حالة الوحدة"',
            'LockupRSate_DscEN' => '"Unit Status"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/ducimus'
payload = {
    "LockupRSate_DscAR": "\"حالة الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Status\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

PUT api/v1/base/settings/real-estate/units-status/{unitsStatus}

PATCH api/v1/base/settings/real-estate/units-status/{unitsStatus}

Headers

URL Parameters

Body Parameters

Delete a unit status.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/real-estate/units-status/doloribus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-status/doloribus"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/doloribus';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/doloribus'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/real-estate/units-status/{unitsStatus}

Headers

URL Parameters

Print details of a unit status.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-status/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-status/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "HTML content for print page"
}
 

Request      

GET api/v1/base/settings/real-estate/units-status/print/{id}

Headers

URL Parameters

Import unit statuses.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-status/import-unit-status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-status/import-unit-status"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/import-unit-status';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/import-unit-status'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "mode": "import",
    "title": "Import Unit Statuses",
    "root_link": "url_to_root_link",
    "root_name": "Unit Statuses",
    "getDataRoute": "url_to_get_data",
    "indexRoute": "url_to_index",
    "storeRoute": "url_to_store"
}
 

Request      

GET api/v1/base/settings/real-estate/units-status/import-unit-status

Headers

Get a list of available unit statuses.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/units-status/get-unit-status?Cmp_No=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-status/get-unit-status"
);

const params = {
    "Cmp_No": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/get-unit-status';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-status/get-unit-status'
params = {
  'Cmp_No': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "items": [
        {
            "LockupRSate_No": 100,
            "LockupRSate_DscAR": "حالة الوحدة",
            "LockupRSate_DscEN": "Unit Status"
        }
    ],
    "companyName": "شركة",
    "activityName": "Real Estate"
}
 

Request      

POST api/v1/base/settings/real-estate/units-status/get-unit-status

Headers

Query Parameters

Get a list of unit classifications.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-classification?perPage=15&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 15,
    \"per_page\": 5,
    \"page\": 19
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification"
);

const params = {
    "perPage": "15",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 15,
    "per_page": 5,
    "page": 19
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '15',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 15,
            'per_page' => 5,
            'page' => 19,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification'
payload = {
    "company_no": 15,
    "per_page": 5,
    "page": 19
}
params = {
  'perPage': '15',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "success": true,
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "LockupRSate_No": 100,
            "LockupRSate_DscAR": "تصنيف الوحدة",
            "LockupRSate_DscEN": "Unit Classification",
            "LockupRSate_Actv": 1,
            "uuid": "abcd-efgh-ijkl",
            "Clinic": null,
            "REstate": null
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1
    }
}
 

Request      

GET api/v1/base/settings/real-estate/units-classification

Headers

Query Parameters

Body Parameters

Store a newly created unit classification.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"تصنيف الوحدة\\\"\",
    \"LockupRSate_DscEN\": \"\\\"Unit Classification\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification"
);

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

let body = {
    "LockupRSate_DscAR": "\"تصنيف الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Classification\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"تصنيف الوحدة"',
            'LockupRSate_DscEN' => '"Unit Classification"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification'
payload = {
    "LockupRSate_DscAR": "\"تصنيف الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Classification\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

POST api/v1/base/settings/real-estate/units-classification

Headers

Body Parameters

Update the specified unit classification.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification/aliquam" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"تصنيف الوحدة\\\"\",
    \"LockupRSate_DscEN\": \"\\\"Unit Classification\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification/aliquam"
);

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

let body = {
    "LockupRSate_DscAR": "\"تصنيف الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Classification\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/aliquam';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"تصنيف الوحدة"',
            'LockupRSate_DscEN' => '"Unit Classification"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/aliquam'
payload = {
    "LockupRSate_DscAR": "\"تصنيف الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Classification\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

PUT api/v1/base/settings/real-estate/units-classification/{unitsClassification}

PATCH api/v1/base/settings/real-estate/units-classification/{unitsClassification}

Headers

URL Parameters

Body Parameters

Delete a unit classification.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification/illum" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification/illum"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/illum';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/illum'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/real-estate/units-classification/{unitsClassification}

Headers

URL Parameters

Print details of a unit classification.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-classification/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "HTML content for print page"
}
 

Request      

GET api/v1/base/settings/real-estate/units-classification/print/{id}

Headers

URL Parameters

Import unit classifications.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-classification/import-classifications" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification/import-classifications"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/import-classifications';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/import-classifications'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "mode": "import",
    "title": "Import Unit Classifications",
    "root_link": "url_to_root_link",
    "root_name": "Unit Classifications",
    "getDataRoute": "url_to_get_data",
    "indexRoute": "url_to_index",
    "storeRoute": "url_to_store"
}
 

Request      

GET api/v1/base/settings/real-estate/units-classification/import-classifications

Headers

Get a list of available unit classifications.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification/get-classifications?Cmp_No=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-classification/get-classifications"
);

const params = {
    "Cmp_No": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/get-classifications';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-classification/get-classifications'
params = {
  'Cmp_No': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "items": [
        {
            "LockupRSate_No": 100,
            "LockupRSate_DscAR": "تصنيف الوحدة",
            "LockupRSate_DscEN": "Unit Classification"
        }
    ],
    "companyName": "شركة",
    "activityName": "Real Estate"
}
 

Request      

POST api/v1/base/settings/real-estate/units-classification/get-classifications

Headers

Query Parameters

Get a list of unit directions.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-directions?perPage=15&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 8,
    \"per_page\": 4,
    \"page\": 3
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions"
);

const params = {
    "perPage": "15",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 8,
    "per_page": 4,
    "page": 3
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '15',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 8,
            'per_page' => 4,
            'page' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions'
payload = {
    "company_no": 8,
    "per_page": 4,
    "page": 3
}
params = {
  'perPage': '15',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "success": true,
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "LockupRSate_No": 100,
            "LockupRSate_DscAR": "اتجاه الوحدة",
            "LockupRSate_DscEN": "Unit Direction",
            "LockupRSate_Actv": 1,
            "uuid": "abcd-efgh-ijkl"
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1
    }
}
 

Request      

GET api/v1/base/settings/real-estate/units-directions

Headers

Query Parameters

Body Parameters

Store a newly created unit direction.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"اتجاه الوحدة\\\"\",
    \"LockupRSate_DscEN\": \"\\\"Unit Direction\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions"
);

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

let body = {
    "LockupRSate_DscAR": "\"اتجاه الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Direction\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"اتجاه الوحدة"',
            'LockupRSate_DscEN' => '"Unit Direction"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions'
payload = {
    "LockupRSate_DscAR": "\"اتجاه الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Direction\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

POST api/v1/base/settings/real-estate/units-directions

Headers

Body Parameters

Update the specified unit direction.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions/eius" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupRSate_DscAR\": \"\\\"اتجاه الوحدة\\\"\",
    \"LockupRSate_DscEN\": \"\\\"Unit Direction\\\"\",
    \"LockupRSate_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions/eius"
);

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

let body = {
    "LockupRSate_DscAR": "\"اتجاه الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Direction\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/eius';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupRSate_DscAR' => '"اتجاه الوحدة"',
            'LockupRSate_DscEN' => '"Unit Direction"',
            'LockupRSate_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/eius'
payload = {
    "LockupRSate_DscAR": "\"اتجاه الوحدة\"",
    "LockupRSate_DscEN": "\"Unit Direction\"",
    "LockupRSate_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

PUT api/v1/base/settings/real-estate/units-directions/{unitsDirections}

PATCH api/v1/base/settings/real-estate/units-directions/{unitsDirections}

Headers

URL Parameters

Body Parameters

Delete a unit direction.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions/molestias" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions/molestias"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/molestias';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/molestias'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/real-estate/units-directions/{unitsDirections}

Headers

URL Parameters

Print details of a unit direction.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-directions/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "HTML content for print page"
}
 

Request      

GET api/v1/base/settings/real-estate/units-directions/print/{id}

Headers

URL Parameters

Import unit directions.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-directions/import-units-directions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions/import-units-directions"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/import-units-directions';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/import-units-directions'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "mode": "import",
    "title": "Import Unit Directions",
    "root_link": "url_to_root_link",
    "root_name": "Unit Directions",
    "getDataRoute": "url_to_get_data",
    "indexRoute": "url_to_index",
    "storeRoute": "url_to_store"
}
 

Request      

GET api/v1/base/settings/real-estate/units-directions/import-units-directions

Headers

Get a list of available unit directions.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions/get-units-directions?Cmp_No=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-directions/get-units-directions"
);

const params = {
    "Cmp_No": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/get-units-directions';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-directions/get-units-directions'
params = {
  'Cmp_No': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "items": [
        {
            "LockupRSate_No": 100,
            "LockupRSate_DscAR": "اتجاه الوحدة",
            "LockupRSate_DscEN": "Unit Direction"
        }
    ],
    "companyName": "شركة",
    "activityName": "Real Estate"
}
 

Request      

POST api/v1/base/settings/real-estate/units-directions/get-units-directions

Headers

Query Parameters

Get a list of unit categories.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-categories?perPage=15&page=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 20,
    \"per_page\": 4,
    \"page\": 7
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories"
);

const params = {
    "perPage": "15",
    "page": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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

let body = {
    "company_no": 20,
    "per_page": 4,
    "page": 7
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'perPage' => '15',
            'page' => '1',
        ],
        'json' => [
            'company_no' => 20,
            'per_page' => 4,
            'page' => 7,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories'
payload = {
    "company_no": 20,
    "per_page": 4,
    "page": 7
}
params = {
  'perPage': '15',
  'page': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
    "success": true,
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "RstateCtg_No": 101,
            "RstateCtg_DscAr": "فئة العقار الأول",
            "RstateCtg_DscEn": "First Real Estate Category",
            "RstateCtg_Actv": 1,
            "uuid": "abcd-efgh-ijkl",
            "Total_Units": 10
        }
    ],
    "pagination": {
        "total": 1,
        "count": 1,
        "perPage": 15,
        "currentPage": 1,
        "totalPages": 1
    }
}
 

Request      

GET api/v1/base/settings/real-estate/units-categories

Headers

Query Parameters

Body Parameters

Store a newly created unit category in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"RstateCtg_DscAr\": \"\\\"فئة العقار الأول\\\"\",
    \"RstateCtg_DscEn\": \"\\\"First Real Estate Category\\\"\",
    \"RstateCtg_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\",
    \"Total_Units\": 10
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories"
);

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

let body = {
    "RstateCtg_DscAr": "\"فئة العقار الأول\"",
    "RstateCtg_DscEn": "\"First Real Estate Category\"",
    "RstateCtg_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\"",
    "Total_Units": 10
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'RstateCtg_DscAr' => '"فئة العقار الأول"',
            'RstateCtg_DscEn' => '"First Real Estate Category"',
            'RstateCtg_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
            'Total_Units' => 10,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories'
payload = {
    "RstateCtg_DscAr": "\"فئة العقار الأول\"",
    "RstateCtg_DscEn": "\"First Real Estate Category\"",
    "RstateCtg_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\"",
    "Total_Units": 10
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

POST api/v1/base/settings/real-estate/units-categories

Headers

Body Parameters

Update the specified unit category resource.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories/ea" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"RstateCtg_DscAr\": \"\\\"فئة العقار الأول\\\"\",
    \"RstateCtg_DscEn\": \"\\\"First Real Estate Category\\\"\",
    \"RstateCtg_Actv\": 1,
    \"uuid\": \"\\\"abcd-efgh-ijkl\\\"\",
    \"Total_Units\": 10
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories/ea"
);

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

let body = {
    "RstateCtg_DscAr": "\"فئة العقار الأول\"",
    "RstateCtg_DscEn": "\"First Real Estate Category\"",
    "RstateCtg_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\"",
    "Total_Units": 10
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/ea';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'RstateCtg_DscAr' => '"فئة العقار الأول"',
            'RstateCtg_DscEn' => '"First Real Estate Category"',
            'RstateCtg_Actv' => 1,
            'uuid' => '"abcd-efgh-ijkl"',
            'Total_Units' => 10,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/ea'
payload = {
    "RstateCtg_DscAr": "\"فئة العقار الأول\"",
    "RstateCtg_DscEn": "\"First Real Estate Category\"",
    "RstateCtg_Actv": 1,
    "uuid": "\"abcd-efgh-ijkl\"",
    "Total_Units": 10
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 1
}
 

Request      

PUT api/v1/base/settings/real-estate/units-categories/{unitsCategory}

PATCH api/v1/base/settings/real-estate/units-categories/{unitsCategory}

Headers

URL Parameters

Body Parameters

Delete the specified unit category resource.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories/doloremque" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories/doloremque"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/doloremque';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/doloremque'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "success": true
}
 

Request      

DELETE api/v1/base/settings/real-estate/units-categories/{unitsCategory}

Headers

URL Parameters

Print details of a specific unit category.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-categories/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "HTML content for the print page"
}
 

Request      

GET api/v1/base/settings/real-estate/units-categories/print/{id}

Headers

URL Parameters

Import unit categories from external sources.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/real-estate/units-categories/import-units-categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories/import-units-categories"
);

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/import-units-categories';
$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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/import-units-categories'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "mode": "import",
    "title": "Import Unit Categories",
    "root_link": "url_to_root_link",
    "root_name": "Unit Categories",
    "getDataRoute": "url_to_get_data",
    "indexRoute": "url_to_index",
    "storeRoute": "url_to_store"
}
 

Request      

GET api/v1/base/settings/real-estate/units-categories/import-units-categories

Headers

Get a list of available unit categories based on the company.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories/get-units-categories?Cmp_No=123" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/real-estate/units-categories/get-units-categories"
);

const params = {
    "Cmp_No": "123",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

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 = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/get-units-categories';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'Cmp_No' => '123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/real-estate/units-categories/get-units-categories'
params = {
  'Cmp_No': '123',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "items": [
        {
            "RstateCtg_No": 101,
            "RstateCtg_DscAr": "فئة العقار الأول",
            "RstateCtg_DscEn": "First Real Estate Category"
        }
    ],
    "companyName": "شركة",
    "activityName": "Real Estate"
}
 

Request      

POST api/v1/base/settings/real-estate/units-categories/get-units-categories

Headers

Query Parameters

Salesman

Salesman Api

Get Init Data

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/salesman/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/salesman/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/salesman/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/salesman/init-data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
"initData" => [
    "accounts" => [
        {
           "Acc_No": 40202,
           "name": "ايرادات أخرى متنوعة"
        }
     ],
     "employees" => [
        {
             "name": "موظف 1",
             "Emp_NmAr": "موظف 1",
             "Emp_NmEn": "موظف 1",
             "Emp_No": 2000030001,
             "Fbal_CR": null,
             "Acc_NoDb1": 10104010001
        }
     ],
     "branchs" => [
         {
              "Brn_No": 20000301,
              "name": "الفرع الرئيسي",
              "dlv_stores": [
                  {
                      "Dlv_Stor": 2000030101,
                      "Brn_No": 20000301,
                      "name": "مستودع الفرع الرئيسي"
                  }
              ]
         }
     ],
     "cars" => [
        {
             "Car_No": "20000300001",
             "PLAT_No": "ا ر ن 5443",
        }
     ],
       "supervisors": [
          {
              "Mrkt_No": 20000301,
              "supervisor_name": "مندوب"
          }
      ],
      "slm_types": {
          "1": "مندوب جملة",
          "2": "مندوب قطاعي",
          "3": "مندوب كاش فان",
          "4": "عام"
      },
     "Routes": [
          {
              "Route_No": 20000301,
              "name": "ميناء الملك عبدالعزيز - الرياض"
          }
      ],
     "no" => "20000301"
 ],
'success'  => TRUE,
}
 

Request      

GET api/v1/base/settings/salesman/init-data

Headers

Get a list of Salesman.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/salesman" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/salesman"
);

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 = 'http://wazen.test/api/v1/base/settings/salesman';
$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 = 'http://wazen.test/api/v1/base/settings/salesman'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "status": "success",
  "message": "Salesman list",
  "data": [
    {
      "id": 1,
      "Slm_No": 20000301,
      "name": "salesman",
      "Slm_Active": true or false,
      "Chk_Slm": true or false,
      "Chk_Markt": true or false,
      "Chk_Driver": true or false,
      "Chk_StorKper": true or false,
    }
  ]
}
 

Request      

GET api/v1/base/settings/salesman

Headers

Display a specific Salesman.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/salesman/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/salesman/1"
);

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 = 'http://wazen.test/api/v1/base/settings/salesman/1';
$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 = 'http://wazen.test/api/v1/base/settings/salesman/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "status": "success",
  "message": "Salesman details retrieved successfully",
  "data": {
    "id": 2,
    "Slm_No": 20000301,
    "name": "مندوب عام",
    "Slm_NmAr": "مندوب عام",
    "Slm_NmAr": "Main Salesman",
    "Slm_Active": true or false,
    "Chk_Slm": true or false,
    "Chk_Markt": true or false,
    "Chk_Driver": true or false,
    "Chk_StorKper": true or false,
  }
}
 

Request      

GET api/v1/base/settings/salesman/{id}

Headers

URL Parameters

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/salesman/tempora" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/salesman/tempora"
);

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 = 'http://wazen.test/api/v1/base/settings/salesman/tempora';
$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 = 'http://wazen.test/api/v1/base/settings/salesman/tempora'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/salesman/{id}

Headers

URL Parameters

Schools

API for managing school company settings

Get a list of school company settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/study-periods" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/study-periods"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/study-periods';
$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 = 'http://wazen.test/api/v1/base/settings/schools/study-periods'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "data": {
    "items": [...],
    "meta": {...}
  }
}
 

Request      

GET api/v1/base/settings/schools/study-periods

Headers

Store new school company settings.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/schools/study-periods" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupSchL_DscAR\": \"\\\"الإعدادات\\\"\",
    \"LockupSchL_DscEN\": \"\\\"Settings\\\"\",
    \"LockupSchL_Ty\": 1,
    \"LockupSchL_Actv\": true,
    \"Cmp_No\": \"101\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/study-periods"
);

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

let body = {
    "LockupSchL_DscAR": "\"الإعدادات\"",
    "LockupSchL_DscEN": "\"Settings\"",
    "LockupSchL_Ty": 1,
    "LockupSchL_Actv": true,
    "Cmp_No": "101"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/schools/study-periods';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupSchL_DscAR' => '"الإعدادات"',
            'LockupSchL_DscEN' => '"Settings"',
            'LockupSchL_Ty' => 1,
            'LockupSchL_Actv' => true,
            'Cmp_No' => '101',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/schools/study-periods'
payload = {
    "LockupSchL_DscAR": "\"الإعدادات\"",
    "LockupSchL_DscEN": "\"Settings\"",
    "LockupSchL_Ty": 1,
    "LockupSchL_Actv": true,
    "Cmp_No": "101"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
  "message": "Settings added successfully",
  "data": {...}
}
 

Request      

POST api/v1/base/settings/schools/study-periods

Headers

Body Parameters

Display specific school company settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/study-periods/necessitatibus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/study-periods/necessitatibus"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/study-periods/necessitatibus';
$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 = 'http://wazen.test/api/v1/base/settings/schools/study-periods/necessitatibus'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "data": {...}
}
 

Request      

GET api/v1/base/settings/schools/study-periods/{studyPeriods}

Headers

URL Parameters

Update school company settings.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/schools/study-periods/autem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupSchL_DscAR\": \"\\\"الإعدادات\\\"\",
    \"LockupSchL_DscEN\": \"\\\"Settings\\\"\",
    \"LockupSchL_Ty\": 1,
    \"LockupSchL_Actv\": true,
    \"Cmp_No\": \"101\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/study-periods/autem"
);

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

let body = {
    "LockupSchL_DscAR": "\"الإعدادات\"",
    "LockupSchL_DscEN": "\"Settings\"",
    "LockupSchL_Ty": 1,
    "LockupSchL_Actv": true,
    "Cmp_No": "101"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/schools/study-periods/autem';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupSchL_DscAR' => '"الإعدادات"',
            'LockupSchL_DscEN' => '"Settings"',
            'LockupSchL_Ty' => 1,
            'LockupSchL_Actv' => true,
            'Cmp_No' => '101',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/schools/study-periods/autem'
payload = {
    "LockupSchL_DscAR": "\"الإعدادات\"",
    "LockupSchL_DscEN": "\"Settings\"",
    "LockupSchL_Ty": 1,
    "LockupSchL_Actv": true,
    "Cmp_No": "101"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
  "message": "Settings updated successfully",
  "data": {...}
}
 

Request      

PUT api/v1/base/settings/schools/study-periods/{studyPeriods}

PATCH api/v1/base/settings/schools/study-periods/{studyPeriods}

Headers

URL Parameters

Body Parameters

Delete school company settings.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/schools/study-periods/nulla" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/study-periods/nulla"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/study-periods/nulla';
$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 = 'http://wazen.test/api/v1/base/settings/schools/study-periods/nulla'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Settings deleted successfully"
}
 

Request      

DELETE api/v1/base/settings/schools/study-periods/{studyPeriods}

Headers

URL Parameters

Get a list of school company settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/schoolSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/schoolSettings"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings';
$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 = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "data": {
    "items": [...],
    "meta": {...}
  }
}
 

Request      

GET api/v1/base/settings/schools/schoolSettings

Headers

Store new school company settings.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/schools/schoolSettings" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupSchL_DscAR\": \"\\\"الإعدادات\\\"\",
    \"LockupSchL_DscEN\": \"\\\"Settings\\\"\",
    \"LockupSchL_Ty\": 1,
    \"LockupSchL_Actv\": true,
    \"Cmp_No\": \"101\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/schoolSettings"
);

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

let body = {
    "LockupSchL_DscAR": "\"الإعدادات\"",
    "LockupSchL_DscEN": "\"Settings\"",
    "LockupSchL_Ty": 1,
    "LockupSchL_Actv": true,
    "Cmp_No": "101"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupSchL_DscAR' => '"الإعدادات"',
            'LockupSchL_DscEN' => '"Settings"',
            'LockupSchL_Ty' => 1,
            'LockupSchL_Actv' => true,
            'Cmp_No' => '101',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings'
payload = {
    "LockupSchL_DscAR": "\"الإعدادات\"",
    "LockupSchL_DscEN": "\"Settings\"",
    "LockupSchL_Ty": 1,
    "LockupSchL_Actv": true,
    "Cmp_No": "101"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
  "message": "Settings added successfully",
  "data": {...}
}
 

Request      

POST api/v1/base/settings/schools/schoolSettings

Headers

Body Parameters

Display specific school company settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/schoolSettings/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/schoolSettings/1"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings/1';
$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 = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "data": {...}
}
 

Request      

GET api/v1/base/settings/schools/schoolSettings/{id}

Headers

URL Parameters

Update school company settings.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/schools/schoolSettings/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupSchL_DscAR\": \"\\\"الإعدادات\\\"\",
    \"LockupSchL_DscEN\": \"\\\"Settings\\\"\",
    \"LockupSchL_Ty\": 1,
    \"LockupSchL_Actv\": true,
    \"Cmp_No\": \"101\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/schoolSettings/1"
);

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

let body = {
    "LockupSchL_DscAR": "\"الإعدادات\"",
    "LockupSchL_DscEN": "\"Settings\"",
    "LockupSchL_Ty": 1,
    "LockupSchL_Actv": true,
    "Cmp_No": "101"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupSchL_DscAR' => '"الإعدادات"',
            'LockupSchL_DscEN' => '"Settings"',
            'LockupSchL_Ty' => 1,
            'LockupSchL_Actv' => true,
            'Cmp_No' => '101',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings/1'
payload = {
    "LockupSchL_DscAR": "\"الإعدادات\"",
    "LockupSchL_DscEN": "\"Settings\"",
    "LockupSchL_Ty": 1,
    "LockupSchL_Actv": true,
    "Cmp_No": "101"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
  "message": "Settings updated successfully",
  "data": {...}
}
 

Request      

PUT api/v1/base/settings/schools/schoolSettings/{id}

PATCH api/v1/base/settings/schools/schoolSettings/{id}

Headers

URL Parameters

Body Parameters

Delete school company settings.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/schools/schoolSettings/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/schoolSettings/1"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings/1';
$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 = 'http://wazen.test/api/v1/base/settings/schools/schoolSettings/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Settings deleted successfully"
}
 

Request      

DELETE api/v1/base/settings/schools/schoolSettings/{id}

Headers

URL Parameters

Get the last lockup school number.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/get-lockupSchL-no" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/get-lockupSchL-no"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/get-lockupSchL-no';
$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 = 'http://wazen.test/api/v1/base/settings/schools/get-lockupSchL-no'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "LockupSchL__No": 123
}
 

Request      

GET api/v1/base/settings/schools/get-lockupSchL-no

Headers

Import school company settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/import" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/import"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/import';
$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 = 'http://wazen.test/api/v1/base/settings/schools/import'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "data": [...],
  "message": "Imported settings retrieved successfully"
}
 

Request      

GET api/v1/base/settings/schools/import

Headers

Store imported school company settings.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/schools/storeImported" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/storeImported"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/storeImported';
$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 = 'http://wazen.test/api/v1/base/settings/schools/storeImported'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):


{
    "message": "Imported settings added successfully"
}
 

Request      

POST api/v1/base/settings/schools/storeImported

Headers

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/grdclsRooms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/grdclsRooms"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms';
$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 = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "data": {
    "id": null,
    "initData": {},
    "treeData": [...]
  }
}
 

Request      

GET api/v1/base/settings/schools/grdclsRooms

Headers

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/schools/grdclsRooms" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Grad_No\": 101,
    \"Grad_NmAr\": \"\\\"الصف الأول\\\"\",
    \"Grad_NmEn\": \"\\\"First Grade\\\"\",
    \"Level_No\": 1,
    \"Parent_Grad\": 100,
    \"Cmp_No\": 1,
    \"Grad_Active\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/grdclsRooms"
);

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

let body = {
    "Grad_No": 101,
    "Grad_NmAr": "\"الصف الأول\"",
    "Grad_NmEn": "\"First Grade\"",
    "Level_No": 1,
    "Parent_Grad": 100,
    "Cmp_No": 1,
    "Grad_Active": 1
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Grad_No' => 101,
            'Grad_NmAr' => '"الصف الأول"',
            'Grad_NmEn' => '"First Grade"',
            'Level_No' => 1,
            'Parent_Grad' => 100,
            'Cmp_No' => 1,
            'Grad_Active' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms'
payload = {
    "Grad_No": 101,
    "Grad_NmAr": "\"الصف الأول\"",
    "Grad_NmEn": "\"First Grade\"",
    "Level_No": 1,
    "Parent_Grad": 100,
    "Cmp_No": 1,
    "Grad_Active": 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()

Example response (200):


{
  "success": true,
  "treeData": [...]
}
 

Request      

POST api/v1/base/settings/schools/grdclsRooms

Headers

Body Parameters

Show details of the specified resource.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1';
$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 = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "thing": {},
    "output": "HTML content"
}
 

Request      

GET api/v1/base/settings/schools/grdclsRooms/{id}

Headers

URL Parameters

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Grad_NmAr\": \"\\\"الصف الأول\\\"\",
    \"Grad_NmEn\": \"\\\"First Grade\\\"\",
    \"Grad_Active\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1"
);

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

let body = {
    "Grad_NmAr": "\"الصف الأول\"",
    "Grad_NmEn": "\"First Grade\"",
    "Grad_Active": 1
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Grad_NmAr' => '"الصف الأول"',
            'Grad_NmEn' => '"First Grade"',
            'Grad_Active' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1'
payload = {
    "Grad_NmAr": "\"الصف الأول\"",
    "Grad_NmEn": "\"First Grade\"",
    "Grad_Active": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
  "success": true,
  "treeData": [...]
}
 

Request      

PUT api/v1/base/settings/schools/grdclsRooms/{id}

PATCH api/v1/base/settings/schools/grdclsRooms/{id}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1';
$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 = 'http://wazen.test/api/v1/base/settings/schools/grdclsRooms/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
  "success": true,
  "treeData": [...]
}
 

Request      

DELETE api/v1/base/settings/schools/grdclsRooms/{id}

Headers

URL Parameters

Get the categories tree.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/schools/school-grades/getTree" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/school-grades/getTree"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/school-grades/getTree';
$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 = 'http://wazen.test/api/v1/base/settings/schools/school-grades/getTree'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):


{
  "tree": [
    {
      "id": 1,
      "text": "Grade 1",
      "children": [...]
    }
  ]
}
 

Request      

POST api/v1/base/settings/schools/school-grades/getTree

Headers

Import the structure.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/school-grades/import" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/school-grades/import"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/school-grades/import';
$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 = 'http://wazen.test/api/v1/base/settings/schools/school-grades/import'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "data": {
    "initData": {},
    "treeData": [...],
    "screenType": "dashboardSettings"
  }
}
 

Request      

GET api/v1/base/settings/schools/school-grades/import

Headers

Load the import tree.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/schools/school-grades/load-import-tree" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/school-grades/load-import-tree"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/school-grades/load-import-tree';
$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 = 'http://wazen.test/api/v1/base/settings/schools/school-grades/load-import-tree'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):


{
  "treeData": [...]
}
 

Request      

POST api/v1/base/settings/schools/school-grades/load-import-tree

Headers

Import data into the system.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/schools/school-grades/store-imported-tree" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"grades\": [
        1,
        2,
        3
    ]
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/school-grades/store-imported-tree"
);

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

let body = {
    "grades": [
        1,
        2,
        3
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/schools/school-grades/store-imported-tree';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'grades' => [
                1,
                2,
                3,
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/schools/school-grades/store-imported-tree'
payload = {
    "grades": [
        1,
        2,
        3
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": 200
}
 

Request      

POST api/v1/base/settings/schools/school-grades/store-imported-tree

Headers

Body Parameters

Get student status.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/student-status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/student-status"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/student-status';
$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 = 'http://wazen.test/api/v1/base/settings/schools/student-status'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 2,
    "title": "Student Status"
}
 

Request      

GET api/v1/base/settings/schools/student-status

Headers

Get bus fees.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/bus-fees" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/bus-fees"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/bus-fees';
$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 = 'http://wazen.test/api/v1/base/settings/schools/bus-fees'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 3,
    "title": "Bus Fees"
}
 

Request      

GET api/v1/base/settings/schools/bus-fees

Headers

Get student fees.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/student-fees" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/student-fees"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/student-fees';
$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 = 'http://wazen.test/api/v1/base/settings/schools/student-fees'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 4,
    "title": "Student Fees"
}
 

Request      

GET api/v1/base/settings/schools/student-fees

Headers

Get brothers discounts.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/brothers-discounts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/brothers-discounts"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/brothers-discounts';
$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 = 'http://wazen.test/api/v1/base/settings/schools/brothers-discounts'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 5,
    "title": "Brothers Discounts"
}
 

Request      

GET api/v1/base/settings/schools/brothers-discounts

Headers

Get school subjects.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/school-subjects" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/school-subjects"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/school-subjects';
$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 = 'http://wazen.test/api/v1/base/settings/schools/school-subjects'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 6,
    "title": "School Subjects"
}
 

Request      

GET api/v1/base/settings/schools/school-subjects

Headers

Get student discounts.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/student-discounts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/student-discounts"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/student-discounts';
$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 = 'http://wazen.test/api/v1/base/settings/schools/student-discounts'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 7,
    "title": "Student Discounts"
}
 

Request      

GET api/v1/base/settings/schools/student-discounts

Headers

Get student behavior settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/student-behaviour" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/student-behaviour"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/student-behaviour';
$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 = 'http://wazen.test/api/v1/base/settings/schools/student-behaviour'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 8,
    "title": "Student Behaviour"
}
 

Request      

GET api/v1/base/settings/schools/student-behaviour

Headers

Get student relation settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/student-relation" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/student-relation"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/student-relation';
$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 = 'http://wazen.test/api/v1/base/settings/schools/student-relation'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 9,
    "title": "Student Relation"
}
 

Request      

GET api/v1/base/settings/schools/student-relation

Headers

Get student class settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/student-class" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/student-class"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/student-class';
$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 = 'http://wazen.test/api/v1/base/settings/schools/student-class'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 10,
    "title": "Student Class"
}
 

Request      

GET api/v1/base/settings/schools/student-class

Headers

Get study years settings.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/schools/study-years" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/schools/study-years"
);

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 = 'http://wazen.test/api/v1/base/settings/schools/study-years';
$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 = 'http://wazen.test/api/v1/base/settings/schools/study-years'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "lockupType": 11,
    "title": "Study Years"
}
 

Request      

GET api/v1/base/settings/schools/study-years

Headers

Shifts

Shifts Api

list all shifts

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/shifts" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/shifts"
);

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 = 'http://wazen.test/api/v1/base/shifts';
$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 = 'http://wazen.test/api/v1/base/shifts'
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 43
x-request-id: ccce6a78-cc5d-4a94-916f-a266cd35e417
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/shifts

Headers

Shipping Companies Management

API for managing shipping companies

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 4,
    \"per_page\": 9,
    \"page\": 1
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies"
);

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

let body = {
    "company_no": 4,
    "per_page": 9,
    "page": 1
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 4,
            'per_page' => 9,
            'page' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies'
payload = {
    "company_no": 4,
    "per_page": 9,
    "page": 1
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "CmpShippingCompanies list retrieved successfully.",
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "LockupCustoms_No": 456,
            "LockupCustoms_Ty": 3,
            "LockupCustoms_DscAR": "شركة شحن",
            "LockupCustoms_DscEN": "Shipping Company",
            "LockupCustoms_Actv": 1
        }
    ],
    "pagination": {
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "lastPage": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/shipping-companies

Headers

Body Parameters

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"شركة شحن\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Shipping Company\\\"\",
    \"LockupCustoms_Ty\": 3
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies"
);

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

let body = {
    "LockupCustoms_DscAR": "\"شركة شحن\"",
    "LockupCustoms_DscEN": "\"Shipping Company\"",
    "LockupCustoms_Ty": 3
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"شركة شحن"',
            'LockupCustoms_DscEN' => '"Shipping Company"',
            'LockupCustoms_Ty' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies'
payload = {
    "LockupCustoms_DscAR": "\"شركة شحن\"",
    "LockupCustoms_DscEN": "\"Shipping Company\"",
    "LockupCustoms_Ty": 3
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):


{
    "status": true,
    "message": "Shipping company created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/shipping-companies

Headers

Body Parameters

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/aut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"شركة شحن\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Shipping Company\\\"\",
    \"LockupCustoms_Ty\": 3
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/aut"
);

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

let body = {
    "LockupCustoms_DscAR": "\"شركة شحن\"",
    "LockupCustoms_DscEN": "\"Shipping Company\"",
    "LockupCustoms_Ty": 3
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/aut';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"شركة شحن"',
            'LockupCustoms_DscEN' => '"Shipping Company"',
            'LockupCustoms_Ty' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/aut'
payload = {
    "LockupCustoms_DscAR": "\"شركة شحن\"",
    "LockupCustoms_DscEN": "\"Shipping Company\"",
    "LockupCustoms_Ty": 3
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Shipping company updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/{shippingCompanies}

PATCH api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/{shippingCompanies}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/odio" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/odio"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/odio';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/odio'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Shipping company deleted successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/{shippingCompanies}

Headers

URL Parameters

Print a journal row for the specified shipping company.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "Generated print view."
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/print/{id}

Headers

URL Parameters

Initialize data for shipping companies.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/init-data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):


{
    "categories": [
        {
            "LockupCustoms_No": 1,
            "LockupCustoms_DscAR": "شركة شحن"
        }
    ],
    "companyName": "Company Name",
    "activityName": "Activity Name"
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/shipping-companies/init-data

Headers

Stocks

Stocks Api

get branch stores

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/stores" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/stores"
);

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 = 'http://wazen.test/api/v1/base/stores';
$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 = 'http://wazen.test/api/v1/base/stores'
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
x-ratelimit-limit: 60
x-ratelimit-remaining: 44
x-request-id: 922156a4-3c71-4b5f-abe2-21d4b1f6c61f
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/base/stores

Headers

Terms and Services Management

API for managing terms and services of shipping

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 3,
    \"per_page\": 20,
    \"page\": 2
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services"
);

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

let body = {
    "company_no": 3,
    "per_page": 20,
    "page": 2
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 3,
            'per_page' => 20,
            'page' => 2,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services'
payload = {
    "company_no": 3,
    "per_page": 20,
    "page": 2
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "CmpTermsServices list retrieved successfully.",
    "data": [
        {
            "ID_No": 1,
            "Cmp_No": 123,
            "LockupCustoms_No": 456,
            "LockupCustoms_Ty": 5,
            "LockupCustoms_DscAR": "خدمة",
            "LockupCustoms_DscEN": "Service",
            "LockupCustoms_Actv": 1
        }
    ],
    "pagination": {
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "lastPage": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/terms-services

Headers

Body Parameters

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"خدمة\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Service\\\"\",
    \"LockupCustoms_Ty\": 5
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services"
);

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

let body = {
    "LockupCustoms_DscAR": "\"خدمة\"",
    "LockupCustoms_DscEN": "\"Service\"",
    "LockupCustoms_Ty": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"خدمة"',
            'LockupCustoms_DscEN' => '"Service"',
            'LockupCustoms_Ty' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services'
payload = {
    "LockupCustoms_DscAR": "\"خدمة\"",
    "LockupCustoms_DscEN": "\"Service\"",
    "LockupCustoms_Ty": 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()

Example response (201):


{
    "status": true,
    "message": "Terms and services created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/terms-services

Headers

Body Parameters

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/voluptatibus" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"LockupCustoms_DscAR\": \"\\\"خدمة\\\"\",
    \"LockupCustoms_DscEN\": \"\\\"Service\\\"\",
    \"LockupCustoms_Ty\": 5
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/voluptatibus"
);

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

let body = {
    "LockupCustoms_DscAR": "\"خدمة\"",
    "LockupCustoms_DscEN": "\"Service\"",
    "LockupCustoms_Ty": 5
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/voluptatibus';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'LockupCustoms_DscAR' => '"خدمة"',
            'LockupCustoms_DscEN' => '"Service"',
            'LockupCustoms_Ty' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/voluptatibus'
payload = {
    "LockupCustoms_DscAR": "\"خدمة\"",
    "LockupCustoms_DscEN": "\"Service\"",
    "LockupCustoms_Ty": 5
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Terms and services updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/customs-clearance/terms-services/{termsServices}

PATCH api/v1/base/settings/setting-cars/customs-clearance/terms-services/{termsServices}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/et" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/et"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/et';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/et'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Terms and services deleted successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/customs-clearance/terms-services/{termsServices}

Headers

URL Parameters

Print a journal row for the specified term or service.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "Generated print view."
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/terms-services/print/{id}

Headers

URL Parameters

Initialize data for terms and services.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/terms-services/init-data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Example response (200):


{
    "categories": [
        {
            "LockupCustoms_No": 1,
            "LockupCustoms_DscAR": "خدمة"
        }
    ],
    "companyName": "Company Name",
    "activityName": "Activity Name"
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/terms-services/init-data

Headers

Traffic Directions Management

API for managing traffic directions

Display a listing of the resource.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"company_no\": 19,
    \"per_page\": 16,
    \"page\": 19
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions"
);

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

let body = {
    "company_no": 19,
    "per_page": 16,
    "page": 19
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'company_no' => 19,
            'per_page' => 16,
            'page' => 19,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions'
payload = {
    "company_no": 19,
    "per_page": 16,
    "page": 19
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "CmpTrafficDirections list retrieved successfully.",
    "data": [
        {
            "Route_No": 123,
            "Cmp_No": 456,
            "Route_NmAr": "طريق",
            "Route_NmEn": "Route",
            "Regular_Value": 100,
            "Scan_Value": 50
        }
    ],
    "pagination": {
        "total": 1,
        "perPage": 15,
        "currentPage": 1,
        "lastPage": 1
    }
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/traffic-directions

Headers

Body Parameters

Store a newly created resource in storage.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Route_NmAr\": \"\\\"طريق\\\"\",
    \"Route_NmEn\": \"\\\"Route\\\"\",
    \"Regular_Value\": \"100\",
    \"Scan_Value\": \"50\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions"
);

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

let body = {
    "Route_NmAr": "\"طريق\"",
    "Route_NmEn": "\"Route\"",
    "Regular_Value": "100",
    "Scan_Value": "50"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Route_NmAr' => '"طريق"',
            'Route_NmEn' => '"Route"',
            'Regular_Value' => '100',
            'Scan_Value' => '50',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions'
payload = {
    "Route_NmAr": "\"طريق\"",
    "Route_NmEn": "\"Route\"",
    "Regular_Value": "100",
    "Scan_Value": "50"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (201):


{
    "status": true,
    "message": "Traffic direction created successfully."
}
 

Request      

POST api/v1/base/settings/setting-cars/customs-clearance/traffic-directions

Headers

Body Parameters

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/similique" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Route_NmAr\": \"\\\"طريق\\\"\",
    \"Route_NmEn\": \"\\\"Route\\\"\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/similique"
);

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

let body = {
    "Route_NmAr": "\"طريق\"",
    "Route_NmEn": "\"Route\""
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/similique';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Route_NmAr' => '"طريق"',
            'Route_NmEn' => '"Route"',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/similique'
payload = {
    "Route_NmAr": "\"طريق\"",
    "Route_NmEn": "\"Route\""
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Example response (200):


{
    "status": true,
    "message": "Traffic direction updated successfully."
}
 

Request      

PUT api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/{trafficDirections}

PATCH api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/{trafficDirections}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/eos" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/eos'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Example response (200):


{
    "status": true,
    "message": "Traffic direction deleted successfully."
}
 

Request      

DELETE api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/{trafficDirections}

Headers

URL Parameters

Print a journal row for the specified traffic direction.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/print/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/print/1"
);

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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/print/1';
$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 = 'http://wazen.test/api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/print/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "output": "Generated print view."
}
 

Request      

GET api/v1/base/settings/setting-cars/customs-clearance/traffic-directions/print/{id}

Headers

URL Parameters

Warehouses

Warehouses Api

Get Init Data

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/wrehouses/init-data" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/wrehouses/init-data"
);

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 = 'http://wazen.test/api/v1/base/settings/wrehouses/init-data';
$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 = 'http://wazen.test/api/v1/base/settings/wrehouses/init-data'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
"initData" => [
    "accounts" => [
        {
           "Acc_No": 40202,
           "name": "ايرادات أخرى متنوعة"
        }
     ],
     "storeTypes" => [
        {
           "id": 1,
           "name": "عام"
        }
     ],
     "allow_store_locations" => {
         "general": {
           "allow_store_locations": false
          }
     },
     "costJrl": {
         "montSal": false,
         "costSal": true,
         "runInv": false
     },
     "cities" => [
         {
           "name": جدة,
           "key": "20000312001"
         }
     ],
     "no" => "1010001"
 ],
'success'  => TRUE,
}
 

Request      

GET api/v1/base/settings/wrehouses/init-data

Headers

Get a list of Warehouses.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/wrehouses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/wrehouses"
);

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 = 'http://wazen.test/api/v1/base/settings/wrehouses';
$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 = 'http://wazen.test/api/v1/base/settings/wrehouses'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "status": "success",
    "message": "Warehouses list",
    "data": [
        {
            "id": 1,
            "Dlv_Stor": 101,
            "name": "Main Warehouse",
            "Dlv_NmAr": "المستودع الرئيسي",
            "Dlv_NmEn": "Main Warehouse"
        }
    ]
}
 

Request      

GET api/v1/base/settings/wrehouses

Headers

Create a new Warehouses.

requires authentication

Example request:
curl --request POST \
    "http://wazen.test/api/v1/base/settings/wrehouses" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"autem\",
    \"Brn_No\": \"doloribus\",
    \"Dlv_Stor\": 8,
    \"Dlv_NmAr\": \"siufmrexxofyypuiic\",
    \"Dlv_NmEn\": \"hypip\",
    \"Dlv_Tel\": \"dyppqleexaggnarnzkpwyayqgoggafjduuewoeghknyg\",
    \"Dlv_Mobil\": \"hfoialaggznymegoddzbgtwafrmhjqjjwnojgtuzsoyeivbfeypbduakgmzkbntjbyointu\",
    \"Parnt_Brn\": 30332688.823,
    \"Level_Status\": 15,
    \"Level_No_Parent\": 18,
    \"Level_No\": 12,
    \"Dlv_Email\": \"[email protected]\",
    \"store_ty\": \"2\",
    \"nameAr\": \"المستودع الرئيسي\",
    \"nameEn\": \"Main Warehouse\",
    \"parint\": \"1\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/wrehouses"
);

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

let body = {
    "Cmp_No": "autem",
    "Brn_No": "doloribus",
    "Dlv_Stor": 8,
    "Dlv_NmAr": "siufmrexxofyypuiic",
    "Dlv_NmEn": "hypip",
    "Dlv_Tel": "dyppqleexaggnarnzkpwyayqgoggafjduuewoeghknyg",
    "Dlv_Mobil": "hfoialaggznymegoddzbgtwafrmhjqjjwnojgtuzsoyeivbfeypbduakgmzkbntjbyointu",
    "Parnt_Brn": 30332688.823,
    "Level_Status": 15,
    "Level_No_Parent": 18,
    "Level_No": 12,
    "Dlv_Email": "[email protected]",
    "store_ty": "2",
    "nameAr": "المستودع الرئيسي",
    "nameEn": "Main Warehouse",
    "parint": "1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/wrehouses';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'autem',
            'Brn_No' => 'doloribus',
            'Dlv_Stor' => 8,
            'Dlv_NmAr' => 'siufmrexxofyypuiic',
            'Dlv_NmEn' => 'hypip',
            'Dlv_Tel' => 'dyppqleexaggnarnzkpwyayqgoggafjduuewoeghknyg',
            'Dlv_Mobil' => 'hfoialaggznymegoddzbgtwafrmhjqjjwnojgtuzsoyeivbfeypbduakgmzkbntjbyointu',
            'Parnt_Brn' => 30332688.823,
            'Level_Status' => 15,
            'Level_No_Parent' => 18,
            'Level_No' => 12,
            'Dlv_Email' => '[email protected]',
            'store_ty' => '2',
            'nameAr' => 'المستودع الرئيسي',
            'nameEn' => 'Main Warehouse',
            'parint' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/wrehouses'
payload = {
    "Cmp_No": "autem",
    "Brn_No": "doloribus",
    "Dlv_Stor": 8,
    "Dlv_NmAr": "siufmrexxofyypuiic",
    "Dlv_NmEn": "hypip",
    "Dlv_Tel": "dyppqleexaggnarnzkpwyayqgoggafjduuewoeghknyg",
    "Dlv_Mobil": "hfoialaggznymegoddzbgtwafrmhjqjjwnojgtuzsoyeivbfeypbduakgmzkbntjbyointu",
    "Parnt_Brn": 30332688.823,
    "Level_Status": 15,
    "Level_No_Parent": 18,
    "Level_No": 12,
    "Dlv_Email": "[email protected]",
    "store_ty": "2",
    "nameAr": "المستودع الرئيسي",
    "nameEn": "Main Warehouse",
    "parint": "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()

Example response (200):


{
    "status": "success",
    "message": "Warehouse created successfully",
    "data": {
        "id": 2,
        "Dlv_Stor": 1010001,
        "name": "Main Warehouse",
        "Dlv_NmAr": "المستودع الرئيسي",
        "Dlv_NmEn": "Main Warehouse",
        "parintID": "1"
    }
}
 

Request      

POST api/v1/base/settings/wrehouses

Headers

Body Parameters

Display a specific Warehouse.

requires authentication

Example request:
curl --request GET \
    --get "http://wazen.test/api/v1/base/settings/wrehouses/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/wrehouses/1"
);

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 = 'http://wazen.test/api/v1/base/settings/wrehouses/1';
$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 = 'http://wazen.test/api/v1/base/settings/wrehouses/1'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
  "status": "success",
  "message": "Warehouse details retrieved successfully",
  "data": {
    "id": 1,
    "Dlv_Stor": 1010001,
    "name": "Main Warehouse",
    "Dlv_NmAr": "المستودع الرئيسي",
    "Dlv_NmEn": "Main Warehouse",
  }
}
 

Request      

GET api/v1/base/settings/wrehouses/{id}

Headers

URL Parameters

Update the specified resource in storage.

requires authentication

Example request:
curl --request PUT \
    "http://wazen.test/api/v1/base/settings/wrehouses/ut" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"Cmp_No\": \"laboriosam\",
    \"Brn_No\": \"voluptas\",
    \"Dlv_Stor\": 9,
    \"Dlv_NmAr\": \"pfkriyfbzygpkygninzupsd\",
    \"Dlv_NmEn\": \"mxuskgekfinphjbpblmbzan\",
    \"Dlv_Tel\": \"npppbyscykzhwnsc\",
    \"Dlv_Mobil\": \"brzkmawogqdsuxqmflepmsqhp\",
    \"Parnt_Brn\": 28.39,
    \"Level_Status\": 10,
    \"Level_No_Parent\": 1,
    \"Level_No\": 17,
    \"Dlv_Email\": \"[email protected]\",
    \"store_ty\": \"3\"
}"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/wrehouses/ut"
);

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

let body = {
    "Cmp_No": "laboriosam",
    "Brn_No": "voluptas",
    "Dlv_Stor": 9,
    "Dlv_NmAr": "pfkriyfbzygpkygninzupsd",
    "Dlv_NmEn": "mxuskgekfinphjbpblmbzan",
    "Dlv_Tel": "npppbyscykzhwnsc",
    "Dlv_Mobil": "brzkmawogqdsuxqmflepmsqhp",
    "Parnt_Brn": 28.39,
    "Level_Status": 10,
    "Level_No_Parent": 1,
    "Level_No": 17,
    "Dlv_Email": "[email protected]",
    "store_ty": "3"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'http://wazen.test/api/v1/base/settings/wrehouses/ut';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'Cmp_No' => 'laboriosam',
            'Brn_No' => 'voluptas',
            'Dlv_Stor' => 9,
            'Dlv_NmAr' => 'pfkriyfbzygpkygninzupsd',
            'Dlv_NmEn' => 'mxuskgekfinphjbpblmbzan',
            'Dlv_Tel' => 'npppbyscykzhwnsc',
            'Dlv_Mobil' => 'brzkmawogqdsuxqmflepmsqhp',
            'Parnt_Brn' => 28.39,
            'Level_Status' => 10,
            'Level_No_Parent' => 1,
            'Level_No' => 17,
            'Dlv_Email' => '[email protected]',
            'store_ty' => '3',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'http://wazen.test/api/v1/base/settings/wrehouses/ut'
payload = {
    "Cmp_No": "laboriosam",
    "Brn_No": "voluptas",
    "Dlv_Stor": 9,
    "Dlv_NmAr": "pfkriyfbzygpkygninzupsd",
    "Dlv_NmEn": "mxuskgekfinphjbpblmbzan",
    "Dlv_Tel": "npppbyscykzhwnsc",
    "Dlv_Mobil": "brzkmawogqdsuxqmflepmsqhp",
    "Parnt_Brn": 28.39,
    "Level_Status": 10,
    "Level_No_Parent": 1,
    "Level_No": 17,
    "Dlv_Email": "[email protected]",
    "store_ty": "3"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request      

PUT api/v1/base/settings/wrehouses/{id}

PATCH api/v1/base/settings/wrehouses/{id}

Headers

URL Parameters

Body Parameters

Remove the specified resource from storage.

requires authentication

Example request:
curl --request DELETE \
    "http://wazen.test/api/v1/base/settings/wrehouses/aliquid" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://wazen.test/api/v1/base/settings/wrehouses/aliquid"
);

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 = 'http://wazen.test/api/v1/base/settings/wrehouses/aliquid';
$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 = 'http://wazen.test/api/v1/base/settings/wrehouses/aliquid'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request      

DELETE api/v1/base/settings/wrehouses/{id}

Headers

URL Parameters