0

我正在尝试对此处记录的亚马逊销售合作伙伴 API - SP-API 进行 API 调用。我通过 Java API 专门对 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}

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

4

1 回答 1

1

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

于 2021-01-06T19:48:33.993 回答