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
612 stars 739 forks source link

[BUG] Cannot get "getOrderBuyerInfo > BuyerName" & "getOrderAddress > ShippingAddress > Name" #1518

Closed aaalison closed 2 years ago

aaalison commented 3 years ago

According to SP-API order documentation,

  1. "getOrderBuyerInfo" will return "BuyerName" https://github.com/amzn/selling-partner-api-docs/blob/main/references/orders-api/ordersV0.md#getorderbuyerinfo

But it did not return, I got error "Undefined index: BuyerName" image image

  1. "getOrderAddress" will return "ShippingAddress" with "Name" https://github.com/amzn/selling-partner-api-docs/blob/main/references/orders-api/ordersV0.md#getorderaddress

But it returned blank name image image

Operation: getOrderBuyerInfo, getOrderAddress MarketplaceId: ATVPDKIKX0DER

Mike-the-one commented 3 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

aaalison commented 3 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

Thank you! Would you know if access to PII is required to get all data? Below is what I get: 20210623

yizeku commented 3 years ago

@aaalison

I have the same problem. How did you solve it?

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.

fazal26 commented 1 year ago

getting the same issue.