diadoc / diadocapi-docs

HTTP API documentation - http://api-docs.diadoc.ru/
40 stars 92 forks source link

Can't deserialize request body into type: UniversalTransferDocumentSellerTitleInfo #187

Closed natt-eyre closed 7 years ago

natt-eyre commented 7 years ago

Выдает 400-ю при попытке сгенерировать УПД с помощью метода GenerateUniversalTransferDocumentXmlForSeller. В ответе только текст из темы - "Can't deserialize request body into type: UniversalTransferDocumentSellerTitleInfo" . В теле ответа аналогичный текст. Как понять, что не так с передаваемыми данными? "{\"Function\":\"2\",\"DocumentName\":\"\\u0423\\u043d\\u0438\\u0432\\u0435\\u0440\\u0441\\u0430\\u043b\\u044c\\u043d\\u044b\\u0439 \\u043f\\u0435\\u0440\\u0435\\u0434\\u0430\\u0442\\u043e\\u0447\\u043d\\u044b\\u0439 \\u0434\\u043e\\u043a\\u0443\\u043c\\u0435\\u043d\\u0442\",\"DocumentDate\":\"30.05.2017\",\"DocumentNumber\":\"\\u041f-16799/547\",\"Seller\":{\"BoxId\":\"103a03582e0c4d74b05c617f124564dc@diadoc.ru\",\"OrgName\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u043e \\u0441 \\u043e\\u0433\\u0440\\u0430\\u043d\\u0438\\u0447\\u0435\\u043d\\u043d\\u043e\\u0439 \\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u043e\\u0441\\u0442\\u044c\\u044e \\u00ab\\u0418\\u043d\\u0441\\u0435\\u0439\\u043b\\u0441 \\u0420\\u0443\\u0441\\u00bb\",\"Inn\":\"7714843760\",\"Kpp\":\"771401001\",\"Address\":{\"RussianAddress\":{\"ZipCode\":\"125319\",\"Region\":\"77\",\"City\":\"\\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\",\"Street\":\"\\u0443\\u043b \\u0410\\u043a\\u0430\\u0434\\u0435\\u043c\\u0438\\u043a\\u0430 \\u0418\\u043b\\u044c\\u044e\\u0448\\u0438\\u043d\\u0430\",\"Building\":\"\\u0434\\u043e\\u043c 4\",\"Block\":\"\\u043a\\u043e\\u0440. 1\",\"Apartment\":\"\\u043e\\u0444\\u0438\\u0441 11\"}},\"FnsParticipantId\":\"2BM-7714843760-771401001-201407070405496642694\",\"OrgType\":\"1\",\"Okopf\":\"12300\",\"Okpo\":\"92547290\",\"Phone\":\"(495) 649-83-14\",\"Email\":\"support@insales.ru\",\"CorrespondentAccount\":\"30101810500000000222\",\"BankAccountNumber\":\"40702810600001004854\",\"BankName\":\"\\u0418\\u041d\\u0413 \\u0411\\u0410\\u041d\\u041a (\\u0415\\u0412\\u0420\\u0410\\u0417\\u0418\\u042f) \\u0410\\u041e\",\"BankId\":\"044525222\"},\"Buyer\":{\"BoxId\":\"0ef49bd77ffe4249bd6b7bf844ae5006@diadoc.ru\",\"OrgName\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u043e \\u0441 \\u043e\\u0433\\u0440\\u0430\\u043d\\u0438\\u0447\\u0435\\u043d\\u043d\\u043e\\u0439 \\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u043e\\u0441\\u0442\\u044c\\u044e \\u00ab\\u0420\\u0418\\u0422\\u0415\\u0419\\u041b\\u00bb\",\"Inn\":\"7701341604\",\"Kpp\":\"770101001\",\"Address\":{\"RussianAddress\":{\"ZipCode\":\"101000\",\"Region\":\"77\",\"City\":\"\\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\",\"Street\":\"\\u0443\\u043b \\u0410\\u043a\\u0430\\u0434\\u0435\\u043c\\u0438\\u043a\\u0430 \\u0418\\u043b\\u044c\\u044e\\u0448\\u0438\\u043d\\u0430\",\"Building\":\"\\u0434\\u043e\\u043c 4\",\"Block\":\"\\u043a\\u043e\\u0440. 1\",\"Apartment\":\"\\u043e\\u0444\\u0438\\u0441 11\"}},\"FnsParticipantId\":\"2BM-7701341604-770101001-201508210656236415595\",\"OrgType\":\"1\",\"Phone\":\"89853044935 89161309903\",\"Email\":\"myvictorinox@gmail.com\",\"CorrespondentAccount\":\"30101810400000000225\",\"BankAccountNumber\":\"40702810038000033978\",\"BankName\":\"\\u041e\\u0410\\u041e \\u0421\\u0411\\u0415\\u0420\\u0411\\u0410\\u041d\\u041a \\u0420\\u041e\\u0421\\u0421\\u0418\\u0418 \\u0433. \\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\",\"BankId\":\"044525225\"},\"Shipper\":{\"SameAsSeller\":true},\"Consignee\":{\"BoxId\":\"0ef49bd77ffe4249bd6b7bf844ae5006@diadoc.ru\",\"OrgName\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u043e \\u0441 \\u043e\\u0433\\u0440\\u0430\\u043d\\u0438\\u0447\\u0435\\u043d\\u043d\\u043e\\u0439 \\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u043e\\u0441\\u0442\\u044c\\u044e \\u00ab\\u0420\\u0418\\u0422\\u0415\\u0419\\u041b\\u00bb\",\"Inn\":\"7701341604\",\"Kpp\":\"770101001\",\"Address\":{\"RussianAddress\":{\"ZipCode\":\"101000\",\"Region\":\"77\",\"City\":\"\\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\",\"Street\":\"\\u0443\\u043b \\u0410\\u043a\\u0430\\u0434\\u0435\\u043c\\u0438\\u043a\\u0430 \\u0418\\u043b\\u044c\\u044e\\u0448\\u0438\\u043d\\u0430\",\"Building\":\"\\u0434\\u043e\\u043c 4\",\"Block\":\"\\u043a\\u043e\\u0440. 1\",\"Apartment\":\"\\u043e\\u0444\\u0438\\u0441 11\"}},\"FnsParticipantId\":\"2BM-7701341604-770101001-201508210656236415595\",\"OrgType\":\"1\",\"Phone\":\"89853044935 89161309903\",\"Email\":\"myvictorinox@gmail.com\",\"CorrespondentAccount\":\"30101810400000000225\",\"BankAccountNumber\":\"40702810038000033978\",\"BankName\":\"\\u041e\\u0410\\u041e \\u0421\\u0411\\u0415\\u0420\\u0411\\u0410\\u041d\\u041a \\u0420\\u041e\\u0421\\u0421\\u0418\\u0418 \\u0433. \\u041c\\u043e\\u0441\\u043a\\u0432\\u0430\",\"BankId\":\"044525225\"},\"Signers\":[{\"BoxId\":\"103a03582e0c4d74b05c617f124564dc@diadoc.ru\",\"SignerDetails\":{\"Surname\":\"\\u0413\\u043e\\u0440\\u0448\\u043a\\u043e\\u0432\",\"FirstName\":\"\\u0422\\u0438\\u043c\\u043e\\u0444\\u0435\\u0439\",\"JobTitle\":\"\\u0413\\u0435\\u043d\\u0435\\u0440\\u0430\\u043b\\u044c\\u043d\\u044b\\u0439 \\u0434\\u0438\\u0440\\u0435\\u043a\\u0442\\u043e\\u0440\",\"Inn\":\"9693394875\",\"SignerType\":\"1\",\"SignerOrganizationName\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u043e \\u0441 \\u043e\\u0433\\u0440\\u0430\\u043d\\u0438\\u0447\\u0435\\u043d\\u043d\\u043e\\u0439 \\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u043e\\u0441\\u0442\\u044c\\u044e \\u00ab\\u0418\\u043d\\u0441\\u0435\\u0439\\u043b\\u0441 \\u0420\\u0443\\u0441\\u00bb\",\"SignerPowers\":\"0\",\"SignerStatus\":\"1\"}}],\"PaymentDocuments\":[{\"DocumentDate\":\"24.05.2017\",\"DocumentNumber\":\"417688\"}],\"InvoiceTable\":{\"Items\":[{\"Product\":\"\\u041f\\u0435\\u0440\\u0435\\u0434\\u0430\\u0447\\u0430 \\u043d\\u0435\\u0438\\u0441\\u043a\\u043b\\u044e\\u0447\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u043e\\u0433\\u043e \\u043f\\u0440\\u0430\\u0432\\u0430 \\u043d\\u0430 \\u0440\\u0430\\u0441\\u0448\\u0438\\u0440\\u0435\\u043d\\u043d\\u044b\\u0439 \\u0444\\u0443\\u043d\\u043a\\u0446\\u0438\\u043e\\u043d\\u0430\\u043b \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u044b \\u0434\\u043b\\u044f \\u042d\\u0412\\u041c InSales \\u00ab\\u041f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0435 \\u041f\\u043e\\u0434\\u043f\\u0438\\u0441\\u043a\\u0430 \\u043d\\u0430 \\u043d\\u0430\\u043b\\u0438\\u0447\\u0438\\u0435\\u00bb \\u043d\\u0430 \\u0441\\u0440\\u043e\\u043a \\u0441\\u00a030.05.2017 \\u043f\\u043e\\u00a030.06.2017 \\u0432\\u043a\\u043b\\u044e\\u0447\\u0438\\u0442\\u0435\\u043b\\u044c\\u043d\\u043e.\",\"TaxRate\":\"\\u0411\\u0435\\u0437 \\u041d\\u0414\\u0421\",\"SubtotalWithVatExcluded\":\"372.58\",\"Subtotal\":\"372.58\"}],\"Vat\":\"0,00\",\"Total\":\"372.58\"},\"Currency\":\"643\",\"TransferInfo\":{\"OperationInfo\":\"\\u041f\\u0440\\u0430\\u0432\\u0430 \\u043f\\u0435\\u0440\\u0435\\u0434\\u0430\\u043d\\u044b\",\"TransferDate\":\"30.05.2017\",\"TransferBase\":[{\"BaseDocumentName\":\"\\u0414\\u043e\\u0433\\u043e\\u0432\\u043e\\u0440\",\"BaseDocumentNumber\":54784,\"BaseDocumentDate\":\"25.06.2015\"}],\"Waybill\":[{\"TransferDocumentNumber\":\"100\",\"TransferDocumentDate\":\"28.02.2017\"}]},\"DocumentCreator\":\"\\u041e\\u0431\\u0449\\u0435\\u0441\\u0442\\u0432\\u043e \\u0441 \\u043e\\u0433\\u0440\\u0430\\u043d\\u0438\\u0447\\u0435\\u043d\\u043d\\u043e\\u0439 \\u043e\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u043e\\u0441\\u0442\\u044c\\u044e \\u00ab\\u0418\\u043d\\u0441\\u0435\\u0439\\u043b\\u0441 \\u0420\\u0443\\u0441\\u00bb\"}"

atytsky commented 7 years ago

У вас неверно заполнен параметр TaxeRate, это не строка, а enum.

Добавим описание на страницу контракта для УПД.

atytsky commented 7 years ago

Поправили документацию.