Closed aaalison closed 2 years ago
The is the returned data for buyerInfo:
{
"payload": {
"AmazonOrderId": "111-1111111-1111111",
"BuyerEmail": "1234567@marketplace.amazon.com",
"BuyerName": "John Doe"
}
}
and address
{
"payload": {
"AmazonOrderId": "111-1111111-1111111",
"ShippingAddress": {
"StateOrRegion": "AA",
"AddressLine1": "address line 1",
"Phone": "123-123123123",
"PostalCode": "1234567",
"City": "Cityname",
"CountryCode": "US",
"AddressType": "Residential",
"Name": "John Doe"
}
}
}
Maybe you can printout the json body and take a look
The is the returned data for buyerInfo:
{ "payload": { "AmazonOrderId": "111-1111111-1111111", "BuyerEmail": "1234567@marketplace.amazon.com", "BuyerName": "John Doe" } }
and address
{ "payload": { "AmazonOrderId": "111-1111111-1111111", "ShippingAddress": { "StateOrRegion": "AA", "AddressLine1": "address line 1", "Phone": "123-123123123", "PostalCode": "1234567", "City": "Cityname", "CountryCode": "US", "AddressType": "Residential", "Name": "John Doe" } } }
Maybe you can printout the json body and take a look
Thank you! Would you know if access to PII is required to get all data? Below is what I get:
@aaalison
I have the same problem. How did you solve it?
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.
getting the same issue.
According to SP-API order documentation,
But it did not return, I got error "Undefined index: BuyerName"
But it returned blank name
Operation: getOrderBuyerInfo, getOrderAddress MarketplaceId: ATVPDKIKX0DER