Заглушка сервиса создания документа на исполнение
Для вызова заглушки потребуется получить токен доступа. Получение токена доступа выполняется с помощью API Получение токена OAUTH. Перед тем, как использовать заглушку API, необходимо отправить запрос на формирование токена авторизации.
После успешного формирования токена в ответном сообщении будет возвращен идентификатор токена, который необходимо указывать в заголовке Authorization в каждом запросе к API.
Токен нужно получать для каждого нового запроса к заглушке API. Срок жизни токена составляет 60 сек.
Заглушка сервиса Сервис создания документа на исполнение эмулирует сценарий отправки в банк документа на исполнение аккредитива. Для вызова сервиса необходимо сгенерировать JSON документ по указанному в спецификации API формату ( executionLcDocument ), затем его подписать УКЭП (например, при помощи КриптоПро) в режиме прикрепленной подписи (attached signature).
После подписания полученный CMS-контейнер (см. RFC 5652), содержащий:
Электронный документ
Сертификат подписанта
Подпись
кодируется в base64 (см. Base64) и на выходе получается строка, которую нужно передать в теле запроса.
Заглушка не проверяет электронную подпись и полномочия подписанта. Заглушка не проверяет требование, что сервис "Сервис получения параметров аккредитива" доступен только Партнерам банка. В заглушке используются референсы, которые были возвращены в эмуляторе в запросе при получении с татусов черновиков заявлений. Возвращаемый результат определяется только на основании указанного в JSON документе ( executionLcDocument ) значению reference. Полученный идентификатор созданного документа на исполнение необходимо сохранить, чтобы использовать в другой заглушке.
Статичный набор значений:
Референс | Значение reference в подписанном JSON документе | Результат | Пример запроса/ответа | |
---|---|---|---|---|
1 | Референс№1 | REF012345 | HTTP201 Создан документ на исполнение№1 id = 5136846156 | Сценарий №1 (успешный) |
2 | Референс№2 | REF987654 | HTTP201 Создан документ на исполнение №2 id = 8974615654 | Сценарий №2 (успешный) |
3 | Референс№3 | REF454545 | HTTP403 Ошибка "У подписанта нет полномочий на подписание данного типа документа в системе" | Сценарий №3 (неуспешный HTTP404) |
4 | любой другой | любые данные отличные от перечисленных выше | HTTP500 Ошибка: "Ошибка сервиса. Попробуйте еще раз, если ошибка повторяется, то обратитесь в службу поддержки" | Сценарий №5 (неуспешный HTTP500) |
Сценарий №1 (успешный)
Создание документа на исполнение по аккредитиву с Референс№1 REF012345
Результат: HTTP201 + id созданного документа на исполнение №1 = 5136846156
Пример JSON документа который необходимо подписать
{
"amount": "200000.00",
"reference": "REF012345",
"applicantName": "Организация1",
"applicantInn": "4343831135",
"beneficiaryName": "ОАО Ромашка",
"beneficiaryInn": "7707083894",
"issueDate": "2023-04-24",
"currency": "RUB"
}
Пример запроса
POST https://mc.api.sberbank.ru/prod/tradefin/lc-legal/stub/v1/execution-lc-document
Authorization: Bearer 925ba7d5-cb6e-4f3e-ba18-0abd939f8a27
Content-Type: application/cms
RqUID: c7e5b64c1e176d6fbfab46ec7b1fcf81
MIISPgYJKoZIhvcNAQcCoIISLzCCEisCAQExDjAMBggqhQMHAQECAgUAMIIBIwYJKoZIhvcNAQcBoIIBFASCARB7DQogICJhbW91bnQiOiAiMjAwMDAwLjAwIiwNCiAgInJlZmVyZW5jZSI6ICJSRUYwMTIzNDUiLA0KICAiYXBwbGljYW50TmFtZSI6ICLQntGA0LPQsNC90LjQt9Cw0YbQuNGPMSIsDQogICJhcHBsaWNhbnRJbm4iOiAiNDM0MzgzMTEzNSIsDQogICJiZW5lZmljaWFyeU5hbWUiOiAi0J7QkNCeINCg0L7QvNCw0YjQutCwIiwNCiAgImJlbmVmaWNpYXJ5SW5uIjogIjc3MDcwODM4OTQiLA0KICAiaXNzdWVEYXRlIjogIjIwMjMtMDQtMjQiLA0KICAiY3VycmVuY3kiOiAiUlVCIg0KfaCCDLgwggU5MIIE5qADAgECAgp7RjBy+pNL9soZMAoGCCqFAwcBAQMCMIIBcDELMAkGA1UEBhMCUlUxGDAWBgNVBAgMDzc3INCc0L7RgdC60LLQsDEZMBcGA1UEBwwQ0LMuINCc0L7RgdC60LLQsDEnMCUGA1UECQwe0YPQuy4g0JLQsNCy0LjQu9C+0LLQsCwg0LQuIDE5MTswOQYDVQQDDDLQn9CQ0J4g0KHQsdC10YDQsdCw0L3QuiAo0KLQtdGB0YIg0JPQntCh0KIgMjAxMiBRKTE7MDkGA1UECg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zYnJmQHNiZXJiYW5rLnJ1Agp7RjBy+pNL9soZMAoGCCqFAwcBAQEBBEAZ0OJKyNWSHosmQQQrE8LbzFVmD0FWV8FzuL8mJ22a+xpNAK0Cki65v1xZIgeJOWqWAfIrOW9WaoqrEvFWA8aY
Пример ответа:
HTTP/1.1 201 Created
Server: nginx/1.22.1
Date: Mon, 29 May 2023 05:21:04 GMT
Content-Length: 0
Connection: keep-alive
X-Gravitee-Transaction-Id: 75648cc8-8c26-4670-a48c-c88c269670d5
X-Gravitee-Request-Id: 75648cc8-8c26-4670-a48c-c88c269670d5
X-Rate-Limit-Limit: 20
X-Rate-Limit-Remaining: 19
X-Rate-Limit-Reset: 1685337660297
location: /execution-lc-document/5136846156
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
strict-transport-security: max-age=31536000 ; includeSubDomains
x-frame-options: DENY
<Response body is empty>
Сценарий №2 (успешный)
Создание документа на исполнение по аккредитиву с Референс№2=REF987654
Результат: HTTP201 + id созданного документа на исполнение №2 = 8974615654
Пример JSON документа который необходимо подписать
{
"amount": "200000.00",
"reference": "REF987654",
"applicantName": "Организация1",
"applicantInn": "4343831135",
"beneficiaryName": "ОАО Ромашка",
"beneficiaryInn": "7707083894",
"issueDate": "2023-04-24",
"currency": "RUB"
}
Пример запроса
POST https://mc.api.sberbank.ru/prod/tradefin/lc-legal/stub/v1/execution-lc-document
Authorization: Bearer 925ba7d5-cb6e-4f3e-ba18-0abd939f8a27
Content-Type: application/cms
RqUID: c7e5b64c1e176d6fbfab46ec7b1fcf81
MIISPgYJKoZIhvcNAQcCoIISLzCCEisCAQExDjAMBggqhQMHAQECAgUAMIIBIwYJKoZIhvcNAQcBoIIBFASCARB7DQogICJhbW91bnQiOiAiMjAwMDAwLjAwIiwNCiAgInJlZmVyZW5jZSI6ICJSRUY5ODc2NTQiLA0KICAiYXBwbGljYW50TmFtZSI6ICLQntGA0LPQsNC90Lj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PS2hC6v6yCPWQ8MougO2F69iDCRxP0Oonc33AJ1RHdTMIIBiDCCAXikggF0MIIBcDELMAkGA1UEBhMCUlUxGDAWBgNVBAgMDzc3INCc0L7RgdC60LLQsDEZMBcGA1UEBwwQ0LMuINCc0L7RgdC60LLQsDEnMCUGA1UECQwe0YPQuy4g0JLQsNCy0LjQu9C+0LLQsCwg0LQuIDE5MTswOQYDVQQDDDLQn9CQ0J4g0KHQsdC10YDQsdCw0L3QuiAo0KLQtdGB0YIg0JPQntCh0KIgMjAxMiBRKTE7MDkGA1UECgwy0J/QkNCeINCh0LHQtdGA0LHQsNC90LogKNCi0LXRgdGCINCT0J7QodCiIDIwMTIgUSkxMDAuBgNVBAsMJ9Cj0LTQvtGB0YLQvtCy0LXRgNGP0Y7RidC40Lkg0YbQtdC90YLRgDEaMBgGCCqFAwOBAwEBEgwwMDc3MDcwODM4OTMxGDAWBgUqhQNkARINMTAyNzcwMDEzMjE5NTEhMB8GCSqGSIb3DQEJARYSY2FzYnJmQHNiZXJiYW5rLnJ1Agp7RjBy+pNL9soZMAoGCCqFAwcBAQEBBEAjBxcBIddrQC9bKxB31EI28wbY5UiPcX/LhZ5MePKpnQ4vXOMqCNKyzIhplXjENWNSuXD06LElWFGrm/sPIMdQ
Пример ответа:
HTTP/1.1 201 Created
Server: nginx/1.22.1
Date: Mon, 29 May 2023 05:21:04 GMT
Content-Length: 0
Connection: keep-alive
X-Gravitee-Transaction-Id: 75648cc8-8c26-4670-a48c-c88c269670d5
X-Gravitee-Request-Id: 75648cc8-8c26-4670-a48c-c88c269670d5
X-Rate-Limit-Limit: 20
X-Rate-Limit-Remaining: 19
X-Rate-Limit-Reset: 1685337660297
location: /execution-lc-document/5136846156
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
strict-transport-security: max-age=31536000 ; includeSubDomains
x-frame-options: DENY
<Response body is empty>
Сценарий №3 (неуспешный HTTP403)
Создание документа на исполнение по аккредитиву с Референс№3=REF454545
Результат: HTTP403 + ошибка " У подписанта нет полномочий на подписание данного типа документа в системе "
Пример JSON документа который необходимо подписать
{
"amount": "200000.00",
"reference": "REF454545",
"applicantName": "Организация1",
"applicantInn": "4343831135",
"beneficiaryName": "ОАО Ромашка",
"beneficiaryInn": "7707083894",
"issueDate": "2023-04-24",
"currency": "RUB"
}
Пример запроса:
POST https://mc.api.sberbank.ru/prod/tradefin/lc-legal/stub/v1/execution-lc-document
Authorization: Bearer 925ba7d5-cb6e-4f3e-ba18-0abd939f8a27
Content-Type: application/cms
RqUID: c7e5b64c1e176d6fbfab46ec7b1fcf81
MIISPgYJKoZIhvcNAQcCoIISLzCCEisCAQExDjAMBggqhQMHAQECAgUAMIIBIwYJKoZIhvcNAQcBoIIBFASCARB7DQogICJhbW91bnQiOiAiMjAwMDAwLjAwIiwNCiAgInJlZmVyZW5jZSI6ICJSRUY0NTQ1NDUiLA0KICAiYXBwbGljYW50TmFtZSI6ICLQntGA0LPQsNC90LjQt9Cw0YbQuNGPMSIsDQogICJhcHBsaWNhbnRJbm4iOiAiNDM0MzgzMTEzNSIsDQogICJiZW5lZmljaWFyeU5hbWUiOiAi0J7QkNCeINCg0L7QvNCw0YjQutCwIiwNCiAgImJlbmVmaWNpYXJ5SW5uIjogIjc3MDcwODM4OTQiLA0KICAiaXNzdWVEYXRlIjogIjIwMjMtMDQtMjQiLA0KICAiY3VycmVuY3kiOiAiUlVCIg0KfaCCDLgwggU5MIIE5qADAgECAgp7RjBy+pNL9soZMAoGCCqFAwcBAQMCMIIBcDELMAkGA1UEBhMCUlUxGDAWBgNVBAgMDzc3INCc0L7RgdC60LLQsDEZMBcGA1UEBwwQ0LMuINCc0L7RgdC60LLQsDEnMCUGA1UECQwe0YPQuy4g0JLQsNCy0LjQu9C+0LLQsCwg0LQuIDE5MTswOQYDVQQDDDLQn9CQ0J4g0KHQsdC10YDQsdCw0L3QuiAo0KLQtdGB0YIg0JPQntCh0KIgM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SqGSIb3DQEJARYSY2FzYnJmQHNiZXJiYW5rLnJ1Agp7RjBy+pNL9soZMAoGCCqFAwcBAQEBBEA0RGH6x9Rsesic20kCqGziBIAgR267AMMQuNSrwl6tCHmLxkrvRCw0CJsDF7kaWqvGMIgejQBCh60aohdjKQVB
Пример ответа:
HTTP/``1.1`` ``403`` Forbidden
Server: nginx
Date: Tue, ``22`` Aug ``2023`` ``12``:``06``:``30`` GMT
Content-Type: application/json
Content-Length: ``439
Connection: keep-alive
X-Gravitee-Transaction-Id: 8916fbae-``0929``-4f2f-96fb-ae0929af2fea
X-Gravitee-Request-Id: 8916fbae-``0929``-4f2f-96fb-ae0929af2fea
X-Rate-Limit-Limit: ``20
X-Rate-Limit-Remaining: ``19
X-Rate-Limit-Reset: ``1692705989869
cache-control: no-cache, no-store, max-age=``0``, must-revalidate
pragma: no-cache
expires: ``0
Allow: GET, POST, HEAD
X-Frame-Options: DENY
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: ``1``; mode=block
X-XSS-Protection: ``1``; mode=block
X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=``31536000`` ; includeSubDomains
Strict-Transport-Security: max-age=``31536000``; includeSubDomains
Allow: GET, POST, HEAD
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: ``1``; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=``31536000``; includeSubDomains
{
``"errorMessage"``: ``"У подписанта нет полномочий на подписание данного типа документа в системе"
}
Сценарий №4 (неуспешный HTTP500)
Создание документа на исполнение по любому аккредитиву с референсом отличным от Референс№1, Референс№2 и Референс№3
Результат: HTTP500 + ошибка "Ошибка сервиса. Попробуйте еще раз, если ошибка повторяется, то обратитесь в службу поддержки"
Пример JSON документа который необходимо подписать
{
"amount": "100000.00",
"reference": "REF000001",
"applicantName": "Организация1",
"applicantInn": "4343831135",
"beneficiaryName": "ОАО Ромашка",
"beneficiaryInn": "7707083894",
"issueDate": "2023-04-24",
"currency": "RUB"
}
Пример запроса:
POST https://mc.api.sberbank.ru/prod/tradefin/lc-legal/stub/v1/execution-lc-document
Authorization: Bearer 925ba7d5-cb6e-4f3e-ba18-0abd939f8a27
Content-Type: application/cms
RqUID: c7e5b64c1e176d6fbfab46ec7b1fcf81
MIISPgYJKoZIhvcNAQcCoIISLzCCEisCAQExDjAMBggqhQMHAQECAgUAMIIBIwYJKoZIhvcNAQcBoIIBFASCARB7DQogICJhbW91bnQiOiAiMTAwMDAwLjAwIiwNCiAgInJlZmVyZW5jZSI6ICJSRUYwMDAwMDEiLA0KICAiYXBwbGljYW50TmFtZSI6ICLQntGA0LPQsNC90LjQt9Cw0YbQuNGPMSIsDQogICJhcHBsaWNhbnRJbm4iOiAiNDM0MzgzMTEzNSIsDQogICJiZW5lZmljaWFyeU5hbWUiOiAi0J7QkNCeINCg0L7QvNCw0YjQutCwIiwNCiAgImJlbmVmaWNpYXJ5SW5uIjogIjc3MDcwODM4OTQiLA0KICAiaXNzdWVEYXRlIjogIjIwMjMtMDQtMjQiLA0KICAiY3VycmVuY3kiOiAiUlVCIg0KfaCCDLgwggU5MIIE5qADAgECAgp7RjBy+pNL9soZMAoGCCqFAwcBAQMCMIIBcDELMAkGA1UEBhMCUlUxGDAWBgNVBAgMDzc3INCc0L7RgdC60LLQsDEZMBcGA1UEBwwQ0LMuINCc0L7RgdC60LLQsDEnMCUGA1UECQwe0YPQuy4g0JLQsNCy0LjQu9C+0LLQsCwg0LQuIDE5MTswOQYDVQQDDDLQn9CQ0J4g0KHQsdC10YDQsdCw0L3QuiAo0KLQtdGB0YIg0JPQntCh0KIgMjAxMiBRKTE7MDkGA1UECgwy0J/QkNCeINCh0LHQtdGA0LHQsNC90LogKNCi0LXRgdGCINCT0J7QodCiIDIwMTIgUSkxMDAuBgNVBAsMJ9Cj0LTQvtGB0YLQvtCy0LXRgNGP0Y7RidC40Lkg0YbQtdC90YLRgDEaMBgGCCqFAwOBAwEBEgwwMDc3MDcwODM4OTMxGDAWB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Date: Tue, 22 Aug 2023 11:57:14 GMT
Content-Type: application/json
Content-Length: 195
Connection: keep-alive
X-Gravitee-Transaction-Id: 7242a0b4-712f-44e8-82a0-b4712fa4e883
X-Gravitee-Request-Id: 7242a0b4-712f-44e8-82a0-b4712fa4e883
X-Rate-Limit-Limit: 20
X-Rate-Limit-Remaining: 19
X-Rate-Limit-Reset: 1692705426793
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
Allow: GET, POST, HEAD, PUT, DELETE, CONNECT, OPTIONS, PATCH
Allow: GET, POST, HEAD
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
Strict-Transport-Security: max-age=31536000; includeSubDomains
Strict-Transport-Security: max-age=31536000; includeSubDomains
Allow: GET, POST, HEAD
Strict-Transport-Security: max-age=31536000; includeSubDomains
{
"errorMessage": "Ошибка сервиса. Попробуйте еще раз, если ошибка повторяется, то обратитесь в службу поддержки"
}