Модель Suppliers(поставщик или получатель)
Модель Suppliers — содержит основную информацию о поставщике или получателе.
* @property integer $id // ID контрагента
* @property string $contact_person // Контактное лицо
* @property string $company_name // Название компании
* @property integer $city_id // ID города
* @property string $address // Адрес
* @property string $phone // Телефон
* @property string $mail // Емейл
* @property string $inn // ИИН
* @property string $bank_ik // БИК
* @property string $bank_account // Кор. счет
* @property string $bank_account_corr // Расчетный счет
* @property string $bank_name // Наименование банка
* @property enum('legal_person','individual_person') $person_type // Лицо (юридическое, физическое)Примеры запросов
Выборка по ID записи контрагента
curl --location --request GET 'https://{DOMAIN NAME}/rest/api/Suppliers/4' \
--header 'X-REST-API-KEY: {REST API KEY}' \
--header 'Content-Type: application/json'Ответ сервера
{
"success": true,
"message": "Record Retrieved Successfully",
"data": {
"totalCount": 1,
"suppliers": {
"id": "4",
"contact_person": "Тестов Тест Тестович",
"company_name": "ЧП ТЕСТ",
"city_id": "251",
"address": "ул. Тестовая",
"phone": "345543",
"mail": "test@fortest.test",
"inn": null,
"bank_ik": null,
"bank_account": null,
"bank_account_corr": null,
"bank_name": null,
"person_type": "legal_person",
"view_in_modules": "prihod,rashod,cassarashod",
"status": "ACTIVE",
"note": null
}
}
}