Skip to main content
Published: February 20 2007, 5:16:00 PMUpdated: November 28 2020, 3:20:43 PM

Error 20198 or Error 20199 when calling SendInvoice

Why am I getting either one of the following errors when I make the SendInvoice call?
 

<Errors>

    <ShortMessage>Invalid International Shipping Service Option. </ShortMessage>

    <LongMessage>Invalid International Shipping Service Option: UPSGround</LongMessage>

    <ErrorCode>20198</ErrorCode>

    <SeverityCode>Error</SeverityCode>

    <ErrorClassification>RequestError</ErrorClassification>

  </Errors>



 

<Errors>

    <ShortMessage>You can't offer both Domestic and International shipping services together.</ShortMessage>

    <LongMessage>Please provide either Domestic or International shipping service options based on Buyer's shipping country.</LongMessage>

    <ErrorCode>20199</ErrorCode>

    <SeverityCode>Error</SeverityCode>

    <ErrorClassification>RequestError</ErrorClassification>

  </Errors>


Note that "UPSGround" in the LongMessage above for Error 20198 is just an example. The actual shipping service will be whatever one you used that was invalid.

Summary

The premise behind the SendInvoice call is that the ShippingAddress that the buyer has indicated for the transaction or order is known.
As a result, the expectation is that the shipping services indicated in the SendInvoice call apply only to the ShippingAddress of the buyer.
Unlike the AddItem call which listed the item, the SendInvoice call should not send in all shipping services for the item.
The only shipping services that should be included in the SendInvoice call are ones that are valid for the buyer's shipping address for the transaction.
This means that if the shipping address is international with respect to the item, then there should be no domestic shipping services indicated in the SendInvoice call.
If the shipping address is domestic, then there should be no international shipping services indicated in the SendInvoice call.

This is distinctly different than the AddItem call requirement which stipulates that in order to have international shipping services, the call must indicate at least 1 domestic shipping service.
This requirement on the AddItem call does not apply to the SendInvoice call.



Additional Resources

How well did this answer your question?
Answers others found helpful