Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ошибка 409(Конфликт) подписание извещения InvoiceConfirmation #1193

Open
ArinaArs opened this issue Feb 28, 2025 · 0 comments

Comments

@ArinaArs
Copy link

День добрый!
Мы используем DiadocApi.dll версии 2.23.0.0
Пытаемся подписать извещение на входящую счет-фактуру
var сообщение = DiadocApi.GetMessage(Токен, _нашЯщик.BoxId, _документ.MessageId, _документ.EntityId);
var сф = сообщение.Entities.FirstOrDefault(вложение =>
вложение.AttachmentType == AttachmentType.Invoice /с/ф/
|| вложение.AttachmentType == AttachmentType.InvoiceRevision /исправление с/ф/
|| вложение.AttachmentType == AttachmentType.InvoiceCorrection /корректив с/ф/
);

var подтверждениеПолученияСФ = сообщение.Entities.FirstOrDefault(вложение =>
вложение.AttachmentType == AttachmentType.InvoiceConfirmation &&
вложение.ParentEntityId == сф.EntityId);

при генерации извещения
var извещение = DiadocApi.GenerateReceiptXml(Токен
, _нашЯщик.BoxId
, сообщение.MessageId
, подтверждениеПолученияСФ.EntityId
, new Signer()
{
SignerCertificate = байтыСертификата,
SignerDetails = _подпись
});

получаем ошибку
BaseUrl=https://diadoc-api.kontur.ru:443
, PathAndQuery=/GenerateReceiptXml?boxId=8768d52ee854474680ff19465154db18%40diadoc.ru&messageId=ed662823-bac2-4b3b-8d6e-1d25fd1180a7&attachmentId=a059170a-b785-4089-8628-f75bc7614b02
, AdditionalMessage=ErrorCode: DocumentService.InvalidDocumentType (Http.Conflict)
, StatusCode=Conflict, DiadocErrorCode: DocumentService.InvalidDocumentType

на сайте статус документа требуется подвисать извещение
где ошибка ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant