Developers Program

SendInvoice returns error 20199 in Sandbox

Published: January 29 2010, 12:25:00 PMยทUpdated: August 15 2022, 11:41:56 PM

Products

Question

I am trying to make a SendInvoice API call as below: <?xml version="1.0" encoding="utf-8"?> <SendInvoiceRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <ItemID>110043311674</ItemID> <TransactionID>0</TransactionID> <ShippingServiceOptions> <ShippingServicePriority>1</ShippingServicePriority> <ShippingService>UPSGround</ShippingService> <ShippingServiceCost>1.0</ShippingServiceCost> </ShippingServiceOptions> <RequesterCredentials> <eBayAuthToken>*****</eBayAuthToken> </RequesterCredentials> </SendInvoiceRequest> And I am getting the following error: ShortMessage: You can't offer both Domestic and International shipping services together. LongMessage: Please provide either Domestic or International shipping service options based on Buyer's shipping country. ErrorCode: 20199 SeverityCode: Error ErrorClassification: RequestError I have provided only one domestic shipping service but the error message indicates otherwise. Why is this happening?

Answer

Summary

When you use the Sandbox Registration tool to create a new user, the default registration address is incomplete and therefore invalid. Before transacting with that user, please change registration address for the user as below:

  1. Log in to MyeBay on Sandbox with that user
  2. Click on Account -> Addresses
  3. Click on the link Change for the Registration address
  4. Complete the flow to set the country, address, phone number, etc and complete the flow
Additional Comments
How well did this answer your question?