ERROR_COMMON_RESOURCE_NOT_FOUND (404 Not Found) for POST request on /publish

16 views
Skip to first unread message

Martin Dammrath

unread,
May 31, 2023, 5:45:08 AM5/31/23
to immobilienscout24-development
Hi,

I am trying to publish a realestate object via

with XML the following XML in the request body.

<common:publishObject xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
<realEstate id="321417333"/>
<publishChannel id="10000"/>
</common:publishObject>

I am facing an ERROR_COMMON_RESOURCE_NOT_FOUND error. Here is the response:

https://rest.sandbox-immobilienscout24.de/restapi/api/offer/v1.0/publish/

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<message>
<messageCode>ERROR_COMMON_RESOURCE_NOT_FOUND</messageCode>
<message>Resource was not found.</message>
</message>
</common:messages>


 I created the real estate object earlier with a successful response of:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<message>
<messageCode>MESSAGE_RESOURCE_CREATED</messageCode>
<message>Resource [realestate] with id [321417333] has been created.</message>
<id>321417333</id>
</message>
</common:messages>

and I can retrieve it, too:

GET https://rest.sandbox-immobilienscout24.de/restapi/api/offer/v1.0/user/me/realestate/321416143

resolves in

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<realestates:apartmentRent xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0" xmlns:offerlistelement="http://rest.immobilienscout24.de/schema/offer/listelement/1.0" xmlns:ns5="http://rest.immobilienscout24.de/schema/search/expose/1.0" xmlns:ns6="http://rest.immobilienscout24.de/schema/customer/1.0" xmlns:realestates="http://rest.immobilienscout24.de/schema/offer/realestates/1.0" xmlns:ns8="http://rest.immobilienscout24.de/schema/attachmentsorder/1.0" xmlns:gis="http://rest.immobilienscout24.de/schema/platform/gis/1.0" xmlns:search="http://rest.immobilienscout24.de/schema/search/common/1.0" xmlns:videoupload="http://rest.immobilienscout24.de/schema/videoupload/1.0" xmlns:ns12="http://rest.immobilienscout24.de/schema/entitlement/1.0" id="321416143">
<externalId>321416143</externalId>
<title>New Flat Rental - REST-API bubu</title>
<creationDate>2023-05-30T12:33:16.009Z</creationDate>
......
</realestates:apartmentRent>


I am using the postman collection and authentication seems to be set up correctly as I am able to post a real estate object and to retrieve it by it's id (so it is present) - but I can't publish it (?).

The only thing that I could think of is a permission problem, but it is indicated that the permission to import realestate is given...

immoscout_api_permissions.png


I am really clueless right now. Would be very thankful for your help!


Best regards / Beste Grüße
Martin

Martin Dammrath

unread,
Jun 5, 2023, 5:24:21 AM6/5/23
to immobilienscout24-development
Is no one here who has an idea? I am really stuck here...

Olaf Lindenau

unread,
Jun 5, 2023, 5:50:35 AM6/5/23
to immobilienscout24-development
Hi Martin,

looks like that you are trying to publish an object in a seeker account. That is not possible. Is has to be an account that includes an listing contingent for publishing. During the creation of the API credentials there were also shown credentials for a test account on sandbox. Please use these credentials for your pubishing tests. If you don't have these credentials write an email to schnitt...@immobilienscout24.de and they will send you new credentials for a sandbox account where you can publish objects.

Best
Olaf
Reply all
Reply to author
Forward
0 new messages