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

ShipmentName issue while creating Inbound Shipment from Plan #40

Open
shanijahania opened this issue Nov 13, 2019 · 1 comment
Open

Comments

@shanijahania
Copy link

Hello, I am trying to create inbound shipment using "CreateInboundShipment" but i am getting error "400 Bad Request:Request is invalid - ShipmentName is required"
Since the "InboundShipmentHeader.ShipmentName" is required to create inbound shipment.
Can you please Help.

Thanks

@gaurav2262
Copy link

gaurav2262 commented Feb 10, 2021

Hello,

Add this function in AmazonShipment.php after setShipmentId($s) function

/**
     * This function is created for set shipment name externally on 28-Sept-2020
     * Sets the shipment Name. (Required)
     * @param string $s <p>Shipment Name</p>
     * @return boolean <b>FALSE</b> if improper input
     */
    public function setShipmentName($s)
    {
        if (is_string($s) && $s) {
            $this->options['InboundShipmentHeader.ShipmentName'] = $s;
        } else {
            return false;
        }
    }

And call $amzRequest->setShipmentName($shipmentName); with AmazonShipment object;

Declare something like this https://prnt.sc/yyt7w7 and use something like this https://prnt.sc/yytk99.

hope this is useful.

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