Skip to main content
PUT
/
tickets
/
by-code
/
{ticketCode}
/
checkin
cURL
curl --request PUT \
  --url https://api-alpha.fourvenues.com/integrations/tickets/by-code/{ticketCode}/checkin \
  --header 'Content-Type: application/json' \
  --header 'integration_id: <api-key>' \
  --header 'secret: <api-key>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "enter": 1,
  "entry_date": "2022-09-15T23:00:00.000Z",
  "quality": 2
}
'
import requests

url = "https://api-alpha.fourvenues.com/integrations/tickets/by-code/{ticketCode}/checkin"

payload = {
"enter": 1,
"entry_date": "2022-09-15T23:00:00.000Z",
"quality": 2
}
headers = {
"integration_id": "<api-key>",
"secret": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {
integration_id: '<api-key>',
secret: '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({enter: 1, entry_date: '2022-09-15T23:00:00.000Z', quality: 2})
};

fetch('https://api-alpha.fourvenues.com/integrations/tickets/by-code/{ticketCode}/checkin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api-alpha.fourvenues.com/integrations/tickets/by-code/{ticketCode}/checkin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enter' => 1,
'entry_date' => '2022-09-15T23:00:00.000Z',
'quality' => 2
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"integration_id: <api-key>",
"secret: <api-key>",
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api-alpha.fourvenues.com/integrations/tickets/by-code/{ticketCode}/checkin"

payload := strings.NewReader("{\n \"enter\": 1,\n \"entry_date\": \"2022-09-15T23:00:00.000Z\",\n \"quality\": 2\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("integration_id", "<api-key>")
req.Header.Add("secret", "<api-key>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://api-alpha.fourvenues.com/integrations/tickets/by-code/{ticketCode}/checkin")
.header("integration_id", "<api-key>")
.header("secret", "<api-key>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enter\": 1,\n \"entry_date\": \"2022-09-15T23:00:00.000Z\",\n \"quality\": 2\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api-alpha.fourvenues.com/integrations/tickets/by-code/{ticketCode}/checkin")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["integration_id"] = '<api-key>'
request["secret"] = '<api-key>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enter\": 1,\n \"entry_date\": \"2022-09-15T23:00:00.000Z\",\n \"quality\": 2\n}"

response = http.request(request)
puts response.read_body
{
  "success": true
}

Authorizations

integration_id
string
header
required

Identifier of the integration (Auth v1)

secret
string
header
required

Secret of the organization (Auth v1)

x-api-key
string
header
required

API key (Auth v2)

Path Parameters

ticketCode
string
required

Code of the ticket

Body

application/json

Body of the request

Ticket Check-in Update

enter
number

Number of people to check in.

Example:

1

entry_date
string<date-time>

Entry date in ISO 8601 format.

Example:

"2022-09-15T23:00:00.000Z"

quality
number

Quality rating.

Required range: 0 <= x <= 5
Example:

2

Response

HTTP OK

success
boolean
Example:

true