cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CompleteSale returns Input data is invalid.

Hello, last 2 days I am keep on getting this error:

 

Input data for tag is invalid or missing. Please check API documentation.

 

In API call to complete sale on eBay and sync tracking details.

 

Complete error:

 

    [Timestamp] => 2023-08-05T07:27:17.504Z
    [Ack] => Failure
    [CorrelationID] => CompleteSale
    [Errors] => SimpleXMLElement Object
        (
            [ShortMessage] => Input data is invalid.
            [LongMessage] => Input data for tag is invalid or missing. Please check API documentation.
            [ErrorCode] => 37
            [SeverityCode] => Error
            [ErrorClassification] => RequestError
        )

    [Version] => 1321
    [Build] => E1289_CORE_APIXO_19220561_R1
)

 

Complete XML request:

 

<CompleteSaleRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<ErrorLanguage>en_US</ErrorLanguage>
<MessageID>CompleteSale</MessageID>
<Version>1227</Version>
<WarningLevel>High</WarningLevel>
<OrderID>10-10371-10915</OrderID>
<Shipped>true</Shipped>
<Shipment>
<ShipmentTrackingDetails>
<ShipmentTrackingNumber>1102/10478918</ShipmentTrackingNumber>
<ShippingCarrierUsed>Nacex</ShippingCarrierUsed>
</ShipmentTrackingDetails>
<ShippedTime>2023-08-05T20:00:00Z</ShippedTime>
</Shipment>
<RequesterCredentials>
<eBayAuthToken> here comes eBay token </eBayAuthToken>
</RequesterCredentials>
<DetailLevel>ReturnAll</DetailLevel>
</CompleteSaleRequest>

 

 

Do you know what can be wrong in the request? Unfortunately from the returned error message it is not so obvious the issue.

 

Thank you for your help!

Message 1 of 14
latest reply
13 REPLIES 13

Re: CompleteSale returns Input data is invalid.

We have just started seeing this same issue as of today, 8th Aug in UK.  Same error, suggesting a field is missing. The orders are marked as Shipped on Ebay, but we still get the failure.

 

Is anyone else seeing the same issue?

Message 2 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

I have exactly the same error message being returned 8th August. This was not happening yesterday. The order is being correct marked despatched within eBay. I am leaving feedback with the call and my feedback comment is also correctly being left.

Message 3 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

I note that Linnworks were reporting a similar issue between Aug 1st and Aug 7th, with message saying Ebay have resolved on the 7th Aug

 

https://status.linnworks.com/incident/379427

 

So wondering whether the two are related.

 

Message 4 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

I've changed my code to treat a return of Failure but with the exact long message of "Input data for tag is invalid or missing. Please check API documentation." as Success. Far from ideal, but everything seems to still be working fine.

 

I'll check to see if they fix this in a few days. It does seem an odd co-incidence that eBay claim to have fixed a similar but different despatch error yesterday - presumably they also broke some situations when doing this.

Message 5 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

developer_support@ebay 

The message has not named the tag that is invalid, so quite a bit is amiss with this CompleteSale error.

Input data for tag <...> is invalid or missing. Please check API documentation.

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 6 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

Does anyone know if eBay is addressing this issue. It seems to be isolated to orders shipped via USPS as not all transactions are failing and only one of our sites is affected. We are still seeing this error:

$VAR1 = {
          'xmlns' => 'urn:ebay:apis:eBLBaseComponents',
          'Build' => 'E1289_CORE_APIXO_19220561_R1',
          'Version' => '1321',
          'Errors' => {
                        'SeverityCode' => 'Error',
                        'ShortMessage' => 'Input data is invalid.',
                        'ErrorClassification' => 'RequestError',
                        'ErrorCode' => '37',
                        'LongMessage' => 'Input data for tag is invalid or missing. Please check API documentation.'
                      },
          'Timestamp' => '2023-08-08T17:47:28.403Z',
          'Ack' => 'Failure'
        };

 

Message 7 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

Still not fixed, I have raised a support case. Surprised there are not more people reporting the issue on here.

Message 8 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

same problem here

                $xml_message = '<?xml version="1.0" encoding="utf-8"?>
						<CompleteSaleRequest xmlns="urn:ebay:apis:eBLBaseComponents">
						  <RequesterCredentials>
							<eBayAuthToken>'.$this->ebay_configs['AuthToken'].'</eBayAuthToken>
						  </RequesterCredentials>
						  <WarningLevel>High</WarningLevel>
						  <ItemID>'.$user_data['ebay_article_id'].'</ItemID>
						  <Shipment>
							<ShipmentTrackingDetails>
							  <ShipmentTrackingNumber>EBAYMSG-'.$user_data['ebay_transaction_id'].'</ShipmentTrackingNumber>
							  <ShippingCarrierUsed>AVP</ShippingCarrierUsed>
							</ShipmentTrackingDetails>
						  </Shipment>
						  <Shipped>true</Shipped>
						  <TransactionID>'.$user_data['ebay_transaction_id'].'</TransactionID>
						</CompleteSaleRequest>';

ERROR:

{
  ["Timestamp"]=>
  string(24) "2023-08-09T21:21:13.824Z"
  ["Ack"]=>
  string(7) "Failure"
  ["Errors"]=>
  array(5) {
    ["ShortMessage"]=>
    string(22) "Input data is invalid."
    ["LongMessage"]=>
    string(73) "Input data for tag is invalid or missing. Please check API documentation."
    ["ErrorCode"]=>
    string(2) "37"
    ["SeverityCode"]=>
    string(5) "Error"
    ["ErrorClassification"]=>
    string(12) "RequestError"
  }
  ["Version"]=>
  string(4) "1321"
  ["Build"]=>
  string(28) "E1289_CORE_APIXO_19220561_R1"
}

 

Message 9 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

Hi everyone,

 

same problem here on eBay Germany.

Message 10 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

We have this type of issues with GLS and Nacex. So probably it does not matter which shipper is used. Would be great if the error message contains more details about the error, not just universal phrase:

 

Input data for tag is invalid or missing. Please check API documentation.

Message 11 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

I have this issue with GLS and UPS so I don't think it has anything to do with the type of shipper. I rather assume that eBay has added a new tag that must be transmitted when an order is marked as shipped and eBay has forgotten to communicate that there is a new obligatory tag.

Message 12 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

Hi @rbs1111  

 

It seems like the incorrect format in <ShipmentTrackingNumber> container is being used in CompleteSale request.


The Trading API only supports alphanumeric characters for shipment tracking numbers, and any other characters are not supported, including spaces, hyphens, and all other special characters.

Please re-execute the call by passing correct format i.e: <ShipmentTrackingNumber>110210478918</ShipmentTrackingNumber>

Also, you can refer to the documentation for more details: https://developer.ebay.com/devzone/xml/docs/reference/ebay/CompleteSale.html#Request.Shipment.Shipme...

Best Regards,
eBay Developer Support
Message 13 of 14
latest reply

Re: CompleteSale returns Input data is invalid.

Hello,

we are using fully numeric code and we still get the same error

 


<OrderID>(censored)</OrderID>

<Shipped>true</Shipped>

<Shipment>

<ShipmentTrackingDetails> <ShipmentTrackingNumber>181132471187586</ShipmentTrackingNumber> <ShipmentCarrierUser>Bartolini</ShipmentCarrierUser>

</ShipmentTrackingDetails>

<ShippedTime>2023-12-11T14:22:39.000Z</ShippedTime>

</Shipment>

<ErrorLanguage>en_US</ErrorLanguage>

<WarningLevel>Low</WarningLevel>

</CompleteSaleRequest>

 

Timestamp => "2023-12-30T16:56:42.813Z" (24)
Ack => "Failure" (7)
Errors => array (5)
ShortMessage => "Input data is invalid." (22)
LongMessage => "Input data for tag is invalid or missing. Please check API documentation." (74)
ErrorCode => "37" (2)
SeverityCode => "Error" (5)
ErrorClassification => "RequestError" (12)

 

Message 14 of 14
latest reply