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

createShippingLabels method does not Generate RDT #637

Open
da-mask opened this issue Nov 21, 2023 · 1 comment
Open

createShippingLabels method does not Generate RDT #637

da-mask opened this issue Nov 21, 2023 · 1 comment

Comments

@da-mask
Copy link

da-mask commented Nov 21, 2023

Problem description:

calls to createShippingLables on on VendorDirectFulfilmentShippingV20211228Api result in Forbidden 403.

Error:

[reasonPhrase:GuzzleHttp\Psr7\Response:private] => Forbidden
[statusCode:GuzzleHttp\Psr7\Response:private] => 403

Code

$orderDetails = $this->service->order->getOrderDetails();
$selling_party = $orderDetails->getSellingParty();
$ship_from_party = $orderDetails->getShipFromParty();
$body = new CreateShippingLabelsRequest([
	'selling_party' => new PartyIdentification(['party_id' => $selling_party->getPartyId()]),
	'ship_from_party' => new PartyIdentification(['party_id' => $ship_from_party->getPartyId()]),
]);
return $this->api->createShippingLabels($this->service->order->getPurchaseOrderNumber(), $body);

Seller Central SP API config page screenshot

image

@jlevers
Copy link
Owner

jlevers commented Mar 22, 2024

This should be fixed in v6.

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

2 participants