Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer Values are replaced by 'XXXXX.' when using /vendor/directFulfillment/orders/v1/purchaseOrders #618

Open
ait1ispring opened this issue Sep 19, 2023 · 2 comments

Comments

@ait1ispring
Copy link

ait1ispring commented Sep 19, 2023

Problem description:

We were able to use the /vendor/directFulfillment/orders/v1/purchaseOrders to retrieve the information of the Vendor Direct Fulfillment customer, such as name, city, addressLine1, and phone two weeks ago. However, we are now unable to retrieve any customer information; it has been replaced by 'XXXXX.' Additionally, I want to confirm whether RDT is required to access PII. However, we found we are still able to retrieve the customer information by /vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}

Error:

There is no error, just want to know if we need to use the RDT to access the information of the customer, since we have already given the RDT access on the SA API.
``

Code

`<?php
require_once(DIR . '/vendor/autoload.php');

// See README for more information on the Configuration object's options
$config = new SellingPartnerApi\Configuration([
"lwaClientId" => "",
"lwaClientSecret" => "",
"lwaRefreshToken" => "",
"awsAccessKeyId" => "",
"awsSecretAccessKey" => "",
"endpoint" => SellingPartnerApi\Endpoint::NA // or another endpoint from lib/Endpoints.php
]);

$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentOrdersV1Api($config);
$created_after = (new \DateTime('2023-09-18 00:00:00'))->format('Y-m-d\TH:i:s\Z');
$created_before = (new \DateTime('2023-09-23 00:00:00'))->format('Y-m-d\TH:i:s\Z');

try {
$result = $apiInstance->getOrders($created_after, $created_before);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VendorDirectFulfillmentOrdersV1Api->getOrders: ', $e->getMessage(), PHP_EOL;
}`

![image](https://github.com/jlevers/selling-partner-api/assets/50844633/c7935ec4-5fa0-4fe0-ade9-ffb3653c6d9f)
@hubinjie
Copy link

i have same problem

@Lollichkeit
Copy link

The screenshot is from Amazon Seller, right? Seller and vendor settings are different.

I can't even retrieve this data. I get "Unauthorized". #636
Can you maybe help me with my problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants