Incoming JSON request does not map to API request - Paypal

Hi Oxiders,

I have stuck up with an issue of paypal module for the version 4.8.7. I am unable to make the refund. Below is the log error. Could you please help/advise on this??

[02-02-2021 04:02:40] PayPal\Core\PayPalHttpConnection: ERROR : Got Http response code 400 when accessing https://api.paypal.com/v1/payments/sale/43A19527BT147144V/refund. {“name”:“MALFORMED_REQUEST”,“message”:“Incoming JSON request does not map to API request.”,“information_link”:“https://developer.paypal.com/docs/api/payments/#errors",“debug_id”:"c8e03b6e79bef”}

Thanks,
Wasim

Hi @wasim your shop version 4.8.7 is very old and maybe your paypal module version, too.

When you check the information link https://developer.paypal.com/docs/api/payments/v1 you see first the message

You are viewing a deprecated version of this API. We recommend upgrading to Version 2.

and the HTTP status code 400 response is a bad request error by definition and also this is a note that you have to update your shop version and paypal module version.

Best,
Tim

ps. [29/07/2014] OXID eShop Community Edition version 4.8.7 Releases — OXID eSales Documentation

1 Like

Hello Tim,

Thank you. Its nice to see you :slight_smile:

Recommend upgrading to version 2 means

  1. Do I need to update the module ?
  2. It is saying v1 endpoint to v2 endpoint in manual, does it mean changing something in user paypal account?

Thanks,
Wasim

Hello @wasim :slight_smile:

you have following options

  1. You update your shop version to serie 6.2, update your theme and update all modules included paypal module. The best way was a restart in your case with newest shop version Getting started — OXID eShop developer documentation 6.2.0 documentation

  2. You need to find a solution yourself that you can use paypal any more, because the old shop version and old paypal modul version not supportet any more.

Best,
Tim

1 Like

Sure will look for upgrade Tim. Thank you for your kind help :slight_smile:

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.