【发布时间】:2014-09-17 16:38:14
【问题描述】:
我正在尝试找出一种方法来使用 Amazon API 来检测客户是否拥有 Amazon Prime 会员资格 - 根据customer information API - 这是您查找客户时的响应:
<?xml version="1.0"?>
<GetCustomersForCustomerIdResponse xmlns="http://mws.amazonservices.com/schema/CustomerInformation/2014-03-01">
<GetCustomersForCustomerIdResult>
<CustomerList>
<Customer>
<CustomerId>AQA0987654321</CustomerId>
<ShippingAddressList>
<ShippingAddress>
<IsDefaultAddress>true</IsDefaultAddress>
<FullName>John Doe</FullName>
<AddressLine1>12345 Example Ave</AddressLine1>
<AddressLine2>Apt 12345</AddressLine2>
<City>Seattle</City>
<StateOrRegion>WA</StateOrRegion>
<PostalCode>98121</PostalCode>
<CountryCode>US</CountryCode>
</ShippingAddress>
</ShippingAddressList>
<PrimaryContactInfo>
<Email>JohnDoe@customeremail.com</Email>
<FullName>John Doe</FullName>
</PrimaryContactInfo>
<AccountType>NORMAL</AccountType>
<AssociatedMarketplaces>
<MarketplaceDomain>
<DomainName>MyWebstoreName.com</DomainName>
<AssociatedOn>2012-07-18T00:00:00Z</AssociatedOn>
<LastUpdatedOn>2012-07-18T17:21:16Z</LastUpdatedOn>
</MarketplaceDomain>
</AssociatedMarketplaces>
</Customer>
</CustomerList>
<NextToken>QVYyVTY5NUVaQzBDWHw0ODEXAMPLECB8IHw1OTM0MDZ8IHwwLDJ8</NextToken>
<MoreResultsAvailable>true</MoreResultsAvailable>
</GetCustomersForCustomerIdResult>
<ResponseMetadata>
<RequestId>8547a35c-8e70-11EXAMPLE-5bf2881764d8</RequestId>
</ResponseMetadata>
</GetCustomersForCustomerIdResponse>
我查看了所有数据类型的含义(请参阅上面的链接) - 它们都没有输出有关客户是否拥有 Amazon Prime 会员资格的任何信息。
有人知道吗?
【问题讨论】:
-
如果您在网站上搜索“Prime”,则唯一的结果与项目有关。您似乎无法分辨谁拥有 Prime,谁没有。
-
几个月前,如果商品符合 Prime 条件,您can't even tell。
-
@FreeAsInBeer - 所以基本上,如果我要建立一个“非亚马逊”网上商店,我想看看我是否可以允许客户使用 Amazon Prime 运费(因为他们应该能够根据到亚马逊履行,这是我正在使用的服务) - 根本没有办法做到这一点?
-
@FreeAsInBeer 看到了你的链接 - 这太疯狂了 - 我想我不能集成 Amazon Prime 的东西......
-
对不起,伙计。我一直站在你的立场上,没有通过官方 API 公开你需要的数据,这很糟糕。祝你好运,实现你的目标。
标签: amazon-web-services types request amazon response