renewOffer

This operation renews an expired job offer so that it can be published again. Only offers in the expired state can be renewed: renewing an offer in any other state (for example, an active offer) is rejected with error WS.1103. The user must have available stock to renew offers.


Request

WSDL Production URL

https://api.infojobs.net/soap/WSOfferV3Service?wsdl

WSDL Testing URL

https://api.infojobssbx.net/soap/WSOfferV3Service?wsdl

Security

  • User Role: ROLE_EMPLOYER

Parameters

Name Description

offerCode

String

Required

The string code that identifies the job offer.

Example values: 8e55718e6d4282979b59a20017186d

Response

Response entity

The response will include a summary of the renewed offer formed by the following fields. Note: the response does not include the new expiration date or the current state of the offer.

Name Type Description

offerCode

String

The job offer identifier

jobTitle

String

The title of the job offer

jobReference

String

Used by the company for classification purposes.

jobIndustryId

Long

The job industry/category identifier. Refer to the /dictionary/job-category operation for valid values.

provinceId

Long

The identifier of the job offer province. Refer to the /dictionary/province operation for valid values.

Error codes

Code Description

WS.1101

Invalid offer code. Null or empty string

WS.1102

The job offer code doesn't exist

WS.1103

The authenticated user doesn't have permission to renew the job offer, or the offer is not in the expired state. Only expired offers can be renewed.

WS.1104

The hidden profile stock of the authenticated user is sold out.

WS.1174

The authenticated user doesn't have the stock necessary to renew the offer.

Examples

Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:off="http://offerV3.endpoints.www.soap.infojobs.net/">
    <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-799830164" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>SOAP-TEST-CLIENT</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">SOAP-TEST-SECRET</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
      <ij:authnHeader xmlns:ij='http://api.infojobs.net/soap/authn'>
	    <token>0000-0000-0000-0000</token>
      </ij:authnHeader>
   </soapenv:Header>
   <soapenv:Body>
      <off:renewOffer>
      	<offerCode>8e55718e6d4282979b59a20017186d</offerCode>
      </off:renewOffer>
   </soapenv:Body>
</soapenv:Envelope>

Response

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header>
      <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
         <wsu:Timestamp wsu:Id="TS-13">
            <wsu:Created>2012-05-10T17:06:41.386Z</wsu:Created>
            <wsu:Expires>2012-05-10T17:11:41.386Z</wsu:Expires>
         </wsu:Timestamp>
      </wsse:Security>
   </soap:Header>
   <soap:Body>
      <ns1:renewOfferResponse xmlns:ns1="http://offerV3.endpoints.www.soap.infojobs.net/">
         <offerSummary>
            <jobIndustryId>15</jobIndustryId>
            <jobReference>REF-12345</jobReference>
            <jobTitle>Senior Java Developer</jobTitle>
            <offerCode>8e55718e6d4282979b59a20017186d</offerCode>
            <provinceId>28</provinceId>
         </offerSummary>
      </ns1:renewOfferResponse>
   </soap:Body>
</soap:Envelope>