我正试图做一个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}
亚马逊的文档不是世界上最好的,所以我希望能从社区得到一个解决方案。想知道有没有人穿过类似的鞋?
1条答案
按热度按时间jgzswidk1#
如果你看你发的请求。有些参数没有值,但键仍然存在,就像这部分一样
BuyerEmail=&SellerOrderId