1. Шинное производство

1.1. Пример создания заказа с серийными номерами для шинного производства:

1.1.1. Запрос:

POST /api/v2/tires/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU0VMRl9NQURFIiwKICAgICAgInNlcmlhbE51bWJlcnMiOiBbCiAgICAgICAgIlhUNmM4NGUzOWdYalciLAogICAgICAgICIya1kzOU9tZG1IVHd4IiwKICAgICAgICAiWDRlYnNzSlB6bm5MZyIKICAgICAgXSwKICAgICAgInN0aWNrZXJJZCI6IDEsCiAgICAgICJ0ZW1wbGF0ZUlkIjogMQogICAgfQogIF0sCiAgInJlbGVhc2VNZXRob2RUeXBlIjogIklNUE9SVCIsCiAgInJlbWFpbnNBdmFpbGFibGUiOiB0cnVlLAogICJyZW1haW5zSW1wb3J0IjogdHJ1ZSwKICAic2VydmljZVByb3ZpZGVySWQiOiAic3RyaW5nIgp9oI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JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=
Host: localhost:8080
Content-Length: 381

{
  "contactPerson" : "contactPerson",
  "releaseMethodType" : "PRODUCTION",
  "createMethodType" : "SELF_MADE",
  "contractNumber" : "contractNumber",
  "contractDate" : "2019-12-31",
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "kbrG2mfDjnLJp", "wkQGjzyXrY2bY" ],
    "templateId" : 7
  } ]
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

products[]

Array

Product list (Список товаров)

products[].gtin

String

Product GTIN (GTIN товара)

products[].quantity

Number

Requested Identification Code quantity [Required only if serialNumberType = OPERATOR] (Количество КМ [Обязателен, если serialNumberType = SELF_MADE])

products[].serialNumberType

String

Serial number source type (Способ формирования индивидуального серийного номера) (SELF_MADE, OPERATOR)

products[].serialNumbers[]

Array

Serial numbers [Required only if serialNumberType = SELF_MADE] (Список серийных номеров [Обязателен, если serialNumberType = SELF_MADE])

products[].templateId

Number

Identification Code Template ID (Идентификатор шаблона КМ)

1.1.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 148

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "orderId" : "0ba46991-3e84-48fb-ad08-b01bb069b8ce",
  "expectedCompleteTimestamp" : 120000
}
Path Type Description

orderId

String

Unique identifier of a business order for issuing MC (Уникальный идентификатор бизнес-заказа на эмиссию КМ

expectedCompleteTimestamp

Number

Time of planned order execution in ms (Время планируемого выполнения заказа в мс)

omsId

String

OMS Id (Идентификатор СУЗ)

1.1.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/tires/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -H 'X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU0VMRl9NQURFIiwKICAgICAgInNlcmlhbE51bWJlcnMiOiBbCiAgICAgICAgIlhUNmM4NGUzOWdYalciLAogICAgICAgICIya1kzOU9tZG1IVHd4IiwKICAgICAgICAiWDRlYnNzSlB6bm5MZyIKICAgICAgXSwKICAgICAgInN0aWNrZXJJZCI6IDEsCiAgICAgICJ0ZW1wbGF0ZUlkIjogMQogICAgfQogIF0sCiAgInJlbGVhc2VNZXRob2RUeXBlIjogIklNUE9SVCIsCiAgInJlbWFpbnNBdmFpbGFibGUiOiB0cnVlLAogICJyZW1haW5zSW1wb3J0IjogdHJ1ZSwKICAic2VydmljZVByb3ZpZGVySWQiOiAic3RyaW5nIgp9oIIW0TCCBRQwggTBoAMCAQICEE5tR4sm8n1lf3aOAl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iF7IUiYfLk=' \
    -d '{
  "contactPerson" : "contactPerson",
  "releaseMethodType" : "PRODUCTION",
  "createMethodType" : "SELF_MADE",
  "contractNumber" : "contractNumber",
  "contractDate" : "2019-12-31",
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "kbrG2mfDjnLJp", "wkQGjzyXrY2bY" ],
    "templateId" : 7
  } ]
}'

2. Молочное производство

2.1. Пример создания заказа с серийными номерами для молочного производства:

2.1.1. Запрос:

POST /api/v2/milk/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU0VMRl9NQURFIiwKICAgICAgInNlcmlhbE51bWJlcnMiOiBbCiAgICAgICAgIlhUNmM4NGUzOWdYalciLAogICAgICAgICIya1kzOU9tZG1IVHd4IiwKICAgICAgICAiWDRlYnNzSlB6bm5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QvC3Qn9GA0L4iMWwwagYDVQQDDGPQntCx0YnQtdGB0YLQstC+INGBINC+0LPRgNCw0L3QuNGH0LXQvdC90L7QuSDQvtGC0LLQtdGC0YHRgtCy0LXQvdC90L7RgdGC0YzRjiAi0KHQtdGA0YLRg9C8LdCf0YDQviICEQIiBjsBJKw4hEorKxwJFaX4MAwGCCqFAwcBAQEBBQAEQPuofhebYK2CUESVFY9YAX2MuSRcymdci2nGy91JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=
Host: localhost:8080
Content-Length: 294

{
  "contactPerson" : "contactPerson",
  "releaseMethodType" : "PRODUCTION",
  "createMethodType" : "SELF_MADE",
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "eqSJT", "GcNKR" ],
    "templateId" : 20
  } ]
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

products[]

Array

Product list (Список товаров)

products[].gtin

String

Product GTIN (GTIN товара)

products[].quantity

Number

Requested Identification Code quantity [Required only if serialNumberType = OPERATOR] (Количество КМ [Обязателен, если serialNumberType = SELF_MADE])

products[].serialNumberType

String

Serial number source type (Способ формирования индивидуального серийного номера) (SELF_MADE, OPERATOR)

products[].serialNumbers[]

Array

Serial numbers [Required only if serialNumberType = SELF_MADE] (Список серийных номеров [Обязателен, если serialNumberType = SELF_MADE])

products[].templateId

Number

Identification Code Template ID (Идентификатор шаблона КМ)

2.1.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 148

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "orderId" : "a9c12b4d-372c-4c41-8bd8-39db8885c453",
  "expectedCompleteTimestamp" : 120000
}
Path Type Description

orderId

String

Unique identifier of a business order for issuing MC (Уникальный идентификатор бизнес-заказа на эмиссию КМ

expectedCompleteTimestamp

Number

Time of planned order execution in ms (Время планируемого выполнения заказа в мс)

omsId

String

OMS Id (Идентификатор СУЗ)

2.1.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/milk/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -H 'X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU0VMRl9NQURFIiwKICAgICAgInNlcmlhbE51bWJlcnMiOiBbCiAgICAgICAgIlhUNmM4NGUzOWdYalciLAogICAgICAgICIya1kzOU9tZG1IVHd4IiwKICAgICAgICAiWDRlYnNzSlB6bm5MZyIKICAgICAgXSwKICAgICAgInN0aWNrZXJJZCI6IDEsCiAgICAgICJ0ZW1wbGF0ZUlkIjogMQogICAgfQogIF0sCiAgInJlb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LLQtdGC0YHRgtCy0LXQvdC90L7RgdGC0YzRjiAi0KHQtdGA0YLRg9C8LdCf0YDQviICEQIiBjsBJKw4hEorKxwJFaX4MAwGCCqFAwcBAQEBBQAEQPuofhebYK2CUESVFY9YAX2MuSRcymdci2nGy91JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=' \
    -d '{
  "contactPerson" : "contactPerson",
  "releaseMethodType" : "PRODUCTION",
  "createMethodType" : "SELF_MADE",
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "eqSJT", "GcNKR" ],
    "templateId" : 20
  } ]
}'

2.2. Пример отправки отчета об агрегации для молочного производства:

2.2.1. Запрос:

POST /api/v2/milk/aggregation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Content-Length: 418

{
  "aggregationUnits" : [ {
    "aggregatedItemsCount" : 5,
    "aggregationType" : "AGGREGATION",
    "aggregationUnitCapacity" : 5,
    "sntins" : [ "010133456789433921EmkZZ2IiQPn99", "010133456789433921PHifAB5ECxets", "010133456789433921CJnw59i11y8IQ", "010133456789433921F5so3rboErNLG", "010133456789433921RDq3p42eRsWIM" ],
    "unitSerialNumber" : "830615538072771506"
  } ],
  "participantId" : "007731376812"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

aggregationUnits[]

Array

Array of aggregation unit (Массив единиц агрегации)

aggregationUnits[].aggregatedItemsCount

Number

Number of goods actually aggregated in the unit (Фактически упаковано)

aggregationUnits[].aggregationType

String

Aggregation operation type (Тип агрегации) (AGGREGATION, UPDATE)

aggregationUnits[].aggregationUnitCapacity

Number

Aggregation Unit Capacity (Емкость упаковки)

aggregationUnits[].sntins[]

Array

List of the Aggregated Identification Codes (Список агрегированных КМ)

aggregationUnits[].unitSerialNumber

String

Identification Code of Aggregation Unit (КМ агрегата)

participantId

String

Taxpayer Identification Number (Идентификационный номер налогоплательщика)

2.2.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 109

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "771d6c12-6150-42bf-a1fb-368066abb41f"
}
Path Type Description

reportId

String

Unique OMS Report ID (Уникальный идентификатор отчета в СУЗ)

omsId

String

OMS Id (Идентификатор СУЗ)

2.2.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/milk/aggregation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d '{
  "aggregationUnits" : [ {
    "aggregatedItemsCount" : 5,
    "aggregationType" : "AGGREGATION",
    "aggregationUnitCapacity" : 5,
    "sntins" : [ "010133456789433921EmkZZ2IiQPn99", "010133456789433921PHifAB5ECxets", "010133456789433921CJnw59i11y8IQ", "010133456789433921F5so3rboErNLG", "010133456789433921RDq3p42eRsWIM" ],
    "unitSerialNumber" : "830615538072771506"
  } ],
  "participantId" : "007731376812"
}'

2.3. Пример отправки отчета об использовании для молочного производства:

2.3.1. Запрос:

POST /api/v2/milk/utilisation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Content-Length: 472

{
  "sntins" : [ "010133456789433921EKG4OWn9bM5aa\u001D1721022593b43a", "010133456789433921EKG4OWn9bM5ab\u001D1721022593b43b", "010133456789433921EKG4OWn9bM5ac\u001D1721022593b43c", "010133456789433921EKG4OWn9bM5ad\u001D1721022593b43d", "010133456789433921EKG4OWn9bM5ae\u001D1721022593b43e" ],
  "usageType" : "USED_FOR_PRODUCTION",
  "accompanyingDocument" : "6bc12024-8754-4608-90f4-d538ea5940f1",
  "expDate" : "210225",
  "usedInProduction" : 0,
  "cisType" : "UNIT"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

sntins[]

Array

List of Utilized Identification Codes (Информация об использованных КМ)

usageType

String

Usage type (Тип использования) (USED_FOR_PRODUCTION, SENT_TO_PRINTER, PRINTED, PRINTER_LOST, VERIFIED)

2.3.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 109

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "2cf3f324-d8f5-45b5-a3b8-28b1cf941446"
}
Path Type Description

reportId

String

Unique OMS Report ID (Уникальный идентификатор отчета в СУЗ)

omsId

String

OMS Id (Идентификатор СУЗ)

2.3.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/milk/utilisation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d '{
  "sntins" : [ "010133456789433921EKG4OWn9bM5aa\u001D1721022593b43a", "010133456789433921EKG4OWn9bM5ab\u001D1721022593b43b", "010133456789433921EKG4OWn9bM5ac\u001D1721022593b43c", "010133456789433921EKG4OWn9bM5ad\u001D1721022593b43d", "010133456789433921EKG4OWn9bM5ae\u001D1721022593b43e" ],
  "usageType" : "USED_FOR_PRODUCTION",
  "accompanyingDocument" : "6bc12024-8754-4608-90f4-d538ea5940f1",
  "expDate" : "210225",
  "usedInProduction" : 0,
  "cisType" : "UNIT"
}'

3. Легкая промышленность

3.1. Пример создания заказа с серийными номерами для легкой промышленности:

3.1.1. Запрос:

POST /api/v2/light/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU0VMRl9NQURFIiwKICAgICAgInNlcmlhbE51bWJlcnMiOiBbCiAgICAgICAgIlhUNmM4NGUzOWdYalciLAogICAgICAgICIya1kzOU9tZG1IVHd4IiwKICAgICAgICAiWDRlYnNzSlB6bm5MZyIKICAgICAgXSwKICAgICAgInN0aWNrZXJJZCI6IDEsCiAgICAgICJ0ZW1wbGF0ZUlkIjogMQogICAgfQogIF0sCiAgInJlbGVhc2VNZXRob2RUeXBlIjogIklNUE9SVCIsCiAgInJlb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HQtdGA0YLRg9C8LdCf0YDQviICEQIiBjsBJKw4hEorKxwJFaX4MAwGCCqFAwcBAQEBBQAEQPuofhebYK2CUESVFY9YAX2MuSRcymdci2nGy91JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=
Host: localhost:8080
Content-Length: 633

{
  "contactPerson" : "contactPerson",
  "releaseMethodType" : "PRODUCTION",
  "createMethodType" : "SELF_MADE",
  "productionOrderId" : "160e81a5-7ad4-45b2-a7f2-f291d63e225f",
  "contractNumber" : "contractNumber",
  "contractDate" : "2019-12-31",
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "oKybFa8pZ97X5", "sTjScrOqtJt5Y" ],
    "templateId" : 10,
    "cisType" : "UNIT",
    "releaseMethodType" : "PRODUCTION",
    "identificationType" : "PRINTED",
    "markingType" : "PRODUCT",
    "productionLine" : "1",
    "codeTnVed" : "6401"
  } ]
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

contactPerson

String

Conact Person (Контактное лицо)

releaseMethodType

String

Product Release Type (Способ выпуска товаров в оборот) (PRODUCTION, IMPORT)

createMethodType

String

Marking Manufacturing Type (Способ изготовления) (SELF_MADE, CEM)

productionOrderId

String

Production Order ID (Идентификатор производственного заказа)

products[]

Array

Product list (Список товаров)

products[].gtin

String

Product GTIN (GTIN товара)

products[].quantity

Number

Requested Identification Code quantity [Required only if serialNumberType = OPERATOR] (Количество КМ [Обязателен, если serialNumberType = SELF_MADE])

products[].serialNumberType

String

Serial number source type (Способ формирования индивидуального серийного номера)

products[].serialNumbers[]

Array

Serial numbers [Required only if serialNumberType = SELF_MADE] (Список серийных номеров [Обязателен, если serialNumberType = SELF_MADE])

products[].templateId

Number

Identification Code Template ID (Идентификатор шаблона КМ)

3.1.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 148

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "orderId" : "da3a3db1-2930-4ae3-aeb0-d3b76043653d",
  "expectedCompleteTimestamp" : 120000
}
Path Type Description

orderId

String

Unique identifier of a business order for issuing MC (Уникальный идентификатор бизнес-заказа на эмиссию КМ)

expectedCompleteTimestamp

Number

Time of planned order execution in ms (Время планируемого выполнения заказа в мс)

omsId

String

OMS Id (Идентификатор СУЗ)

3.1.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/light/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -H 'X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU0VMRl9NQURFIiwKICAgICAgInNlcmlhbE51b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DRgSDQvtCz0YDQsNC90LjRh9C10L3QvdC+0Lkg0L7RgtCy0LXRgtGB0YLQstC10L3QvdC+0YHRgtGM0Y4gItCh0LXRgNGC0YPQvC3Qn9GA0L4iMWwwagYDVQQDDGPQntCx0YnQtdGB0YLQstC+INGBINC+0LPRgNCw0L3QuNGH0LXQvdC90L7QuSDQvtGC0LLQtdGC0YHRgtCy0LXQvdC90L7RgdGC0YzRjiAi0KHQtdGA0YLRg9C8LdCf0YDQviICEQIiBjsBJKw4hEorKxwJFaX4MAwGCCqFAwcBAQEBBQAEQPuofhebYK2CUESVFY9YAX2MuSRcymdci2nGy91JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=' \
    -d '{
  "contactPerson" : "contactPerson",
  "releaseMethodType" : "PRODUCTION",
  "createMethodType" : "SELF_MADE",
  "productionOrderId" : "160e81a5-7ad4-45b2-a7f2-f291d63e225f",
  "contractNumber" : "contractNumber",
  "contractDate" : "2019-12-31",
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "oKybFa8pZ97X5", "sTjScrOqtJt5Y" ],
    "templateId" : 10,
    "cisType" : "UNIT",
    "releaseMethodType" : "PRODUCTION",
    "identificationType" : "PRINTED",
    "markingType" : "PRODUCT",
    "productionLine" : "1",
    "codeTnVed" : "6401"
  } ]
}'

4. Табачное производство

4.1. Пример создания заказа с серийными номерами для табачного производства:

4.1.1. Запрос:

POST /api/v2/tobacco/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0J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mJDyltj+48kEwggIHMIIB8KSCAewwggHoMRswGQYJKoZIhvcNAQkBFgxjYUBzZXJ0dW0ucnUxGDAWBgUqhQNkARINMTExNjY3MzAwODUzOTEaMBgGCCqFAwOBAwEBEgwwMDY2NzMyNDAzMjgxCzAJBgNVBAYTAlJVMTMwMQYDVQQIDCo2NiDQodCy0LXRgNC00LvQvtCy0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwxITAfBgNVBAcMGNCV0LrQsNGC0LXRgNC40L3QsdGD0YDQszFSMFAGA1UECQxJ0YPQu9C40YbQsCDQo9C70YzRj9C90L7QstGB0LrQsNGPLCDQtC4gMTMsINC70LjRgtC10YAg0JAsINC+0YTQuNGBIDIwOSDQkTFsMGoGA1UECgxj0J7QsdGJ0LXRgdGC0LLQviDRgSDQvtCz0YDQsNC90LjRh9C10L3QvdC+0Lkg0L7RgtCy0LXRgtGB0YLQstC10L3QvdC+0YHRgtGM0Y4gItCh0LXRgNGC0YPQvC3Qn9GA0L4iMWwwagYDVQQDDGPQntCx0YnQtdGB0YLQstC+INGBINC+0LPRgNCw0L3QuNGH0LXQvdC90L7QuSDQvtGC0LLQtdGC0YHRgtCy0LXQvdC90L7RgdGC0YzRjiAi0KHQtdGA0YLRg9C8LdCf0YDQviICEQIiBjsBJKw4hEorKxwJFaX4MAwGCCqFAwcBAQEBBQAEQPuofhebYK2CUESVFY9YAX2MuSRcymdci2nGy91JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=
Host: localhost:8080
Content-Length: 498

{
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "jMaYKGy", "adNf4TO" ],
    "templateId" : 3,
    "mrp" : "123456"
  } ],
  "factoryId" : "Identifier",
  "factoryName" : "Tobacco Fac",
  "factoryAddress" : "Address",
  "factoryCountry" : "Country",
  "productionLineId" : "1",
  "productCode" : "6789",
  "productDescription" : "Simple description",
  "poNumber" : "12345",
  "expectedStartDate" : "2019-03-01"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

factoryId

String

Factory Identifier (GLN) Идентификатор производства. (Глобальный номер места нахождения)

factoryName

String

Factory Name (Наименование производства)

factoryAddress

String

Factory Address (Адрес производства)

factoryCountry

String

Factory Country (Страна производителя)

productionLineId

String

Line Identifier (Идентификатор производственной линии)

productCode

String

Product Code (Код продукта)

productDescription

String

Product Description (Описание продукта)

poNumber

String

PO Number (Номер заказа)

expectedStartDate

String

Expected Start Date (Ожидаемая дата начала)

products[]

Array

Product list (Список товаров)

products[].gtin

String

Product GTIN (GTIN товара)

products[].quantity

Number

Requested Identification Code quantity [Required only if serialNumberType = OPERATOR] (Количество КМ [Обязателен, если serialNumberType = SELF_MADE])

products[].serialNumberType

String

Serial number source type (Способ формирования индивидуального серийного номера) (SELF_MADE, OPERATOR)

products[].serialNumbers[]

Array

Serial numbers [Required only if serialNumberType = SELF_MADE] (Список серийных номеров [Обязателен, если serialNumberType = SELF_MADE]

products[].templateId

Number

Identification Code Template ID (Идентификатор шаблона КМ)

4.1.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 148

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "orderId" : "f7b165ff-7547-45e2-9253-779ee0d2c3aa",
  "expectedCompleteTimestamp" : 120000
}
Path Type Description

orderId

String

Unique identifier of a business order for issuing MC (Уникальный идентификатор бизнес-заказа на эмиссию КМ)

expectedCompleteTimestamp

Number

Time of planned order execution in ms (Время планируемого выполнения заказа в мс)

omsId

String

OMS Id (Идентификатор СУЗ)

4.1.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/tobacco/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -H 'X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU0VMRl9NQURFIiwKICAgICAgInNlcmlhbE51bWJlcnMiOiBbCiAgICAgICAgIlhUNmM4NGUzOWdYalciLAogICAgICAgICIya1kzOU9tZG1IVHd4IiwKICAgICAgICAiWDRlYnNzSlB6bm5MZyIKICAgICAgXSwKICAgICAgInN0aWNrZXJJZCI6IDEsCiAgICAgICJ0ZW1wbGF0ZUlkIjogMQogICAgfQogIF0sCiAgInJlbGVhc2VNZXRob2RUeXBlIjogIklNUE9SVCIsCiAgInJlbWFpbnNBdmFpbGFibGUiOiB0cnVlLAogICJyZW1haW5zSW1wb3J0IjogdHJ1ZSwKICAic2VydmljZVByb3ZpZGVySWQiOiAic3RyaW5nIgp9oIIW0TCCBRQwggTBoAMCAQICEE5tR4sm8n1lf3aOAlzj05MwCgYIKoUDBwEBAwIwgg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products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "jMaYKGy", "adNf4TO" ],
    "templateId" : 3,
    "mrp" : "123456"
  } ],
  "factoryId" : "Identifier",
  "factoryName" : "Tobacco Fac",
  "factoryAddress" : "Address",
  "factoryCountry" : "Country",
  "productionLineId" : "1",
  "productCode" : "6789",
  "productDescription" : "Simple description",
  "poNumber" : "12345",
  "expectedStartDate" : "2019-03-01"
}'

4.2. Пример отправки отчета об агрегации для табачного производства:

4.2.1. Запрос:

POST /api/v2/tobacco/aggregation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Content-Length: 609

{
  "aggregationUnits" : [ {
    "aggregatedItemsCount" : 10,
    "aggregationType" : "AGGREGATION",
    "aggregationUnitCapacity" : 10,
    "sntins" : [ "01334567894339XyEItCq", "01334567894339eQDPpsJ", "01334567894339CmgXBHp", "01334567894339ZsFYKHj", "01334567894339FGnFeKa", "010133456789433921jWe2M6F", "0101334567894339219n3PRNB", "010133456789433921yCwpMeC", "010133456789433921dHH44TZ", "0101334567894339216jcf7ad" ],
    "unitSerialNumber" : "2f57179b-e58c-4c96-bc9f-4f692cdc2790"
  } ],
  "participantId" : "007731376812",
  "productionLineId" : "1",
  "productionOrderId" : "123",
  "dateDoc" : 0
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

aggregationUnits[]

Array

Array of aggregation unit (Массив единиц агрегации)

aggregationUnits[].aggregatedItemsCount

Number

Number of goods actually aggregated in the unit (Фактически упаковано)

aggregationUnits[].aggregationType

String

Aggregation operation type (Тип агрегации) (AGGREGATION, UPDATE)

aggregationUnits[].aggregationUnitCapacity

Number

Aggregation Unit Capacity (Емкость упаковки)

aggregationUnits[].sntins[]

Array

List of the Aggregated Identification Codes (Список агрегированных КМ)

aggregationUnits[].unitSerialNumber

String

Identification Code of Aggregation Unit (КМ агрегата)

participantId

String

Taxpayer Identification Number (Идентификационный номер налогоплательщика)

productionOrderId

String

The Id of the production order (Идентификатор производственного заказа)

productionLineId

String

Production line number (Номер производственной линии)

4.2.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 109

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "1988f5fa-c083-475e-88b9-105b690be5bf"
}
Path Type Description

reportId

String

Unique OMS Report ID (Уникальный идентификатор отчета в СУЗ)

omsId

String

OMS Id (Идентификатор СУЗ)

4.2.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/tobacco/aggregation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d '{
  "aggregationUnits" : [ {
    "aggregatedItemsCount" : 10,
    "aggregationType" : "AGGREGATION",
    "aggregationUnitCapacity" : 10,
    "sntins" : [ "01334567894339XyEItCq", "01334567894339eQDPpsJ", "01334567894339CmgXBHp", "01334567894339ZsFYKHj", "01334567894339FGnFeKa", "010133456789433921jWe2M6F", "0101334567894339219n3PRNB", "010133456789433921yCwpMeC", "010133456789433921dHH44TZ", "0101334567894339216jcf7ad" ],
    "unitSerialNumber" : "2f57179b-e58c-4c96-bc9f-4f692cdc2790"
  } ],
  "participantId" : "007731376812",
  "productionLineId" : "1",
  "productionOrderId" : "123",
  "dateDoc" : 0
}'

4.3. Пример отправки отчета об использовании для табачного производства:

4.3.1. Запрос:

POST /api/v2/tobacco/utilisation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Content-Length: 567

{
  "sntins" : [ "013345678943395gxqM7o1234bKj1", "01334567894339E3aMeLW1234cSlr", "013345678943391RnZOBA1234t63Z", "01334567894339aPPjPcp1234bzZz", "013345678943397q1MNpo1234EQiX", "010133456789433921dYTGrYE\u001D8005123456\u001D93PaEI", "010133456789433921HBnT1Rg\u001D8005123456\u001D93ixT2", "010133456789433921cwA6I9d\u001D8005123456\u001D93aVaX", "010133456789433921cTRmmzW\u001D8005123456\u001D93DDOR", "010133456789433921qLtWxDC\u001D8005123456\u001D93Lhzd" ],
  "usageType" : "USED_FOR_PRODUCTION",
  "productionLineId" : "1",
  "productionOrderId" : "123"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

sntins[]

Array

List of Utilized Identification Codes (Информация об использованных КМ)

usageType

String

Usage type (Тип использования) (USED_FOR_PRODUCTION, SENT_TO_PRINTER, PRINTED, PRINTER_LOST, VERIFIED)

productionOrderId

String

The Id of the production order (Идентификатор производственного заказа)

productionLineId

String

Production Line Number (Идентификатор производственной линии)

4.3.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 109

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "aca0d578-5f8b-4438-bd97-d68cde5935e0"
}
Path Type Description

reportId

String

Unique OMS Report ID (Уникальный идентификатор отчета в СУЗ)

omsId

String

OMS Id (Идентификатор СУЗ)

4.3.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/tobacco/utilisation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d '{
  "sntins" : [ "013345678943395gxqM7o1234bKj1", "01334567894339E3aMeLW1234cSlr", "013345678943391RnZOBA1234t63Z", "01334567894339aPPjPcp1234bzZz", "013345678943397q1MNpo1234EQiX", "010133456789433921dYTGrYE\u001D8005123456\u001D93PaEI", "010133456789433921HBnT1Rg\u001D8005123456\u001D93ixT2", "010133456789433921cwA6I9d\u001D8005123456\u001D93aVaX", "010133456789433921cTRmmzW\u001D8005123456\u001D93DDOR", "010133456789433921qLtWxDC\u001D8005123456\u001D93Lhzd" ],
  "usageType" : "USED_FOR_PRODUCTION",
  "productionLineId" : "1",
  "productionOrderId" : "123"
}'

4.4. Пример отправки отчета об отбраковке для табачного производства:

4.4.1. Запрос:

POST /api/v2/tobacco/dropout?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Content-Length: 548

{
  "dropoutReason" : "DEFECT",
  "sntins" : [ "01334567894339GqYa6H4", "013345678943397jS1Q9G", "013345678943399tdegbH", "01334567894339XPFFo4R", "01334567894339gC9nwqC", "010133456789433921Qbs81ok", "010133456789433921m7C5efb", "010133456789433921ZdtECKd", "0101334567894339216d5yrt6", "010133456789433921dqANdMC" ],
  "sourceDocNum" : "12345",
  "sourceDocDate" : "2018-10-10",
  "address" : "Москва ул Мира 20",
  "withChild" : false,
  "participantId" : "007731376812",
  "productionOrderId" : "123",
  "productionLineId" : "123"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

sntins[]

Array

Identification Codes that were dropped out (Информация о выбывших КМ)

dropoutReason

String

Dropout reason (Причина выбытия) (DEFECT, EXPIRY, OTHER)

sourceDocNum

String

Dropout document number (Номер первичного документа)

sourceDocDate

String

Dropout document date (Дата первичного документа)

address

String

Address where the write-off was made (Адрес, где было произведено списание)

withChild

Boolean

Specifies whether to write off all nested items (Признак списания всех вложенных элементов)

participantId

String

Taxpayer Identification Number (Идентификационный номер налогоплательщика)

productionOrderId

String

The Id of the production order (Идентификатор производственного заказа)

productionLineId

String

Production Line Number (Идентификатор производственной линии)

4.4.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 109

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "26cb2996-5850-43cb-8c89-c33f6aa0047b"
}
Path Type Description

reportId

String

Unique OMS Report ID (Уникальный идентификатор отчета в СУЗ)

omsId

String

OMS Id (Идентификатор СУЗ)

4.4.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/tobacco/dropout?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d '{
  "dropoutReason" : "DEFECT",
  "sntins" : [ "01334567894339GqYa6H4", "013345678943397jS1Q9G", "013345678943399tdegbH", "01334567894339XPFFo4R", "01334567894339gC9nwqC", "010133456789433921Qbs81ok", "010133456789433921m7C5efb", "010133456789433921ZdtECKd", "0101334567894339216d5yrt6", "010133456789433921dqANdMC" ],
  "sourceDocNum" : "12345",
  "sourceDocDate" : "2018-10-10",
  "address" : "Москва ул Мира 20",
  "withChild" : false,
  "participantId" : "007731376812",
  "productionOrderId" : "123",
  "productionLineId" : "123"
}'

5. Альтернативная табачная продукция

5.1. Пример создания заказа с серийными номерами для альтернативной табачной продукции:

5.1.1. Запрос:

POST /api/v2/otp/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU0VMRl9NQURFIiwKICAgICAgInNlcmlhbE51bWJlcnMiOiBbCiAgICAgICAgIlhUNmM4NGUzOWdYalciLAogICAgICAgICIya1kzOU9tZG1IVHd4IiwKICAgICAgICAiWDRlYnNzSlB6bm5MZyIKICAgICAgXSwKICAgICAgInN0aWNrZXJJZCI6IDEsCiAgICAgICJ0ZW1wbGF0ZUlkIjogMQogICAgfQogIF0sCiAgInJlbGVhc2VNZXRob2RUeXBlIjogIklNUE9SVCIsCiAgInJlbWFpbnNBdmFpbGFibGUiOiB0cnVlLAogICJyZW1haW5zSW1wb3J0IjogdHJ1ZSwKICAic2VydmljZVByb3ZpZGVySWQiOiAic3RyaW5nIgp9oIIW0TCCBRQwggTBoAMCAQICEE5tR4sm8n1lf3aOAlzj05MwCgYIKoUDBwEBA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:8080
Content-Length: 648

{
  "contactPerson" : "John Smith (Иванов Петр Сидорович)",
  "releaseMethodType" : "IMPORT",
  "createMethodType" : "SELF_MADE",
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "eOPeikI", "JHXdGfH" ],
    "templateId" : 14,
    "cisType" : "UNIT"
  } ],
  "factoryId" : "Identifier",
  "factoryName" : "Tobacco Fac",
  "factoryAddress" : "Address",
  "factoryCountry" : "Country",
  "productionLineId" : "1",
  "productCode" : "6789",
  "productDescription" : "Simple description",
  "poNumber" : "12345",
  "expectedStartDate" : "2020-12-08"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

factoryId

String

Factory Identifier (GLN) Идентификатор производства. (Глобальный номер места нахождения)

factoryName

String

Factory Name (Наименование производства)

factoryAddress

String

Factory Address (Адрес производства)

factoryCountry

String

Factory Country (Страна производителя)

productionLineId

String

Line Identifier (Идентификатор производственной линии)

productCode

String

Product Code (Код продукта)

productDescription

String

Product Description (Описание продукта)

poNumber

String

PO Number (Номер заказа)

expectedStartDate

String

Expected Start Date (Ожидаемая дата начала)

createMethodType

String

Marking Manufacturing Type (Способ изготовления)

releaseMethodType

String

Product Release Type (Способ выпуска товаров в оборот)

contactPerson

String

Contact Person (Контактное лицо)

products[]

Array

Product list (Список товаров)

products[].gtin

String

Product GTIN (GTIN товара)

products[].quantity

Number

Requested Identification Code quantity [Required only if serialNumberType = OPERATOR] (Количество КМ [Обязателен, если serialNumberType = SELF_MADE])

products[].serialNumberType

String

Serial number source type (Способ формирования индивидуального серийного номера) (SELF_MADE, OPERATOR)

products[].serialNumbers[]

Array

Serial numbers [Required only if serialNumberType = SELF_MADE] (Список серийных номеров [Обязателен, если serialNumberType = SELF_MADE]

products[].templateId

Number

Identification Code Template ID (Идентификатор шаблона КМ)

products[].cisType

String

CIS type (Тип КМ)

5.1.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 148

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "orderId" : "f0c4f361-2016-4dff-941b-da5a74308a03",
  "expectedCompleteTimestamp" : 120000
}
Path Type Description

orderId

String

Unique identifier of a business order for issuing MC (Уникальный идентификатор бизнес-заказа на эмиссию КМ)

expectedCompleteTimestamp

Number

Time of planned order execution in ms (Время планируемого выполнения заказа в мс)

omsId

String

OMS Id (Идентификатор СУЗ)

5.1.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/otp/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -H 'X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcmVhdGVNZXRob2RUeXBlIjogIlNFTEZfTUFERSIsCiAgInByb2R1Y3Rpb25PcmRlcklkIjogIjYzYjVkMWNkLTkxOWItNGNlZi1iMTE3LTJjZTU5MDU5YmMzMyIsCiAgInByb2R1Y3RzIjogWwogICAgewogICAgICAiY2lzVHlwZSI6ICJVTklUIiwKICAgICAgImV4cG9ydGVyVGF4cGF5ZXJJZCI6IDEyMzQ1Njc4OTAsCiAgICAgICJndGluIjogIjAxMzM0NTY3ODk0MzM5IiwKICAgICAgInF1YW50aXR5IjogMywKICAgICAgInNlcmlhbE51bWJlclR5cGUiOiAiU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oGA1UECgxj0J7QsdGJ0LXRgdGC0LLQviDRgSDQvtCz0YDQsNC90LjRh9C10L3QvdC+0Lkg0L7RgtCy0LXRgtGB0YLQstC10L3QvdC+0YHRgtGM0Y4gItCh0LXRgNGC0YPQvC3Qn9GA0L4iMWwwagYDVQQDDGPQntCx0YnQtdGB0YLQstC+INGBINC+0LPRgNCw0L3QuNGH0LXQvdC90L7QuSDQvtGC0LLQtdGC0YHRgtCy0LXQvdC90L7RgdGC0YzRjiAi0KHQtdGA0YLRg9C8LdCf0YDQviICEQIiBjsBJKw4hEorKxwJFaX4MAwGCCqFAwcBAQEBBQAEQPuofhebYK2CUESVFY9YAX2MuSRcymdci2nGy91JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=' \
    -d '{
  "contactPerson" : "John Smith (Иванов Петр Сидорович)",
  "releaseMethodType" : "IMPORT",
  "createMethodType" : "SELF_MADE",
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "eOPeikI", "JHXdGfH" ],
    "templateId" : 14,
    "cisType" : "UNIT"
  } ],
  "factoryId" : "Identifier",
  "factoryName" : "Tobacco Fac",
  "factoryAddress" : "Address",
  "factoryCountry" : "Country",
  "productionLineId" : "1",
  "productCode" : "6789",
  "productDescription" : "Simple description",
  "poNumber" : "12345",
  "expectedStartDate" : "2020-12-08"
}'

5.2. Пример отправки отчета об агрегации для альтернативной табачной продукции:

5.2.1. Запрос:

POST /api/v2/otp/aggregation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Content-Length: 465

{
  "aggregationUnits" : [ {
    "aggregatedItemsCount" : 5,
    "aggregationType" : "AGGREGATION",
    "aggregationUnitCapacity" : 5,
    "sntins" : [ "010133456789433921FBjEeGi", "010133456789433921LfML5MC", "010133456789433921GJQgzxw", "0101334567894339211JyYNSK", "0101334567894339218kFjACO" ],
    "unitSerialNumber" : "e5c09566-82ca-4514-aa62-7374ecbb8059"
  } ],
  "participantId" : "007731376812",
  "productionLineId" : "1",
  "productionOrderId" : "123"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

aggregationUnits[]

Array

Array of aggregation unit (Массив единиц агрегации)

aggregationUnits[].aggregatedItemsCount

Number

Number of goods actually aggregated in the unit (Фактически упаковано)

aggregationUnits[].aggregationType

String

Aggregation operation type (Тип агрегации) (AGGREGATION, UPDATE)

aggregationUnits[].aggregationUnitCapacity

Number

Aggregation Unit Capacity (Емкость упаковки)

aggregationUnits[].sntins[]

Array

List of the Aggregated Identification Codes (Список агрегированных КМ)

aggregationUnits[].unitSerialNumber

String

Identification Code of Aggregation Unit (КМ агрегата)

participantId

String

Taxpayer Identification Number (Идентификационный номер налогоплательщика)

productionOrderId

String

The Id of the production order (Идентификатор производственного заказа)

productionLineId

String

Production line number (Номер производственной линии)

5.2.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 109

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "391773da-f311-4129-961d-7ef867ea0faa"
}
Path Type Description

reportId

String

Unique OMS Report ID (Уникальный идентификатор отчета в СУЗ)

omsId

String

OMS Id (Идентификатор СУЗ)

5.2.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/otp/aggregation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d '{
  "aggregationUnits" : [ {
    "aggregatedItemsCount" : 5,
    "aggregationType" : "AGGREGATION",
    "aggregationUnitCapacity" : 5,
    "sntins" : [ "010133456789433921FBjEeGi", "010133456789433921LfML5MC", "010133456789433921GJQgzxw", "0101334567894339211JyYNSK", "0101334567894339218kFjACO" ],
    "unitSerialNumber" : "e5c09566-82ca-4514-aa62-7374ecbb8059"
  } ],
  "participantId" : "007731376812",
  "productionLineId" : "1",
  "productionOrderId" : "123"
}'

5.3. Пример отправки отчета об использовании для альтернативной табачной продукции:

5.3.1. Запрос:

POST /api/v2/otp/utilisation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Content-Length: 513

{
  "sntins" : [ "010133456789433921TJPwRF7\u001D93MASE", "010133456789433921TMBAiN6\u001D93D1yj", "010133456789433921wNK4E9y\u001D93xUPR", "0101334567894339217cARdM7\u001D93kP5Z", "010133456789433921fH2IsSg\u001D93e9Dl", "01334567894339S3Fs2DEAAAAN0oM", "01334567894339p6fxBnMAAAAprlX", "01334567894339W6dPqD5AAAAozcX", "01334567894339TOqdcMrAAAAN6CK", "01334567894339GG1gAWtAAAAZrao" ],
  "usageType" : "USED_FOR_PRODUCTION",
  "usedInProduction" : 0,
  "productionLineId" : "1",
  "productionOrderId" : "123"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

sntins[]

Array

List of Utilized Identification Codes (Информация об использованных КМ)

usageType

String

Usage type (Тип использования) (USED_FOR_PRODUCTION, SENT_TO_PRINTER, PRINTED, PRINTER_LOST, VERIFIED)

productionOrderId

String

The Id of the production order (Идентификатор производственного заказа)

productionLineId

String

Production Line Number (Идентификатор производственной линии)

5.3.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 109

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "1d076c94-700e-4cd6-8c84-08bedf964492"
}
Path Type Description

reportId

String

Unique OMS Report ID (Уникальный идентификатор отчета в СУЗ)

omsId

String

OMS Id (Идентификатор СУЗ)

5.3.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/otp/utilisation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d '{
  "sntins" : [ "010133456789433921TJPwRF7\u001D93MASE", "010133456789433921TMBAiN6\u001D93D1yj", "010133456789433921wNK4E9y\u001D93xUPR", "0101334567894339217cARdM7\u001D93kP5Z", "010133456789433921fH2IsSg\u001D93e9Dl", "01334567894339S3Fs2DEAAAAN0oM", "01334567894339p6fxBnMAAAAprlX", "01334567894339W6dPqD5AAAAozcX", "01334567894339TOqdcMrAAAAN6CK", "01334567894339GG1gAWtAAAAZrao" ],
  "usageType" : "USED_FOR_PRODUCTION",
  "usedInProduction" : 0,
  "productionLineId" : "1",
  "productionOrderId" : "123"
}'

6. Фармацевтическое производство

6.1. Пример создания заказа с серийными номерами для фармацевтического производства:

6.1.1. Запрос:

POST /api/v2/pharma/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0L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8KSCAewwggHoMRswGQYJKoZIhvcNAQkBFgxjYUBzZXJ0dW0ucnUxGDAWBgUqhQNkARINMTExNjY3MzAwODUzOTEaMBgGCCqFAwOBAwEBEgwwMDY2NzMyNDAzMjgxCzAJBgNVBAYTAlJVMTMwMQYDVQQIDCo2NiDQodCy0LXRgNC00LvQvtCy0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwxITAfBgNVBAcMGNCV0LrQsNGC0LXRgNC40L3QsdGD0YDQszFSMFAGA1UECQxJ0YPQu9C40YbQsCDQo9C70YzRj9C90L7QstGB0LrQsNGPLCDQtC4gMTMsINC70LjRgtC10YAg0JAsINC+0YTQuNGBIDIwOSDQkTFsMGoGA1UECgxj0J7QsdGJ0LXRgdGC0LLQviDRgSDQvtCz0YDQsNC90LjRh9C10L3QvdC+0Lkg0L7RgtCy0LXRgtGB0YLQstC10L3QvdC+0YHRgtGM0Y4gItCh0LXRgNGC0YPQvC3Qn9GA0L4iMWwwagYDVQQDDGPQntCx0YnQtdGB0YLQstC+INGBINC+0LPRgNCw0L3QuNGH0LXQvdC90L7QuSDQvtGC0LLQtdGC0YHRgtCy0LXQvdC90L7RgdGC0YzRjiAi0KHQtdGA0YLRg9C8LdCf0YDQviICEQIiBjsBJKw4hEorKxwJFaX4MAwGCCqFAwcBAQEBBQAEQPuofhebYK2CUESVFY9YAX2MuSRcymdci2nGy91JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=
Host: localhost:8080
Content-Length: 297

{
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "8fNDcK7Z3AH2n", "MDWdGBRRKjq9M" ],
    "templateId" : 5
  } ],
  "subjectId" : "1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f",
  "paymentType" : 2,
  "freeCode" : false
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

subjectId

String

Subject ID (Субъект обращения)

products[]

Array

Product list (Список товаров)

products[].gtin

String

Product GTIN (GTIN товара)

products[].quantity

Number

Requested Identification Code quantity [Required only if serialNumberType = OPERATOR] (Количество КМ [Обязателен, если serialNumberType = SELF_MADE])

products[].serialNumberType

String

Serial number source type (Способ формирования индивидуального серийного номера) (SELF_MADE, OPERATOR)

products[].serialNumbers[]

Array

Serial numbers [Required only if serialNumberType = SELF_MADE] (Список серийных номеров [Обязателен, если serialNumberType = SELF_MADE])

products[].templateId

Number

Identification Code Template ID (Идентификатор шаблона КМ)

6.1.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 148

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "orderId" : "8a0585f0-1151-4a02-9f1b-3c9860ae4e69",
  "expectedCompleteTimestamp" : 120000
}
Path Type Description

orderId

String

Unique identifier of a business order for issuing MC (Уникальный идентификатор бизнес-заказа на эмиссию КМ

expectedCompleteTimestamp

Number

Time of planned order execution in ms (Время планируемого выполнения заказа в мс)

omsId

String

OMS Id (Идентификатор СУЗ)

6.1.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/pharma/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -H 'X-Signature: MIIe7gYJKoZIhvcNAQcCoIIe3zCCHtsCAQExDjAMBggqhQMHAQECAgUAMIICkAYJKoZIhvcNAQcBoIICgQSCAn17CiAgImNvbnRhY3RQZXJzb24iOiAiSm9obiBTbWl0aCAo0JjQstCw0L3QvtCyINCf0LXRgtGAINCh0LjQtNC+0YDQvtCy0LjRhykiLAogICJjcm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0dW0ucnUxGDAWBgUqhQNkARINMTExNjY3MzAwODUzOTEaMBgGCCqFAwOBAwEBEgwwMDY2NzMyNDAzMjgxCzAJBgNVBAYTAlJVMTMwMQYDVQQIDCo2NiDQodCy0LXRgNC00LvQvtCy0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwxITAfBgNVBAcMGNCV0LrQsNGC0LXRgNC40L3QsdGD0YDQszFSMFAGA1UECQxJ0YPQu9C40YbQsCDQo9C70YzRj9C90L7QstGB0LrQsNGPLCDQtC4gMTMsINC70LjRgtC10YAg0JAsINC+0YTQuNGBIDIwOSDQkTFsMGoGA1UECgxj0J7QsdGJ0LXRgdGC0LLQviDRgSDQvtCz0YDQsNC90LjRh9C10L3QvdC+0Lkg0L7RgtCy0LXRgtGB0YLQstC10L3QvdC+0YHRgtGM0Y4gItCh0LXRgNGC0YPQvC3Qn9GA0L4iMWwwagYDVQQDDGPQntCx0YnQtdGB0YLQstC+INGBINC+0LPRgNCw0L3QuNGH0LXQvdC90L7QuSDQvtGC0LLQtdGC0YHRgtCy0LXQvdC90L7RgdGC0YzRjiAi0KHQtdGA0YLRg9C8LdCf0YDQviICEQIiBjsBJKw4hEorKxwJFaX4MAwGCCqFAwcBAQEBBQAEQPuofhebYK2CUESVFY9YAX2MuSRcymdci2nGy91JTyjY8Tc1xmSSJIVrPWONqUPUtkdSMDJyCCI7kiF7IUiYfLk=' \
    -d '{
  "products" : [ {
    "gtin" : "01334567894339",
    "quantity" : 2,
    "serialNumberType" : "SELF_MADE",
    "serialNumbers" : [ "8fNDcK7Z3AH2n", "MDWdGBRRKjq9M" ],
    "templateId" : 5
  } ],
  "subjectId" : "1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f",
  "paymentType" : 2,
  "freeCode" : false
}'

6.2. Пример отправки отчета об использовании для фармацевтического производства:

6.2.1. Запрос:

POST /api/v2/pharma/utilisation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Content-Length: 723

{
  "sntins" : [ "010133456789433921EPZJLjISiwDpa\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080a", "010133456789433921EPZJLjISiwDpb\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080b", "010133456789433921EPZJLjISiwDpc\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080c", "010133456789433921EPZJLjISiwDpd\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080d", "010133456789433921EPZJLjISiwDpe\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080e" ],
  "usageType" : "USED_FOR_PRODUCTION",
  "expirationDate" : "31.10.2024",
  "orderType" : "2",
  "ownerId" : "86005324-d835-487b-9c07-4ee96b2a7d52",
  "seriesNumber" : "123",
  "subjectId" : "12345678901234"
}
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Path Type Description

sntins[]

Array

List of Utilized Identification Codes (Информация об использованных КМ)

usageType

String

Usage type (Тип использования) (USED_FOR_PRODUCTION, SENT_TO_PRINTER, PRINTED, PRINTER_LOST, VERIFIED)

expirationDate

String

Expiration Data (Дата годности)

orderType

String

Order Type (Тип заказа)

ownerId

String

Product Owner ID (Идентификатор владельца)

seriesNumber

String

Series Number (Номер серии)

subjectId

String

Place of business identifier (Идентификатор места деятельности)

6.2.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 109

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "000865ba-1800-4112-9f40-fccef7fedd5d"
}
Path Type Description

reportId

String

Unique OMS Report ID (Уникальный идентификатор отчета в СУЗ)

omsId

String

OMS Id (Идентификатор СУЗ)

6.2.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/pharma/utilisation?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X POST \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d '{
  "sntins" : [ "010133456789433921EPZJLjISiwDpa\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080a", "010133456789433921EPZJLjISiwDpb\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080b", "010133456789433921EPZJLjISiwDpc\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080c", "010133456789433921EPZJLjISiwDpd\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080d", "010133456789433921EPZJLjISiwDpe\u001D9195d7\u001D92080d080d080d080d080d080d080d080d080d080d080e" ],
  "usageType" : "USED_FOR_PRODUCTION",
  "expirationDate" : "31.10.2024",
  "orderType" : "2",
  "ownerId" : "86005324-d835-487b-9c07-4ee96b2a7d52",
  "seriesNumber" : "123",
  "subjectId" : "12345678901234"
}'

7. Общие методы для всех товарных групп

7.1. Пример получения открытых бизнес-заказов участника:

7.1.1. Запрос:

GET /api/v2/light/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

7.1.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 551

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "orderInfos" : [ {
    "orderId" : "da3a3db1-2930-4ae3-aeb0-d3b76043653d",
    "orderStatus" : "READY",
    "buffers" : [ {
      "leftInBuffer" : -1,
      "poolsExhausted" : false,
      "totalCodes" : -1,
      "unavailableCodes" : -1,
      "availableCodes" : -1,
      "orderId" : "da3a3db1-2930-4ae3-aeb0-d3b76043653d",
      "gtin" : "01334567894339",
      "totalPassed" : -1,
      "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f"
    } ],
    "createdTimestamp" : 1614177453597
  } ]
}
Path Type Description

orderInfos[]

Array

An array of business orders with their statuses (Массив бизнес-заказов с их статусами)

orderInfos[].orderId

String

Unique OMS Order ID (Идентификатор бизнес-заказа)

orderInfos[].orderStatus

String

Business order status (Статус бизнес-заказа) (CREATED, PENDING, DECLINED, APPROVED, READY)

orderInfos[].createdTimestamp

Number

Order creation time (Время создания заказа)

orderInfos[].buffers[].poolInfos[]

Array

Array of pools created for the IC buffer (Массив пулов, созданных для буфера)

orderInfos[].buffers[].poolInfos[].status

String

IC array status (Статус пула) (REQUEST_ERROR, REQUESTED, IN_PROCESS, READY, CLOSED, DELETED, REJECTED)

orderInfos[].buffers[].poolInfos[].quantity

Number

Number of ICs ordered in the array (Заказанное кол-во КМ в пуле)

orderInfos[].buffers[].poolInfos[].leftInRegistrar

Number

Number of unused ICs in the pool (Оставшеесе кол-во КМ в пуле)

orderInfos[].buffers[].poolInfos[].rejectionReason

String

The IC array rejection reason returned by the Emission Registrar (Причина отказа)

orderInfos[].buffers[].poolInfos[].registrarId

String

Emission Registrar Identifier (Номер РЭ)

orderInfos[].buffers[].poolInfos[].isRegistrarReady

Boolean

Logical flag that shows if the Emission Registrar is currently ready for orders (Готовность РЭ)

orderInfos[].buffers[].poolInfos[].registrarErrorCount

Number

Number of Emission Registrar errors occurred (Количество ошибок РЭ)

orderInfos[].buffers[].poolInfos[].lastRegistrarErrorTimestamp

Number

Timestamp when the last Emission Registrar error occurred (Метка времени последней наблюдавшейся ошибки РЭ)

omsId

String

OMS Id (Идентификатор СУЗ)

7.1.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/light/orders?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X GET \
    -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f'

7.2. Пример получения статуса буфера КМ:

7.2.1. Запрос:

GET /api/v2/light/buffer/status?orderId=da3a3db1-2930-4ae3-aeb0-d3b76043653d&gtin=01334567894339&omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Name Description

clientToken

Токен авторизации

Parameter Description

orderId

Unique OMS Order ID (Идентификатор бизнес-заказа на эмиссию КМ)

gtin

Product GTIN (GTIN товара, по которому нужно получить статус заказа)

omsId

OMS Id (Идентификатор СУЗ)

7.2.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 586

{
  "poolInfos" : [ {
    "status" : "READY",
    "quantity" : 2,
    "leftInRegistrar" : 0,
    "registrarId" : "Virtual Registrar: f456afcc-54f6-40fd-8731-809299c58022",
    "isRegistrarReady" : true,
    "registrarErrorCount" : 0,
    "lastRegistrarErrorTimestamp" : 0
  } ],
  "leftInBuffer" : 0,
  "poolsExhausted" : true,
  "totalCodes" : 2,
  "unavailableCodes" : 0,
  "availableCodes" : 0,
  "orderId" : "da3a3db1-2930-4ae3-aeb0-d3b76043653d",
  "gtin" : "01334567894339",
  "bufferStatus" : "EXHAUSTED",
  "totalPassed" : 2,
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f"
}
Path Type Description

orderId

String

A unique order ID in OMS (Уникальный идентификатор заказа на эмиссию КМ)

gtin

String

Product GTIN (GTIN товара)

leftInBuffer

Number

Number of unused ICs in the array (Остаток КМ в буфере СУЗ)

totalCodes

Number

Order quantity of IC in the order (Общее кол-во заказанных КМ для товара)

unavailableCodes

Number

Number of unavailable codes (Общее кол-во недоступных КМ для товара в связи с техническими причинами)

bufferStatus

String

Buffer status (Статус буфера) (PENDING, ACTIVE, EXHAUSTED, REJECTED, CLOSED, NOT_FOUND, UNKNOWN)

poolInfos[]

Array

Array of pools created for the IC buffer (Массив пулов, созданных для буфера)

poolInfos[].status

String

IC array status (Статус пула) (REQUEST_ERROR, REQUESTED, IN_PROCESS, READY, CLOSED, DELETED, REJECTED)

poolInfos[].quantity

Number

Number of ICs ordered in the array (Заказанное кол-во КМ в пуле)

poolInfos[].leftInRegistrar

Number

Number of unused ICs in the pool (Оставшеесе кол-во КМ в пуле)

poolInfos[].rejectionReason

String

The IC array rejection reason returned by the Emission Registrar (Причина отказа)

poolInfos[].registrarId

String

Emission Registrar Identifier (Номер РЭ)

poolInfos[].isRegistrarReady

Boolean

Logical flag that shows if the Emission Registrar is currently ready for orders (Готовность РЭ)

poolInfos[].registrarErrorCount

Number

Number of Emission Registrar errors occurred (Количество ошибок РЭ)

poolInfos[].lastRegistrarErrorTimestamp

Number

Timestamp when the last Emission Registrar error occurred (Метка времени последней наблюдавшейся ошибки РЭ)

omsId

String

OMS Id (Идентификатор СУЗ)

7.2.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/light/buffer/status?orderId=da3a3db1-2930-4ae3-aeb0-d3b76043653d&gtin=01334567894339&omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X GET \
    -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f'

7.3. Пример получения КМ:

7.3.1. Запрос:

GET /api/v2/otp/codes?orderId=f0c4f361-2016-4dff-941b-da5a74308a03&gtin=01334567894339&quantity=2&lastBlockId=0&omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Name Description

clientToken

Токен авторизации

Parameter Description

orderId

Unique OMS Order ID (Идентификатор бизнес-заказа на эмиссию КМ)

gtin

Product GTIN (GTIN товара, по которому запрашиваются коды)

omsId

OMS Id (Идентификатор СУЗ)

quantity

Required identification code quantity (Количество запрашиваемых кодов)

lastBlockId

Identifier of last sent code block (Идентификатор последнего полученного блока кодов)

7.3.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 206

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "codes" : [ "010133456789433921eOPeikI\u001D93CRZT", "010133456789433921JHXdGfH\u001D939Xnb" ],
  "blockId" : "89fb17c3-628b-4696-abfd-5ecfabd92393"
}
Path Type Description

codes[]

Array

Identification Codes (Список КМ)

blockId

String

Identifier of code block (Идентификатор блока кодов)

omsId

String

OMS Id (Идентификатор СУЗ)

7.3.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/otp/codes?orderId=f0c4f361-2016-4dff-941b-da5a74308a03&gtin=01334567894339&quantity=2&lastBlockId=0&omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X GET \
    -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f'

7.4. Пример опроса доступности СУЗ:

7.4.1. Запрос:

GET /api/v2/light/ping?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

7.4.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 54

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f"
}
Path Type Description

omsId

String

OMS Id (Идентификатор СУЗ)

7.4.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/light/ping?omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X GET \
    -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f'

7.5. Пример закрытия буфера КМ:

7.5.1. Запрос:

POST /api/v2/otp/buffer/close HTTP/1.1
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080

orderId=f0c4f361-2016-4dff-941b-da5a74308a03&gtin=01334567894339&lastBlockId=0&omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f
Name Description

clientToken

Токен авторизации

Parameter Description

orderId

Unique OMS Order ID (Идентификатор бизнес-заказа на эмиссию КМ)

gtin

Product GTIN (GTIN товара, по которому требуется прекратить выдачу КМ)

omsId

OMS Id (Идентификатор СУЗ)

lastBlockId

Identifier of last sent code block (Идентификатор последнего полученного блока кодов)

7.5.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 54

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f"
}
Path Type Description

omsId

String

OMS Id (Идентификатор СУЗ)

7.5.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/otp/buffer/close' -i -X POST \
    -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -d 'orderId=f0c4f361-2016-4dff-941b-da5a74308a03&gtin=01334567894339&lastBlockId=0&omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f'

7.6. Пример получения информации о статусе отчета:

7.6.1. Запрос:

GET /api/v2/pharma/report/info?reportId=000865ba-1800-4112-9f40-fccef7fedd5d&omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

reportId

Report ID (Идентификатор отчета)

7.6.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 137

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f",
  "reportId" : "000865ba-1800-4112-9f40-fccef7fedd5d",
  "reportStatus" : "CHECK"
}
Path Type Description

reportId

String

Report ID (Идентификатор отчета)

omsId

String

OMS Id (Идентификатор СУЗ)

reportStatus

String

Report status (Статус отчета) (UNPROCESSED, COMPLETE, ERROR)

7.6.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/pharma/report/info?reportId=000865ba-1800-4112-9f40-fccef7fedd5d&omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f' -i -X GET \
    -H 'Content-Type: application/json;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f'

7.7. Пример передачи логов АСУТП:

7.7.1. Запрос:

POST /api/v2/light/logs/upload HTTP/1.1
Content-Type: multipart/form-data;charset=UTF-8; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Accept: application/json
clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f
Host: localhost:8080

--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=omsId

a2a16a41-42b0-4309-9ae1-c19d53cc544f
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm
Content-Disposition: form-data; name=log; filename=logs.zip
Content-Type: text/plain

Test data
--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--
Name Description

clientToken

Токен авторизации

Parameter Description

omsId

OMS Id (Идентификатор СУЗ)

Part Description

log

Log file (Файл с логами)

7.7.2. Ответ:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 54

{
  "omsId" : "a2a16a41-42b0-4309-9ae1-c19d53cc544f"
}
Path Type Description

omsId

String

OMS Id (Идентификатор СУЗ)

7.7.3. Пример curl:

$ curl 'http://localhost:8080/api/v2/light/logs/upload' -i -X POST \
    -H 'Content-Type: multipart/form-data;charset=UTF-8' \
    -H 'Accept: application/json' \
    -H 'clientToken: 1cecc8fb-fb47-4c8a-af3d-d34c1ead8c4f' \
    -F 'log=@logs.zip;type=text/plain' \
    -F 'omsId=a2a16a41-42b0-4309-9ae1-c19d53cc544f'