cancel
Showing results for 
Search instead for 
Did you mean: 

Company object - error "Request does not match any route."

Company object - error "Request does not match any route."

Hello,

 

We were developing a Magento connector to our system and we faced an issue that we can't resolve:

 

We are trying to add Company object to our Magento connector using this guidelines: https://magento.redoc.ly/2.4.2-admin/tag/company

 

We use the latest version of Magento API 2.4.2 and this endpoint doesn’t work, for example when we set the following request:
GET http://192.168.10.145/rest/all/V1/company

GET http://192.168.10.145/rest/all/V1/company?searchCriteria[page_size]=500&searchCriteria[currentPage]=...


We constantly get the error "Request does not match any route."

 

We don’t have any problems with other endpoints, only with this specific one.

 

Could you please assist us with it? Thanks!

2 REPLIES 2

Re: Company object - error "Request does not match any route."

Hello @Sergei_rnd ,

Your Url's should be like this 

POST /V1/company/
PUT /V1/company/:companyId
GET /V1/company/:companyId
DELETE /V1/company/:companyId
GET /V1/company/

Thank you . Problem solved? click kudos and accept the solution 

Re: Company object - error "Request does not match any route."

Hello,

 

Unfortunately that didn't help.

 

When we run the  following request:

GET http://192.168.10.101/rest/V1/company

And got the same error - "Request does not match any route."

 

When we run:

GET http://192.168.10.101/V1/company

We get - 404 NotFound

 

What can be the issue?

 

Regards,

Sergei