API:Создание номенклатуры в справочнике товаров: различия между версиями
Перейти к навигации
Перейти к поиску
Merkulov (обсуждение | вклад) |
Merkulov (обсуждение | вклад) |
||
Строка 88: | Строка 88: | ||
|content-right= | |content-right= | ||
<syntaxhighlight lang="JSON"> | <syntaxhighlight lang="JSON"> | ||
{ | { | ||
created: | "item": { | ||
"adultsOnly": true, | |||
"application": "KASSA", | |||
"barcode": "string", | |||
"barcodes": [ | |||
"string" | |||
], | |||
"blockedNomenclatureList": [ | |||
{ | |||
"created": 0, | |||
"nomenclatureId": 0, | |||
"organizationId": "string", | |||
"tradeObjectId": "string" | |||
} | |||
], | |||
"changed": 0, | |||
"code": "string", | |||
"compositeGoods": [ | |||
{ | |||
"compositeType": "INGREDIENT", | |||
"extCode": "string", | |||
"linkId": 0, | |||
"nomenclatureId": 0, | |||
"parentId": 0, | |||
"price": 0, | |||
"quantity": 0 | |||
} | |||
], | |||
"container": true, | |||
"contractorActivityType": "AGENT", | |||
"contractorId": 0, | |||
"countryCode": "string", | |||
"created": 0, | |||
"custom": true, | |||
"customsDeclaration": "string", | |||
"description": "string", | |||
"externalCode": "string", | |||
"externalId": "string", | |||
"focused": true, | |||
"grouped": true, | |||
"gtin": "string", | |||
"markType": "UNKNOWN", | |||
"name": "string", | |||
"nomenclatureFeatures": [ | |||
{ | |||
"created": 0, | |||
"featureId": 0, | |||
"id": 0, | |||
"nomenclatureId": 0, | |||
"value": "string" | |||
} | |||
], | |||
"orgMemberPoints": 0, | |||
"organizationId": "string", | |||
"parentId": 0, | |||
"paymentSubject": "PRODUCT", | |||
"picture": 0, | |||
"picturesIds": [ | |||
0 | |||
], | |||
"pluCode": "string", | |||
"purchasePrice": 0, | |||
"sellingPrice": 0, | |||
"template": { | |||
"fields": [ | |||
{ | |||
"available": [ | |||
"string" | |||
organizationId: | ], | ||
"defaultValue": "string", | |||
"factor": 0, | |||
"forPrint": true, | |||
"inputName": "string", | |||
"mask": "string", | |||
"minimumValue": "string", | |||
"name": "string", | |||
"outType": "PRICE", | |||
"prefix": "string", | |||
"regexp": "string", | |||
"replace": true, | |||
"required": true, | |||
"type": "STRING", | |||
"value": "string" | |||
} | |||
] | |||
}, | |||
"tradeObjectRelations": [ | |||
{ | |||
"nomenclatureId": 0, | |||
"orgMemberPoints": 0, | |||
"organizationId": "string", | |||
"sellingPrice": 0, | |||
"tradeObjectId": "string" | |||
} | |||
], | |||
"type": "DEFAULT", | |||
"unitCode": 0, | |||
"vatId": 0, | |||
"vatValue": 0, | |||
"vendorCode": "string", | |||
"visible": true, | |||
"volume": 0, | |||
"weighted": true | |||
}, | |||
"organizationId": "string" | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|}}<br> | |}}<br> |
Версия 18:20, 25 апреля 2022
Общие сведения
API (Application Programming Interface или интерфейс программирования приложений) — совокупность инструментов и функций в виде интерфейса для создания новых приложений и интеграции с ИС. Все запросы к сервису БИФИТ Бизнес осуществляются при помощи авторотационного токена - access_token. Для генерации токена, необходимо пройти процедуру авторизации OAuth2. Для этого необходимо использовать логин/пароль зарегистрированной учетной записи.
Создание номенклатурной позиции в справочнике товаров
Запрос | POST |
URL: https://kassa.bifit.com/cashdesk-api/v1/protected/nomenclatures | https://kassa.bifit.com/cashdesk-api/v1/protected/nomenclatures |
Request Body | type: raw (JSON) |
|
{
"item": {
"adultsOnly": true,
"application": "KASSA",
"barcode": "string",
"barcodes": [
"string"
],
"blockedNomenclatureList": [
{
"created": 0,
"nomenclatureId": 0,
"organizationId": "string",
"tradeObjectId": "string"
}
],
"changed": 0,
"code": "string",
"compositeGoods": [
{
"compositeType": "INGREDIENT",
"extCode": "string",
"linkId": 0,
"nomenclatureId": 0,
"parentId": 0,
"price": 0,
"quantity": 0
}
],
"container": true,
"contractorActivityType": "AGENT",
"contractorId": 0,
"countryCode": "string",
"created": 0,
"custom": true,
"customsDeclaration": "string",
"description": "string",
"externalCode": "string",
"externalId": "string",
"focused": true,
"grouped": true,
"gtin": "string",
"markType": "UNKNOWN",
"name": "string",
"nomenclatureFeatures": [
{
"created": 0,
"featureId": 0,
"id": 0,
"nomenclatureId": 0,
"value": "string"
}
],
"orgMemberPoints": 0,
"organizationId": "string",
"parentId": 0,
"paymentSubject": "PRODUCT",
"picture": 0,
"picturesIds": [
0
],
"pluCode": "string",
"purchasePrice": 0,
"sellingPrice": 0,
"template": {
"fields": [
{
"available": [
"string"
],
"defaultValue": "string",
"factor": 0,
"forPrint": true,
"inputName": "string",
"mask": "string",
"minimumValue": "string",
"name": "string",
"outType": "PRICE",
"prefix": "string",
"regexp": "string",
"replace": true,
"required": true,
"type": "STRING",
"value": "string"
}
]
},
"tradeObjectRelations": [
{
"nomenclatureId": 0,
"orgMemberPoints": 0,
"organizationId": "string",
"sellingPrice": 0,
"tradeObjectId": "string"
}
],
"type": "DEFAULT",
"unitCode": 0,
"vatId": 0,
"vatValue": 0,
"vendorCode": "string",
"visible": true,
"volume": 0,
"weighted": true
},
"organizationId": "string"
}
|