Giter Club home page Giter Club logo

Comments (4)

davidtsadler avatar davidtsadler commented on July 22, 2024

Hello,

I think the problem is these two lines of code.

$ship->ShipmentTrackingNumber = $carrier;

$ship->ShippingCarrierUsed = $tracking_no;

From what I understand they should be.

$ship->ShipmentTrackingNumber = $tracking_no;

$ship->ShippingCarrierUsed = $carrier;

Kind Regards,

David

On 27 October 2015 at 07:45, Ovidiu Ungureanu [email protected]
wrote:

I'm trying to update shipping tracking details by calling completeSale.

My complete request:

2015-10-27 07:36:49 000-test-000 AMAZON 251865599336-1734899421015

Array
(
[MessageID] => 2015-10-27 07:36:49
[Shipment] => Array
(
[ShipmentTrackingDetails] => Array
(
[0] => Array
(
[ShippingCarrierUsed] => 000-test-000
[ShipmentTrackingNumber] => AMAZON
)

            )

    )

[OrderID] => 251865599336-1734899421015

)
Error: Tracking number(s) already exists.
One (or more) tracking number(s) in the request already exists either for a different buyer or for a different seller.

PHP code that generate above:

$ship = new Types\ShipmentTrackingDetailsType();    $ship->ShipmentTrackingNumber = $carrier;    $ship->ShippingCarrierUsed = $tracking_no;    $shipDetails = array($ship);    $request = new Types\CompleteSaleRequestType();    $request->OrderID = $order_id;    $request->Shipment = new Types\ShipmentType();    $request->Shipment->ShipmentTrackingDetails = $shipDetails;    $request->MessageID = date('Y-m-d H:i:s');

Ebay API Test Tool code (that works every time)

000-test-000 AMAZON

First, I don't understand why have xmlns in it. Could be the reason this
is breaking the request. Probably I'm doing something wrong in my PHP.
Please tell me why there's a xmlns and if I'm using the class in the wrong
way guide me.

Many thanks.


Reply to this email directly or view it on GitHub
#7.

from ebay-sdk-php.

uovidiu avatar uovidiu commented on July 22, 2024

I spend so much time trying to fix that API call that I totally missed it.
Always good to have a second pair of eyes.
It's working now.
Thanks a lot for your response.

from ebay-sdk-php.

davidtsadler avatar davidtsadler commented on July 22, 2024

No problem.

David

On 27 October 2015 at 09:37, Ovidiu Ungureanu [email protected]
wrote:

I spend so much time trying to fix that API call that I totally missed it.
Always good to have a second pair of eyes.
It's working now.
Thanks a lot for your response.


Reply to this email directly or view it on GitHub
#7 (comment)
.

from ebay-sdk-php.

uovidiu avatar uovidiu commented on July 22, 2024

Not an issue, it was my fault.

from ebay-sdk-php.

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.