question

kanuj23anuj avatar image
0 Likes"
kanuj23anuj asked ·

Getting 401 Errors in /post-order/v2/cancellation/check_eligibility

below is script which gives 401 error, I checked this for one particular test order id and returned response but for other order id it returning 401 $url = " https://api.sandbox.ebay.com/post-order/v2/cancellation/check_eligibility";; $header = array( 'Accept: application/json', 'Authorization: TOKEN '.$userToken, 'Content-Type: application/json', 'X-EBAY-C-MARKETPLACE-ID: EBAY_US' ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); $headerInfo = curl_getinfo($ch); can you check that what i am doing wrong in it?
check eligibilityorder cancellation
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.

1 Answer

· Write an Answer
unienter_54 avatar image
0 Likes"
unienter_54 answered ·
i am facing same problem any body help me?
· Share
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.

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.