question

gripgate avatar image
0 Likes"
gripgate asked ·

Publish offer not possible, no error

Hi, I am currently trying to sell in other countries and I am able to create a new offer where I get a new unique offerid back.
However when I try to publish it with my publishing function which works in my country I recieve the following response response = bool(false)
no errors URL print out= https://api.ebay.com/sell/inventory/v1/offer/xxxxxxxxx/publish Does anyone have an idea why I get this response without an error message? **My function:** $aresponse = $oEbay->publishOffer('xxxxxxxxxx', $blMessage=false); print_r("new offerid: ".$sOfferId." listingid: ".$aresponse["listingId"]. ' errorId: '.$aResponse["errorId"] . ' domain ' .$aResponse["domain"] . ' subdomain '.$aResponse["subdomain"]. ' category '.$aResponse["category"] . ' message '.$aResponse["message"] . "\n"); public function publishOffer($sOfferId, $blMessage=false) { $sURL = $this->_sURL.'/sell/inventory/v1/offer/'.$sOfferId.'/publish'; print_r($sURL); $headers[] = 'Authorization: Bearer '.$this->_UserToken; $headers[] = 'Accept:application/json'; $headers[] = 'Content-Type:application/json'; $aResponse = $this->callRESTCurl('POST',$sURL,null,$headers); echo '
'; var_dump($aResponse); echo '
';
	    //var_dump($aResponse);
	    
	    if($blMessage) {
			return $this->_sMessage;
		}
	    
	    return $aResponse;
    }

The payload of the createOffer with the aResponse -> New offerID: xxxxxxxxxx, which was different to the one which is online in ebay_de

    array(9) {
      ["marketplaceId"]=>
      string(7) "EBAY_AT"
      ["sku"]=>
      string(5) "X08TU"
      ["availableQuantity"]=>
      int(4)
      ["pricingSummary"]=>
      array(1) {
        ["price"]=>
        array(2) {
          ["currency"]=>
          string(3) "EUR"
          ["value"]=>
          string(6) "115.13"
        }
      }
      ["categoryId"]=>
      string(6) "179680"
      ["format"]=>
      string(11) "FIXED_PRICE"
      ["listingDescription"]=>
      string(15152) ""
      ["merchantLocationKey"]=>
      string(7) "laatzen"
      ["listingPolicies"]=>
      array(3) {
        ["fulfillmentPolicyId"]=>
        string(12) "yyyyyyyyyy"
        ["paymentPolicyId"]=>
        string(12) "yyyyyyyyyy"
        ["returnPolicyId"]=>
        string(12) "yyyyyyyyyy"
      }
    }

publish offer errorpublishoffercountryno error response
10 |600 characters needed characters left characters exceeded

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

0 Answers

· Write an Answer

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.