question

bigueres.t avatar image
0 Likes"
bigueres.t asked

I can't add FixedPriceItem with ListingDuration GTC

Hello, 

 

I have a problem, I'm trying to add some new items in eBay with this xml request : 

 

 

$this->apiCall = 'AddFixedPriceItem';

 

// Without variations

$requestXml = '<?xml version="1.0" encoding="utf-8"?>'."\n";

$requestXml .= '<AddFixedPriceItem xmlns="urn:ebay:apis:eBLBaseComponents">'."\n";

$requestXml .= '  <ErrorLanguage>fr_FR</ErrorLanguage>'."\n";

$requestXml .= '  <WarningLevel>High</WarningLevel>'."\n";

$requestXml .= '  <Item>'."\n";

$requestXml .= '    <SKU>prestashop-'.$datas['id_product'].'</SKU>';

$requestXml .= '    <Title>'.substr($datas['name'], 0, 55).'</Title>'."\n";

if (isset($datas['pictures']))

{

$requestXml .= '    <PictureDetails>'."\n";

$requestXml .= '      <GalleryType>Gallery</GalleryType>'."\n";

foreach ($datas['pictures'] as $picture)

$requestXml .= '      <PictureURL>'.$picture.'</PictureURL>'."\n";

$requestXml .= '    </PictureDetails>'."\n";

}

$requestXml .= '    <Description><![CDATA['.$datas['description'].']]></Description>'."\n";

$requestXml .= '    <PrimaryCategory>'."\n";

$requestXml .= '      <CategoryID>'.$datas['categoryId'].'</CategoryID>'."\n";

$requestXml .= '    </PrimaryCategory>'."\n";

$requestXml .= '    <ConditionID>1000</ConditionID>'."\n";

if (!isset($datas['noPriceUpdate']))

$requestXml .= '    <StartPrice>'.$datas['price'].'</StartPrice>'."\n";

$requestXml .= '    <CategoryMappingAllowed>true</CategoryMappingAllowed>'."\n";

$requestXml .= '    <Country>FR</Country>'."\n";

$requestXml .= '    <Currency>EUR</Currency>'."\n";

$requestXml .= '    <DispatchTimeMax>3</DispatchTimeMax>'."\n";

$requestXml .= '    <ListingDuration>GTC</ListingDuration>'."\n";

$requestXml .= '    <ListingType>FixedPriceItem</ListingType>'."\n";

$requestXml .= '    <PaymentMethods>PayPal</PaymentMethods>'."\n";

$requestXml .= '    <PayPalEmailAddress>'.Configuration::get('EBAY_PAYPAL_EMAIL').'</PayPalEmailAddress>'."\n";

$requestXml .= '    <PostalCode>'.Configuration::get('EBAY_SHOP_POSTALCODE').'</PostalCode>'."\n";

$requestXml .= '    <Quantity>'.$datas['quantity'].'</Quantity>'."\n";

$requestXml .= '    <ItemSpecifics>'."\n";

$requestXml .= '      <NameValueList>'."\n";

$requestXml .= '        <Name>Etat</Name>'."\n";

$requestXml .= '        <Value>Neuf</Value>'."\n";

$requestXml .= '      </NameValueList>'."\n";

$requestXml .= '      <NameValueList>'."\n";

$requestXml .= '        <Name>Marque</Name>'."\n";

$requestXml .= '        <Value>'.$datas['brand'].'</Value>'."\n";

$requestXml .= '      </NameValueList>'."\n";

if (isset($datas['attributes']))

foreach ($datas['attributes'] as $name => $value)

{

$requestXml .= '      <NameValueList>'."\n";

$requestXml .= '        <Name>'.$name.'</Name>'."\n";

$requestXml .= '        <Value>'.$value.'</Value>'."\n";

$requestXml .= '      </NameValueList>'."\n";

}

$requestXml .= '    </ItemSpecifics>'."\n";

$requestXml .= '    <ShippingDetails>'."\n";

$requestXml .= '      <ShippingServiceOptions>'."\n";

$requestXml .= '        <ShippingServicePriority>1</ShippingServicePriority>'."\n";

$requestXml .= '        <ShippingService>'.$datas['shippingService'].'</ShippingService>'."\n";

$requestXml .= '        <FreeShipping>false</FreeShipping>'."\n";

$requestXml .= '        <ShippingServiceCost currencyID="EUR">'.$datas['shippingCost'].'</ShippingServiceCost>'."\n";

$requestXml .= '      </ShippingServiceOptions>'."\n";

$requestXml .= '    </ShippingDetails>'."\n";

$requestXml .= '    <Site>France</Site>'."\n";

$requestXml .= '  </Item>'."\n";

$requestXml .= '  <RequesterCredentials>'."\n";

$requestXml .= '    <eBayAuthToken>'.Configuration::get('EBAY_API_TOKEN').'</eBayAuthToken>'."\n";

$requestXml .= '  </RequesterCredentials>'."\n";

$requestXml .= '</AddFixedPriceItem>'."\n";

 

The request is working with some categories in ebay, but I can't make it work in any categories in sandbox ebay. 

Do you have any ideas where it comes from ? 

listingduration
· 1
10 |600

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

Can you Please provide the API response that you are getting? This way I will be able to help you better.

0 Likes 0 ·

0 Answers

·

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.