1

i want to create a integration with magento 2 and SAP B1, I created a web application in magento 2 I gave it a name and I gave it permission to API and it was saved

then create a new role, assign the roles that the API will use, then create the user who will use the roles you previously believed

when I make the call

https: // HOST_IP / rest / V1 / customer / me

give me this back

The request does not match any route.

Can you tell me if I'm forgetting a step or something?

  • Have you got customer token? – Aditya Shah Sep 27 '18 at 3:34
  • No, it shows an error 2f {"message":"Request does not match any route."} 0 – Maurice Sep 27 '18 at 13:40
  • Which method you;re passing ? GET or POST ? – Aditya Shah Sep 27 '18 at 13:45
  • Currently GET, but the idea is to work with both – Maurice Sep 27 '18 at 14:51
  • Have you checked my answer ? – Aditya Shah Sep 27 '18 at 15:42
0

In Magento web-API when you pass user name and password then it generates token for that specific customer (Which is only valid for 1 hour - configurable from admin)


http://ventas.interlatin.com.mx/index.php/rest/V1/integration/customer/token?username=testapi@hotmail.com&password=testapi12345

  • method POST

which returns token.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.