销售合作伙伴api amazon 400错误请求

jfewjypa  于 2021-06-26  发布在  Java
关注(0)|答案(1)|浏览(859)

我正试图做一个api调用亚马逊的销售合作伙伴api记录在这里-sp api。我通过javaapi专门调用ordersv0api,如下所示-

GetOrdersResponse resp = apiInstance.getOrders(marketPlaceIds, createdAfter, createdBefore,
                        lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail,
                        sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, nextToken, amazonOrderIds);

然而,尽管尝试了多种输入,我还是得到了以下结果-

Response{protocol=http/1.1, code=400, message=Bad Request, url=https://sellingpartnerapi-eu.amazon.com/orders/v0/orders?CreatedAfter=2021-01-07T00%3A11%3A12.515020&CreatedBefore=2021-01-07T00%3A11%3A12.515060&LastUpdatedAfter=2021-01-07T00%3A11%3A12.515020&LastUpdatedBefore=2021-01-07T00%3A11%3A12.515060&BuyerEmail=&SellerOrderId=&MaxResultsPerPage=1&NextToken=&OrderStatuses=Unshipped&MarketplaceIds=A21TJRUUN4KGV&FulfillmentChannels=MFN&PaymentMethods=Other}

亚马逊的文档不是世界上最好的,所以我希望能从社区得到一个解决方案。想知道有没有人穿过类似的鞋?

jgzswidk

jgzswidk1#

如果你看你发的请求。有些参数没有值,但键仍然存在,就像这部分一样 BuyerEmail=&SellerOrderId

相关问题