xmlfilemakerebay-api

when I try and set the Shipping Profile to eBay Trading API, AddFixedPriceItem call it still requires a Shipping Method?


I’m using the eBay Trading API in FileMaker Pro, and I’m encountering an issue when trying to list items while using our predefined company shipping profile. I keep getting this error in response:

<LongMessage>At least one valid shipping service must be specified.</LongMessage>

Here’s the relevant portion of the code where I define the shipping profile:

<SellerProfiles>
    <SellerPaymentProfile>
        <PaymentProfileID>$Payment_Policy_ID</PaymentProfileID>
        <PaymentProfileName>Standard Payment (JakeSales)</PaymentProfileName>
    </SellerPaymentProfile>
    <SellerReturnProfile>
        <ReturnProfileID>$Return_Policy_ID</ReturnProfileID>
        <ReturnProfileName>Returns Accepted,Buyer,30 Days,Money Back,DeductOUTshipping</ReturnProfileName>
    </SellerReturnProfile>
    <SellerShippingProfile>
        <ShippingProfileID>$Shipping_Policy_ID</ShippingProfileID>
        <ShippingProfileName>Shipping Policy (FirstClass w/Global Prg)</ShippingProfileName>
    </SellerShippingProfile>
</SellerProfiles>

The Issue:

Despite using the shipping profile, eBay still requires me to explicitly define a shipping service, which I thought would be handled by the shipping profile itself. I had to add this section:

<ShippingDetails>
    <ShippingServiceOptions>
        <FreeShipping>0</FreeShipping>
        <ShippingService>USPSPriorityFlatRateEnvelope</ShippingService>
        <ShippingServiceCost>8.45</ShippingServiceCost>
        <ShippingServicePriority>1</ShippingServicePriority>
    </ShippingServiceOptions>
</ShippingDetails>

The Problem:

Now, after sending this data, everything looks correct in the listing, but I still need to manually go in and change the shipping service to the correct one associated with the profile, even though it’s already been set up correctly. Question:

Why is it requiring me to define the shipping service if I’ve already provided a shipping profile? I expected the shipping profile to handle this automatically. I’ve looked at the eBay documentation (such as the shipping service codes: ShippingServiceCodeType), but I’m still having trouble getting it to work.

Has anyone faced a similar issue or found a way to only rely on the shipping profile without needing to define the shipping service? The samples provided aren’t very helpful, as they often focus on categories like car listings, which don’t involve shipping. Any guidance would be appreciated!


Solution

  • Sorry but I'm answering from mobile..

    Try Adding only Payment/Shipping/ReturnProfileID and not ProfileName But first you have to create the profiles on eBay website: I'm not fully sure but I think the related APIs have been decommissioned last year. You can avoid to set ShippingDetails since profiles are required and have precedence.

    Beside this, several Trading APIs have been decommissioned in the last 12 months and most new features are only supported by new REST APIs: you should evaluate to use such.