amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
576 stars 730 forks source link

SP-API Sandbox FBA PutTransportDetails allways return "Data is invalid. Please check" #1750

Closed allenlin868 closed 2 years ago

allenlin868 commented 3 years ago

this is the api what I use PUT fba/inbound/v0/shipments/{shipmentId}/transport

Using the test parameters in the fulfillmentInboundV0.json file.I find that the request parameters are the same regardless of whether 200 or 400 is returned, so NOW I keep returning "Data is invalid. Please check" in the Sandbox environment. Is there a problem with the Sandbox on this particular endpoint?

This is the request parameter when the response is 200:

"x-amazon-spds-sandbox-behaviors": [ { "request": { "parameters": { "shipmentId": { "value": "shipmentId1" }, "body": { "value": { "IsPartnered": true, "ShipmentType": "SP", "TransportDetails": { "PartneredSmallParcelData": { "PackageList": [ { "Dimensions": { "Length": 11, "Width": 11, "Height": 11, "Unit": "inches" }, "Weight": { "Value": 11, "Unit": "pounds" } } ], "CarrierName": "string" }, "NonPartneredSmallParcelData": { "CarrierName": "USPS", "PackageList": [ { "TrackingId": "werwrwerwrwrer" } ] }, "PartneredLtlData": { "Contact": { "Name": "Test1", "Phone": "234-343-3434", "Email": "abc@test.com", "Fax": "234-343-3434" }, "BoxCount": 1, "SellerFreightClass": "50", "FreightReadyDate": "2020-03-27", "PalletList": [ { "Dimensions": { "Length": 13, "Width": 13, "Height": 13, "Unit": "inches" }, "Weight": { "Value": 13, "Unit": "pounds" }, "IsStacked": true } ], "TotalWeight": { "Value": 13, "Unit": "pounds" }, "SellerDeclaredValue": { "CurrencyCode": "USD", "Value": 20 } }, "NonPartneredLtlData": { "CarrierName": "USPS", "ProNumber": "3746274" } } } } } }, "response": { "payload": { "TransportResult": { "TransportStatus": "WORKING" } } } } ] }

This is the request parameter when the response is 400:

"x-amazon-spds-sandbox-behaviors": [ { "request": { "parameters": { "shipmentId": { "value": "shipmentId1" }, "body": { "value": { "IsPartnered": true, "ShipmentType": "SP", "TransportDetails": { "PartneredSmallParcelData": { "PackageList": [ { "Dimensions": { "Length": 11, "Width": 11, "Height": 11, "Unit": "inches" }, "Weight": { "Value": 11, "Unit": "pounds" } } ], "CarrierName": "string" }, "NonPartneredSmallParcelData": { "CarrierName": "USPS", "PackageList": [ { "TrackingId": "werwrwerwrwrer" } ] }, "PartneredLtlData": { "Contact": { "Name": "Test1", "Phone": "234-343-3434", "Email": "abc@test.com", "Fax": "234-343-3434" }, "BoxCount": 1, "SellerFreightClass": "50", "FreightReadyDate": "2020-03-27", "PalletList": [ { "Dimensions": { "Length": 13, "Width": 13, "Height": 13, "Unit": "inches" }, "Weight": { "Value": 13, "Unit": "pounds" }, "IsStacked": true } ], "TotalWeight": { "Value": 13, "Unit": "pounds" }, "SellerDeclaredValue": { "CurrencyCode": "USD", "Value": 20 } }, "NonPartneredLtlData": { "CarrierName": "USPS", "ProNumber": "3746274" } } } } } }, "response": { "errors": [ { "code": "Invalid Input", "message": "Data is invalid. Please check." } ] } } ] }

github-actions[bot] commented 2 years ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.