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

No Buyer Information #896

Closed Tanveer-LowCoder closed 3 years ago

Tanveer-LowCoder commented 3 years ago

When I call the /orders/v0/orders/{orderId}/buyerInfo SP API call, I get the following response:

{ "AmazonOrderId": "113-1992388-6xxxxxx", "BuyerEmail": "5ftnkh20gxxxxxx@marketplace.amazon.com" }

According to the documentation, its supposed to return the following:

OrderBuyerInfo

Name Description Schema
AmazonOrderId required An Amazon-defined order identifier, in 3-7-7 format. string
BuyerEmail optional The anonymized email address of the buyer. string
BuyerName optional The name of the buyer. string
BuyerCounty optional The county of the buyer. string
BuyerTaxInfo optional Tax information about the buyer. BuyerTaxInfo
PurchaseOrder Numberoptional The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout. string

I confirmed that the isGift option is false. So this is not a gift, not sure what else could be the reason for this.

sherlock270 commented 3 years ago

The only required element in the response is AmazonOrderId

Tanveer-LowCoder commented 3 years ago

Is there another way to extract the buyer information?

MrYing commented 3 years ago

Me too

MrYing commented 3 years ago

Does anyone know how to get these interface data? What is the reason for not applying for permission?

pprbhm commented 3 years ago

Hello, Only authorized sellers for confidential information will have access to buyer's information as per data usage policy. For this instance, i have to check back with orders team to take a look. We have a support forum where you can create a support case and we can go over details in that case in a disciplinary manner if you want to do that i would be happy to guide. Here's the link to create a Support case

MrYing commented 3 years ago

Hello , Has your problem been solved? Can you support me?

Trocellen commented 3 years ago

we are experiencing also an issue consuming a API-SP for buyer information.

The API involved is: getOrderBuyerInfo.

In few word we are able only to retrieve the mail information without other useful value for our business. We need information about:

BuyerName The name of the buyer. string BuyerCounty The county of the buyer. string BuyerTaxInfo Tax information about the buyer

This information are requested only in case of Business Invoices

How to assign the correct permission? Thanks a lot

Trocellen commented 3 years ago

@nodisk8800 thanks a lot for your contribution.

Unfortunately it's not like that; you can see below payload shipping address.

{ "payload": { "AmazonOrderId": "xxx-xxxxxxx-xxxxxxx", "ShippingAddress": { "StateOrRegion": "Milano", "PostalCode": "20100", "City": "MILANO", "CountryCode": "IT", "Name": "" } } }

As you can see:

Name Address VAT code

are missing.

uncenteredDiv commented 3 years ago

@Trocellen Noticed the same issue today ...

AmazonOrderId: '306-xxxxxxx-xxxxxxx',
ShippingAddress: {
  StateOrRegion: 'Sachsen',
  PostalCode: '09366',
  City: 'Niederdorf',
  CountryCode: 'DE',
  Name: ''
}

According to the Schema there should be the following fields available

Address {
    /**
     * The name.
     * @type {string}
     * @memberof Address
     */
    Name: string;
    /**
     * The street address.
     * @type {string}
     * @memberof Address
     */
    AddressLine1?: string;
    /**
     * Additional street address information, if required.
     * @type {string}
     * @memberof Address
     */
    AddressLine2?: string;
    /**
     * Additional street address information, if required.
     * @type {string}
     * @memberof Address
     */
    AddressLine3?: string;
    /**
     * The city 
     * @type {string}
     * @memberof Address
     */
    City?: string;
    /**
     * The county.
     * @type {string}
     * @memberof Address
     */
    County?: string;
    /**
     * The district.
     * @type {string}
     * @memberof Address
     */
    District?: string;
    /**
     * The state or region.
     * @type {string}
     * @memberof Address
     */
    StateOrRegion?: string;
    /**
     * The municipality.
     * @type {string}
     * @memberof Address
     */
    Municipality?: string;
    /**
     * The postal code.
     * @type {string}
     * @memberof Address
     */
    PostalCode?: string;
    /**
     * The country code. A two-character country code, in ISO 3166-1 alpha-2 format.
     * @type {string}
     * @memberof Address
     */
    CountryCode?: string;
    /**
     * The phone number. Not returned for Fulfillment by Amazon (FBA) orders.
     * @type {string}
     * @memberof Address
     */
    Phone?: string;
    /**
     * The address type of the shipping address.
     * @type {string}
     * @memberof Address
     */
    AddressType?: AddressAddressTypeEnum;
}

@pprbhm any ideas?

CebulMaciej commented 3 years ago

I have same problem. could it be the reason, that application listing is in state "ready for publishing"?

uncenteredDiv commented 3 years ago

I thought maybe it's because I don't have access to the "Direct Shipping" Role - for which you have to apply first ... But even thought - after a looong process - I have that role now and updated the App Roles - I still don't get any useful Shipping Informations from this Endpoint ...

Frustrating 🙄

CebulMaciej commented 3 years ago

How long was you waiting for approve? i have waited for 3 days and.. I'm still waiting :)

uncenteredDiv commented 3 years ago

@CebulMaciej took about a week to get a reply & my first request was denied -.-

CebulMaciej commented 3 years ago

@unterweltler What was wrong, if can i ask? :)

uncenteredDiv commented 3 years ago

@CebulMaciej was not specific enough with the PrivacyPolicy Guidelines we have.

NoraYan commented 3 years ago

@unterweltler I also got approval of PII and selected direct shipping role, but didn't have fill buyerinfo and shipping address. Did you get it now?

uncenteredDiv commented 3 years ago

@NoraYan you need to generate a new RefreshToken and replace it in your App.

noor-mohmmad commented 3 years ago

@unterweltler How can i get PII access for buyerInfo API

abuzuhri commented 3 years ago

Same problem here how , is that because if Draft application ?

ademdc commented 2 years ago

Hello from June 2022. I also have the same issue. I don't get the Street and buyer name. Any progress by anyone?

noor-mohmmad commented 2 years ago

On Sun, 19 Jun 2022 at 6:17 PM, Adem Dinarević @.***> wrote:

Hello from June 2022. I also have the same issue. I don't get the Street and buyer name. Any progress by anyone?

— Reply to this email directly, view it on GitHub https://github.com/amzn/selling-partner-api-models/issues/896, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFUENCSVACVPTS362E5IYTVP4JFPANCNFSM4VLWD44Q . You are receiving this because you commented.Message ID: @.***>

Hello, Do you have PII access.

Regards Noor

fazal26 commented 1 year ago

Why this issue is closed, they haven't shared a solution for this, I'm getting the same issue and the api seems be expiring in couple of weeks.

uncenteredDiv commented 1 year ago

@Ahsannaeem405 sorry ... it's way too long since I did the hole process and apparently alot has changed since then.

It's kinda annoying that Amazon is actively making it hard for 3rd-Party-Developers - but also big companies to access their order customer informations 🤦🏻‍♂️