question

sivraj2014 avatar image
1 Like"
sivraj2014 asked ·

POST ORDER API,Post Order API,POST ORDER API support

I am very new to eBay API implementation. I referred POST ORDER API reference. Can any one please help me to create function to call return API in eBay? I created one function based on POST API reference to request for "return" using userToken from sandbox. I don't receive any response or error. array("itemId"=> "110164419373", "reason"=>"ARRIVED_DAMAGED", "returnQuantity"=>1, "transactionId"=>"6X492909PE795133A", "type"=>"MONEY_BACK")); $JSON_data = json_encode($postData); // Setup cURL $ch = curl_init(' https://api.sandbox.ebay.com/post-order/v2/return/'); curl_setopt_array($ch, array( CURLOPT_HTTPHEADER => array( 'Authorization: TOKEN'.$authToken, 'Content-Type: application/json', 'Accept: application/json', 'X-EBAY-C-MARKETPLACE-ID: EBAY-US' ), CURLOPT_RETURNTRANSFER=>TRUE, CURLOPT_SSL_VERIFYHOST=>0, CURLOPT_SSL_VERIFYPEER=>0, CURLOPT_POSTFIELDS => $JSON_data )); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); // Send the request $response = curl_exec($ch); // Check for errors if($response === FALSE){ die(curl_error($ch)); } // Decode the response $responseData = json_decode($response, TRUE); // Print the date from the response echo "
";print_r($JSON_data);
    ?>
apiapi callreturnheader-request-httpheader
· 2
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.

can you see what is the httpcode curl_getinfo($ch, CURLINFO_HTTP_CODE)
0 Likes 0 · ·
did you solve this problem??
0 Likes 0 · ·

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.