Comments (8)
Do you have the item number of the listing? One thing to check is that you haven't switched on business policies for the eBay account. If you have then the item may be using a shipping policy specified in the account rather than the one in the item.
from ebay-sdk-examples.
Hi David, Thanks for your reply. i already ix it by changing the code to addItems and now i can list item with free shipping. :)
Cheers!
from ebay-sdk-examples.
Good to hear.
from ebay-sdk-examples.
Sorry, i just want to ask a question about the excludeShipLocation why is it not showing on my ebay item listing. or is it a sandbox ebay bug?
heres my code
$shippingDetails->ExcludeShipToLocation = array(
'Alaska/Hawaii',
'US Protectorates',
'APO/FPO',
'PO Box'
);
$item->ShippingDetails = $shippingDetails;
$item->ShipToLocations[] = 'US';
$item->ReturnPolicy = new TTypes\ReturnPolicyType();
$item->ReturnPolicy->ReturnsAcceptedOption = 'ReturnsAccepted';
$item->ReturnPolicy->RefundOption = 'MoneyBack';
$item->ReturnPolicy->ReturnsWithinOption = 'Days_30';
$item->ReturnPolicy->ShippingCostPaidByOption = 'Buyer';
$item->ReturnPolicy->RestockingFeeValue = "15% restocking fee may apply";
$item->ReturnPolicy->RestockingFeeValueOption = Enums\RestockingFeeCodeType::C_PERCENT_15;
$container = new TTypes\AddItemRequestContainerType();
$container->MessageID = $hashids->encode($list->id);
$container->Item = $item;
$request->AddItemRequestContainer[] = $container;
$response = $service->addItems($request);
Thanks again.
from ebay-sdk-examples.
I'm not sure at without spending a bit more time on it. One thing I always recommend is to manually create the item through eBay itself. Create the item exactly how you would like it done through the API and list it on the sandbox. Then use GetItem in the API explorer, or code, and study the XML in the response. The reason is that there is normally a one to one mapping between the fields in GetItem and those in AddItem. In the past I have studied the XML from GetItem to see how eBay specified the information and then used the same fields and values in AddItem. For example, when I was first learning the API I would manually create a listing with a single shipping service. Then call GetItem to see what fields where set and then re-created them in AddItem. From there I moved onto things like multi-variations. Again I created them manually and then called GetItem. Looking at the response and combining it with the eBay documentation help me a lot when I was first starting.
from ebay-sdk-examples.
Ohh i see. nice! thanks for the info. it really help me a lot.
thanks again for your reply. i will closed now the ticket. :)
from ebay-sdk-examples.
No worries. I have a forum available for further questions. If you do use it let me know if there are any issues with it as I'm still learning how to set it up correctly.
from ebay-sdk-examples.
Yeah sure thing mate. i already visit your forum before. cheers! :)
from ebay-sdk-examples.
Related Issues (20)
- Getting item description
- addfixedpriceitem with SellerProfiles - PaymentProfileID, ReturnProfileID, ShippingProfileID HOT 1
- How to get list of all products?
- How to fill "additional ship to location - buyers contact for costs" via api
- Error Status Code: 401 1001: Invalid access token new issue HOT 1
- Uncaught Guzzle Exception 500 on downloadFile of FileTrasfer API HOT 1
- PlaceOrder example missing
- How can I get the tracking number of an Order I placed? HOT 1
- Requesting help how to setup examples
- Error: System currently not available BUT offer gets created HOT 4
- Error: The UPC field is missing. The UPC field is missing. Please add UPC to the listing and try again. HOT 3
- Complete example of UserToken (Oauth) ?
- Always getting Access token is missing in the Authorization HTTP request header.
- ERROR: warning autoload autoload in (trading /get my ebay selling). in core PHP
- curl -sS https://getcomposer.org/installer | php HOT 1
- Trying to fetch conditions value from category id
- How can this be used to get Leaf categories?
- Trading API: Not able to update price
- Uncaught GuzzleHttp\Exception\ServerException: Server error HOT 5
- Couldn't set Intetnational Return policy in AddFixedPriceItem method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebay-sdk-examples.