Code Monkey home page Code Monkey logo

Comments (22)

davidtsadler avatar davidtsadler commented on July 22, 2024

I started working on the Merchant Data API yesterday so I will look at adding this example once I have finished.

from ebay-sdk-examples.

cornernote avatar cornernote commented on July 22, 2024

Hey @davidtsadler,

Just wondering if you can update the post once the code is finished. If there is a SetShipmentTrackingInfoRequestType class then I can probably figure the rest out as your API is quite easy to use once you know the basics.

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

The Merchant Data SDK is still a work in progress but you can see what has been done on the develop branch of its repository. You can find the SetShipmentTrackingInfoRequestType classes in this SDK.

The project is not quite finished but it's nearly there. I'll update this post once it's done.

from ebay-sdk-examples.

coresmart avatar coresmart commented on July 22, 2024

Hi @davidtsadler,

I just wanted to follow up on this post. First off great job with the SDK integration.

Have you had a chance to complete the SetShipmentTracking functionality and if so do you have an example?

Thanks!

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

At the moment the merchant data SDK is scheduled for an April release. If you give me a few days though I may be able to create an alpha-release as a Phar or Zip that you may be able to use until the official release.

from ebay-sdk-examples.

coresmart avatar coresmart commented on July 22, 2024

David,

No worries. I just looked more and realized I needed the trading complete sale/shipment tracking functionality instead.

Great work.

Thanks!

Paul

Sent from my iPhone

On Feb 21, 2015, at 12:23 PM, David Terence Sadler [email protected] wrote:

At the moment the merchant data SDK is scheduled for an April release. If you give me a few days though I may be able to create an alpha-release as a Phar or Zip that you may be able to use until the official release.


Reply to this email directly or view it on GitHub.

from ebay-sdk-examples.

cornernote avatar cornernote commented on July 22, 2024

Hi David,

Would you be able to make a pre-release as a branch? That way I can pull it with composer.

I'd be happy to use whatever you have for the moment, even if not fully ready. I'm only running this in development at the moment so can't break anything.

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

There should have been a release at the start of April but I've been busy with a few other things. I'll can look at getting a release done for next week.

from ebay-sdk-examples.

coresmart avatar coresmart commented on July 22, 2024

Derek

I'm all set... Sorry thought I emailed you before. Ended using trading complete sale.

Thanks!

Paul

Sent from my iPhone

On Apr 27, 2015, at 2:24 PM, David Terence Sadler [email protected] wrote:

There should have been a release at the start of April but I've been busy with a few other things. I'll can look at getting a release done for next week.


Reply to this email directly or view it on GitHub.

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

No problem. I still plan to release this SDK as it's been on my TODO list for a while :)

from ebay-sdk-examples.

coresmart avatar coresmart commented on July 22, 2024

Ok great... Good luck!

Sent from my iPhone

On Apr 27, 2015, at 2:29 PM, David Terence Sadler [email protected] wrote:

No problem. I still plan to release this SDK as it's been on my TODO list for a while :)


Reply to this email directly or view it on GitHub.

from ebay-sdk-examples.

cornernote avatar cornernote commented on July 22, 2024

There should have been a release at the start of April but I've been busy with a few other things. I'll can look at getting a release done for next week.

Awesome, thanks!

from ebay-sdk-examples.

cornernote avatar cornernote commented on July 22, 2024

Hey @davidtsadler,

Are you able to put the changes into a branch that I can play with before the release is done?

from ebay-sdk-examples.

cornernote avatar cornernote commented on July 22, 2024

Hi David,

Thanks for the example. I would prefer to use it without sending it as a batch. Is that possible?

Eg:

        $request = new MerchantData\Types\SetShipmentTrackingInfoRequestType();
        $request->OrderID = '123457890';
        $request->IsPaid = true;
        $request->IsShipped = true;
        $request->Shipment = new MerchantData\Types\ShipmentType();
        $request->Shipment->ShipmentLineItem = new MerchantData\Types\ShipmentLineItemType();
        $request->Shipment->ShipmentLineItem->LineItem[] = new MerchantData\Types\LineItemType(array(
            'ItemID' => '123457890',
            'Quantity' => 1
        ));
        $response = $ebayUserManager->merchantDataService->setShipmentTrackingInfo($request);

When I try, it throws this:

xml_parse() expects parameter 2 to be string, object given in /vendor/dts/ebay-sdk/src/DTS/eBaySDK/Parser/XmlParser.php(67)

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

I would prefer to use it without sending it as a batch.

I'm not sure what you mean by that. Can you elaborate? With regards to the error,

xml_parse() expects parameter 2 to be string, object given in /vendor/dts/ebay-sdk/src/DTS/eBaySDK/Parser/XmlParser.php(67)

I think it is been caused by this line

response = $ebayUserManager->merchantDataService->setShipmentTrackingInfo($request);

The method setShipmentTrackingInfo does not send the request to eBay. The LMS is different to other API's provided by eBay. There is no Merchant Data Service, unlike say the Trading service. Operations done via the LMS are performed by uploading a file to eBay and then waiting for them to process it. Since this processing can take some time the LMS provides a way for users to poll it to determine when it is completed. At this point you have to download another file to get the actual response. This response is provided as a zip archive that contains a single XML file. The Merchant Data SDK is designed to take this XML response and parse it into useful PHP objects. This is done by the setShipmentTrackingInfo method.

from ebay-sdk-examples.

cornernote avatar cornernote commented on July 22, 2024

Hi David,

What I mean is can I setShipmentTrackingInfo and send the request to eBay without sending a file and waiting for eBay to process it? Can I call it the same way as I call getOrders, where I give some data, and it gives a response?

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

I'm afraid not. SetShipmentTrackingInfo only exists in the LMS and that API works by uploading files. The reason for this is that LMS is designed for sellers with many thousands of inventory items and processing the data can take anything from several minutes to a few hours. For example LMS can be used to launch items to eBay. It would be unreasonable to upload a AddItem request for 10,000 items and expect an instant response that contained the success or failure of every item in the request.

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

According to the docs for SetShipmentTackingInfo you may be able to use CompleteSale from the Trading API instead. This would depend on what you project requires though.

from ebay-sdk-examples.

robyerevan avatar robyerevan commented on July 22, 2024

hi David

Were you able to update tracking number using LMS SetShipmentTackingInfo ?
In my case ebay returns success response and marks item as shipped however tracking number is missing.
here is response sample

Uploading set shipment tracking info requests...Done
Request processing of set shipment tracking info...Done
Status is Scheduled
Status is Scheduled
Status is InProcess
Status is InProcess
Status is InProcess
Status is InProcess
Status is InProcess
Status is InProcess
Status is InProcess
Status is InProcess
Status is InProcess
Status is InProcess
Status is InProcess
Status is Completed
Downloading set shipment tracking info responses...Done
Unzipping /tmp/attachmenteURPIt.zip...Done
OrderLineItemID xxxxxxxxxxxx-yyyyyyyyyyyyy

from ebay-sdk-examples.

waza123x avatar waza123x commented on July 22, 2024

same shit, tracking number not added on ebay

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

The LMS Set Shipment Tracking Info was recently updated to match the documentation correction announced by eBay , so hopefully the tracking number can now be set.

from ebay-sdk-examples.

amirvenus avatar amirvenus commented on July 22, 2024

I am trying to reuse a job id but I am getting this error:

Error: The file has already been uploaded

Please advise

from ebay-sdk-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.