question

dmytro-dev avatar image
0 Likes"
dmytro-dev asked ·

Tracking numbers aren't added with CompleteSale request in sandox

I'm using this request to add tracking details to an order in a sandbox account:

<?xml version="1.0" encoding="UTF-8"?>
<CompleteSaleRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>xxx</eBayAuthToken>
  </RequesterCredentials>
    <ErrorLanguage>en_US</ErrorLanguage>
  <WarningLevel>High</WarningLevel>
  <!--Enter an ItemID -->
  <ItemID>110534926227</ItemID>
  <Shipment>
    <ShipmentTrackingDetails>
  <ShipmentTrackingNumber>11111111112222222222339933333344</ShipmentTrackingNumber>
        <ShippingCarrierUsed>UPSGround</ShippingCarrierUsed>
    </ShipmentTrackingDetails>
  </Shipment>
  <Shipped>true</Shipped>
  <!-- Enter the TransactionID -->
  <TransactionID>29031875001</TransactionID>
</CompleteSaleRequest>


And I'm getting a success response

<?xml version="1.0" encoding="UTF-8"?>
<CompleteSaleResponse 
  xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2021-05-27T07:14:50.811Z</Timestamp>
  <Ack>Success</Ack>
  <Version>1199</Version>
  <Build>E1199_CORE_APIXO_19220561_R1</Build>
</CompleteSaleResponse>

But

A) The tracking number is not added to the order on sandbox UI https://share.getcloudapp.com/4gunANkx

B) When I fetch this order with getOrders request, shipping tracking info is not there https://share.getcloudapp.com/Apuz6geE

C) Clicking the 'Add' link in the order's UI is not working either since it just redirects to the test user home page.


Is there anything wrongi in my CompleteSaleRequest or is this feature not suported in sandbox?

sandboxcompletesalerequest#trading api
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sagar_developersupport avatar image
1 Like"
sagar_developersupport answered ·

Hi @dmytro-dev ,

You are not using a valid value in ShippingCarrierUsed field. Please go through the link given below to see the commonly used shipping carriers.

Ref: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/types/ShippingCarrierCodeType.html

Best Regards ,
eBay Developers Support

·
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dmyboc0 avatar image
0 Likes"
dmyboc0 answered ·

@sagar_developersupport thank you for your answer

>>You are not using a valid value in ShippingCarrierUsed field.

I should have mentioned it - using values from this list doesn't change anything, tracking numbers are still not added. Also note that in this KB article aboute CompleteSale there's 'UPSGround' in sample calls.

· 1 ·
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Correction: after I started using values from that list suggested by sagar_developersupport, I can see tracking numbers in the response from the getOrders request, but they aren't displayed in the sandbox UI.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.