Recruitment

Register recruitment - client mode

Only the client needs to be logged in to use this endpoint. The user does not need to be logged in, click here to read more.

Use this API to register recruitments. The recruiter and the persons recruited are created in Connect. A recruitment is processed as an order in Connect.

SecurityClient_Credentials
Request
Request Body schema: application/json
product
required
string <= 12 characters

Product code. The product must be a subcription product.

campaign
required
string <= 12 characters

Campaign code

required
object

The recruiter

Array of objects
  • Missing list, i.e element missing, cause no changes in existing premium preferences.
  • List (empty or not) result in replacing existing premium preferences, i.e empty list will remove all premium preferences.
required
Array of objects
Responses
200

OK

Response Schema: application/json
status
string

The value "ok" if the request was received and processed successfully.

400

Bad Request

429

Too Many Requests

500

Internal Server Error

post/v1/client/recruitment
Request samples
application/json
{
  • "product": "CO27409",
  • "campaign": "Spring2019",
  • "recruiter": {
    },
  • "recruitmentPremiumPreferences": [
    ],
  • "recruitments": [
    ]
}
Response samples
application/json
{
  • "status": "ok"
}

List recruitments

The user needs to be logged in to use this endpoint, click here to read more.

Use this API for fetching existing recruitments and available points.

SecurityAuthorization_Code
Request
path Parameters
campaign
required
string <= 12 characters

Campaign code

query Parameters
limit
integer
Default: 50

Limit the number of records returned.

offset
integer
Default: 0

Offset the records returned.

ascending
boolean

Sort ascending or descending.

Responses
200

OK

Response Schema: application/json
points
integer

Number of points for this customer

products
Array of strings

List of proucts valid for recruitment on this campaign

Array of objects

List of recruitments

Array of objects

List of unverified recruitments

400

Bad Request

429

Too Many Requests

500

Internal Server Error

get/v1/recruitment/{campaign}
Request samples
Response samples
application/json
{
  • "points": 50,
  • "products": [
    ],
  • "recruitments": [
    ],
  • "unverifiedRecruitments": [
    ]
}

List premium recruitments

The user needs to be logged in to use this endpoint, click here to read more.

Use this API for premium preferences.

SecurityAuthorization_Code
Request
path Parameters
campaign
required
string <= 12 characters
Responses
200

OK

Response Schema: application/json
Array of objects
400

Bad Request

429

Too Many Requests

500

Internal Server Error

get/v1/recruitment/premium/{campaign}
Request samples
Response samples
application/json
{
  • "recruitmentPremiumPreferences": [
    ]
}

Change premium recruitments

The user needs to be logged in to use this endpoint, click here to read more.

Use this API for updating premium preference.

NOTE: Any existing premium preferences on this recruiter will be deleted before the POSTed data is applied

SecurityAuthorization_Code
Request
path Parameters
campaign
required
string <= 12 characters
Request Body schema: application/json
Array of objects
Responses
200

OK

Response Schema: application/json
Array of objects
400

Bad Request

429

Too Many Requests

500

Internal Server Error

post/v1/recruitment/premium/{campaign}
Request samples
application/json
{
  • "recruitmentPremiumPreferences": {
    }
}
Response samples
application/json
{
  • "recruitmentPremiumPreferences": [
    ]
}

Register recruitments

The user needs to be logged in to use this endpoint, click here to read more.

Use this API to register recruitments. The recruiter and the persons recruited are created in Connect. A recruitment is processed as an order in Connect.

  • If the recruiter, i.e the ConnectID user, is registered to a customer in Connect, we use this customer as the recruiter. In this case we ignore the recruiter information given in the request (i.e name and address).
  • Otherwise the recruiter is created in Connect if no matching customer is found.
SecurityAuthorization_Code
Request
Request Body schema: application/json
product
required
string <= 12 characters
campaign
required
string <= 12 characters
object
Array of objects
required
Array of objects

The coupon must belong to the given product in the recruitment request.

Responses
200

OK

Response Schema: application/json
status
string

The value "ok" if the request was received and processed successfully.

400

Bad Request

429

Too Many Requests

500

Internal Server Error

post/v1/recruitment
Request samples
application/json
{
  • "product": "CO27409",
  • "campaign": "Spring2019",
  • "recruiter": {
    },
  • "recruitmentPremiumPreferences": [
    ],
  • "recruitments": [
    ]
}
Response samples
application/json
{
  • "status": "ok"
}