NAV
bash javascript php

Info

Welcome to the generated API reference. Get Postman Collection

Site Integration - интеграция с сайтом

Class ProductController

Получение списка заказов


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/orders" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/orders"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/orders',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/order/orders

URL Parameters

Parameter Status Description
page required integer Номер страницы
per_page required integer Количество заказов на страницу
start_date required date date_format:Y-m-d Начальная дата списка
end_date required date date_format:Y-m-d Конечная дата списка

Создание заказа


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/order/orders" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"ipsum","comment":"ut","uuid":"placeat","discount_id":"id","certificate_id":"adipisci","sales_channel_id":"est","price_margin_id":"aut","client_id":"architecto","table_number":"aut","order_tags":["voluptatem"],"payments":[{"id":"doloremque","sum":"perferendis","payment_type":"aut"}],"details":{"city_id":"eveniet","phone":"ea","client_name":"omnis","street":"autem","building":"dolores","entrance":"est","floor":"ex","room":"dolor","coordinates":{"latitude":"omnis","longitude":"excepturi"}},"nomenclatures":[{"id":"laborum","amount":"aspernatur","category_id":"autem","title":"vel","promotional":"minima"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/orders"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "ipsum",
    "comment": "ut",
    "uuid": "placeat",
    "discount_id": "id",
    "certificate_id": "adipisci",
    "sales_channel_id": "est",
    "price_margin_id": "aut",
    "client_id": "architecto",
    "table_number": "aut",
    "order_tags": [
        "voluptatem"
    ],
    "payments": [
        {
            "id": "doloremque",
            "sum": "perferendis",
            "payment_type": "aut"
        }
    ],
    "details": {
        "city_id": "eveniet",
        "phone": "ea",
        "client_name": "omnis",
        "street": "autem",
        "building": "dolores",
        "entrance": "est",
        "floor": "ex",
        "room": "dolor",
        "coordinates": {
            "latitude": "omnis",
            "longitude": "excepturi"
        }
    },
    "nomenclatures": [
        {
            "id": "laborum",
            "amount": "aspernatur",
            "category_id": "autem",
            "title": "vel",
            "promotional": "minima"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/order/orders',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'ipsum',
            'comment' => 'ut',
            'uuid' => 'placeat',
            'discount_id' => 'id',
            'certificate_id' => 'adipisci',
            'sales_channel_id' => 'est',
            'price_margin_id' => 'aut',
            'client_id' => 'architecto',
            'table_number' => 'aut',
            'order_tags' => [
                'voluptatem',
            ],
            'payments' => [
                [
                    'id' => 'doloremque',
                    'sum' => 'perferendis',
                    'payment_type' => 'aut',
                ],
            ],
            'details' => [
                'city_id' => 'eveniet',
                'phone' => 'ea',
                'client_name' => 'omnis',
                'street' => 'autem',
                'building' => 'dolores',
                'entrance' => 'est',
                'floor' => 'ex',
                'room' => 'dolor',
                'coordinates' => [
                    'latitude' => 'omnis',
                    'longitude' => 'excepturi',
                ],
            ],
            'nomenclatures' => [
                [
                    'id' => 'laborum',
                    'amount' => 'aspernatur',
                    'category_id' => 'autem',
                    'title' => 'vel',
                    'promotional' => 'minima',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/order/orders

Body Parameters

Parameter Type Status Description
date required optional date date_format:Y-m-d H:i Дата заказа
comment nullable optional string Комментарий
uuid required optional string Уникальный идентификатор UUID
discount_id nullable optional integer Уникальный идентификатор дисконтной карты
certificate_id nullable optional integer Уникальный идентификатор сертификата
sales_channel_id nullable optional integer Уникальный идентификатор канала продаж
price_margin_id nullable optional integer Уникальный идентификатор наценки
client_id nullable optional integer Уникальный идентификатор клиента
table_number nullable optional integer Номер стола
order_tags required optional array Массив уникальных идентификаторов тегов для заказа
order_tags.* required optional integer ID тега
payments required optional Массив уникальных идентификаторов оплат и сумм для заказа (id, sum)
payments.*.id required optional integer ID способа оплаты
payments.*.sum required optional integer сумма конкретной оплаты
payments.*.payment_type required optional string тип оплаты - наличка бонусы безнал
details required optional array Массив деталей заказа
details.city_id required optional integer Город клиента
details.phone nullable optional string Телефон клиента
details.client_name nullable optional string Имя клиента
details.street nullable optional string Улица доставки
details.building nullable optional integer Дом доставки
details.entrance nullable optional integer Подъезд доставки
details.floor nullable optional integer Этаж доставки
details.room nullable optional integer Квартира/офис доставки
details.coordinates required optional array Координаты доставки
details.coordinates.latitude nullable optional string Широта
details.coordinates.longitude nullable optional string Долгота
nomenclatures required optional array Массив товаров для заказа
nomenclatures.*.id required optional integer ID товара
nomenclatures.*.amount required optional integer Количество товара
nomenclatures.*.category_id required optional integer ID категории товара
nomenclatures.*.title required optional string Название товара
nomenclatures.*.promotional required optional boolean флаг акционного товара (который из сертификата)

Получение заказа


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/orders/sed" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/orders/sed"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/orders/sed',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "data": "Массив данных заказа"
}

Example response (401):

{
    "message": "Unauthenticated"
}

HTTP Request

GET api/v1/order/orders/{order}

URL Parameters

Parameter Status Description
order required Уникальный идентификатор заказа

Обновление заказа


Requires authentication

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/order/orders/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"et","comment":"tempora","uuid":"dolor","discount_id":"dicta","certificate_id":"cum","sales_channel_id":"atque","price_margin_id":"veritatis","client_id":"soluta","table_number":"ut","order_tags":["et"],"payments":[{"id":"eligendi","sum":"repellat"}],"details":{"city_id":"in","phone":"temporibus","client_name":"autem","street":"necessitatibus","building":"voluptatem","entrance":"eum","floor":"et","room":"alias","coordinates":{"latitude":"in","longitude":"quas"}},"nomenclatures":[{"id":"et","amount":"a"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/orders/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "et",
    "comment": "tempora",
    "uuid": "dolor",
    "discount_id": "dicta",
    "certificate_id": "cum",
    "sales_channel_id": "atque",
    "price_margin_id": "veritatis",
    "client_id": "soluta",
    "table_number": "ut",
    "order_tags": [
        "et"
    ],
    "payments": [
        {
            "id": "eligendi",
            "sum": "repellat"
        }
    ],
    "details": {
        "city_id": "in",
        "phone": "temporibus",
        "client_name": "autem",
        "street": "necessitatibus",
        "building": "voluptatem",
        "entrance": "eum",
        "floor": "et",
        "room": "alias",
        "coordinates": {
            "latitude": "in",
            "longitude": "quas"
        }
    },
    "nomenclatures": [
        {
            "id": "et",
            "amount": "a"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/order/orders/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'et',
            'comment' => 'tempora',
            'uuid' => 'dolor',
            'discount_id' => 'dicta',
            'certificate_id' => 'cum',
            'sales_channel_id' => 'atque',
            'price_margin_id' => 'veritatis',
            'client_id' => 'soluta',
            'table_number' => 'ut',
            'order_tags' => [
                'et',
            ],
            'payments' => [
                [
                    'id' => 'eligendi',
                    'sum' => 'repellat',
                ],
            ],
            'details' => [
                'city_id' => 'in',
                'phone' => 'temporibus',
                'client_name' => 'autem',
                'street' => 'necessitatibus',
                'building' => 'voluptatem',
                'entrance' => 'eum',
                'floor' => 'et',
                'room' => 'alias',
                'coordinates' => [
                    'latitude' => 'in',
                    'longitude' => 'quas',
                ],
            ],
            'nomenclatures' => [
                [
                    'id' => 'et',
                    'amount' => 'a',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/order/orders/{order}

PATCH api/v1/order/orders/{order}

Body Parameters

Parameter Type Status Description
date required optional date date_format:Y-m-d H:i Дата заказа
comment nullable optional string Комментарий
uuid required optional string Уникальный идентификатор UUID
discount_id nullable optional integer Уникальный идентификатор дисконтной карты
certificate_id nullable optional integer Уникальный идентификатор сертификата
sales_channel_id nullable optional integer Уникальный идентификатор канала продаж
price_margin_id nullable optional integer Уникальный идентификатор наценки
client_id nullable optional integer Уникальный идентификатор клиента
table_number nullable optional integer Номер стола
order_tags required optional array Массив уникальных идентификаторов тегов для заказа
order_tags.* required optional integer ID тега
payments required optional Массив уникальных идентификаторов оплат и сумм для заказа (id, sum)
payments.*.id required optional integer ID способа оплаты
payments.*.sum required optional integer сумма конкретной оплаты
details required optional array Массив деталей заказа
details.city_id required optional integer Город клиента
details.phone nullable optional string Телефон клиента
details.client_name nullable optional string Имя клиента
details.street nullable optional string Улица доставки
details.building nullable optional integer Дом доставки
details.entrance nullable optional integer Подъезд доставки
details.floor nullable optional integer Этаж доставки
details.room nullable optional integer Квартира/офис доставки
details.coordinates required optional array Координаты доставки
details.coordinates.latitude nullable optional string Широта
details.coordinates.longitude nullable optional string Долгота
nomenclatures required optional array Массив товаров для заказа
nomenclatures.*.id required optional integer ID товара
nomenclatures.*.amount required optional integer Количество товара

Отмена заказа


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/order/cancel-order" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/cancel-order"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/order/cancel-order',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "data": []
}

HTTP Request

POST api/v1/order/cancel-order

URL Parameters

Parameter Status Description
order_id optional integer require Уникальный идентификатор заказа

api/v1/order/find-client-by-card


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/find-client-by-card" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/find-client-by-card"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/find-client-by-card',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/find-client-by-card

api/v1/order/find-client-by-phone


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/find-client-by-phone" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/find-client-by-phone"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/find-client-by-phone',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/find-client-by-phone

api/v1/order/get-employee-list


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/get-employee-list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/get-employee-list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/get-employee-list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/get-employee-list

api/v1/order/send-to-printer/{order}


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/send-to-printer/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/send-to-printer/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/send-to-printer/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/send-to-printer/{order}

api/v1/order/change-order-status


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/order/change-order-status" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/change-order-status"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/order/change-order-status',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/order/change-order-status

api/v1/order/appoint-employee


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/order/appoint-employee" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/appoint-employee"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/order/appoint-employee',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/order/appoint-employee

Смена оплаты для заказа


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/order/change-order-payments" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"organization_id":16,"trade_point_id":11,"payments":[]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/change-order-payments"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "organization_id": 16,
    "trade_point_id": 11,
    "payments": []
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/order/change-order-payments',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'organization_id' => 16,
            'trade_point_id' => 11,
            'payments' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/order/change-order-payments

URL Parameters

Parameter Status Description
order_id optional integer require Уникальный идентификатор заказа

Body Parameters

Parameter Type Status Description
organization_id integer optional require Уникальный идентификатор организации
trade_point_id integer optional require Уникальный идентификатор торговой точки
payments array optional require Массив оплат (id, sum)

Применение сертификата к заказу


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/order/preview-order-certificate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"quod","organization_id":"voluptas","trade_point_id":"aspernatur","client_id":"reprehenderit","certificate":"distinctio","nomenclatures":[{"id":"alias","amount":"placeat","title":"eaque","category_id":"incidunt"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/preview-order-certificate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "quod",
    "organization_id": "voluptas",
    "trade_point_id": "aspernatur",
    "client_id": "reprehenderit",
    "certificate": "distinctio",
    "nomenclatures": [
        {
            "id": "alias",
            "amount": "placeat",
            "title": "eaque",
            "category_id": "incidunt"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/order/preview-order-certificate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'quod',
            'organization_id' => 'voluptas',
            'trade_point_id' => 'aspernatur',
            'client_id' => 'reprehenderit',
            'certificate' => 'distinctio',
            'nomenclatures' => [
                [
                    'id' => 'alias',
                    'amount' => 'placeat',
                    'title' => 'eaque',
                    'category_id' => 'incidunt',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "success": true,
    "data": {
        "products": [
            {
                "id": 149,
                "title": "Товар",
                "category_id": 11,
                "amount": 3000,
                "promotional": false,
                "price_original": 160000,
                "price_discounted": 136000
            }
        ],
        "certificate": {
            "id": 1,
            "title": "Test"
        }
    }
}

HTTP Request

POST api/v1/order/preview-order-certificate

Body Parameters

Parameter Type Status Description
date required optional Дата заказа в формате Y-m-d H:i
organization_id required optional организация
trade_point_id required optional торговая точка
client_id nullable optional id клиента есть есть
certificate required optional string
nomenclatures required optional array
nomenclatures.*.id required optional integer id товара
nomenclatures.*.amount required optional integer количество товара
nomenclatures.*.title required optional string название товара
nomenclatures.*.category_id required optional integer id категории товара

Автоприменение сертификата к заказу


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/order/find-suitable-certificate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"libero","organization_id":"corrupti","trade_point_id":"repudiandae","client_id":"accusantium","certificate":"aliquam","nomenclatures":[{"id":"non","amount":"autem","title":"nulla","category_id":"sapiente"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/find-suitable-certificate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "libero",
    "organization_id": "corrupti",
    "trade_point_id": "repudiandae",
    "client_id": "accusantium",
    "certificate": "aliquam",
    "nomenclatures": [
        {
            "id": "non",
            "amount": "autem",
            "title": "nulla",
            "category_id": "sapiente"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/order/find-suitable-certificate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'libero',
            'organization_id' => 'corrupti',
            'trade_point_id' => 'repudiandae',
            'client_id' => 'accusantium',
            'certificate' => 'aliquam',
            'nomenclatures' => [
                [
                    'id' => 'non',
                    'amount' => 'autem',
                    'title' => 'nulla',
                    'category_id' => 'sapiente',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "success": true,
    "data": {
        "products": [
            {
                "id": 149,
                "title": "Товар",
                "category_id": 11,
                "amount": 3000,
                "promotional": false,
                "price_original": 160000,
                "price_discounted": 136000
            }
        ],
        "certificate": {
            "id": 1,
            "title": "Test"
        }
    }
}

HTTP Request

POST api/v1/order/find-suitable-certificate

Body Parameters

Parameter Type Status Description
date required optional Дата заказа в формате Y-m-d H:i
organization_id required optional организация
trade_point_id required optional торговая точка
client_id nullable optional id клиента есть есть
certificate required optional string
nomenclatures required optional array
nomenclatures.*.id required optional integer id товара
nomenclatures.*.amount required optional integer количество товара
nomenclatures.*.title required optional string название товара
nomenclatures.*.category_id required optional integer id категории товара

Получение координаты по адресу

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/get-coordinate-by-address" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"city_id":11,"street_name":"ea","building":"numquam"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/get-coordinate-by-address"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "city_id": 11,
    "street_name": "ea",
    "building": "numquam"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/get-coordinate-by-address',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'city_id' => 11,
            'street_name' => 'ea',
            'building' => 'numquam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "address": "Данные о правильном адресе в сервисе Yandex map"
}

HTTP Request

POST api/v1/get-coordinate-by-address

Body Parameters

Parameter Type Status Description
city_id integer required ID города
street_name string required Название улицы
building string required Номер дома/строения

Получение организации и торговой точки по координате заказа

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/find-trade-point-by-point" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"city_id":14,"latitude":"ratione","longitude":"deserunt"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/find-trade-point-by-point"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "city_id": 14,
    "latitude": "ratione",
    "longitude": "deserunt"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/find-trade-point-by-point',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'city_id' => 14,
            'latitude' => 'ratione',
            'longitude' => 'deserunt',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "trade_point_id": "Уникальный идентификатор торговой точки",
    "organization_id": "Уникальный идентификатор организации",
    "payment_type": "Тип оплаты (free\/not free)"
}

HTTP Request

POST api/v1/find-trade-point-by-point

Body Parameters

Parameter Type Status Description
city_id integer required ID города
latitude string required широта точке
longitude string required долгота точке

Получение категорий товаров для сайта

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/integration/site/orders/categories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/orders/categories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/integration/site/orders/categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/integration/site/orders/categories

Получение товаров для сайта

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/integration/site/orders/products" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/orders/products"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/integration/site/orders/products',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/integration/site/orders/products

Получение координаты по адресу

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/integration/site/orders/get-coordinate-by-address" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"city_id":11,"street_name":"amet","building":"consequatur"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/orders/get-coordinate-by-address"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "city_id": 11,
    "street_name": "amet",
    "building": "consequatur"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/integration/site/orders/get-coordinate-by-address',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'city_id' => 11,
            'street_name' => 'amet',
            'building' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "address": "Данные о правильном адресе в сервисе Yandex map"
}

HTTP Request

POST api/v1/integration/site/orders/get-coordinate-by-address

Body Parameters

Parameter Type Status Description
city_id integer required ID города
street_name string required Название улицы
building string required Номер дома/строения

Получение организации и торговой точки по координате заказа

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/integration/site/orders/find-trade-point-by-point" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"city_id":17,"latitude":"deserunt","longitude":"quo"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/orders/find-trade-point-by-point"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "city_id": 17,
    "latitude": "deserunt",
    "longitude": "quo"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/integration/site/orders/find-trade-point-by-point',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'city_id' => 17,
            'latitude' => 'deserunt',
            'longitude' => 'quo',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "trade_point_id": "Уникальный идентификатор торговой точки",
    "organization_id": "Уникальный идентификатор организации",
    "payment_type": "Тип оплаты (free\/not free)"
}

HTTP Request

POST api/v1/integration/site/orders/find-trade-point-by-point

Body Parameters

Parameter Type Status Description
city_id integer required ID города
latitude string required широта точке
longitude string required долгота точке

Применение сертификата к заказу


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/integration/site/orders/preview-order-certificate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"et","organization_id":"occaecati","trade_point_id":"quas","client_id":"repellat","certificate":"nemo","nomenclatures":[{"id":"impedit","amount":"quisquam","title":"ullam","category_id":"beatae"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/orders/preview-order-certificate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "et",
    "organization_id": "occaecati",
    "trade_point_id": "quas",
    "client_id": "repellat",
    "certificate": "nemo",
    "nomenclatures": [
        {
            "id": "impedit",
            "amount": "quisquam",
            "title": "ullam",
            "category_id": "beatae"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/integration/site/orders/preview-order-certificate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'et',
            'organization_id' => 'occaecati',
            'trade_point_id' => 'quas',
            'client_id' => 'repellat',
            'certificate' => 'nemo',
            'nomenclatures' => [
                [
                    'id' => 'impedit',
                    'amount' => 'quisquam',
                    'title' => 'ullam',
                    'category_id' => 'beatae',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "success": true,
    "data": {
        "products": [
            {
                "id": 149,
                "title": "Товар",
                "category_id": 11,
                "amount": 3000,
                "promotional": false,
                "price_original": 160000,
                "price_discounted": 136000
            }
        ],
        "certificate": {
            "id": 1,
            "title": "Test"
        }
    }
}

HTTP Request

POST api/v1/integration/site/orders/preview-order-certificate

Body Parameters

Parameter Type Status Description
date required optional Дата заказа в формате Y-m-d H:i
organization_id required optional организация
trade_point_id required optional торговая точка
client_id nullable optional id клиента есть есть
certificate required optional string
nomenclatures required optional array
nomenclatures.*.id required optional integer id товара
nomenclatures.*.amount required optional integer количество товара
nomenclatures.*.title required optional string название товара
nomenclatures.*.category_id required optional integer id категории товара

Автоприменение сертификата к заказу


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/integration/site/orders/find-suitable-certificate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"qui","organization_id":"optio","trade_point_id":"autem","client_id":"voluptates","certificate":"quia","nomenclatures":[{"id":"mollitia","amount":"repellendus","title":"dolorum","category_id":"quis"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/orders/find-suitable-certificate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "qui",
    "organization_id": "optio",
    "trade_point_id": "autem",
    "client_id": "voluptates",
    "certificate": "quia",
    "nomenclatures": [
        {
            "id": "mollitia",
            "amount": "repellendus",
            "title": "dolorum",
            "category_id": "quis"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/integration/site/orders/find-suitable-certificate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'qui',
            'organization_id' => 'optio',
            'trade_point_id' => 'autem',
            'client_id' => 'voluptates',
            'certificate' => 'quia',
            'nomenclatures' => [
                [
                    'id' => 'mollitia',
                    'amount' => 'repellendus',
                    'title' => 'dolorum',
                    'category_id' => 'quis',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "success": true,
    "data": {
        "products": [
            {
                "id": 149,
                "title": "Товар",
                "category_id": 11,
                "amount": 3000,
                "promotional": false,
                "price_original": 160000,
                "price_discounted": 136000
            }
        ],
        "certificate": {
            "id": 1,
            "title": "Test"
        }
    }
}

HTTP Request

POST api/v1/integration/site/orders/find-suitable-certificate

Body Parameters

Parameter Type Status Description
date required optional Дата заказа в формате Y-m-d H:i
organization_id required optional организация
trade_point_id required optional торговая точка
client_id nullable optional id клиента есть есть
certificate required optional string
nomenclatures required optional array
nomenclatures.*.id required optional integer id товара
nomenclatures.*.amount required optional integer количество товара
nomenclatures.*.title required optional string название товара
nomenclatures.*.category_id required optional integer id категории товара

Создание заказа


Requires authentication

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/integration/site/orders/add-order" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"velit","comment":"quia","uuid":"excepturi","discount_id":"enim","certificate_id":"et","sales_channel_id":"corporis","price_margin_id":"harum","client_id":"velit","table_number":"dolor","order_tags":["quibusdam"],"payments":[{"id":"qui","sum":"ex","payment_type":"aut"}],"details":{"city_id":"ratione","phone":"iusto","client_name":"enim","street":"labore","building":"qui","entrance":"aliquid","floor":"in","room":"dolor","coordinates":{"latitude":"officia","longitude":"vel"}},"nomenclatures":[{"id":"ullam","amount":"debitis","category_id":"nihil","title":"ea","promotional":"modi"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/orders/add-order"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "velit",
    "comment": "quia",
    "uuid": "excepturi",
    "discount_id": "enim",
    "certificate_id": "et",
    "sales_channel_id": "corporis",
    "price_margin_id": "harum",
    "client_id": "velit",
    "table_number": "dolor",
    "order_tags": [
        "quibusdam"
    ],
    "payments": [
        {
            "id": "qui",
            "sum": "ex",
            "payment_type": "aut"
        }
    ],
    "details": {
        "city_id": "ratione",
        "phone": "iusto",
        "client_name": "enim",
        "street": "labore",
        "building": "qui",
        "entrance": "aliquid",
        "floor": "in",
        "room": "dolor",
        "coordinates": {
            "latitude": "officia",
            "longitude": "vel"
        }
    },
    "nomenclatures": [
        {
            "id": "ullam",
            "amount": "debitis",
            "category_id": "nihil",
            "title": "ea",
            "promotional": "modi"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/integration/site/orders/add-order',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'velit',
            'comment' => 'quia',
            'uuid' => 'excepturi',
            'discount_id' => 'enim',
            'certificate_id' => 'et',
            'sales_channel_id' => 'corporis',
            'price_margin_id' => 'harum',
            'client_id' => 'velit',
            'table_number' => 'dolor',
            'order_tags' => [
                'quibusdam',
            ],
            'payments' => [
                [
                    'id' => 'qui',
                    'sum' => 'ex',
                    'payment_type' => 'aut',
                ],
            ],
            'details' => [
                'city_id' => 'ratione',
                'phone' => 'iusto',
                'client_name' => 'enim',
                'street' => 'labore',
                'building' => 'qui',
                'entrance' => 'aliquid',
                'floor' => 'in',
                'room' => 'dolor',
                'coordinates' => [
                    'latitude' => 'officia',
                    'longitude' => 'vel',
                ],
            ],
            'nomenclatures' => [
                [
                    'id' => 'ullam',
                    'amount' => 'debitis',
                    'category_id' => 'nihil',
                    'title' => 'ea',
                    'promotional' => 'modi',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (403):

{
    "success": false,
    "data": {
        "message": "Неверный токен"
    }
}

HTTP Request

POST api/v1/integration/site/orders/add-order

Body Parameters

Parameter Type Status Description
date required optional date date_format:Y-m-d H:i Дата заказа
comment nullable optional string Комментарий
uuid required optional string Уникальный идентификатор UUID
discount_id nullable optional integer Уникальный идентификатор дисконтной карты
certificate_id nullable optional integer Уникальный идентификатор сертификата
sales_channel_id nullable optional integer Уникальный идентификатор канала продаж
price_margin_id nullable optional integer Уникальный идентификатор наценки
client_id nullable optional integer Уникальный идентификатор клиента
table_number nullable optional integer Номер стола
order_tags required optional array Массив уникальных идентификаторов тегов для заказа
order_tags.* required optional integer ID тега
payments required optional Массив уникальных идентификаторов оплат и сумм для заказа (id, sum)
payments.*.id required optional integer ID способа оплаты
payments.*.sum required optional integer сумма конкретной оплаты
payments.*.payment_type required optional string тип оплаты - наличка бонусы безнал
details required optional array Массив деталей заказа
details.city_id required optional integer Город клиента
details.phone nullable optional string Телефон клиента
details.client_name nullable optional string Имя клиента
details.street nullable optional string Улица доставки
details.building nullable optional integer Дом доставки
details.entrance nullable optional integer Подъезд доставки
details.floor nullable optional integer Этаж доставки
details.room nullable optional integer Квартира/офис доставки
details.coordinates required optional array Координаты доставки
details.coordinates.latitude nullable optional string Широта
details.coordinates.longitude nullable optional string Долгота
nomenclatures required optional array Массив товаров для заказа
nomenclatures.*.id required optional integer ID товара
nomenclatures.*.amount required optional integer Количество товара
nomenclatures.*.category_id required optional integer ID категории товара
nomenclatures.*.title required optional string Название товара
nomenclatures.*.promotional required optional boolean флаг акционного товара (который из сертификата)

Получение данных клиента по телефону

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/integration/site/clients/client?phone=deserunt" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/clients/client"
);

let params = {
    "phone": "deserunt",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/integration/site/clients/client',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'phone'=> 'deserunt',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (403):

{
    "success": false,
    "data": {
        "message": "Неверный токен"
    }
}

HTTP Request

GET api/v1/integration/site/clients/client

Query Parameters

Parameter Status Description
phone required string телефон (+77777777777)

WebHook для сервиса ChatApi

APIs для работы с WhatsApp

api/v1/wsp-webhook/{token}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/wsp-webhook/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/wsp-webhook/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/wsp-webhook/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

{
    "success": false,
    "data": {
        "success": false,
        "message": ""
    }
}

HTTP Request

GET api/v1/wsp-webhook/{token}

POST api/v1/wsp-webhook/{token}

PUT api/v1/wsp-webhook/{token}

PATCH api/v1/wsp-webhook/{token}

DELETE api/v1/wsp-webhook/{token}

OPTIONS api/v1/wsp-webhook/{token}

general

laravel-websockets

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/laravel-websockets" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/laravel-websockets"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/laravel-websockets',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET laravel-websockets

laravel-websockets/api/{appId}/statistics

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/laravel-websockets/api/1/statistics" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/laravel-websockets/api/1/statistics"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/laravel-websockets/api/1/statistics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "peak_connections": {
        "x": [],
        "y": []
    },
    "websocket_message_count": {
        "x": [],
        "y": []
    },
    "api_message_count": {
        "x": [],
        "y": []
    }
}

HTTP Request

GET laravel-websockets/api/{appId}/statistics

laravel-websockets/auth

Example request:

curl -X POST \
    "https://api.prosushi.kz/laravel-websockets/auth" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/laravel-websockets/auth"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/laravel-websockets/auth',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (419):

{
    "message": "CSRF token mismatch."
}

HTTP Request

POST laravel-websockets/auth

laravel-websockets/event

Example request:

curl -X POST \
    "https://api.prosushi.kz/laravel-websockets/event" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/laravel-websockets/event"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/laravel-websockets/event',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (419):

{
    "message": "CSRF token mismatch."
}

HTTP Request

POST laravel-websockets/event

laravel-websockets/statistics

Example request:

curl -X POST \
    "https://api.prosushi.kz/laravel-websockets/statistics" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/laravel-websockets/statistics"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/laravel-websockets/statistics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

{
    "message": "Server Error"
}

HTTP Request

POST laravel-websockets/statistics

Display Swagger API page.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/documentation" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/documentation"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/documentation',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/documentation

Dump api-docs content endpoint. Supports dumping a json, or yaml file.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/docs/" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/docs/"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/docs/',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

{
    "success": false,
    "message": "Unable to locate documentation file at: \"\/var\/www\/storage\/api-docs\/api-docs.json\""
}

HTTP Request

GET docs/{jsonFile?}

docs/asset/{asset}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/docs/asset/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/docs/asset/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/docs/asset/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

{
    "success": false,
    "message": "(1) - this L5 Swagger asset is not allowed"
}

HTTP Request

GET docs/asset/{asset}

Display Oauth2 callback pages.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/oauth2-callback" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/oauth2-callback"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/oauth2-callback',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/oauth2-callback

Get the key performance stats for the dashboard.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/stats" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/stats"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/stats',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "failedJobs": 0,
    "jobsPerMinute": 0,
    "pausedMasters": 0,
    "periods": {
        "failedJobs": 10080,
        "recentJobs": 60
    },
    "processes": 3,
    "queueWithMaxRuntime": null,
    "queueWithMaxThroughput": null,
    "recentJobs": 0,
    "status": "running",
    "wait": {
        "redis:default": 0
    }
}

HTTP Request

GET horizon/api/stats

Get the current queue workload for the application.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/workload" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/workload"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/workload',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[
    {
        "name": "default",
        "length": 0,
        "wait": 0,
        "processes": 3,
        "split_queues": null
    }
]

HTTP Request

GET horizon/api/workload

Get all of the master supervisors and their underlying supervisors.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/masters" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/masters"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/masters',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "2cf60aae4beb-rzmT": {
        "name": "2cf60aae4beb-rzmT",
        "pid": "8",
        "status": "running",
        "supervisors": [
            {
                "name": "2cf60aae4beb-rzmT:supervisor-1",
                "master": "2cf60aae4beb-rzmT",
                "pid": "15",
                "status": "running",
                "processes": {
                    "redis:default": 3
                },
                "options": {
                    "balance": "simple",
                    "connection": "redis",
                    "queue": "default",
                    "backoff": "0",
                    "force": false,
                    "maxProcesses": "3",
                    "minProcesses": "1",
                    "maxTries": "1",
                    "maxTime": "0",
                    "maxJobs": "0",
                    "memory": "128",
                    "nice": "0",
                    "name": "2cf60aae4beb-rzmT:supervisor-1",
                    "workersName": "default",
                    "sleep": "3",
                    "timeout": "60",
                    "balanceCooldown": "3",
                    "balanceMaxShift": "1",
                    "parentId": "8",
                    "rest": "0"
                }
            }
        ]
    }
}

HTTP Request

GET horizon/api/masters

Get all of the monitored tags and their job counts.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/monitoring" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/monitoring"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/monitoring',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[]

HTTP Request

GET horizon/api/monitoring

Start monitoring the given tag.

Example request:

curl -X POST \
    "https://api.prosushi.kz/horizon/api/monitoring" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/monitoring"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/horizon/api/monitoring',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (419):

{
    "message": "CSRF token mismatch."
}

HTTP Request

POST horizon/api/monitoring

Paginate the jobs for a given tag.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/monitoring/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/monitoring/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/monitoring/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "jobs": [],
    "total": 0
}

HTTP Request

GET horizon/api/monitoring/{tag}

Stop monitoring the given tag.

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/horizon/api/monitoring/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/monitoring/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/horizon/api/monitoring/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (419):

{
    "message": "CSRF token mismatch."
}

HTTP Request

DELETE horizon/api/monitoring/{tag}

Get all of the measured jobs.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/metrics/jobs" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/metrics/jobs"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/metrics/jobs',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[]

HTTP Request

GET horizon/api/metrics/jobs

Get metrics for a given job.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/metrics/jobs/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/metrics/jobs/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/metrics/jobs/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[]

HTTP Request

GET horizon/api/metrics/jobs/{id}

Get all of the measured queues.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/metrics/queues" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/metrics/queues"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/metrics/queues',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[]

HTTP Request

GET horizon/api/metrics/queues

Get metrics for a given queue.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/metrics/queues/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/metrics/queues/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/metrics/queues/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[]

HTTP Request

GET horizon/api/metrics/queues/{id}

Get all of the batches.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/batches" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/batches"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/batches',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "batches": [
        {
            "id": "964092c4-4ef5-4bc9-870e-b0d1670b5c63",
            "name": "Проведение документа : Перемещение №514 от 01.05.2022г",
            "totalJobs": 3,
            "pendingJobs": 0,
            "processedJobs": 3,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-08T20:14:04.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-08T20:14:04.000000Z"
        },
        {
            "id": "964087e6-6344-491b-93b8-9ff49df075ed",
            "name": "Проведение документа : Перемещение №517 от 01.05.2022г",
            "totalJobs": 3,
            "pendingJobs": 0,
            "processedJobs": 3,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-08T19:43:41.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-08T19:43:43.000000Z"
        },
        {
            "id": "963e7e7d-4bef-49e5-9ed1-56e53821bdbf",
            "name": "Проведение документа : Закрытие дня №236 от 07.05.2022г",
            "totalJobs": 1,
            "pendingJobs": 0,
            "processedJobs": 1,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T19:25:42.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T19:25:43.000000Z"
        },
        {
            "id": "963e766c-3349-4e6b-95fa-88d20f9057f4",
            "name": "Проведение документа : Приходно-кассовый ордер №70132 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T19:03:09.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T19:03:09.000000Z"
        },
        {
            "id": "963e766a-d9f7-44a7-9669-2458d3a34ffa",
            "name": "Проведение документа : Приходно-кассовый ордер №70131 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T19:03:08.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T19:03:08.000000Z"
        },
        {
            "id": "963e7667-618a-41ac-9416-39974888b7f0",
            "name": "Проведение документа : Приходно-кассовый ордер №70130 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T19:03:06.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T19:03:06.000000Z"
        },
        {
            "id": "963e7619-5f6a-411d-a53b-ef85ae329086",
            "name": "Проведение документа : Приходно-кассовый ордер №70129 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T19:02:15.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T19:02:15.000000Z"
        },
        {
            "id": "963e7616-f5a4-4b2d-a772-309bee765221",
            "name": "Проведение документа : Приходно-кассовый ордер №70128 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T19:02:13.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T19:02:13.000000Z"
        },
        {
            "id": "963e7045-63a9-4fe1-b653-7744bdfc961f",
            "name": "Проведение документа : Приходно-кассовый ордер №70127 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:45:57.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:45:57.000000Z"
        },
        {
            "id": "963e7043-1e5e-4fda-a8b0-b619f0ec47f0",
            "name": "Проведение документа : Приходно-кассовый ордер №70126 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:45:55.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:45:55.000000Z"
        },
        {
            "id": "963e703f-3bf8-488b-9554-16649b27a534",
            "name": "Проведение документа : Приходно-кассовый ордер №70125 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:45:53.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:45:53.000000Z"
        },
        {
            "id": "963e6fbe-c296-4f72-83a8-36bdaae011c6",
            "name": "Проведение документа : Приходно-кассовый ордер №70124 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:44:29.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:44:29.000000Z"
        },
        {
            "id": "963e6fb9-5324-4c08-8e91-f3cb0f568f60",
            "name": "Проведение документа : Приходно-кассовый ордер №70123 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:44:25.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:44:25.000000Z"
        },
        {
            "id": "963e6d20-ec0a-4aec-8ca7-291f65d55f9c",
            "name": "Проведение документа : Приходно-кассовый ордер №70122 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:37:10.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:37:10.000000Z"
        },
        {
            "id": "963e6d1b-2cde-410e-ab82-4fe9a20008b3",
            "name": "Проведение документа : Приходно-кассовый ордер №70121 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:37:06.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:37:06.000000Z"
        },
        {
            "id": "963e6c9b-6ec8-41b0-a132-96b2045eb5c3",
            "name": "Проведение документа : Расходно-кассовый ордер №4890 от 05.05.2022г",
            "totalJobs": 3,
            "pendingJobs": 0,
            "processedJobs": 3,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:35:42.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:35:43.000000Z"
        },
        {
            "id": "963e6c44-ef7a-479d-ab42-c72397144858",
            "name": "Проведение документа : Приходно-кассовый ордер №70120 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:34:45.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:34:45.000000Z"
        },
        {
            "id": "963e6c40-03e9-4753-9e30-bae83f3af8ac",
            "name": "Проведение документа : Приходно-кассовый ордер №70119 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:34:42.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:34:42.000000Z"
        },
        {
            "id": "963e6a50-0c36-4fbe-adb4-f20487f128a2",
            "name": "Проведение документа : Приходно-кассовый ордер №70118 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:29:17.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:29:17.000000Z"
        },
        {
            "id": "963e68da-f5fb-4bfb-9893-63251a67915a",
            "name": "Проведение документа : Приходно-кассовый ордер №70117 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:25:13.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:25:13.000000Z"
        },
        {
            "id": "963e68d7-b0b6-4399-ac57-df1f343aa9ff",
            "name": "Проведение документа : Приходно-кассовый ордер №70116 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:25:11.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:25:11.000000Z"
        },
        {
            "id": "963e68d6-242f-432e-9656-3a4ced6148a5",
            "name": "Проведение документа : Приходно-кассовый ордер №70115 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:25:10.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:25:10.000000Z"
        },
        {
            "id": "963e68d1-9770-496e-9aba-1719bc4f2584",
            "name": "Проведение документа : Приходно-кассовый ордер №70114 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:25:07.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:25:07.000000Z"
        },
        {
            "id": "963e68d0-c8e7-4c4e-b376-171ee5fae02f",
            "name": "Проведение документа : Приходно-кассовый ордер №70113 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:25:06.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:25:06.000000Z"
        },
        {
            "id": "963e685e-14d5-4f2e-8ccf-d30bd0f2315b",
            "name": "Проведение документа : Приходно-кассовый ордер №70112 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:23:51.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:23:51.000000Z"
        },
        {
            "id": "963e6859-5857-4380-8eda-ebe81b3e78c2",
            "name": "Проведение документа : Приходно-кассовый ордер №70111 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:23:48.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:23:48.000000Z"
        },
        {
            "id": "963e6854-a954-4193-8a53-6385b1d23660",
            "name": "Проведение документа : Приходно-кассовый ордер №70110 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:23:45.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:23:45.000000Z"
        },
        {
            "id": "963e6843-e52d-4df4-a14b-42f68089a296",
            "name": "Проведение документа : Приходно-кассовый ордер №70109 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:23:34.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:23:34.000000Z"
        },
        {
            "id": "963e682f-39cc-4b0e-911c-eed97ddd252a",
            "name": "Проведение документа : Приходно-кассовый ордер №70108 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:23:20.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:23:20.000000Z"
        },
        {
            "id": "963e682a-5ec0-4019-9928-9bc62f9aaf24",
            "name": "Проведение документа : Приходно-кассовый ордер №70107 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:23:17.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:23:17.000000Z"
        },
        {
            "id": "963e681c-c017-4f95-807e-d7b2d689a25f",
            "name": "Проведение документа : Приходно-кассовый ордер №70106 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:23:08.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:23:08.000000Z"
        },
        {
            "id": "963e681c-907d-43f2-82bf-c413185bb064",
            "name": "Проведение документа : Приходно-кассовый ордер №70105 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:23:08.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:23:08.000000Z"
        },
        {
            "id": "963e675b-0c0d-4d9f-a5a3-e0d086320f20",
            "name": "Проведение документа : Приходно-кассовый ордер №70104 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:21:01.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:21:01.000000Z"
        },
        {
            "id": "963e66e8-0db8-4412-919e-f7176b8d5be5",
            "name": "Проведение документа : Приходно-кассовый ордер №70103 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:19:46.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:19:46.000000Z"
        },
        {
            "id": "963e66e7-f0b7-43ce-ab1a-212a17940d3c",
            "name": "Проведение документа : Приходно-кассовый ордер №70102 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:19:46.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:19:46.000000Z"
        },
        {
            "id": "963e66e4-f532-41fd-846d-563203e83ba4",
            "name": "Проведение документа : Приходно-кассовый ордер №70101 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:19:44.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:19:44.000000Z"
        },
        {
            "id": "963e66e3-50fa-4f49-8dde-16ec42a29f9a",
            "name": "Проведение документа : Приходно-кассовый ордер №70100 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:19:43.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:19:43.000000Z"
        },
        {
            "id": "963e66de-92cd-4336-a24f-59d0f6fe014e",
            "name": "Проведение документа : Приходно-кассовый ордер №70099 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:19:40.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:19:40.000000Z"
        },
        {
            "id": "963e66dd-97c5-40b4-9bfb-55a941904c99",
            "name": "Проведение документа : Приходно-кассовый ордер №70098 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:19:39.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:19:39.000000Z"
        },
        {
            "id": "963e669b-9b94-40dd-93a7-be3cfa386a17",
            "name": "Проведение документа : Приходно-кассовый ордер №70097 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:18:56.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:18:56.000000Z"
        },
        {
            "id": "963e6620-b809-476d-9a49-3f9ccc0d4797",
            "name": "Проведение документа : Приходно-кассовый ордер №70096 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:17:35.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:17:35.000000Z"
        },
        {
            "id": "963e6458-760b-4dc7-93c2-2eb509629890",
            "name": "Проведение документа : Приходно-кассовый ордер №70095 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:12:36.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:12:36.000000Z"
        },
        {
            "id": "963e6447-5fd1-4eb4-bdee-506697cd548c",
            "name": "Проведение документа : Приходно-кассовый ордер №70094 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:12:25.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:12:25.000000Z"
        },
        {
            "id": "963e6441-6764-45cf-aba5-d1a83c67be5d",
            "name": "Проведение документа : Приходно-кассовый ордер №70093 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:12:21.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:12:21.000000Z"
        },
        {
            "id": "963e6419-8247-47e4-b328-fa27cfe23656",
            "name": "Проведение документа : Приходно-кассовый ордер №70092 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:11:55.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:11:55.000000Z"
        },
        {
            "id": "963e6414-cc98-4e27-92df-2f69c04d9359",
            "name": "Проведение документа : Приходно-кассовый ордер №70091 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:11:52.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:11:52.000000Z"
        },
        {
            "id": "963e638c-b497-4621-aa38-4084c0c14a40",
            "name": "Проведение документа : Приходно-кассовый ордер №70090 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:10:23.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:10:23.000000Z"
        },
        {
            "id": "963e6389-d0b9-4cf8-b343-94c19e3037fb",
            "name": "Проведение документа : Приходно-кассовый ордер №70089 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:10:21.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:10:21.000000Z"
        },
        {
            "id": "963e6386-d962-4924-8bb9-a33c0ebcf618",
            "name": "Проведение документа : Приходно-кассовый ордер №70088 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:10:19.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:10:19.000000Z"
        },
        {
            "id": "963e6385-17c8-432d-937f-2d5f546c79aa",
            "name": "Проведение документа : Приходно-кассовый ордер №70087 от 07.05.2022г",
            "totalJobs": 2,
            "pendingJobs": 0,
            "processedJobs": 2,
            "progress": 100,
            "failedJobs": 0,
            "options": {
                "catch": [
                    {}
                ]
            },
            "createdAt": "2022-05-07T18:10:18.000000Z",
            "cancelledAt": null,
            "finishedAt": "2022-05-07T18:10:18.000000Z"
        }
    ]
}

HTTP Request

GET horizon/api/batches

Get the details of a batch by ID.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/batches/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/batches/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/batches/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

{
    "message": "Server Error"
}

HTTP Request

GET horizon/api/batches/{id}

Retry the given batch.

Example request:

curl -X POST \
    "https://api.prosushi.kz/horizon/api/batches/retry/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/batches/retry/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/horizon/api/batches/retry/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (419):

{
    "message": "CSRF token mismatch."
}

HTTP Request

POST horizon/api/batches/retry/{id}

Get all of the pending jobs.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/jobs/pending" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/jobs/pending"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/jobs/pending',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "jobs": [],
    "total": 0
}

HTTP Request

GET horizon/api/jobs/pending

Get all of the completed jobs.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/jobs/completed" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/jobs/completed"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/jobs/completed',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "jobs": [],
    "total": 0
}

HTTP Request

GET horizon/api/jobs/completed

Get all of the failed jobs.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/jobs/failed" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/jobs/failed"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/jobs/failed',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "jobs": [],
    "total": 0
}

HTTP Request

GET horizon/api/jobs/failed

Get a failed job instance.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/jobs/failed/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/jobs/failed/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/jobs/failed/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[]

HTTP Request

GET horizon/api/jobs/failed/{id}

Retry a failed job.

Example request:

curl -X POST \
    "https://api.prosushi.kz/horizon/api/jobs/retry/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/jobs/retry/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/horizon/api/jobs/retry/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (419):

{
    "message": "CSRF token mismatch."
}

HTTP Request

POST horizon/api/jobs/retry/{id}

Get the details of a recent job by ID.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/api/jobs/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/api/jobs/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/api/jobs/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

[]

HTTP Request

GET horizon/api/jobs/{id}

Single page application catch-all route.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/horizon/" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/horizon/"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/horizon/',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET horizon/{view?}

Return an empty response simply to trigger the storage of the CSRF cookie in the browser.

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/sanctum/csrf-cookie" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/sanctum/csrf-cookie"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/sanctum/csrf-cookie',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

GET sanctum/csrf-cookie

api/v1/admin/add-organization

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/admin/add-organization" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/add-organization"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/admin/add-organization',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/admin/add-organization

api/v1/admin/organizations

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/admin/organizations" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/organizations"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/admin/organizations',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/admin/organizations

api/v1/admin/organizations/{organization}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/admin/organizations/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/organizations/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/admin/organizations/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/admin/organizations/{organization}

api/v1/admin/organizations/{organization}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/admin/organizations/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/organizations/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/admin/organizations/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/admin/organizations/{organization}

PATCH api/v1/admin/organizations/{organization}

api/v1/admin/organizations/{organization}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/admin/organizations/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/organizations/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/admin/organizations/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/admin/organizations/{organization}

api/v1/admin/load-organizations-preview

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/admin/load-organizations-preview" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/load-organizations-preview"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/admin/load-organizations-preview',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/admin/load-organizations-preview

api/v1/admin/roles

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/admin/roles" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/roles"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/admin/roles',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/admin/roles

api/v1/admin/roles/{role}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/admin/roles/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/roles/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/admin/roles/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/admin/roles/{role}

api/v1/admin/roles/{role}

Example request:

curl -X PATCH \
    "https://api.prosushi.kz/api/v1/admin/roles/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/roles/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://api.prosushi.kz/api/v1/admin/roles/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

PATCH api/v1/admin/roles/{role}

api/v1/accounts/update/{account}

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/accounts/update/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/accounts/update/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/accounts/update/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/accounts/update/{account}

api/v1/search-reference

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/search-reference" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/search-reference"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/search-reference',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/search-reference

api/v1/zones

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/zones" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/zones"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/zones',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/zones

api/v1/zones

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/zones" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/zones"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/zones',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/zones

api/v1/zones/{zone}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/zones/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/zones/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/zones/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/zones/{zone}

api/v1/zones/{zone}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/zones/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/zones/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/zones/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/zones/{zone}

PATCH api/v1/zones/{zone}

api/v1/zones/{zone}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/zones/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/zones/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/zones/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/zones/{zone}

api/v1/cheque_print_options/{cheque_print_options}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cheque_print_options/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cheque_print_options/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cheque_print_options/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/cheque_print_options/{cheque_print_options}

api/v1/cheque_print_options/{cheque_print_options}

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cheque_print_options/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cheque_print_options/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cheque_print_options/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/cheque_print_options/{cheque_print_options}

api/v1/day_closings

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/day_closings" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/day_closings"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/day_closings',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/day_closings

api/v1/day_closings

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/day_closings" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/day_closings"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/day_closings',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/day_closings

api/v1/day_closings/{day_closing}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/day_closings/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/day_closings/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/day_closings/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/day_closings/{day_closing}

api/v1/day_closings/{day_closing}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/day_closings/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/day_closings/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/day_closings/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/day_closings/{day_closing}

PATCH api/v1/day_closings/{day_closing}

api/v1/day_closings/{day_closing}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/day_closings/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/day_closings/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/day_closings/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/day_closings/{day_closing}

api/v1/get-day-closing-statistics

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/get-day-closing-statistics" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/get-day-closing-statistics"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/get-day-closing-statistics',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/get-day-closing-statistics

api/v1/generate-day-closing-pdf/{day_closing}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/generate-day-closing-pdf/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/generate-day-closing-pdf/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/generate-day-closing-pdf/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/generate-day-closing-pdf/{day_closing}

api/v1/position/salary/add-salary-rate

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/position/salary/add-salary-rate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/position/salary/add-salary-rate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/position/salary/add-salary-rate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/position/salary/add-salary-rate

api/v1/position/salary/change-salary-rate/{rate}

Example request:

curl -X PATCH \
    "https://api.prosushi.kz/api/v1/position/salary/change-salary-rate/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/position/salary/change-salary-rate/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->patch(
    'https://api.prosushi.kz/api/v1/position/salary/change-salary-rate/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

PATCH api/v1/position/salary/change-salary-rate/{rate}

api/v1/position/salary/remove-salary-rate/{rate}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/position/salary/remove-salary-rate/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/position/salary/remove-salary-rate/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/position/salary/remove-salary-rate/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/position/salary/remove-salary-rate/{rate}

api/v1/cash_receipt_types

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_receipt_types" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipt_types"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_receipt_types',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/cash_receipt_types

api/v1/cash_receipt_types

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cash_receipt_types" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipt_types"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cash_receipt_types',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/cash_receipt_types

api/v1/cash_receipt_types/{cash_receipt_type}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_receipt_types/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipt_types/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_receipt_types/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/cash_receipt_types/{cash_receipt_type}

api/v1/cash_receipt_types/{cash_receipt_type}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/cash_receipt_types/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipt_types/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/cash_receipt_types/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/cash_receipt_types/{cash_receipt_type}

PATCH api/v1/cash_receipt_types/{cash_receipt_type}

api/v1/cash_receipt_types/{cash_receipt_type}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/cash_receipt_types/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipt_types/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/cash_receipt_types/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/cash_receipt_types/{cash_receipt_type}

api/v1/cash_issue_type_categories

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_issue_type_categories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_type_categories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_issue_type_categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/cash_issue_type_categories

api/v1/cash_issue_type_categories

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cash_issue_type_categories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_type_categories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cash_issue_type_categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/cash_issue_type_categories

api/v1/cash_issue_type_categories/{cash_issue_type_category}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_issue_type_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_type_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_issue_type_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/cash_issue_type_categories/{cash_issue_type_category}

api/v1/cash_issue_type_categories/{cash_issue_type_category}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/cash_issue_type_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_type_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/cash_issue_type_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/cash_issue_type_categories/{cash_issue_type_category}

PATCH api/v1/cash_issue_type_categories/{cash_issue_type_category}

api/v1/cash_issue_type_categories/{cash_issue_type_category}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/cash_issue_type_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_type_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/cash_issue_type_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/cash_issue_type_categories/{cash_issue_type_category}

api/v1/cash_issue_types

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_issue_types" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_types"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_issue_types',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/cash_issue_types

api/v1/cash_issue_types

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cash_issue_types" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_types"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cash_issue_types',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/cash_issue_types

api/v1/cash_issue_types/{cash_issue_type}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_issue_types/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_types/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_issue_types/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/cash_issue_types/{cash_issue_type}

api/v1/cash_issue_types/{cash_issue_type}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/cash_issue_types/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_types/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/cash_issue_types/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/cash_issue_types/{cash_issue_type}

PATCH api/v1/cash_issue_types/{cash_issue_type}

api/v1/cash_issue_types/{cash_issue_type}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/cash_issue_types/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issue_types/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/cash_issue_types/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/cash_issue_types/{cash_issue_type}

api/v1/organization_accounts

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/organization_accounts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/organization_accounts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/organization_accounts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/organization_accounts

api/v1/organization_accounts

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/organization_accounts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/organization_accounts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/organization_accounts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/organization_accounts

api/v1/organization_accounts/{organization_account}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/organization_accounts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/organization_accounts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/organization_accounts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/organization_accounts/{organization_account}

api/v1/organization_accounts/{organization_account}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/organization_accounts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/organization_accounts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/organization_accounts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/organization_accounts/{organization_account}

PATCH api/v1/organization_accounts/{organization_account}

api/v1/stocks

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/stocks" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/stocks"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/stocks',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/stocks

api/v1/stocks

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/stocks" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/stocks"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/stocks',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/stocks

api/v1/stocks/{stock}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/stocks/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/stocks/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/stocks/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/stocks/{stock}

api/v1/stocks/{stock}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/stocks/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/stocks/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/stocks/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/stocks/{stock}

PATCH api/v1/stocks/{stock}

api/v1/stocks/{stock}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/stocks/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/stocks/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/stocks/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/stocks/{stock}

api/v1/positions

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/positions" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/positions"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/positions',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/positions

api/v1/positions

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/positions" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/positions"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/positions',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/positions

api/v1/positions/{position}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/positions/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/positions/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/positions/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/positions/{position}

api/v1/positions/{position}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/positions/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/positions/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/positions/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/positions/{position}

PATCH api/v1/positions/{position}

api/v1/positions/{position}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/positions/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/positions/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/positions/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/positions/{position}

api/v1/employee/get-income

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/employee/get-income" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/employee/get-income"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/employee/get-income',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/employee/get-income

api/v1/employees

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/employees" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/employees"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/employees',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/employees

api/v1/employees

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/employees" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/employees"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/employees',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/employees

api/v1/employees/{employee}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/employees/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/employees/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/employees/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/employees/{employee}

api/v1/employees/{employee}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/employees/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/employees/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/employees/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/employees/{employee}

PATCH api/v1/employees/{employee}

api/v1/employees/{employee}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/employees/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/employees/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/employees/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/employees/{employee}

api/v1/contractors

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/contractors" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/contractors"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/contractors',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/contractors

api/v1/contractors

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/contractors" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/contractors"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/contractors',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/contractors

api/v1/contractors/{contractor}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/contractors/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/contractors/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/contractors/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/contractors/{contractor}

api/v1/contractors/{contractor}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/contractors/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/contractors/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/contractors/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/contractors/{contractor}

PATCH api/v1/contractors/{contractor}

api/v1/contractors/{contractor}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/contractors/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/contractors/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/contractors/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/contractors/{contractor}

api/v1/contractors_groups

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/contractors_groups" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/contractors_groups"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/contractors_groups',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/contractors_groups

api/v1/trade_points

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/trade_points" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/trade_points"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/trade_points',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/trade_points

api/v1/trade_points

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/trade_points" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/trade_points"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/trade_points',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/trade_points

api/v1/trade_points/{trade_point}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/trade_points/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/trade_points/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/trade_points/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/trade_points/{trade_point}

api/v1/trade_points/{trade_point}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/trade_points/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/trade_points/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/trade_points/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/trade_points/{trade_point}

PATCH api/v1/trade_points/{trade_point}

api/v1/trade_points/{trade_point}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/trade_points/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/trade_points/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/trade_points/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/trade_points/{trade_point}

api/v1/adjust-client-bonuses

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/adjust-client-bonuses" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/adjust-client-bonuses"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/adjust-client-bonuses',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/adjust-client-bonuses

api/v1/certificates

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/certificates" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/certificates"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/certificates',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/certificates

api/v1/certificates

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/certificates" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/certificates"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/certificates',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/certificates

api/v1/certificates/{certificate}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/certificates/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/certificates/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/certificates/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/certificates/{certificate}

api/v1/certificates/{certificate}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/certificates/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/certificates/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/certificates/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/certificates/{certificate}

PATCH api/v1/certificates/{certificate}

api/v1/certificates/{certificate}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/certificates/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/certificates/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/certificates/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/certificates/{certificate}

api/v1/discounts

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/discounts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/discounts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/discounts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/discounts

api/v1/discounts

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/discounts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/discounts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/discounts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/discounts

api/v1/discounts/{discount}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/discounts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/discounts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/discounts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/discounts/{discount}

api/v1/discounts/{discount}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/discounts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/discounts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/discounts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/discounts/{discount}

PATCH api/v1/discounts/{discount}

api/v1/discounts/{discount}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/discounts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/discounts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/discounts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/discounts/{discount}

api/v1/price_margins

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/price_margins" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/price_margins"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/price_margins',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/price_margins

api/v1/price_margins

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/price_margins" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/price_margins"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/price_margins',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/price_margins

api/v1/price_margins/{price_margin}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/price_margins/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/price_margins/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/price_margins/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/price_margins/{price_margin}

api/v1/price_margins/{price_margin}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/price_margins/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/price_margins/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/price_margins/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/price_margins/{price_margin}

PATCH api/v1/price_margins/{price_margin}

api/v1/price_margins/{price_margin}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/price_margins/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/price_margins/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/price_margins/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/price_margins/{price_margin}

api/v1/order_tags

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order_tags" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order_tags"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order_tags',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order_tags

api/v1/order_tags

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/order_tags" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order_tags"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/order_tags',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/order_tags

api/v1/order_tags/{order_tag}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order_tags/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order_tags/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order_tags/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order_tags/{order_tag}

api/v1/order_tags/{order_tag}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/order_tags/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order_tags/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/order_tags/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/order_tags/{order_tag}

PATCH api/v1/order_tags/{order_tag}

api/v1/order_tags/{order_tag}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/order_tags/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order_tags/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/order_tags/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/order_tags/{order_tag}

api/v1/ingredient-item-balance

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/ingredient-item-balance" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredient-item-balance"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/ingredient-item-balance',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/ingredient-item-balance

api/v1/load-organizations

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/load-organizations" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/load-organizations"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/load-organizations',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/load-organizations

api/v1/sales-channels-preview

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/sales-channels-preview" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/sales-channels-preview"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/sales-channels-preview',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/sales-channels-preview

api/v1/payment-options-preview

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/payment-options-preview" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/payment-options-preview"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/payment-options-preview',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/payment-options-preview

api/v1/sales_channels

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/sales_channels" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/sales_channels"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/sales_channels',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/sales_channels

api/v1/sales_channels

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/sales_channels" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/sales_channels"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/sales_channels',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/sales_channels

api/v1/sales_channels/{sales_channel}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/sales_channels/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/sales_channels/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/sales_channels/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/sales_channels/{sales_channel}

api/v1/sales_channels/{sales_channel}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/sales_channels/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/sales_channels/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/sales_channels/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/sales_channels/{sales_channel}

PATCH api/v1/sales_channels/{sales_channel}

api/v1/sales_channels/{sales_channel}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/sales_channels/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/sales_channels/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/sales_channels/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/sales_channels/{sales_channel}

Список зон доставки выбранного города

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/get-city-zones?city_id=deleniti" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/get-city-zones"
);

let params = {
    "city_id": "deleniti",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/get-city-zones',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'city_id'=> 'deleniti',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/get-city-zones

Query Parameters

Parameter Status Description
city_id required integer, ID Города

api/v1/organizations-zones

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/organizations-zones" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/organizations-zones"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/organizations-zones',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/organizations-zones

api/v1/trade-points-zones

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/trade-points-zones" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/trade-points-zones"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/trade-points-zones',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/trade-points-zones

api/v1/load-trade-points

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/load-trade-points" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/load-trade-points"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/load-trade-points',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/load-trade-points

api/v1/write_offs

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/write_offs" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_offs"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/write_offs',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/write_offs

api/v1/write_offs

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/write_offs" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_offs"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/write_offs',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/write_offs

api/v1/write_offs/{write_off}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/write_offs/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_offs/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/write_offs/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/write_offs/{write_off}

api/v1/write_offs/{write_off}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/write_offs/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_offs/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/write_offs/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/write_offs/{write_off}

PATCH api/v1/write_offs/{write_off}

api/v1/write_offs/{write_off}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/write_offs/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_offs/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/write_offs/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/write_offs/{write_off}

api/v1/ingredient_categories

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/ingredient_categories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredient_categories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/ingredient_categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/ingredient_categories

api/v1/ingredient_categories

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/ingredient_categories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredient_categories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/ingredient_categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/ingredient_categories

api/v1/ingredient_categories/{ingredient_category}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/ingredient_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredient_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/ingredient_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/ingredient_categories/{ingredient_category}

api/v1/ingredient_categories/{ingredient_category}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/ingredient_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredient_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/ingredient_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/ingredient_categories/{ingredient_category}

PATCH api/v1/ingredient_categories/{ingredient_category}

api/v1/ingredient_categories/{ingredient_category}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/ingredient_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredient_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/ingredient_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/ingredient_categories/{ingredient_category}

api/v1/ingredient_categories_groups

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/ingredient_categories_groups" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredient_categories_groups"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/ingredient_categories_groups',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/ingredient_categories_groups

api/v1/ingredient_category_ingredients/{ingredient_category}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/ingredient_category_ingredients/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredient_category_ingredients/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/ingredient_category_ingredients/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/ingredient_category_ingredients/{ingredient_category}

api/v1/ingredients

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/ingredients" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredients"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/ingredients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/ingredients

api/v1/ingredients

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/ingredients" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredients"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/ingredients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/ingredients

api/v1/ingredients/{ingredient}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/ingredients/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredients/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/ingredients/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/ingredients/{ingredient}

api/v1/ingredients/{ingredient}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/ingredients/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredients/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/ingredients/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/ingredients/{ingredient}

PATCH api/v1/ingredients/{ingredient}

api/v1/ingredients/{ingredient}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/ingredients/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/ingredients/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/ingredients/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/ingredients/{ingredient}

api/v1/nomenclature_categories

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclature_categories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_categories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclature_categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/nomenclature_categories

api/v1/nomenclature_categories

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/nomenclature_categories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_categories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/nomenclature_categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/nomenclature_categories

api/v1/nomenclature_categories/{nomenclature_category}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclature_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclature_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/nomenclature_categories/{nomenclature_category}

api/v1/nomenclature_categories/{nomenclature_category}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/nomenclature_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/nomenclature_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/nomenclature_categories/{nomenclature_category}

PATCH api/v1/nomenclature_categories/{nomenclature_category}

api/v1/nomenclature_categories/{nomenclature_category}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/nomenclature_categories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_categories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/nomenclature_categories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/nomenclature_categories/{nomenclature_category}

api/v1/nomenclature_categories_groups

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclature_categories_groups" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_categories_groups"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclature_categories_groups',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/nomenclature_categories_groups

api/v1/nomenclature_category_nomenclatures/{nomenclature_category}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclature_category_nomenclatures/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_category_nomenclatures/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclature_category_nomenclatures/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/nomenclature_category_nomenclatures/{nomenclature_category}

api/v1/currencies

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/currencies" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/currencies"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/currencies',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/currencies

api/v1/currencies

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/currencies" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/currencies"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/currencies',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/currencies

api/v1/currencies/{currency}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/currencies/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/currencies/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/currencies/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/currencies/{currency}

api/v1/currencies/{currency}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/currencies/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/currencies/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/currencies/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/currencies/{currency}

PATCH api/v1/currencies/{currency}

api/v1/currencies/{currency}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/currencies/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/currencies/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/currencies/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/currencies/{currency}

api/v1/units

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/units" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/units"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/units',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/units

api/v1/units

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/units" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/units"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/units',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/units

api/v1/units/{unit}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/units/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/units/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/units/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/units/{unit}

api/v1/units/{unit}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/units/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/units/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/units/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/units/{unit}

PATCH api/v1/units/{unit}

api/v1/units/{unit}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/units/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/units/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/units/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/units/{unit}

api/v1/export-clients

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export-clients" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export-clients"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export-clients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export-clients

api/v1/clients

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/clients" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/clients"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/clients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/clients

api/v1/clients

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/clients" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/clients"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/clients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/clients

api/v1/clients/{client}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/clients/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/clients/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/clients/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/clients/{client}

api/v1/clients/{client}

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/clients/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/clients/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/clients/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/clients/{client}

PATCH api/v1/clients/{client}

api/v1/clients/{client}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/clients/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/clients/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/clients/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/clients/{client}

api/v1/get-all-discounts

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/get-all-discounts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/get-all-discounts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/get-all-discounts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/get-all-discounts

api/v1/get-all-margins

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/get-all-margins" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/get-all-margins"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/get-all-margins',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/get-all-margins

api/v1/get-all-tags

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/get-all-tags" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/get-all-tags"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/get-all-tags',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/get-all-tags

api/v1/print/get-food-cost-report

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-food-cost-report" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-food-cost-report"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-food-cost-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/print/get-food-cost-report

api/v1/print/get-order-tag-report

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-order-tag-report" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-order-tag-report"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-order-tag-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/print/get-order-tag-report

api/v1/export/order-tag

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/order-tag" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/order-tag"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/order-tag',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/order-tag

api/v1/export/food-cost

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/food-cost" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/food-cost"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/food-cost',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/food-cost

api/v1/widgets/expiring-medical-books

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/widgets/expiring-medical-books" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/widgets/expiring-medical-books"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/widgets/expiring-medical-books',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/widgets/expiring-medical-books

api/v1/widgets/daily-profit

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/widgets/daily-profit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/widgets/daily-profit"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/widgets/daily-profit',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/widgets/daily-profit

api/v1/widgets/hourly-profit

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/widgets/hourly-profit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/widgets/hourly-profit"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/widgets/hourly-profit',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/widgets/hourly-profit

api/v1/widgets/expired-orders-count

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/widgets/expired-orders-count" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/widgets/expired-orders-count"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/widgets/expired-orders-count',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/widgets/expired-orders-count

api/v1/widgets/courier-activity

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/widgets/courier-activity" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/widgets/courier-activity"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/widgets/courier-activity',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/widgets/courier-activity

api/v1/widgets/delivery-orders-by-hour

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/widgets/delivery-orders-by-hour" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/widgets/delivery-orders-by-hour"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/widgets/delivery-orders-by-hour',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/widgets/delivery-orders-by-hour

api/v1/reports/cashbox-money-transfers

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/cashbox-money-transfers" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/cashbox-money-transfers"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/cashbox-money-transfers',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/cashbox-money-transfers

api/v1/reports/food-cost

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/food-cost" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/food-cost"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/food-cost',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/food-cost

api/v1/reports/summary

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/summary" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/summary"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/summary',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/summary

api/v1/reports/order-tags-report

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/order-tags-report" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/order-tags-report"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/order-tags-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/order-tags-report

api/v1/reports/nomenclature-usage

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/nomenclature-usage" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/nomenclature-usage"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/nomenclature-usage',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/nomenclature-usage

api/v1/reports/ingredient-usage

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/ingredient-usage" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/ingredient-usage"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/ingredient-usage',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/ingredient-usage

api/v1/reports/pnl

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/pnl" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/pnl"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/pnl',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/pnl

api/v1/reports/pnl-income

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/pnl-income" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/pnl-income"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/pnl-income',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/pnl-income

api/v1/reports/cashbox-income

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/cashbox-income" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/cashbox-income"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/cashbox-income',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/cashbox-income

api/v1/reports/pnl-outcome

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/pnl-outcome" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/pnl-outcome"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/pnl-outcome',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/pnl-outcome

/

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET /

download/{token}/{filename}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/download/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/download/1/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/download/1/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "error": "Token was not found",
    "0": 403
}

HTTP Request

GET download/{token}/{filename}

download-pdf/{fileName}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/download-pdf/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/download-pdf/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/download-pdf/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

{
    "success": false,
    "message": ""
}

HTTP Request

GET download-pdf/{fileName}

Генерация pdf-файлов

APIs для генерации pdf-файлов

Генерация pdf-файла для документа

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-document-link" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-document-link"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-document-link',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-document-link

URL Parameters

Parameter Status Description
document required Название документа
id required Уникальный идентификатор документа

Генерация pdf-файла для документа

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/1/print/get-document-link" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/1/print/get-document-link"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/1/print/get-document-link',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/{trade_point}/print/get-document-link

URL Parameters

Parameter Status Description
document required Название документа
id required Уникальный идентификатор документа

Генерация pdf-файла для документа заказ

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/external/get-order-link" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/external/get-order-link"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/external/get-order-link',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/external/get-order-link

URL Parameters

Parameter Status Description
document required Название документа
id required Уникальный идентификатор документа

Документы/Documents

APIs для формирования документов

Nomenclature Price document GET

Получение списка документов установки цен номенклатур

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclature_prices?startDate=deleniti&endDate=occaecati&per_page=ut&page=amet&sort_by=assumenda&sort_order=et&search=eius" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_prices"
);

let params = {
    "startDate": "deleniti",
    "endDate": "occaecati",
    "per_page": "ut",
    "page": "amet",
    "sort_by": "assumenda",
    "sort_order": "et",
    "search": "eius",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclature_prices',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'startDate'=> 'deleniti',
            'endDate'=> 'occaecati',
            'per_page'=> 'ut',
            'page'=> 'amet',
            'sort_by'=> 'assumenda',
            'sort_order'=> 'et',
            'search'=> 'eius',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/nomenclature_prices

Query Parameters

Parameter Status Description
startDate required date_format:Y-m-d, Начальная дата
endDate required date_format:Y-m-d after_or_equal:startDate, Конечная дата
per_page required integer, Элементов на странице
page required integer, Номер страницы
sort_by optional string, Сортировка по
sort_order optional string, Порядок сортировки
search optional string, Поиск

Nomenclature Price document POST

Создание документа установки цен номенклатур

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/nomenclature_prices" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"nomenclature_lines":[{"nomenclature_id":11,"currency_id":19,"price":7}],"date":"pariatur","comment":"aspernatur","uuid":"est"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_prices"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "nomenclature_lines": [
        {
            "nomenclature_id": 11,
            "currency_id": 19,
            "price": 7
        }
    ],
    "date": "pariatur",
    "comment": "aspernatur",
    "uuid": "est"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/nomenclature_prices',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 11,
                    'currency_id' => 19,
                    'price' => 7,
                ],
            ],
            'date' => 'pariatur',
            'comment' => 'aspernatur',
            'uuid' => 'est',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/nomenclature_prices

Body Parameters

Parameter Type Status Description
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.currency_id integer required ID Валюты
nomenclature_lines.*.price integer required Цена
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Nomenclature Price document GET/ID

Получение документа установки цен номенклатур

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclature_prices/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_prices/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclature_prices/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/nomenclature_prices/{nomenclature_price}

URL Parameters

Parameter Status Description
id required ID документа

Nomenclature Price document PATCH

Обновление документа установки цен номенклатур

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/nomenclature_prices/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"nomenclature_lines":[{"nomenclature_id":5,"currency_id":12,"price":8}],"date":"vel","comment":"ea","uuid":"ipsam"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_prices/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "nomenclature_lines": [
        {
            "nomenclature_id": 5,
            "currency_id": 12,
            "price": 8
        }
    ],
    "date": "vel",
    "comment": "ea",
    "uuid": "ipsam"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/nomenclature_prices/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 5,
                    'currency_id' => 12,
                    'price' => 8,
                ],
            ],
            'date' => 'vel',
            'comment' => 'ea',
            'uuid' => 'ipsam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/nomenclature_prices/{nomenclature_price}

PATCH api/v1/nomenclature_prices/{nomenclature_price}

URL Parameters

Parameter Status Description
id required ID документа

Body Parameters

Parameter Type Status Description
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.currency_id integer required ID Валюты
nomenclature_lines.*.price integer required Цена
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Nomenclature Price document DELETE

Удаление документа установки цен номенклатур

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/nomenclature_prices/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature_prices/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/nomenclature_prices/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/nomenclature_prices/{nomenclature_price}

URL Parameters

Parameter Status Description
id required ID документа

api/v1/inventory/fill/nomenclatures

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/inventory/fill/nomenclatures" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/inventory/fill/nomenclatures"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/inventory/fill/nomenclatures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/inventory/fill/nomenclatures

api/v1/inventory/fill/ingredients

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/inventory/fill/ingredients" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/inventory/fill/ingredients"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/inventory/fill/ingredients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/inventory/fill/ingredients

Purchase and Payment document POST

Создание документа поступления и оплата

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/purchases/create-purchase-with-payment" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"contractor_id":15,"stock_id":16,"nomenclature_lines":[{"nomenclature_id":11,"amount":6,"price":10}],"ingredient_lines":[{"ingredient_id":10,"amount":6,"price":19}],"payment":[{"sum":4,"cashbox_id":20,"cash_issue_type_id":3}],"date":"adipisci","comment":"facilis","uuid":"voluptas"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/purchases/create-purchase-with-payment"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "contractor_id": 15,
    "stock_id": 16,
    "nomenclature_lines": [
        {
            "nomenclature_id": 11,
            "amount": 6,
            "price": 10
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 10,
            "amount": 6,
            "price": 19
        }
    ],
    "payment": [
        {
            "sum": 4,
            "cashbox_id": 20,
            "cash_issue_type_id": 3
        }
    ],
    "date": "adipisci",
    "comment": "facilis",
    "uuid": "voluptas"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/purchases/create-purchase-with-payment',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'contractor_id' => 15,
            'stock_id' => 16,
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 11,
                    'amount' => 6,
                    'price' => 10,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 10,
                    'amount' => 6,
                    'price' => 19,
                ],
            ],
            'payment' => [
                [
                    'sum' => 4,
                    'cashbox_id' => 20,
                    'cash_issue_type_id' => 3,
                ],
            ],
            'date' => 'adipisci',
            'comment' => 'facilis',
            'uuid' => 'voluptas',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/purchases/create-purchase-with-payment

Body Parameters

Parameter Type Status Description
contractor_id integer required ID Поставщика
stock_id integer required ID Склада
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.amount integer required Количество
nomenclature_lines.*.price integer required Цена
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.amount integer required Количество
ingredient_lines.*.price integer required Цена
payment.*.sum integer required Сумма оплаты
payment.*.cashbox_id integer required ID Кассы
payment.*.cash_issue_type_id integer required ID Вида кассовой операции списания
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Purchase document GET

Получение списка документов поступления

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/purchases?startDate=minima&endDate=esse&per_page=debitis&page=voluptas&sort_by=id&sort_order=aut&search=earum" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/purchases"
);

let params = {
    "startDate": "minima",
    "endDate": "esse",
    "per_page": "debitis",
    "page": "voluptas",
    "sort_by": "id",
    "sort_order": "aut",
    "search": "earum",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/purchases',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'startDate'=> 'minima',
            'endDate'=> 'esse',
            'per_page'=> 'debitis',
            'page'=> 'voluptas',
            'sort_by'=> 'id',
            'sort_order'=> 'aut',
            'search'=> 'earum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/purchases

Query Parameters

Parameter Status Description
startDate required date_format:Y-m-d, Начальная дата
endDate required date_format:Y-m-d after_or_equal:startDate, Конечная дата
per_page required integer, Элементов на странице
page required integer, Номер страницы
sort_by optional string, Сортировка по
sort_order optional string, Порядок сортировки
search optional string, Поиск

Purchase document POST

Создание документа поступления

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/purchases" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"contractor_id":13,"stock_id":10,"nomenclature_lines":[{"nomenclature_id":2,"amount":19,"price":14}],"ingredient_lines":[{"ingredient_id":20,"amount":17,"price":11}],"date":"quis","comment":"nisi","uuid":"labore"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/purchases"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "contractor_id": 13,
    "stock_id": 10,
    "nomenclature_lines": [
        {
            "nomenclature_id": 2,
            "amount": 19,
            "price": 14
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 20,
            "amount": 17,
            "price": 11
        }
    ],
    "date": "quis",
    "comment": "nisi",
    "uuid": "labore"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/purchases',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'contractor_id' => 13,
            'stock_id' => 10,
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 2,
                    'amount' => 19,
                    'price' => 14,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 20,
                    'amount' => 17,
                    'price' => 11,
                ],
            ],
            'date' => 'quis',
            'comment' => 'nisi',
            'uuid' => 'labore',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/purchases

Body Parameters

Parameter Type Status Description
contractor_id integer required ID Поставщика
stock_id integer required ID Склада
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.amount integer required Количество
nomenclature_lines.*.price integer required Цена
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.amount integer required Количество
ingredient_lines.*.price integer required Цена
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Purchase document GET/ID

Получение документа поступления

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/purchases/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/purchases/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/purchases/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/purchases/{purchase}

URL Parameters

Parameter Status Description
id required ID документа

Purchase document PATCH

Обновление документа поступления

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/purchases/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"contractor_id":18,"stock_id":13,"nomenclature_lines":[{"nomenclature_id":5,"amount":15,"price":5}],"ingredient_lines":[{"ingredient_id":13,"amount":16,"price":18}],"date":"earum","comment":"et","uuid":"nulla"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/purchases/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "contractor_id": 18,
    "stock_id": 13,
    "nomenclature_lines": [
        {
            "nomenclature_id": 5,
            "amount": 15,
            "price": 5
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 13,
            "amount": 16,
            "price": 18
        }
    ],
    "date": "earum",
    "comment": "et",
    "uuid": "nulla"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/purchases/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'contractor_id' => 18,
            'stock_id' => 13,
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 5,
                    'amount' => 15,
                    'price' => 5,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 13,
                    'amount' => 16,
                    'price' => 18,
                ],
            ],
            'date' => 'earum',
            'comment' => 'et',
            'uuid' => 'nulla',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/purchases/{purchase}

PATCH api/v1/purchases/{purchase}

URL Parameters

Parameter Status Description
id required ID документа

Body Parameters

Parameter Type Status Description
contractor_id integer required ID Поставщика
stock_id integer required ID Склада
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.amount integer required Количество
nomenclature_lines.*.price integer required Цена
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.amount integer required Количество
ingredient_lines.*.price integer required Цена
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Purchase document DELETE

Удаление документа поступления

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/purchases/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/purchases/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/purchases/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/purchases/{purchase}

URL Parameters

Parameter Status Description
id required ID документа

Write Off Act document GET

Получение списка документов списаний

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/write_off_acts?startDate=neque&endDate=laboriosam&per_page=quia&page=enim&sort_by=illum&sort_order=et&search=velit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_off_acts"
);

let params = {
    "startDate": "neque",
    "endDate": "laboriosam",
    "per_page": "quia",
    "page": "enim",
    "sort_by": "illum",
    "sort_order": "et",
    "search": "velit",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/write_off_acts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'startDate'=> 'neque',
            'endDate'=> 'laboriosam',
            'per_page'=> 'quia',
            'page'=> 'enim',
            'sort_by'=> 'illum',
            'sort_order'=> 'et',
            'search'=> 'velit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/write_off_acts

Query Parameters

Parameter Status Description
startDate required date_format:Y-m-d, Начальная дата
endDate required date_format:Y-m-d after_or_equal:startDate, Конечная дата
per_page required integer, Элементов на странице
page required integer, Номер страницы
sort_by optional string, Сортировка по
sort_order optional string, Порядок сортировки
search optional string, Поиск

Write Off Act document POST

Создание документа списаний

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/write_off_acts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"stock_id":2,"nomenclature_lines":[{"nomenclature_id":15,"amount":18,"price":19}],"ingredient_lines":[{"ingredient_id":7,"amount":16,"price":9}],"date":"veniam","comment":"velit","uuid":"earum"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_off_acts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "stock_id": 2,
    "nomenclature_lines": [
        {
            "nomenclature_id": 15,
            "amount": 18,
            "price": 19
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 7,
            "amount": 16,
            "price": 9
        }
    ],
    "date": "veniam",
    "comment": "velit",
    "uuid": "earum"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/write_off_acts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'stock_id' => 2,
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 15,
                    'amount' => 18,
                    'price' => 19,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 7,
                    'amount' => 16,
                    'price' => 9,
                ],
            ],
            'date' => 'veniam',
            'comment' => 'velit',
            'uuid' => 'earum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/write_off_acts

Body Parameters

Parameter Type Status Description
stock_id integer required ID Склада
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.amount integer required Количество
nomenclature_lines.*.price integer required Цена
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.amount integer required Количество
ingredient_lines.*.price integer required Цена
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Write Off Act document GET/ID

Получение документа списаний

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/write_off_acts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_off_acts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/write_off_acts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/write_off_acts/{write_off_act}

URL Parameters

Parameter Status Description
id required ID документа

Write Off Act document PATCH

Обновление документа списаний

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/write_off_acts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"stock_id":1,"nomenclature_lines":[{"nomenclature_id":17,"amount":18,"price":20}],"ingredient_lines":[{"ingredient_id":18,"amount":15,"price":2}],"date":"laboriosam","comment":"non","uuid":"eos"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_off_acts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "stock_id": 1,
    "nomenclature_lines": [
        {
            "nomenclature_id": 17,
            "amount": 18,
            "price": 20
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 18,
            "amount": 15,
            "price": 2
        }
    ],
    "date": "laboriosam",
    "comment": "non",
    "uuid": "eos"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/write_off_acts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'stock_id' => 1,
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 17,
                    'amount' => 18,
                    'price' => 20,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 18,
                    'amount' => 15,
                    'price' => 2,
                ],
            ],
            'date' => 'laboriosam',
            'comment' => 'non',
            'uuid' => 'eos',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/write_off_acts/{write_off_act}

PATCH api/v1/write_off_acts/{write_off_act}

URL Parameters

Parameter Status Description
id required ID документа

Body Parameters

Parameter Type Status Description
stock_id integer required ID Склада
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.amount integer required Количество
nomenclature_lines.*.price integer required Цена
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.amount integer required Количество
ingredient_lines.*.price integer required Цена
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Write Off Act document DELETE

Удаление документа списаний

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/write_off_acts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/write_off_acts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/write_off_acts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/write_off_acts/{write_off_act}

URL Parameters

Parameter Status Description
id required ID документа

Movement document GET

Получение списка документов движений

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/movements?startDate=impedit&endDate=atque&per_page=id&page=tenetur&sort_by=mollitia&sort_order=quaerat&search=ut" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/movements"
);

let params = {
    "startDate": "impedit",
    "endDate": "atque",
    "per_page": "id",
    "page": "tenetur",
    "sort_by": "mollitia",
    "sort_order": "quaerat",
    "search": "ut",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/movements',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'startDate'=> 'impedit',
            'endDate'=> 'atque',
            'per_page'=> 'id',
            'page'=> 'tenetur',
            'sort_by'=> 'mollitia',
            'sort_order'=> 'quaerat',
            'search'=> 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/movements

Query Parameters

Parameter Status Description
startDate required date_format:Y-m-d, Начальная дата
endDate required date_format:Y-m-d after_or_equal:startDate, Конечная дата
per_page required integer, Элементов на странице
page required integer, Номер страницы
sort_by optional string, Сортировка по
sort_order optional string, Порядок сортировки
search optional string, Поиск

Movement document POST

Создание документа джижений

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/movements" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"stock_in_id":"nobis","stock_out_id":"atque","nomenclature_lines":[{"nomenclature_id":9,"amount":14}],"ingredient_lines":[{"ingredient_id":15,"amount":20}],"date":"dicta","comment":"modi","uuid":"quo"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/movements"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "stock_in_id": "nobis",
    "stock_out_id": "atque",
    "nomenclature_lines": [
        {
            "nomenclature_id": 9,
            "amount": 14
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 15,
            "amount": 20
        }
    ],
    "date": "dicta",
    "comment": "modi",
    "uuid": "quo"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/movements',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'stock_in_id' => 'nobis',
            'stock_out_id' => 'atque',
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 9,
                    'amount' => 14,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 15,
                    'amount' => 20,
                ],
            ],
            'date' => 'dicta',
            'comment' => 'modi',
            'uuid' => 'quo',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/movements

Body Parameters

Parameter Type Status Description
stock_in_id required optional ID Склада в
stock_out_id required optional ID Склада из
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.amount integer required Количество
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.amount integer required Количество
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Movement document GET/ID

Получение документа движений

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/movements/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/movements/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/movements/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/movements/{movement}

URL Parameters

Parameter Status Description
id required ID документа

Movement document PATCH

Обновление документа движений

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/movements/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"stock_in_id":"aliquam","stock_out_id":"repellendus","nomenclature_lines":[{"nomenclature_id":19,"amount":19}],"ingredient_lines":[{"ingredient_id":11,"amount":6}],"date":"ut","comment":"aliquid","uuid":"facere"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/movements/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "stock_in_id": "aliquam",
    "stock_out_id": "repellendus",
    "nomenclature_lines": [
        {
            "nomenclature_id": 19,
            "amount": 19
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 11,
            "amount": 6
        }
    ],
    "date": "ut",
    "comment": "aliquid",
    "uuid": "facere"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/movements/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'stock_in_id' => 'aliquam',
            'stock_out_id' => 'repellendus',
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 19,
                    'amount' => 19,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 11,
                    'amount' => 6,
                ],
            ],
            'date' => 'ut',
            'comment' => 'aliquid',
            'uuid' => 'facere',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/movements/{movement}

PATCH api/v1/movements/{movement}

URL Parameters

Parameter Status Description
id required ID документа

Body Parameters

Parameter Type Status Description
stock_in_id required optional ID Склада в
stock_out_id required optional ID Склада из
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.amount integer required Количество
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.amount integer required Количество
date date_format:Y-m-d required Дата
comment string,max:200 optional Комментарий
uuid uuid required UUID

Movement document DELETE

Удаление документа движений

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/movements/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/movements/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/movements/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/movements/{movement}

URL Parameters

Parameter Status Description
id required ID документа

Cash Receipt document GET

Получение списка приходно кассовых ордеров

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_receipts?startDate=nihil&endDate=corrupti&per_page=animi&page=dolorem&sort_by=quo&sort_order=mollitia&search=nulla" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipts"
);

let params = {
    "startDate": "nihil",
    "endDate": "corrupti",
    "per_page": "animi",
    "page": "dolorem",
    "sort_by": "quo",
    "sort_order": "mollitia",
    "search": "nulla",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_receipts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'startDate'=> 'nihil',
            'endDate'=> 'corrupti',
            'per_page'=> 'animi',
            'page'=> 'dolorem',
            'sort_by'=> 'quo',
            'sort_order'=> 'mollitia',
            'search'=> 'nulla',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cash_receipts

Query Parameters

Parameter Status Description
startDate required date_format:Y-m-d, Начальная дата
endDate required date_format:Y-m-d after_or_equal:startDate, Конечная дата
per_page required integer, Элементов на странице
page required integer, Номер страницы
sort_by optional string, Сортировка по
sort_order optional string, Порядок сортировки
search optional string, Поиск

Cash Receipt document POST

Создание расходно кассового ордера

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cash_receipts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"quis","sum":6,"comment":"autem","uuid":"similique","cash_receipt_basis":"voluptatibus","cash_receipt_taken_from":"aut","cashbox_id":13,"cash_receipt_type_id":2,"from_type":17,"from_id":1}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "quis",
    "sum": 6,
    "comment": "autem",
    "uuid": "similique",
    "cash_receipt_basis": "voluptatibus",
    "cash_receipt_taken_from": "aut",
    "cashbox_id": 13,
    "cash_receipt_type_id": 2,
    "from_type": 17,
    "from_id": 1
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cash_receipts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'quis',
            'sum' => 6,
            'comment' => 'autem',
            'uuid' => 'similique',
            'cash_receipt_basis' => 'voluptatibus',
            'cash_receipt_taken_from' => 'aut',
            'cashbox_id' => 13,
            'cash_receipt_type_id' => 2,
            'from_type' => 17,
            'from_id' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/cash_receipts

Body Parameters

Parameter Type Status Description
date date_format:Y-m-d required Дата
sum integer required Сумма
comment string,max:200 optional Комментарий
uuid uuid required UUID
cash_receipt_basis string optional Основание
cash_receipt_taken_from string optional Принято от
cashbox_id integer required ID Кассы
cash_receipt_type_id integer required ID Вида кассовой операции
from_type integer required ID Тип плательщика
from_id integer required ID Плательщика

Cash Receipt document GET/ID

Получение приходно кассового ордера

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_receipts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_receipts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cash_receipts/{cash_receipt}

URL Parameters

Parameter Status Description
id required ID документа

Cash Receipt document PATCH

Обновление расходно кассового ордера

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/cash_receipts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"illo","sum":4,"comment":"est","uuid":"quibusdam","cash_receipt_basis":"quae","cash_receipt_taken_from":"fuga","cashbox_id":20,"cash_receipt_type_id":9,"from_type":12,"from_id":8}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "illo",
    "sum": 4,
    "comment": "est",
    "uuid": "quibusdam",
    "cash_receipt_basis": "quae",
    "cash_receipt_taken_from": "fuga",
    "cashbox_id": 20,
    "cash_receipt_type_id": 9,
    "from_type": 12,
    "from_id": 8
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/cash_receipts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'illo',
            'sum' => 4,
            'comment' => 'est',
            'uuid' => 'quibusdam',
            'cash_receipt_basis' => 'quae',
            'cash_receipt_taken_from' => 'fuga',
            'cashbox_id' => 20,
            'cash_receipt_type_id' => 9,
            'from_type' => 12,
            'from_id' => 8,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/cash_receipts/{cash_receipt}

PATCH api/v1/cash_receipts/{cash_receipt}

URL Parameters

Parameter Status Description
id required ID документа

Body Parameters

Parameter Type Status Description
date date_format:Y-m-d required Дата
sum integer required Сумма
comment string,max:200 optional Комментарий
uuid uuid required UUID
cash_receipt_basis string optional Основание
cash_receipt_taken_from string optional Принято от
cashbox_id integer required ID Кассы
cash_receipt_type_id integer required ID Вида кассовой операции
from_type integer required ID Тип плательщика
from_id integer required ID Плательщика

Cash Receipt document DELETE

Удаление приходно кассового ордера

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/cash_receipts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_receipts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/cash_receipts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/cash_receipts/{cash_receipt}

URL Parameters

Parameter Status Description
id required ID документа

Cash Issue document GET

Получение списка расходно кассовых ордеров

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_issues?startDate=et&endDate=excepturi&per_page=assumenda&page=ex&sort_by=voluptas&sort_order=quia&search=reiciendis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issues"
);

let params = {
    "startDate": "et",
    "endDate": "excepturi",
    "per_page": "assumenda",
    "page": "ex",
    "sort_by": "voluptas",
    "sort_order": "quia",
    "search": "reiciendis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_issues',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'startDate'=> 'et',
            'endDate'=> 'excepturi',
            'per_page'=> 'assumenda',
            'page'=> 'ex',
            'sort_by'=> 'voluptas',
            'sort_order'=> 'quia',
            'search'=> 'reiciendis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cash_issues

Query Parameters

Parameter Status Description
startDate required date_format:Y-m-d, Начальная дата
endDate required date_format:Y-m-d after_or_equal:startDate, Конечная дата
per_page required integer, Элементов на странице
page required integer, Номер страницы
sort_by optional string, Сортировка по
sort_order optional string, Порядок сортировки
search optional string, Поиск

Cash Issue document POST

Создание расходно кассового ордера

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cash_issues" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"ut","sum":16,"comment":"ipsa","uuid":"molestias","cash_issue_basis":"non","cash_issue_issued_to":"incidunt","cashbox_id":7,"cash_issue_type_id":6,"to_type":14,"to_id":9}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issues"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "ut",
    "sum": 16,
    "comment": "ipsa",
    "uuid": "molestias",
    "cash_issue_basis": "non",
    "cash_issue_issued_to": "incidunt",
    "cashbox_id": 7,
    "cash_issue_type_id": 6,
    "to_type": 14,
    "to_id": 9
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cash_issues',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'ut',
            'sum' => 16,
            'comment' => 'ipsa',
            'uuid' => 'molestias',
            'cash_issue_basis' => 'non',
            'cash_issue_issued_to' => 'incidunt',
            'cashbox_id' => 7,
            'cash_issue_type_id' => 6,
            'to_type' => 14,
            'to_id' => 9,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/cash_issues

Body Parameters

Parameter Type Status Description
date date_format:Y-m-d required Дата
sum integer required Сумма
comment string,max:200 optional Комментарий
uuid uuid required UUID
cash_issue_basis string optional Основание
cash_issue_issued_to string optional Принято от
cashbox_id integer required ID Кассы
cash_issue_type_id integer required ID Вида кассовой операции
to_type integer required ID Тип плательщика
to_id integer required ID Плательщика

Cash Issue document GET/ID

Получение расходно кассового ордера

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cash_issues/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issues/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cash_issues/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cash_issues/{cash_issue}

URL Parameters

Parameter Status Description
id required ID документа

Cash Issue document PATCH

Обновление расходно кассового ордера

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/cash_issues/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"sunt","sum":1,"comment":"quae","uuid":"et","cash_issue_basis":"et","cash_issue_issued_to":"est","cashbox_id":19,"cash_issue_type_id":8,"to_type":16,"to_id":9}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issues/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "sunt",
    "sum": 1,
    "comment": "quae",
    "uuid": "et",
    "cash_issue_basis": "et",
    "cash_issue_issued_to": "est",
    "cashbox_id": 19,
    "cash_issue_type_id": 8,
    "to_type": 16,
    "to_id": 9
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/cash_issues/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'sunt',
            'sum' => 1,
            'comment' => 'quae',
            'uuid' => 'et',
            'cash_issue_basis' => 'et',
            'cash_issue_issued_to' => 'est',
            'cashbox_id' => 19,
            'cash_issue_type_id' => 8,
            'to_type' => 16,
            'to_id' => 9,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/cash_issues/{cash_issue}

PATCH api/v1/cash_issues/{cash_issue}

URL Parameters

Parameter Status Description
id required ID документа

Body Parameters

Parameter Type Status Description
date date_format:Y-m-d required Дата
sum integer required Сумма
comment string,max:200 optional Комментарий
uuid uuid required UUID
cash_issue_basis string optional Основание
cash_issue_issued_to string optional Принято от
cashbox_id integer required ID Кассы
cash_issue_type_id integer required ID Вида кассовой операции
to_type integer required ID Тип плательщика
to_id integer required ID Плательщика

Cash Issue document DELETE

Удаление расходно кассового ордера

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/cash_issues/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cash_issues/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/cash_issues/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/cash_issues/{cash_issue}

URL Parameters

Parameter Status Description
id required ID документа

Inventory document GET

Получение списка документов инвентаризации

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/inventories?startDate=saepe&endDate=qui&per_page=aliquid&page=et&sort_by=maiores&sort_order=est&search=quas" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/inventories"
);

let params = {
    "startDate": "saepe",
    "endDate": "qui",
    "per_page": "aliquid",
    "page": "et",
    "sort_by": "maiores",
    "sort_order": "est",
    "search": "quas",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/inventories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'startDate'=> 'saepe',
            'endDate'=> 'qui',
            'per_page'=> 'aliquid',
            'page'=> 'et',
            'sort_by'=> 'maiores',
            'sort_order'=> 'est',
            'search'=> 'quas',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/inventories

Query Parameters

Parameter Status Description
startDate required date_format:Y-m-d, Начальная дата
endDate required date_format:Y-m-d after_or_equal:startDate, Конечная дата
per_page required integer, Элементов на странице
page required integer, Номер страницы
sort_by optional string, Сортировка по
sort_order optional string, Порядок сортировки
search optional string, Поиск

Inventory document POST

Создание документа инвентаризации

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/inventories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"nomenclature_category_id":12,"ingredient_category_id":3,"nomenclature_lines":[{"nomenclature_id":16,"price":15,"amount_expected":11,"amount_real":3,"sum_expected":19,"sum_real":1}],"ingredient_lines":[{"ingredient_id":10,"price":12,"amount_expected":18,"amount_real":7,"sum_expected":18,"sum_real":18}],"date":"itaque","sum":12,"comment":"nesciunt","uuid":"quia"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/inventories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "nomenclature_category_id": 12,
    "ingredient_category_id": 3,
    "nomenclature_lines": [
        {
            "nomenclature_id": 16,
            "price": 15,
            "amount_expected": 11,
            "amount_real": 3,
            "sum_expected": 19,
            "sum_real": 1
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 10,
            "price": 12,
            "amount_expected": 18,
            "amount_real": 7,
            "sum_expected": 18,
            "sum_real": 18
        }
    ],
    "date": "itaque",
    "sum": 12,
    "comment": "nesciunt",
    "uuid": "quia"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/inventories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'nomenclature_category_id' => 12,
            'ingredient_category_id' => 3,
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 16,
                    'price' => 15,
                    'amount_expected' => 11,
                    'amount_real' => 3,
                    'sum_expected' => 19,
                    'sum_real' => 1,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 10,
                    'price' => 12,
                    'amount_expected' => 18,
                    'amount_real' => 7,
                    'sum_expected' => 18,
                    'sum_real' => 18,
                ],
            ],
            'date' => 'itaque',
            'sum' => 12,
            'comment' => 'nesciunt',
            'uuid' => 'quia',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/inventories

Body Parameters

Parameter Type Status Description
nomenclature_category_id integer optional ID Категории номенклатур
ingredient_category_id integer optional ID Категории ингредиентов
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.price integer required Цена
nomenclature_lines.*.amount_expected integer required Ожидаемое количество
nomenclature_lines.*.amount_real integer required Фактическое количество
nomenclature_lines.*.sum_expected integer required Ожидаемая сумма
nomenclature_lines.*.sum_real integer required Фактическая сумма
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.price integer required Цена
ingredient_lines.*.amount_expected integer required Ожидаемое количество
ingredient_lines.*.amount_real integer required Фактическое количество
ingredient_lines.*.sum_expected integer required Ожидаемая сумма
ingredient_lines.*.sum_real integer required Фактическая сумма
date date_format:Y-m-d required Дата
sum integer required Сумма
comment string,max:200 optional Комментарий
uuid uuid required UUID

Inventory document GET/ID

Получение документа инвентаризации

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/inventories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/inventories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/inventories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/inventories/{inventory}

URL Parameters

Parameter Status Description
id required ID документа

Inventory document PATCH

Обновление документа инвентаризации

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/inventories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"nomenclature_category_id":16,"ingredient_category_id":11,"nomenclature_lines":[{"nomenclature_id":8,"price":18,"amount_expected":4,"amount_real":15,"sum_expected":7,"sum_real":9}],"ingredient_lines":[{"ingredient_id":8,"price":19,"amount_expected":15,"amount_real":15,"sum_expected":19,"sum_real":2}],"date":"maiores","sum":7,"comment":"eligendi","uuid":"ab"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/inventories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "nomenclature_category_id": 16,
    "ingredient_category_id": 11,
    "nomenclature_lines": [
        {
            "nomenclature_id": 8,
            "price": 18,
            "amount_expected": 4,
            "amount_real": 15,
            "sum_expected": 7,
            "sum_real": 9
        }
    ],
    "ingredient_lines": [
        {
            "ingredient_id": 8,
            "price": 19,
            "amount_expected": 15,
            "amount_real": 15,
            "sum_expected": 19,
            "sum_real": 2
        }
    ],
    "date": "maiores",
    "sum": 7,
    "comment": "eligendi",
    "uuid": "ab"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/inventories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'nomenclature_category_id' => 16,
            'ingredient_category_id' => 11,
            'nomenclature_lines' => [
                [
                    'nomenclature_id' => 8,
                    'price' => 18,
                    'amount_expected' => 4,
                    'amount_real' => 15,
                    'sum_expected' => 7,
                    'sum_real' => 9,
                ],
            ],
            'ingredient_lines' => [
                [
                    'ingredient_id' => 8,
                    'price' => 19,
                    'amount_expected' => 15,
                    'amount_real' => 15,
                    'sum_expected' => 19,
                    'sum_real' => 2,
                ],
            ],
            'date' => 'maiores',
            'sum' => 7,
            'comment' => 'eligendi',
            'uuid' => 'ab',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/inventories/{inventory}

PATCH api/v1/inventories/{inventory}

URL Parameters

Parameter Status Description
id required ID документа

Body Parameters

Parameter Type Status Description
nomenclature_category_id integer optional ID Категории номенклатур
ingredient_category_id integer optional ID Категории ингредиентов
nomenclature_lines.*.nomenclature_id integer required ID Номенклатуры
nomenclature_lines.*.price integer required Цена
nomenclature_lines.*.amount_expected integer required Ожидаемое количество
nomenclature_lines.*.amount_real integer required Фактическое количество
nomenclature_lines.*.sum_expected integer required Ожидаемая сумма
nomenclature_lines.*.sum_real integer required Фактическая сумма
ingredient_lines.*.ingredient_id integer required ID Ингредиента
ingredient_lines.*.price integer required Цена
ingredient_lines.*.amount_expected integer required Ожидаемое количество
ingredient_lines.*.amount_real integer required Фактическое количество
ingredient_lines.*.sum_expected integer required Ожидаемая сумма
ingredient_lines.*.sum_real integer required Фактическая сумма
date date_format:Y-m-d required Дата
sum integer required Сумма
comment string,max:200 optional Комментарий
uuid uuid required UUID

Inventory document DELETE

Удаление документа инвентаризации

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/inventories/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/inventories/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/inventories/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/inventories/{inventory}

URL Parameters

Parameter Status Description
id required ID документа

Cashbox Money Transfer document GET

Получение списка документов перемещения денежных средств между кассами

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cashbox_money_transfers?startDate=qui&endDate=eligendi&per_page=a&page=sint&sort_by=est&sort_order=rerum&search=atque" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashbox_money_transfers"
);

let params = {
    "startDate": "qui",
    "endDate": "eligendi",
    "per_page": "a",
    "page": "sint",
    "sort_by": "est",
    "sort_order": "rerum",
    "search": "atque",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cashbox_money_transfers',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'startDate'=> 'qui',
            'endDate'=> 'eligendi',
            'per_page'=> 'a',
            'page'=> 'sint',
            'sort_by'=> 'est',
            'sort_order'=> 'rerum',
            'search'=> 'atque',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cashbox_money_transfers

Query Parameters

Parameter Status Description
startDate required date_format:Y-m-d, Начальная дата
endDate required date_format:Y-m-d after_or_equal:startDate, Конечная дата
per_page required integer, Элементов на странице
page required integer, Номер страницы
sort_by optional string, Сортировка по
sort_order optional string, Порядок сортировки
search optional string, Поиск

Cashbox Money Transfer document POST

Создание документа перемещения денежных средств между кассами

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cashbox_money_transfers" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"cashbox_from_id":5,"cashbox_to_id":5,"date":"quidem","sum":1,"comment":"dolor","uuid":"optio"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashbox_money_transfers"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "cashbox_from_id": 5,
    "cashbox_to_id": 5,
    "date": "quidem",
    "sum": 1,
    "comment": "dolor",
    "uuid": "optio"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cashbox_money_transfers',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'cashbox_from_id' => 5,
            'cashbox_to_id' => 5,
            'date' => 'quidem',
            'sum' => 1,
            'comment' => 'dolor',
            'uuid' => 'optio',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/cashbox_money_transfers

Body Parameters

Parameter Type Status Description
cashbox_from_id integer required ID кассы из которой берем
cashbox_to_id integer required ID кассы в которую перемещаем
date date_format:Y-m-d required Дата
sum integer required Сумма
comment string,max:200 optional Комментарий
uuid uuid required UUID

Cashbox Money Transfer document GET/ID

Получение документа перемещения денежных средств между кассами по ID

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cashbox_money_transfers/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashbox_money_transfers/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cashbox_money_transfers/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cashbox_money_transfers/{cashbox_money_transfer}

URL Parameters

Parameter Status Description
id required ID документа

Cashbox Money Transfer document PATCH

Создание документа перемещения денежных средств между кассами

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/cashbox_money_transfers/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"cashbox_from_id":14,"cashbox_to_id":3,"date":"qui","sum":6,"comment":"quam","uuid":"aliquam"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashbox_money_transfers/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "cashbox_from_id": 14,
    "cashbox_to_id": 3,
    "date": "qui",
    "sum": 6,
    "comment": "quam",
    "uuid": "aliquam"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/cashbox_money_transfers/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'cashbox_from_id' => 14,
            'cashbox_to_id' => 3,
            'date' => 'qui',
            'sum' => 6,
            'comment' => 'quam',
            'uuid' => 'aliquam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/cashbox_money_transfers/{cashbox_money_transfer}

PATCH api/v1/cashbox_money_transfers/{cashbox_money_transfer}

URL Parameters

Parameter Status Description
id required ID документа

Body Parameters

Parameter Type Status Description
cashbox_from_id integer required ID кассы из которой берем
cashbox_to_id integer required ID кассы в которую перемещаем
date date_format:Y-m-d required Дата
sum integer required Сумма
comment string,max:200 optional Комментарий
uuid uuid required UUID

Cashbox Money Transfer document DELETE

Удаление документа перемещения денежных средств между кассами по ID

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/cashbox_money_transfers/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashbox_money_transfers/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/cashbox_money_transfers/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/cashbox_money_transfers/{cashbox_money_transfer}

URL Parameters

Parameter Status Description
id required ID документа

Заказ

api/v1/order/nomenclature-categories


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/nomenclature-categories" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/nomenclature-categories"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/nomenclature-categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/nomenclature-categories

api/v1/order/nomenclatures


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/nomenclatures" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/nomenclatures"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/nomenclatures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/nomenclatures

api/v1/order/fetch-actual-prices


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/fetch-actual-prices" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/fetch-actual-prices"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/fetch-actual-prices',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/fetch-actual-prices

Order - Получение дисконта для клиентов


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/discounts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"organization_id":9}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/discounts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "organization_id": 9
}

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/discounts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'organization_id' => 9,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "data": "Массив данных видов дисконта (id, title, percent)"
}

Example response (401):

{
    "message": "inactive user"
}

HTTP Request

GET api/v1/order/discounts

Body Parameters

Parameter Type Status Description
organization_id integer optional require Уникальный идентификатор организации

Получение меток для заказа


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/order-tags" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"organization_id":19}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/order-tags"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "organization_id": 19
}

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/order-tags',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'organization_id' => 19,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "data": "Массив данных меток заказа (id, title)"
}

Example response (401):

{
    "message": "inactive user"
}

HTTP Request

GET api/v1/order/order-tags

Body Parameters

Parameter Type Status Description
organization_id integer optional require Уникальный идентификатор организации

api/v1/order/price-margins


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/price-margins" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/price-margins"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/price-margins',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/price-margins

api/v1/order/sales-channels


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/sales-channels" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/sales-channels"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/sales-channels',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/order/sales-channels

Получение типов оплат для клиентов


Requires authentication

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/order/payment-options" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"organization_id":20,"trade_point_id":1}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/order/payment-options"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "organization_id": 20,
    "trade_point_id": 1
}

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/order/payment-options',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'organization_id' => 20,
            'trade_point_id' => 1,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "data": "Массив данных видов оплаты (id, title, percent)"
}

Example response (401):

{
    "message": "inactive user"
}

HTTP Request

GET api/v1/order/payment-options

Body Parameters

Parameter Type Status Description
organization_id integer optional require Уникальный идентификатор организации
trade_point_id integer optional require Уникальный идентификатор торговой организации

Отчеты/Reports

APIs для формирования отчетов

Order's margin print

Печать отчета по наценкам заказов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-order-margin-report?organization_id=occaecati&trade_point_id=consectetur&id=autem&margin_id=laboriosam&start_date=et&end_date=earum" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-order-margin-report"
);

let params = {
    "organization_id": "occaecati",
    "trade_point_id": "consectetur",
    "id": "autem",
    "margin_id": "laboriosam",
    "start_date": "et",
    "end_date": "earum",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-order-margin-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'occaecati',
            'trade_point_id'=> 'consectetur',
            'id'=> 'autem',
            'margin_id'=> 'laboriosam',
            'start_date'=> 'et',
            'end_date'=> 'earum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-order-margin-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
id optional integer, ID Заказа
margin_id optional integer, ID Наценки
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Order's discount print

Печать отчета по скидкам заказов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-order-discount-report?organization_id=tempora&trade_point_id=aut&id=non&discount_id=dignissimos&start_date=perferendis&end_date=dicta" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-order-discount-report"
);

let params = {
    "organization_id": "tempora",
    "trade_point_id": "aut",
    "id": "non",
    "discount_id": "dignissimos",
    "start_date": "perferendis",
    "end_date": "dicta",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-order-discount-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'tempora',
            'trade_point_id'=> 'aut',
            'id'=> 'non',
            'discount_id'=> 'dignissimos',
            'start_date'=> 'perferendis',
            'end_date'=> 'dicta',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-order-discount-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
id optional integer, ID Заказа
discount_id optional integer, ID Скидки
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Order sales channel print

Печать отчета по каналам продаж заказа

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-order-sales-channel-report?organization_id=facilis&trade_point_id=ratione&id=dignissimos&sales_channel_id=et&start_date=facilis&end_date=doloremque" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-order-sales-channel-report"
);

let params = {
    "organization_id": "facilis",
    "trade_point_id": "ratione",
    "id": "dignissimos",
    "sales_channel_id": "et",
    "start_date": "facilis",
    "end_date": "doloremque",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-order-sales-channel-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'facilis',
            'trade_point_id'=> 'ratione',
            'id'=> 'dignissimos',
            'sales_channel_id'=> 'et',
            'start_date'=> 'facilis',
            'end_date'=> 'doloremque',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-order-sales-channel-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
id optional integer, ID Заказа
sales_channel_id optional integer, ID Канала продаж
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Order's bonus print

Печать отчета по оплатам заказов бонусами

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-order-bonuses-report?organization_id=iste&trade_point_id=molestias&id=et&start_date=ut&end_date=perferendis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-order-bonuses-report"
);

let params = {
    "organization_id": "iste",
    "trade_point_id": "molestias",
    "id": "et",
    "start_date": "ut",
    "end_date": "perferendis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-order-bonuses-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'iste',
            'trade_point_id'=> 'molestias',
            'id'=> 'et',
            'start_date'=> 'ut',
            'end_date'=> 'perferendis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-order-bonuses-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
id optional integer, ID Заказа
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Stock balance nomenclature print

Печать отчета остатков товаров по складам

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-stock-balance-nomenclature-report?organization_id=corporis&trade_point_id=voluptatem&nomenclature_category_id=facilis&date=magni" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-stock-balance-nomenclature-report"
);

let params = {
    "organization_id": "corporis",
    "trade_point_id": "voluptatem",
    "nomenclature_category_id": "facilis",
    "date": "magni",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-stock-balance-nomenclature-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'corporis',
            'trade_point_id'=> 'voluptatem',
            'nomenclature_category_id'=> 'facilis',
            'date'=> 'magni',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-stock-balance-nomenclature-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_category_id optional integer, ID Категории номенклатур
date required date_format:Y-m-d, Дата

Stock balance ingredient print

Печать отчета остатков ингредиентов по складам

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-stock-balance-ingredient-report?organization_id=sed&trade_point_id=porro&ingredient_category_id=dolor&date=vero" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-stock-balance-ingredient-report"
);

let params = {
    "organization_id": "sed",
    "trade_point_id": "porro",
    "ingredient_category_id": "dolor",
    "date": "vero",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-stock-balance-ingredient-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'sed',
            'trade_point_id'=> 'porro',
            'ingredient_category_id'=> 'dolor',
            'date'=> 'vero',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-stock-balance-ingredient-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
ingredient_category_id optional integer, ID Категории ингредиентов
date required date_format:Y-m-d, Дата

Cashbook print

Печать отчета кассовой книге

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-cashbook-report?organization_id=occaecati&trade_point_id=autem&start_date=omnis&end_date=porro" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-cashbook-report"
);

let params = {
    "organization_id": "occaecati",
    "trade_point_id": "autem",
    "start_date": "omnis",
    "end_date": "porro",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-cashbook-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'occaecati',
            'trade_point_id'=> 'autem',
            'start_date'=> 'omnis',
            'end_date'=> 'porro',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-cashbook-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Client's bonuses print

Печать отчета баланса бонусов клиентов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-client-bonuses-report?client_od=blanditiis&search=iusto&date=asperiores" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-client-bonuses-report"
);

let params = {
    "client_od": "blanditiis",
    "search": "iusto",
    "date": "asperiores",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-client-bonuses-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'client_od'=> 'blanditiis',
            'search'=> 'iusto',
            'date'=> 'asperiores',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-client-bonuses-report

Query Parameters

Parameter Status Description
client_od optional integer, ID Клиента
search optional string, Поиск по имени и номеру телефона клиента
date required date_format:Y-m-d, Дата

Ingredient movement print

Печать отчета движения ингредиентов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-ingredient-movement-report?organization_id=quam&trade_point_id=quaerat&ingredient_id=dignissimos&ingredient_category_id=iusto&movement_type=cumque&start_date=voluptatem&end_date=consequuntur" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-ingredient-movement-report"
);

let params = {
    "organization_id": "quam",
    "trade_point_id": "quaerat",
    "ingredient_id": "dignissimos",
    "ingredient_category_id": "iusto",
    "movement_type": "cumque",
    "start_date": "voluptatem",
    "end_date": "consequuntur",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-ingredient-movement-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'quam',
            'trade_point_id'=> 'quaerat',
            'ingredient_id'=> 'dignissimos',
            'ingredient_category_id'=> 'iusto',
            'movement_type'=> 'cumque',
            'start_date'=> 'voluptatem',
            'end_date'=> 'consequuntur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-ingredient-movement-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
ingredient_id optional integer, ID Ингдедиента
ingredient_category_id optional integer, ID Категории ингредиентов
movement_type required string ['income', 'write_off', 'all'], Тип движения ['приход', 'списание', 'все']
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Nomenclature movement print

Печать отчета движения номенклатур

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-nomenclature-movement-report?organization_id=vel&trade_point_id=nostrum&ingredient_id=aut&ingredient_category_id=vitae&movement_type=saepe&start_date=corrupti&end_date=corporis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-nomenclature-movement-report"
);

let params = {
    "organization_id": "vel",
    "trade_point_id": "nostrum",
    "ingredient_id": "aut",
    "ingredient_category_id": "vitae",
    "movement_type": "saepe",
    "start_date": "corrupti",
    "end_date": "corporis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-nomenclature-movement-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'vel',
            'trade_point_id'=> 'nostrum',
            'ingredient_id'=> 'aut',
            'ingredient_category_id'=> 'vitae',
            'movement_type'=> 'saepe',
            'start_date'=> 'corrupti',
            'end_date'=> 'corporis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-nomenclature-movement-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
ingredient_id optional integer, ID Номенклатуры
ingredient_category_id optional integer, ID Категории номенклатур
movement_type required string ['income', 'write_off', 'all'], Тип движения ['приход', 'списание', 'все']
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Purchase nomenclature print

Печать отчета поступления товаров

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-purchase-nomenclature-report?organization_id=reprehenderit&trade_point_id=ut&nomenclature_category_id=ad&nomenclature_id=mollitia&start_date=quos&end_date=alias&page=quis&per_page=iure" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-purchase-nomenclature-report"
);

let params = {
    "organization_id": "reprehenderit",
    "trade_point_id": "ut",
    "nomenclature_category_id": "ad",
    "nomenclature_id": "mollitia",
    "start_date": "quos",
    "end_date": "alias",
    "page": "quis",
    "per_page": "iure",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-purchase-nomenclature-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'reprehenderit',
            'trade_point_id'=> 'ut',
            'nomenclature_category_id'=> 'ad',
            'nomenclature_id'=> 'mollitia',
            'start_date'=> 'quos',
            'end_date'=> 'alias',
            'page'=> 'quis',
            'per_page'=> 'iure',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-purchase-nomenclature-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_category_id optional integer, ID Категории номенклатур
nomenclature_id optional integer, ID Номенклатуры
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата
page optional integer, Номер страницы
per_page optional integer, Элементов на странице

Purchase ingredient print

Печать отчета поступления ингредиентов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-purchase-ingredient-report?organization_id=quibusdam&trade_point_id=repudiandae&ingredient_category_id=qui&ingredient_id=quisquam&start_date=quo&end_date=exercitationem&page=natus&per_page=culpa" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-purchase-ingredient-report"
);

let params = {
    "organization_id": "quibusdam",
    "trade_point_id": "repudiandae",
    "ingredient_category_id": "qui",
    "ingredient_id": "quisquam",
    "start_date": "quo",
    "end_date": "exercitationem",
    "page": "natus",
    "per_page": "culpa",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-purchase-ingredient-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'quibusdam',
            'trade_point_id'=> 'repudiandae',
            'ingredient_category_id'=> 'qui',
            'ingredient_id'=> 'quisquam',
            'start_date'=> 'quo',
            'end_date'=> 'exercitationem',
            'page'=> 'natus',
            'per_page'=> 'culpa',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-purchase-ingredient-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
ingredient_category_id optional integer, ID Категории ингредиентов
ingredient_id optional integer, ID Ингредиента
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата
page optional integer, Номер страницы
per_page optional integer, Элементов на странице

ABC print

Печать ABC отчета

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-abc-report?organization_id=quia&trade_point_id=eos&nomenclature_category_id=repellendus&start_date=voluptates&end_date=vitae" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-abc-report"
);

let params = {
    "organization_id": "quia",
    "trade_point_id": "eos",
    "nomenclature_category_id": "repellendus",
    "start_date": "voluptates",
    "end_date": "vitae",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-abc-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'quia',
            'trade_point_id'=> 'eos',
            'nomenclature_category_id'=> 'repellendus',
            'start_date'=> 'voluptates',
            'end_date'=> 'vitae',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-abc-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_category_id optional integer, Категория номенклатур
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Sales nomenclature print

Печать отчета продаж товаров

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-sales-nomenclature-report?organization_id=fugit&trade_point_id=tempora&nomenclature_category_id=minus&nomenclature_id=ea&start_date=aut&end_date=praesentium&page=est&per_page=eligendi" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-sales-nomenclature-report"
);

let params = {
    "organization_id": "fugit",
    "trade_point_id": "tempora",
    "nomenclature_category_id": "minus",
    "nomenclature_id": "ea",
    "start_date": "aut",
    "end_date": "praesentium",
    "page": "est",
    "per_page": "eligendi",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-sales-nomenclature-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'fugit',
            'trade_point_id'=> 'tempora',
            'nomenclature_category_id'=> 'minus',
            'nomenclature_id'=> 'ea',
            'start_date'=> 'aut',
            'end_date'=> 'praesentium',
            'page'=> 'est',
            'per_page'=> 'eligendi',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-sales-nomenclature-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_category_id optional integer, ID Категории номенклатур
nomenclature_id optional integer, ID Номенклатуры
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата
page optional integer, Номер страницы
per_page optional integer, Элементов на странице

Settlements with contractors print

Печать отчета по взаиморасчетам

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/print/get-settlements-with-contractors-report?organization_id=corporis&contractor_id=aliquam&contractor_group=velit&start_date=nobis&end_date=magni" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/print/get-settlements-with-contractors-report"
);

let params = {
    "organization_id": "corporis",
    "contractor_id": "aliquam",
    "contractor_group": "velit",
    "start_date": "nobis",
    "end_date": "magni",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/print/get-settlements-with-contractors-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'corporis',
            'contractor_id'=> 'aliquam',
            'contractor_group'=> 'velit',
            'start_date'=> 'nobis',
            'end_date'=> 'magni',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

HTTP Request

GET api/v1/print/get-settlements-with-contractors-report

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
contractor_id optional integer, ID Контрагента
contractor_group optional integer, ID Группы контрагентов
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

api/v1/export/stock-balance-nomenclatures

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/stock-balance-nomenclatures" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/stock-balance-nomenclatures"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/stock-balance-nomenclatures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/stock-balance-nomenclatures

api/v1/export/stock-balance-ingredients

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/stock-balance-ingredients" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/stock-balance-ingredients"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/stock-balance-ingredients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/stock-balance-ingredients

api/v1/export/settlement-with-contractor

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/settlement-with-contractor" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/settlement-with-contractor"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/settlement-with-contractor',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/settlement-with-contractor

api/v1/export/sales-nomenclature

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/sales-nomenclature" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/sales-nomenclature"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/sales-nomenclature',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/sales-nomenclature

api/v1/export/purchase-nomenclature

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/purchase-nomenclature" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/purchase-nomenclature"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/purchase-nomenclature',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/purchase-nomenclature

api/v1/export/purchase-ingredient

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/purchase-ingredient" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/purchase-ingredient"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/purchase-ingredient',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/purchase-ingredient

api/v1/export/price-margin

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/price-margin" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/price-margin"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/price-margin',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/price-margin

api/v1/export/order-discount

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/order-discount" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/order-discount"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/order-discount',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/order-discount

api/v1/export/order-bonus

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/order-bonus" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/order-bonus"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/order-bonus',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/order-bonus

api/v1/export/nomenclatures-movement

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/nomenclatures-movement" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/nomenclatures-movement"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/nomenclatures-movement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/nomenclatures-movement

api/v1/export/nomenclature-movement

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/nomenclature-movement" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/nomenclature-movement"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/nomenclature-movement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/nomenclature-movement

api/v1/export/ingredients-movement

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/ingredients-movement" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/ingredients-movement"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/ingredients-movement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/ingredients-movement

api/v1/export/ingredient-movement

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/ingredient-movement" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/ingredient-movement"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/ingredient-movement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/ingredient-movement

api/v1/export/cash-box

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/export/cash-box" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/export/cash-box"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/export/cash-box',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/export/cash-box

Order's discount report

Формирование отчета по скидкам заказов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/order-discount?organization_id=omnis&trade_point_id=laborum&id=et&discount_id=consequatur&start_date=et&end_date=cum" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/order-discount"
);

let params = {
    "organization_id": "omnis",
    "trade_point_id": "laborum",
    "id": "et",
    "discount_id": "consequatur",
    "start_date": "et",
    "end_date": "cum",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/order-discount',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'omnis',
            'trade_point_id'=> 'laborum',
            'id'=> 'et',
            'discount_id'=> 'consequatur',
            'start_date'=> 'et',
            'end_date'=> 'cum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/order-discount

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
id optional integer, ID Заказа
discount_id optional integer, ID Скидки
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Order sales channel report

Формирование отчета по каналам продаж заказа

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/order-sales-channel?organization_id=et&trade_point_id=ut&id=non&sales_channel_id=consectetur&start_date=et&end_date=perspiciatis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/order-sales-channel"
);

let params = {
    "organization_id": "et",
    "trade_point_id": "ut",
    "id": "non",
    "sales_channel_id": "consectetur",
    "start_date": "et",
    "end_date": "perspiciatis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/order-sales-channel',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'et',
            'trade_point_id'=> 'ut',
            'id'=> 'non',
            'sales_channel_id'=> 'consectetur',
            'start_date'=> 'et',
            'end_date'=> 'perspiciatis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/order-sales-channel

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
id optional integer, ID Заказа
sales_channel_id optional integer, ID Канала продаж
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Sales by hour report

Формирование отчета продаж в час

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/sales-by-hour?organization_id=maxime&trade_point_id=asperiores&start_date=facilis&end_date=est" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/sales-by-hour"
);

let params = {
    "organization_id": "maxime",
    "trade_point_id": "asperiores",
    "start_date": "facilis",
    "end_date": "est",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/sales-by-hour',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'maxime',
            'trade_point_id'=> 'asperiores',
            'start_date'=> 'facilis',
            'end_date'=> 'est',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/sales-by-hour

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Order's margin report

Формирование отчета по наценкам заказов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/order-margin?organization_id=culpa&trade_point_id=consequatur&id=sit&margin_id=expedita&start_date=nihil&end_date=fugiat" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/order-margin"
);

let params = {
    "organization_id": "culpa",
    "trade_point_id": "consequatur",
    "id": "sit",
    "margin_id": "expedita",
    "start_date": "nihil",
    "end_date": "fugiat",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/order-margin',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'culpa',
            'trade_point_id'=> 'consequatur',
            'id'=> 'sit',
            'margin_id'=> 'expedita',
            'start_date'=> 'nihil',
            'end_date'=> 'fugiat',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/order-margin

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
id optional integer, ID Заказа
margin_id optional integer, ID Наценки
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Nomenclature movement report

Формирование отчета движения номенклатур(товаров)

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/nomenclature-movement?organization_id=odit&trade_point_id=sequi&nomenclature_id=dolore&nomenclature_category_id=necessitatibus&movement_type=tempora&start_date=occaecati&end_date=id" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/nomenclature-movement"
);

let params = {
    "organization_id": "odit",
    "trade_point_id": "sequi",
    "nomenclature_id": "dolore",
    "nomenclature_category_id": "necessitatibus",
    "movement_type": "tempora",
    "start_date": "occaecati",
    "end_date": "id",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/nomenclature-movement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'odit',
            'trade_point_id'=> 'sequi',
            'nomenclature_id'=> 'dolore',
            'nomenclature_category_id'=> 'necessitatibus',
            'movement_type'=> 'tempora',
            'start_date'=> 'occaecati',
            'end_date'=> 'id',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/nomenclature-movement

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_id optional integer, ID Номенклатуры
nomenclature_category_id optional integer, ID Категории номенклатур
movement_type required string ['income', 'write_off', 'all'], Тип движения ['приход', 'списание', 'все']
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Nomenclature movement report

Формирование отчета движения номенклатур(товаров)

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/nomenclatures-movement?organization_id=perspiciatis&trade_point_id=qui&nomenclature_id=ut&nomenclature_category_id=tempora&movement_type=est&start_date=veritatis&end_date=ratione" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/nomenclatures-movement"
);

let params = {
    "organization_id": "perspiciatis",
    "trade_point_id": "qui",
    "nomenclature_id": "ut",
    "nomenclature_category_id": "tempora",
    "movement_type": "est",
    "start_date": "veritatis",
    "end_date": "ratione",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/nomenclatures-movement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'perspiciatis',
            'trade_point_id'=> 'qui',
            'nomenclature_id'=> 'ut',
            'nomenclature_category_id'=> 'tempora',
            'movement_type'=> 'est',
            'start_date'=> 'veritatis',
            'end_date'=> 'ratione',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/nomenclatures-movement

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_id optional integer, ID Номенклатуры
nomenclature_category_id optional integer, ID Категории номенклатур
movement_type required string ['income', 'write_off', 'all'], Тип движения ['приход', 'списание', 'все']
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Ingredient movement report

Формирование отчета движения ингредиентов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/ingredients-movement?organization_id=voluptas&trade_point_id=consectetur&ingredient_id=aut&ingredient_category_id=reprehenderit&movement_type=quasi&start_date=doloribus&end_date=accusamus" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/ingredients-movement"
);

let params = {
    "organization_id": "voluptas",
    "trade_point_id": "consectetur",
    "ingredient_id": "aut",
    "ingredient_category_id": "reprehenderit",
    "movement_type": "quasi",
    "start_date": "doloribus",
    "end_date": "accusamus",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/ingredients-movement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'voluptas',
            'trade_point_id'=> 'consectetur',
            'ingredient_id'=> 'aut',
            'ingredient_category_id'=> 'reprehenderit',
            'movement_type'=> 'quasi',
            'start_date'=> 'doloribus',
            'end_date'=> 'accusamus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/ingredients-movement

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
ingredient_id optional integer, ID Ингредиента
ingredient_category_id optional integer, ID Категории ингредиентов
movement_type required string ['income', 'write_off', 'all'], Тип движения ['приход', 'списание', 'все']
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Ingredient movement report

Формирование отчета движения ингредиентов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/ingredient-movement?organization_id=commodi&trade_point_id=consequatur&ingredient_id=et&ingredient_category_id=quos&movement_type=qui&start_date=fugit&end_date=pariatur" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/ingredient-movement"
);

let params = {
    "organization_id": "commodi",
    "trade_point_id": "consequatur",
    "ingredient_id": "et",
    "ingredient_category_id": "quos",
    "movement_type": "qui",
    "start_date": "fugit",
    "end_date": "pariatur",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/ingredient-movement',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'commodi',
            'trade_point_id'=> 'consequatur',
            'ingredient_id'=> 'et',
            'ingredient_category_id'=> 'quos',
            'movement_type'=> 'qui',
            'start_date'=> 'fugit',
            'end_date'=> 'pariatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/ingredient-movement

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
ingredient_id optional integer, ID Ингредиента
ingredient_category_id optional integer, ID Категории ингредиентов
movement_type required string ['income', 'write_off', 'all'], Тип движения ['приход', 'списание', 'все']
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Order's bonus report

Формирование отчета по оплатам заказов бонусами

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/order-bonus?organization_id=id&trade_point_id=eligendi&id=perferendis&start_date=et&end_date=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/order-bonus"
);

let params = {
    "organization_id": "id",
    "trade_point_id": "eligendi",
    "id": "perferendis",
    "start_date": "et",
    "end_date": "et",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/order-bonus',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'id',
            'trade_point_id'=> 'eligendi',
            'id'=> 'perferendis',
            'start_date'=> 'et',
            'end_date'=> 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/order-bonus

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
id optional integer, ID Заказа
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Purchase nomenclature report

Формирование отчета поступления товаров

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/purchase-nomenclatures?organization_id=eaque&trade_point_id=labore&nomenclature_category_id=enim&nomenclature_id=laborum&start_date=voluptate&end_date=eos&page=autem&per_page=similique" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/purchase-nomenclatures"
);

let params = {
    "organization_id": "eaque",
    "trade_point_id": "labore",
    "nomenclature_category_id": "enim",
    "nomenclature_id": "laborum",
    "start_date": "voluptate",
    "end_date": "eos",
    "page": "autem",
    "per_page": "similique",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/purchase-nomenclatures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'eaque',
            'trade_point_id'=> 'labore',
            'nomenclature_category_id'=> 'enim',
            'nomenclature_id'=> 'laborum',
            'start_date'=> 'voluptate',
            'end_date'=> 'eos',
            'page'=> 'autem',
            'per_page'=> 'similique',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/purchase-nomenclatures

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_category_id optional integer, ID Категории номенклатур
nomenclature_id optional integer, ID Номенклатуры
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата
page optional integer, Номер страницы
per_page optional integer, Элементов на странице

Purchase ingredient report

Формирование отчета поступления ингредиентов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/purchase-ingredients?organization_id=quod&trade_point_id=consequuntur&ingredient_category_id=veritatis&ingredient_id=sint&start_date=sequi&end_date=aliquid&page=tenetur&per_page=voluptates" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/purchase-ingredients"
);

let params = {
    "organization_id": "quod",
    "trade_point_id": "consequuntur",
    "ingredient_category_id": "veritatis",
    "ingredient_id": "sint",
    "start_date": "sequi",
    "end_date": "aliquid",
    "page": "tenetur",
    "per_page": "voluptates",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/purchase-ingredients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'quod',
            'trade_point_id'=> 'consequuntur',
            'ingredient_category_id'=> 'veritatis',
            'ingredient_id'=> 'sint',
            'start_date'=> 'sequi',
            'end_date'=> 'aliquid',
            'page'=> 'tenetur',
            'per_page'=> 'voluptates',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/purchase-ingredients

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
ingredient_category_id optional integer, ID Категории ингредиентов
ingredient_id optional integer, ID Ингредиента
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата
page optional integer, Номер страницы
per_page optional integer, Элементов на странице

Stock balance nomenclature report

Формирование отчета остатков товаров по складам

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/stock-balance-nomenclatures?organization_id=quo&trade_point_id=at&nomenclature_category_id=quae&date=qui" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/stock-balance-nomenclatures"
);

let params = {
    "organization_id": "quo",
    "trade_point_id": "at",
    "nomenclature_category_id": "quae",
    "date": "qui",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/stock-balance-nomenclatures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'quo',
            'trade_point_id'=> 'at',
            'nomenclature_category_id'=> 'quae',
            'date'=> 'qui',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/stock-balance-nomenclatures

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_category_id optional integer, ID Категории номенклатур
date required date_format:Y-m-d, Дата

Stock balance ingredient report

Формирование отчета остатков ингредиентов по складам

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/stock-balance-ingredients?organization_id=expedita&trade_point_id=animi&ingredient_category_id=eius&date=quis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/stock-balance-ingredients"
);

let params = {
    "organization_id": "expedita",
    "trade_point_id": "animi",
    "ingredient_category_id": "eius",
    "date": "quis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/stock-balance-ingredients',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'expedita',
            'trade_point_id'=> 'animi',
            'ingredient_category_id'=> 'eius',
            'date'=> 'quis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/stock-balance-ingredients

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
ingredient_category_id optional integer, ID Категории ингредиентов
date required date_format:Y-m-d, Дата

Settlements with contractors report

Формирование отчета по взаиморасчетам

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/settlements-with-contractors?organization_id=quisquam&contractor_id=qui&contractor_group=voluptas&start_date=dignissimos&end_date=consequatur" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/settlements-with-contractors"
);

let params = {
    "organization_id": "quisquam",
    "contractor_id": "qui",
    "contractor_group": "voluptas",
    "start_date": "dignissimos",
    "end_date": "consequatur",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/settlements-with-contractors',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'quisquam',
            'contractor_id'=> 'qui',
            'contractor_group'=> 'voluptas',
            'start_date'=> 'dignissimos',
            'end_date'=> 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/settlements-with-contractors

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
contractor_id optional integer, ID Контрагента
contractor_group optional integer, ID Группы контрагентов
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Sales nomenclature report

Формирование отчета продаж товаров

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/sales-nomenclatures?organization_id=enim&trade_point_id=aperiam&nomenclature_category_id=molestiae&nomenclature_id=dolor&start_date=consequatur&end_date=eos&page=sed&per_page=fuga" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/sales-nomenclatures"
);

let params = {
    "organization_id": "enim",
    "trade_point_id": "aperiam",
    "nomenclature_category_id": "molestiae",
    "nomenclature_id": "dolor",
    "start_date": "consequatur",
    "end_date": "eos",
    "page": "sed",
    "per_page": "fuga",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/sales-nomenclatures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'enim',
            'trade_point_id'=> 'aperiam',
            'nomenclature_category_id'=> 'molestiae',
            'nomenclature_id'=> 'dolor',
            'start_date'=> 'consequatur',
            'end_date'=> 'eos',
            'page'=> 'sed',
            'per_page'=> 'fuga',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/reports/sales-nomenclatures

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_category_id optional integer, ID Категории номенклатур
nomenclature_id optional integer, ID Номенклатуры
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата
page optional integer, Номер страницы
per_page optional integer, Элементов на странице

ABC report

Формирование ABC отчета

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/abc?organization_id=ut&trade_point_id=totam&nomenclature_category_id=ea&start_date=dicta&end_date=porro" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/abc"
);

let params = {
    "organization_id": "ut",
    "trade_point_id": "totam",
    "nomenclature_category_id": "ea",
    "start_date": "dicta",
    "end_date": "porro",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/abc',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'ut',
            'trade_point_id'=> 'totam',
            'nomenclature_category_id'=> 'ea',
            'start_date'=> 'dicta',
            'end_date'=> 'porro',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/abc

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
nomenclature_category_id optional integer, Категория номенклатур
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Cashbook report

Формирование отчета кассовой книгге

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/cashbook?organization_id=officiis&trade_point_id=aut&start_date=temporibus&end_date=suscipit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/cashbook"
);

let params = {
    "organization_id": "officiis",
    "trade_point_id": "aut",
    "start_date": "temporibus",
    "end_date": "suscipit",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/cashbook',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'organization_id'=> 'officiis',
            'trade_point_id'=> 'aut',
            'start_date'=> 'temporibus',
            'end_date'=> 'suscipit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/cashbook

Query Parameters

Parameter Status Description
organization_id optional integer, ID Организации
trade_point_id optional integer, ID Торговой точки
start_date required date_format:Y-m-d, Начальная дата
end_date required date_format:Y-m-d after_or_equal:startDate, Конечная дата

Client's bonuses report

Формирование отчета баланса бонусов клиентов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/reports/clients-bonuses?client_od=possimus&search=sit&date=adipisci" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/reports/clients-bonuses"
);

let params = {
    "client_od": "possimus",
    "search": "sit",
    "date": "adipisci",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/reports/clients-bonuses',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'client_od'=> 'possimus',
            'search'=> 'sit',
            'date'=> 'adipisci',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/reports/clients-bonuses

Query Parameters

Parameter Status Description
client_od optional integer, ID Клиента
search optional string, Поиск по имени и номеру телефона клиента
date required date_format:Y-m-d, Дата

api/v1/integration/site/orders/client-bonus

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/integration/site/orders/client-bonus" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/integration/site/orders/client-bonus"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/integration/site/orders/client-bonus',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (403):

{
    "success": false,
    "data": {
        "message": "Неверный токен"
    }
}

HTTP Request

POST api/v1/integration/site/orders/client-bonus

Получение данных о пользователе

APIs для получения данных о текущем пользователе

Выход пользователя из системы

Удаляет токен пользователя в системе

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/auth/user" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/auth/user"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/auth/user',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "data": "Массив данных о пользователе и его правах"
}

Example response (401):

{
    "message": "inactive user"
}

HTTP Request

GET api/auth/user

Работа с Web-принтером

APIs для работы с Web-принтером

Получение заказа

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/external/order/sed" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"trade_point_id":7}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/external/order/sed"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "trade_point_id": 7
}

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/external/order/sed',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'trade_point_id' => 7,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

{
    "success": false,
    "message": ""
}

HTTP Request

GET api/v1/external/order/{order_id}

URL Parameters

Parameter Status Description
order_id optional integer require Уникальный идентификатор заказа

Body Parameters

Parameter Type Status Description
trade_point_id integer optional require Уникальный идентификатор торговой точки

Get trade point's print options

Получение настроек печати торговой точки

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/external/get-tp-print-options" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"trade_point_id":18}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/external/get-tp-print-options"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "trade_point_id": 18
}

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/external/get-tp-print-options',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'trade_point_id' => 18,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

{
    "success": false,
    "data": {
        "success": false,
        "message": ""
    }
}

HTTP Request

GET api/v1/external/get-tp-print-options

Body Parameters

Parameter Type Status Description
trade_point_id integer optional require Уникальный идентификатор торговой точки

api/v1/external/printer-events

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/external/printer-events" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/external/printer-events"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/external/printer-events',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (404):

{
    "success": false,
    "data": {
        "success": false,
        "message": ""
    }
}

HTTP Request

GET api/v1/external/printer-events

Работа с авторизацией пользователя

APIs для авторизации пользователей в системе используется для операций входа и выхода пользователей

Вход пользователя в систему

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/auth/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"login":"earum","password":"velit"}'
const url = new URL(
    "https://api.prosushi.kz/api/auth/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "login": "earum",
    "password": "velit"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/auth/login',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'login' => 'earum',
            'password' => 'velit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "user": "Массив данных о пользователе и его правах",
    "token": "Сессионный токен"
}

Example response (401):

{
    "message": "inactive user"
}

HTTP Request

POST api/auth/login

Body Parameters

Parameter Type Status Description
login string required Логин пользователя
password string required Пароль пользователя

Выход пользователя из системы

Удаляет токен пользователя в системе

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/auth/logout" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/auth/logout"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/auth/logout',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "message": "logged out"
}

Example response (401):

{
    "message": "inactive user"
}

HTTP Request

POST api/auth/logout

Работа с картой и геолокацией

APIs для управление пользователями используется в интерфейсе глобального администратора системы

Поиск правильного названия улицы по части строки

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/search-street" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"city_id":16,"street_name":"mollitia"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/search-street"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "city_id": 16,
    "street_name": "mollitia"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/search-street',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'city_id' => 16,
            'street_name' => 'mollitia',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{
    "street_name": "Данные о правильном названии улицы в сервисе Yandex map"
}

HTTP Request

POST api/v1/search-street

Body Parameters

Parameter Type Status Description
city_id integer required ID города
street_name string required Название улицы

Работа с товарами

APIs для работы с товарами

api/v1/nomenclature-item-balance

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclature-item-balance" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclature-item-balance"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclature-item-balance',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/nomenclature-item-balance

Получение списка товаров

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclatures?page=voluptas&per_page=aliquid&search=quia" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclatures"
);

let params = {
    "page": "voluptas",
    "per_page": "aliquid",
    "search": "quia",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclatures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'page'=> 'voluptas',
            'per_page'=> 'aliquid',
            'search'=> 'quia',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

null

Example response (401):

{
    "message": "inactive user"
}

HTTP Request

GET api/v1/nomenclatures

Query Parameters

Parameter Status Description
page optional nullable integer Номер страницы
per_page optional nullable integer Количество элементов на странице
search optional nullable string Строка поиска (по описанию и названию)

Создание товара

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/nomenclatures" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"category_id":"minima","unit_id":"quisquam","title":"aliquid","image":"unde","color":"fuga","description":"exercitationem","has_quantity":"quia","is_service":"ex","quantity":"sed","uuid":"vel","ingredients":[{"ingredient_id":"rerum","amount":"molestias"}],"nomenclatures":[{"nomenclature_nomenclature_id":"veniam","amount":"voluptatem"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclatures"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "category_id": "minima",
    "unit_id": "quisquam",
    "title": "aliquid",
    "image": "unde",
    "color": "fuga",
    "description": "exercitationem",
    "has_quantity": "quia",
    "is_service": "ex",
    "quantity": "sed",
    "uuid": "vel",
    "ingredients": [
        {
            "ingredient_id": "rerum",
            "amount": "molestias"
        }
    ],
    "nomenclatures": [
        {
            "nomenclature_nomenclature_id": "veniam",
            "amount": "voluptatem"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/nomenclatures',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'category_id' => 'minima',
            'unit_id' => 'quisquam',
            'title' => 'aliquid',
            'image' => 'unde',
            'color' => 'fuga',
            'description' => 'exercitationem',
            'has_quantity' => 'quia',
            'is_service' => 'ex',
            'quantity' => 'sed',
            'uuid' => 'vel',
            'ingredients' => [
                [
                    'ingredient_id' => 'rerum',
                    'amount' => 'molestias',
                ],
            ],
            'nomenclatures' => [
                [
                    'nomenclature_nomenclature_id' => 'veniam',
                    'amount' => 'voluptatem',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/nomenclatures

Body Parameters

Parameter Type Status Description
category_id required optional integer ID категории товара
unit_id required optional integer ID ед. измерения товара
title required optional string Название
image nullable optional string Имя картинки товара
color required optional string Цвет
description nullable optional string Описание
has_quantity required optional boolean Признак наличия количества
is_service required optional boolean Тип (услуга / товар)
quantity nullable optional integer Количество (если исчисляемое)
uuid required optional uuid UUID
ingredients required optional array Состав - ингредиенты
ingredients.*.ingredient_id required optional integer ID ингредиента
ingredients.*.amount required optional integer Количество ингредиента
nomenclatures required optional array Состав - товары
nomenclatures.*.nomenclature_nomenclature_id required optional integer ID товара
nomenclatures.*.amount required optional integer Количество товара

Получение товара по ID

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/nomenclatures/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclatures/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/nomenclatures/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/nomenclatures/{nomenclature}

Обновление товара

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/nomenclatures/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"category_id":"et","unit_id":"amet","title":"odit","image":"cupiditate","color":"iste","description":"doloribus","has_quantity":"magnam","is_service":"repellendus","quantity":"aut","uuid":"ut","ingredients":[{"ingredient_id":"quis","amount":"dolores"}],"nomenclatures":[{"nomenclature_nomenclature_id":"culpa","amount":"officia"}]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclatures/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "category_id": "et",
    "unit_id": "amet",
    "title": "odit",
    "image": "cupiditate",
    "color": "iste",
    "description": "doloribus",
    "has_quantity": "magnam",
    "is_service": "repellendus",
    "quantity": "aut",
    "uuid": "ut",
    "ingredients": [
        {
            "ingredient_id": "quis",
            "amount": "dolores"
        }
    ],
    "nomenclatures": [
        {
            "nomenclature_nomenclature_id": "culpa",
            "amount": "officia"
        }
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/nomenclatures/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'category_id' => 'et',
            'unit_id' => 'amet',
            'title' => 'odit',
            'image' => 'cupiditate',
            'color' => 'iste',
            'description' => 'doloribus',
            'has_quantity' => 'magnam',
            'is_service' => 'repellendus',
            'quantity' => 'aut',
            'uuid' => 'ut',
            'ingredients' => [
                [
                    'ingredient_id' => 'quis',
                    'amount' => 'dolores',
                ],
            ],
            'nomenclatures' => [
                [
                    'nomenclature_nomenclature_id' => 'culpa',
                    'amount' => 'officia',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

HTTP Request

PUT api/v1/nomenclatures/{nomenclature}

PATCH api/v1/nomenclatures/{nomenclature}

Body Parameters

Parameter Type Status Description
category_id required optional integer ID категории товара
unit_id required optional integer ID ед. измерения товара
title required optional string Название
image nullable optional string Имя картинки товара
color required optional string Цвет
description nullable optional string Описание
has_quantity required optional boolean Признак наличия количества
is_service required optional boolean Тип (услуга / товар)
quantity nullable optional integer Количество (если исчисляемое)
uuid required optional uuid UUID
ingredients required optional array Состав - ингредиенты
ingredients.*.ingredient_id required optional integer ID ингредиента
ingredients.*.amount required optional integer Количество ингредиента
nomenclatures required optional array Состав - товары
nomenclatures.*.nomenclature_nomenclature_id required optional integer ID товара
nomenclatures.*.amount required optional integer Количество товара

api/v1/nomenclatures/{nomenclature}

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/nomenclatures/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/nomenclatures/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/nomenclatures/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

DELETE api/v1/nomenclatures/{nomenclature}

Справочники/References

APIs для справочников

Workshift reference GET

Получение списка смен на неделю

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/workshifts?date=libero" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/workshifts"
);

let params = {
    "date": "libero",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/workshifts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'date'=> 'libero',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/workshifts

Query Parameters

Parameter Status Description
date required date_format:Y-m-d Дата для начала списка смен

Workshift reference POST

Создание смены

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/workshifts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"quod","uuid":"consequatur","employees":["provident"]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/workshifts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "quod",
    "uuid": "consequatur",
    "employees": [
        "provident"
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/workshifts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'quod',
            'uuid' => 'consequatur',
            'employees' => [
                'provident',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/workshifts

Body Parameters

Parameter Type Status Description
date required optional date_format:Y-m-d Дата (день) смены
uuid required optional uuid UUID
employees required optional array min:1 Массив ID сотрудников (мин. 1)
employees.* required optional integer ID сотрудника

Workshift reference GET/ID

Получение смены

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/workshifts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/workshifts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/workshifts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/workshifts/{workshift}

URL Parameters

Parameter Status Description
id required ID смены

Workshift reference PATCH

Создание смены

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/workshifts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"date":"molestiae","uuid":"aut","employees":["aut"]}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/workshifts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "date": "molestiae",
    "uuid": "aut",
    "employees": [
        "aut"
    ]
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/workshifts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'date' => 'molestiae',
            'uuid' => 'aut',
            'employees' => [
                'aut',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/workshifts/{workshift}

PATCH api/v1/workshifts/{workshift}

URL Parameters

Parameter Status Description
id required ID смены

Body Parameters

Parameter Type Status Description
date required optional date_format:Y-m-d Дата (день) смены
uuid required optional uuid UUID
employees required optional array min:1 Массив ID сотрудников (мин. 1)
employees.* required optional integer ID сотрудника

Workshift reference DELETE

Удаление смены

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/workshifts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/workshifts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/workshifts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/workshifts/{workshift}

URL Parameters

Parameter Status Description
id required ID смены

Cashbox reference GET

Получение списка касс

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cashboxes?per_page=quaerat&page=aut&search=ad" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashboxes"
);

let params = {
    "per_page": "quaerat",
    "page": "aut",
    "search": "ad",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cashboxes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'per_page'=> 'quaerat',
            'page'=> 'aut',
            'search'=> 'ad',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cashboxes

Query Parameters

Parameter Status Description
per_page required integer, Элементов на странице
page required integer, Номер страницы
search optional string, Поиск

Cashbox reference POST

Создание кассы

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cashboxes" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"title":"esse","comment":"aut","payment_option_id":17,"uuid":"velit"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashboxes"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "title": "esse",
    "comment": "aut",
    "payment_option_id": 17,
    "uuid": "velit"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cashboxes',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'title' => 'esse',
            'comment' => 'aut',
            'payment_option_id' => 17,
            'uuid' => 'velit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/cashboxes

Body Parameters

Parameter Type Status Description
title string required Название Кассы
comment string optional Комментарий
payment_option_id integer optional nullable Связанный способ оплаты
uuid uuid required uuid

Cashbox reference GET/ID

Получение кассы

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cashboxes/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashboxes/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cashboxes/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cashboxes/{cashbox}

URL Parameters

Parameter Status Description
id required ID Кассы

Cashbox reference PATCH

Обновление кассы

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/cashboxes/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"title":"cum","payment_option_id":3,"comment":"quia","uuid":"pariatur"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashboxes/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "title": "cum",
    "payment_option_id": 3,
    "comment": "quia",
    "uuid": "pariatur"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/cashboxes/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'title' => 'cum',
            'payment_option_id' => 3,
            'comment' => 'quia',
            'uuid' => 'pariatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/cashboxes/{cashbox}

PATCH api/v1/cashboxes/{cashbox}

URL Parameters

Parameter Status Description
id required ID Кассы

Body Parameters

Parameter Type Status Description
title string required Название Кассы
payment_option_id integer optional nullable Связанный способ оплаты
comment string optional Комментарий
uuid uuid required uuid

Cashbox reference DELETE

Удаление кассы

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/cashboxes/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cashboxes/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/cashboxes/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/cashboxes/{cashbox}

URL Parameters

Parameter Status Description
id required ID Кассы

api/v1/cities-list

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cities-list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cities-list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cities-list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/cities-list

Address reference GET

Получение списка адресов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/addresses?per_page=voluptatibus&page=laudantium&search=tempore" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/addresses"
);

let params = {
    "per_page": "voluptatibus",
    "page": "laudantium",
    "search": "tempore",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/addresses',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'per_page'=> 'voluptatibus',
            'page'=> 'laudantium',
            'search'=> 'tempore',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/addresses

Query Parameters

Parameter Status Description
per_page required integer, Элементов на странице
page required integer, Номер страницы
search optional string, Поиск

Address reference POST

Создание адреса

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/addresses" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"city_id":17,"street":"a","coordinates":{"latitude":"laudantium","longitude":"quo"},"uuid":"ut"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/addresses"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "city_id": 17,
    "street": "a",
    "coordinates": {
        "latitude": "laudantium",
        "longitude": "quo"
    },
    "uuid": "ut"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/addresses',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'city_id' => 17,
            'street' => 'a',
            'coordinates' => [
                'latitude' => 'laudantium',
                'longitude' => 'quo',
            ],
            'uuid' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/addresses

Body Parameters

Parameter Type Status Description
city_id integer required ID Города
street string required Название дома
coordinates.latitude numeric required Широта
coordinates.longitude numeric required Долгота
uuid uuid required uuid

Address reference GET/ID

Получение адреса

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/addresses/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/addresses/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/addresses/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/addresses/{address}

URL Parameters

Parameter Status Description
id required ID улицы

Address reference PATCH

Обновление адреса

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/addresses/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"city_id":9,"street":"amet","coordinates":{"latitude":"cupiditate","longitude":"vitae"},"uuid":"voluptate"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/addresses/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "city_id": 9,
    "street": "amet",
    "coordinates": {
        "latitude": "cupiditate",
        "longitude": "vitae"
    },
    "uuid": "voluptate"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/addresses/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'city_id' => 9,
            'street' => 'amet',
            'coordinates' => [
                'latitude' => 'cupiditate',
                'longitude' => 'vitae',
            ],
            'uuid' => 'voluptate',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/addresses/{address}

PATCH api/v1/addresses/{address}

URL Parameters

Parameter Status Description
id required ID улицы

Body Parameters

Parameter Type Status Description
city_id integer required ID Города
street string required Название дома
coordinates.latitude numeric required Широта
coordinates.longitude numeric required Долгота
uuid uuid required uuid

Address reference DELETE

Удаление адреса

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/addresses/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/addresses/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/addresses/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/addresses/{address}

URL Parameters

Parameter Status Description
id required ID улицы

City reference GET

Получение списка городов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cities?per_page=dolores&page=dicta&search=vero" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cities"
);

let params = {
    "per_page": "dolores",
    "page": "dicta",
    "search": "vero",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cities',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'per_page'=> 'dolores',
            'page'=> 'dicta',
            'search'=> 'vero',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cities

Query Parameters

Parameter Status Description
per_page required integer, Элементов на странице
page required integer, Номер страницы
search optional string, Поиск

City reference POST

Создание города

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/cities" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"region_id":5,"title":"aliquam","uuid":"eos"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cities"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "region_id": 5,
    "title": "aliquam",
    "uuid": "eos"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/cities',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'region_id' => 5,
            'title' => 'aliquam',
            'uuid' => 'eos',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/cities

Body Parameters

Parameter Type Status Description
region_id integer required ID Региона
title string required Название Города
uuid uuid required uuid

City reference GET/ID

Получение города

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/cities/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cities/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/cities/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/cities/{city}

URL Parameters

Parameter Status Description
id required ID Города

City reference PATCH

Обновление города

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/cities/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"region_id":8,"title":"ut","uuid":"id"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/cities/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "region_id": 8,
    "title": "ut",
    "uuid": "id"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/cities/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'region_id' => 8,
            'title' => 'ut',
            'uuid' => 'id',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/cities/{city}

PATCH api/v1/cities/{city}

URL Parameters

Parameter Status Description
id required ID Города

Body Parameters

Parameter Type Status Description
region_id integer required ID Региона
title string required Название Города
uuid uuid required uuid

City reference DELETE

Удаление города

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/cities/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/cities/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/cities/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/cities/{city}

URL Parameters

Parameter Status Description
id required ID Города

Country reference GET

Получение списка стран

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/countries?per_page=quod&page=laboriosam&search=minima" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/countries"
);

let params = {
    "per_page": "quod",
    "page": "laboriosam",
    "search": "minima",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/countries',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'per_page'=> 'quod',
            'page'=> 'laboriosam',
            'search'=> 'minima',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/countries

Query Parameters

Parameter Status Description
per_page required integer, Элементов на странице
page required integer, Номер страницы
search optional string, Поиск

Country reference POST

Создание страны

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/countries" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"title":"velit","uuid":"sint"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/countries"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "title": "velit",
    "uuid": "sint"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/countries',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'title' => 'velit',
            'uuid' => 'sint',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/countries

Body Parameters

Parameter Type Status Description
title string required Название Страны
uuid uuid required uuid

Country reference GET/ID

Получение страны

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/countries/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/countries/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/countries/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/countries/{country}

URL Parameters

Parameter Status Description
id required ID Страны

Country reference PATCH

Обновление страны

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/countries/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"title":"delectus","uuid":"nemo"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/countries/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "title": "delectus",
    "uuid": "nemo"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/countries/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'title' => 'delectus',
            'uuid' => 'nemo',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/countries/{country}

PATCH api/v1/countries/{country}

URL Parameters

Parameter Status Description
id required ID Страны

Body Parameters

Parameter Type Status Description
title string required Название Страны
uuid uuid required uuid

Country reference DELETE

Удаление страны

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/countries/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/countries/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/countries/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/countries/{country}

URL Parameters

Parameter Status Description
id required ID Страны

Region reference GET

Получение списка регионов

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/regions?per_page=voluptatum&page=dicta&search=placeat" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/regions"
);

let params = {
    "per_page": "voluptatum",
    "page": "dicta",
    "search": "placeat",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/regions',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'query' => [
            'per_page'=> 'voluptatum',
            'page'=> 'dicta',
            'search'=> 'placeat',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/regions

Query Parameters

Parameter Status Description
per_page required integer, Элементов на странице
page required integer, Номер страницы
search optional string, Поиск

Region reference POST

Создание региона

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/regions" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"country_id":4,"title":"quod","uuid":"necessitatibus"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/regions"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "country_id": 4,
    "title": "quod",
    "uuid": "necessitatibus"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/regions',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'country_id' => 4,
            'title' => 'quod',
            'uuid' => 'necessitatibus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

POST api/v1/regions

Body Parameters

Parameter Type Status Description
country_id integer required ID Страны
title string required Название Региона
uuid uuid required uuid

Region reference GET/ID

Получение региона

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/regions/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/regions/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/regions/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

GET api/v1/regions/{region}

URL Parameters

Parameter Status Description
id required ID региона

Region reference PATCH

Обновление региона

Example request:

curl -X PUT \
    "https://api.prosushi.kz/api/v1/regions/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"country_id":8,"title":"vero","uuid":"harum"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/regions/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "country_id": 8,
    "title": "vero",
    "uuid": "harum"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api.prosushi.kz/api/v1/regions/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'country_id' => 8,
            'title' => 'vero',
            'uuid' => 'harum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

PUT api/v1/regions/{region}

PATCH api/v1/regions/{region}

URL Parameters

Parameter Status Description
id required ID региона

Body Parameters

Parameter Type Status Description
country_id integer required ID Страны
title string required Название Региона
uuid uuid required uuid

Region reference DELETE

Удаление региона

Example request:

curl -X DELETE \
    "https://api.prosushi.kz/api/v1/regions/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/regions/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api.prosushi.kz/api/v1/regions/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200):

{}

HTTP Request

DELETE api/v1/regions/{region}

URL Parameters

Parameter Status Description
id required ID региона

Управление пользователями

APIs для управление пользователями используется в интерфейсе глобального администратора системы

Получить список пользователей

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/admin/users" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1" \
    -d '{"per_page":17,"page":15,"search":"labore"}'
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/users"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

let body = {
    "per_page": 17,
    "page": 15,
    "search": "labore"
}

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/admin/users',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
        'json' => [
            'per_page' => 17,
            'page' => 15,
            'search' => 'labore',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/admin/users

Body Parameters

Parameter Type Status Description
per_page integer required Элементов на странице, минимум 1
page integer required Номер страницы, минимум 1
search string optional nullable Строка поиска

api/v1/admin/accounts/{account}

Example request:

curl -X GET \
    -G "https://api.prosushi.kz/api/v1/admin/accounts/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/accounts/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api.prosushi.kz/api/v1/admin/accounts/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

GET api/v1/admin/accounts/{account}

api/v1/admin/accounts

Example request:

curl -X POST \
    "https://api.prosushi.kz/api/v1/admin/accounts" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -H "Api-Version: v1"
const url = new URL(
    "https://api.prosushi.kz/api/v1/admin/accounts"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
    "Api-Version": "v1",
};

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

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api.prosushi.kz/api/v1/admin/accounts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
            'Api-Version' => 'v1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

{
    "message": "Unauthenticated."
}

HTTP Request

POST api/v1/admin/accounts