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

Unauthorized #636

Open
Lollichkeit opened this issue Nov 10, 2023 · 0 comments
Open

Unauthorized #636

Lollichkeit opened this issue Nov 10, 2023 · 0 comments

Comments

@Lollichkeit
Copy link

Problem description:

Error:

Exception when calling SellersApi->getMarketplaceParticipations: [403] {
   "errors": [
      {
          "code": "Unauthorized",
          "message": "Access to requested resource is denied.",
          "details": ""
      }
   ]
}

Code:

$Vconfig = new SellingPartnerApi\Configuration([
    "lwaClientId" => '...',
    "lwaClientSecret" => '...',
    "lwaRefreshToken" => '...',
    "awsAccessKeyId" => '...',
    "awsSecretAccessKey" => '...',
    "endpoint" => SellingPartnerApi\Endpoint::EU,
]);


$apiInstance = new SellingPartnerApi\Api\VendorDirectFulfillmentOrdersV1Api($Vconfig);

$result = $apiInstance->getOrders(date('Y-m-d', strtotime('-90 day')), date('Y-m-d', strtotime('now')));
print_r($result);
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

1 participant