ShopClick-out

Launch the Kini Shop with a Click-out

Add a button to your product that opens the Kini Shop loaded with a job, ready to book. Kini provides the complete Shop interface, you only make one API request.

Complete the steps below in order. Every call uses the Authorization header from Authentication. Send Company-Id on the click-out calls, once you have the company id from Step 1.

Step 1: Connect the company

Create and activate the company once, as described in Connect the company. Save the company id, send this as the Company-Id header in the next step.

Make sure Job Sync is active for the company. The click-out finds the job by the ID it has in your system.


Add a button such as "Promote job" next to each job in your product. When a user clicks it, your server calls Create Promote Clickout Link and returns a link under data to the browser. That link signs the user in and opens the Kini Shop on that job.

  • email is the user who clicked the button. Kini creates a Shop user for this email on first use and adds them to the company.
  • external_job_id is the job's ID in your system. It is important that this ID be unqiue in your system. Kini synchronously refreshes the job from your system before it creates the link, so a job you published a minute ago works too.
  • product_type opens a specific tab in the Shop - send single for promoting a single job, send campaign for adding a job to a campaign. Leave it out to open the default tab (single).
{
  "email": "jane.doe@example.com",
  "external_job_id": "EXT-123456",
  "product_type": "single"
}

Each email can belong to only one Kini company. An email already being used at another company fails with 403, because Kini does not move users between organisations.

StatusMeaning
400A required field is missing, or a value is invalid.
403The company is not activated yet, or the email belongs to another organisation.
408 or 502Kini could not refresh the job from your system. Try again in sometime.
409More than one job in this company has this external_job_id.
500Internal server error. Kini could not create the click-out link.

Open data in a new browser tab. The user lands signed in on the job's promote page, ready with the catalogue of products and the booking flow.

The link is valid for one hour. Create a new link on every click. Don't store or reuse one.


After the booking

Each booking goes through an automated review process. It is posted on the job board within a few hours in most cases, and within two days if the review takes longer. Applications from the job board come back into your system through Candidate Sync, with their source mapped through Kini.

Follow each booking with the Job Booking Status Update webhook, or read bookings back with List Job Bookings. To set up a webhook, contact tech@getkini.com.


Your logo and colours

The Shop can show your logo and brand colour instead of Kini's. Send both to tech@getkini.com and we will set them on your partner account. They then apply for every company under it.

Open the job list or bookings

With a partner-scoped API key, Create Redirect Clickout Link opens a company's overview instead of one job. Send resource as jobs for the company's job list, or bookings for its bookings. Use it for a "View bookings" link in your product.