Я совершенно озадачен попыткой перейти на новый API SP API Inbound Fulfillment на первом этапе (createInboundPlan).
Вот полезная нагрузка непосредственно перед ее отправкой в /inboundPlans
{'body': {'destinationMarketplaces': ['A1F83G8C2ARO7P'], 'items': [{'labelOwner': 'SELLER', 'msku': 'GNT~300506-9-10~RubiesDisneyFroze', 'prepOwner': 'SELLER', 'quantity': 24}, {'labelOwner': 'SELLER', 'msku': 'GNT~6061626~SpinMasterGamesSkillm', 'prepOwner': 'SELLER', 'quantity': 8}, {'labelOwner': 'SELLER', 'msku': 'GNT~F2934~MyLittlePonyPlayDoh', 'prepOwner': 'SELLER', 'quantity': 24}, {'labelOwner': 'SELLER', 'msku': 'GNT~HKV33~PollyPocketMiniToysCampAdve', 'prepOwner': 'SELLER', 'quantity': 32}, {'labelOwner': 'SELLER', 'msku': 'GNT~TM15537~McFarlaneToysDCMultiverse', 'prepOwner': 'SELLER', 'quantity': 6}, {'labelOwner': 'SELLER', 'msku': 'SMF~70604~Playmobil70596CityLifeF', 'prepOwner': 'SELLER', 'quantity': 24}], 'name': 'TEST', 'sourceAddress': {'addressLine1': 'Unit 2 49 Quarry Road', 'addressLine2': 'Ballydrain', 'city': 'Lisbane', 'companyName': 'Ardmillan Trading Limited', 'countryCode': 'GB', 'email': 'paul@email.co.uk', 'name': 'Paul Anderson', 'phoneNumber': '07841903333', 'postalCode': 'BT23 6QQ', 'stateOrProvinceCode': 'Co. Down'}}, 'path': '/inbound/fba//inboundPlans', 'method': 'POST'}
Он постоянно терпит неудачу со следующей ошибкой, которая, как я ожидаю, означает, что я передаю данные своего тела в неправильном формате, но я не понимаю, почему. Кто-нибудь может указать мне правильное направление или показать фрагмент рабочего кода?
sp_api.base.exceptions.SellingApiBadRequestException: [{'code': 'InvalidInput', 'message': "9 validation errors detected: Value '[]' at 'request.destinationMarketplaces' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.phoneNumber' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.city' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.countryCode' failed to satisfy constraint: Member must satisfy regular expression pattern: [A-Z]{2}; Value at 'request.sourceAddress.countryCode' failed to satisfy constraint: Member must have length greater than or equal to 2; Value at 'request.sourceAddress.postalCode' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.name' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.addressLine1' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '[]' at 'request.items' failed to satisfy constraint: Member must have length greater than or equal to 1", 'details': ''}]
Подробнее здесь: https://stackoverflow.com/questions/792 ... zon-sp-api
Ошибки при вызове createinboundplan в python-amazon-sp-api ⇐ Python
Программы на Python
-
Anonymous
1734564450
Anonymous
Я совершенно озадачен попыткой перейти на новый API SP API Inbound Fulfillment на первом этапе (createInboundPlan).
Вот полезная нагрузка непосредственно перед ее отправкой в /inboundPlans
{'body': {'destinationMarketplaces': ['A1F83G8C2ARO7P'], 'items': [{'labelOwner': 'SELLER', 'msku': 'GNT~300506-9-10~RubiesDisneyFroze', 'prepOwner': 'SELLER', 'quantity': 24}, {'labelOwner': 'SELLER', 'msku': 'GNT~6061626~SpinMasterGamesSkillm', 'prepOwner': 'SELLER', 'quantity': 8}, {'labelOwner': 'SELLER', 'msku': 'GNT~F2934~MyLittlePonyPlayDoh', 'prepOwner': 'SELLER', 'quantity': 24}, {'labelOwner': 'SELLER', 'msku': 'GNT~HKV33~PollyPocketMiniToysCampAdve', 'prepOwner': 'SELLER', 'quantity': 32}, {'labelOwner': 'SELLER', 'msku': 'GNT~TM15537~McFarlaneToysDCMultiverse', 'prepOwner': 'SELLER', 'quantity': 6}, {'labelOwner': 'SELLER', 'msku': 'SMF~70604~Playmobil70596CityLifeF', 'prepOwner': 'SELLER', 'quantity': 24}], 'name': 'TEST', 'sourceAddress': {'addressLine1': 'Unit 2 49 Quarry Road', 'addressLine2': 'Ballydrain', 'city': 'Lisbane', 'companyName': 'Ardmillan Trading Limited', 'countryCode': 'GB', 'email': 'paul@email.co.uk', 'name': 'Paul Anderson', 'phoneNumber': '07841903333', 'postalCode': 'BT23 6QQ', 'stateOrProvinceCode': 'Co. Down'}}, 'path': '/inbound/fba//inboundPlans', 'method': 'POST'}
Он постоянно терпит неудачу со следующей ошибкой, которая, как я ожидаю, означает, что я передаю данные своего тела в неправильном формате, но я не понимаю, почему. Кто-нибудь может указать мне правильное направление или показать фрагмент рабочего кода?
sp_api.base.exceptions.SellingApiBadRequestException: [{'code': 'InvalidInput', 'message': "9 validation errors detected: Value '[]' at 'request.destinationMarketplaces' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.phoneNumber' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.city' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.countryCode' failed to satisfy constraint: Member must satisfy regular expression pattern: [A-Z]{2}; Value at 'request.sourceAddress.countryCode' failed to satisfy constraint: Member must have length greater than or equal to 2; Value at 'request.sourceAddress.postalCode' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.name' failed to satisfy constraint: Member must have length greater than or equal to 1; Value at 'request.sourceAddress.addressLine1' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '[]' at 'request.items' failed to satisfy constraint: Member must have length greater than or equal to 1", 'details': ''}]
Подробнее здесь: [url]https://stackoverflow.com/questions/79292765/errors-calling-createinboundplan-in-python-amazon-sp-api[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия