Actualizar información del asistente del ticket
curl --request PUT \
--url https://api.fint.app/api/v1/event/ticket/reference/{reference} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"firstName": "Juan",
"lastName": "Pérez",
"email": "juan.perez@example.com",
"document": "12345678",
"status": "ADMITTED",
"customFieldResponses": [
{
"id": 123,
"customFieldId": 5,
"value": "Vegano"
},
{
"customFieldId": 10,
"value": "Talla L"
},
{
"customFieldId": 12,
"value": "42"
}
]
}
'import requests
url = "https://api.fint.app/api/v1/event/ticket/reference/{reference}"
payload = {
"firstName": "Juan",
"lastName": "Pérez",
"email": "juan.perez@example.com",
"document": "12345678",
"status": "ADMITTED",
"customFieldResponses": [
{
"id": 123,
"customFieldId": 5,
"value": "Vegano"
},
{
"customFieldId": 10,
"value": "Talla L"
},
{
"customFieldId": 12,
"value": "42"
}
]
}
headers = {
"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: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'Juan',
lastName: 'Pérez',
email: 'juan.perez@example.com',
document: '12345678',
status: 'ADMITTED',
customFieldResponses: [
{id: 123, customFieldId: 5, value: 'Vegano'},
{customFieldId: 10, value: 'Talla L'},
{customFieldId: 12, value: '42'}
]
})
};
fetch('https://api.fint.app/api/v1/event/ticket/reference/{reference}', 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.fint.app/api/v1/event/ticket/reference/{reference}",
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([
'firstName' => 'Juan',
'lastName' => 'Pérez',
'email' => 'juan.perez@example.com',
'document' => '12345678',
'status' => 'ADMITTED',
'customFieldResponses' => [
[
'id' => 123,
'customFieldId' => 5,
'value' => 'Vegano'
],
[
'customFieldId' => 10,
'value' => 'Talla L'
],
[
'customFieldId' => 12,
'value' => '42'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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.fint.app/api/v1/event/ticket/reference/{reference}"
payload := strings.NewReader("{\n \"firstName\": \"Juan\",\n \"lastName\": \"Pérez\",\n \"email\": \"juan.perez@example.com\",\n \"document\": \"12345678\",\n \"status\": \"ADMITTED\",\n \"customFieldResponses\": [\n {\n \"id\": 123,\n \"customFieldId\": 5,\n \"value\": \"Vegano\"\n },\n {\n \"customFieldId\": 10,\n \"value\": \"Talla L\"\n },\n {\n \"customFieldId\": 12,\n \"value\": \"42\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.fint.app/api/v1/event/ticket/reference/{reference}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"Juan\",\n \"lastName\": \"Pérez\",\n \"email\": \"juan.perez@example.com\",\n \"document\": \"12345678\",\n \"status\": \"ADMITTED\",\n \"customFieldResponses\": [\n {\n \"id\": 123,\n \"customFieldId\": 5,\n \"value\": \"Vegano\"\n },\n {\n \"customFieldId\": 10,\n \"value\": \"Talla L\"\n },\n {\n \"customFieldId\": 12,\n \"value\": \"42\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fint.app/api/v1/event/ticket/reference/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"Juan\",\n \"lastName\": \"Pérez\",\n \"email\": \"juan.perez@example.com\",\n \"document\": \"12345678\",\n \"status\": \"ADMITTED\",\n \"customFieldResponses\": [\n {\n \"id\": 123,\n \"customFieldId\": 5,\n \"value\": \"Vegano\"\n },\n {\n \"customFieldId\": 10,\n \"value\": \"Talla L\"\n },\n {\n \"customFieldId\": 12,\n \"value\": \"42\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"invoiceId": 123,
"buyerFirstName": "<string>",
"buyerLastName": "<string>",
"buyerDocument": "<string>",
"buyerEmail": "<string>",
"buyerPhone": "<string>",
"totalAmount": "<string>",
"eventPageId": 123,
"pdfUrl": "<string>",
"reference": "<string>",
"createdAt": "<string>",
"customFieldResponses": [
{
"id": 123,
"customFieldId": 123,
"fieldLabel": "<string>",
"fieldType": "<string>",
"value": "<string>",
"optionId": 123,
"wasRequired": true
}
],
"eventPage": {
"id": 123,
"name": "<string>",
"reference": "<string>"
},
"attendee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"document": "<string>",
"email": "<string>",
"status": "<string>",
"amount": "<string>",
"reference": "<string>",
"qrUrl": "<string>",
"generateQr": true,
"pdfUrl": "<string>",
"askInformation": true,
"isAdditional": true,
"customFieldResponses": [
{
"id": 123,
"customFieldId": 123,
"fieldLabel": "<string>",
"fieldType": "<string>",
"value": "<string>",
"optionId": 123,
"wasRequired": true
}
],
"itemName": "<string>"
},
"isManual": true,
"organizationId": 123
}{
"message": "<string>",
"errors": [
"<string>"
]
}{
"message": "<string>"
}Eventos
Actualizar información del asistente del ticket
Actualizar la información del asistente de un ticket de evento, incluyendo datos personales y respuestas a campos personalizados. Permite actualizar campos existentes (con id) y crear nuevas respuestas para campos agregados después de la compra (sin id).
PUT
/
event
/
ticket
/
reference
/
{reference}
Actualizar información del asistente del ticket
curl --request PUT \
--url https://api.fint.app/api/v1/event/ticket/reference/{reference} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"firstName": "Juan",
"lastName": "Pérez",
"email": "juan.perez@example.com",
"document": "12345678",
"status": "ADMITTED",
"customFieldResponses": [
{
"id": 123,
"customFieldId": 5,
"value": "Vegano"
},
{
"customFieldId": 10,
"value": "Talla L"
},
{
"customFieldId": 12,
"value": "42"
}
]
}
'import requests
url = "https://api.fint.app/api/v1/event/ticket/reference/{reference}"
payload = {
"firstName": "Juan",
"lastName": "Pérez",
"email": "juan.perez@example.com",
"document": "12345678",
"status": "ADMITTED",
"customFieldResponses": [
{
"id": 123,
"customFieldId": 5,
"value": "Vegano"
},
{
"customFieldId": 10,
"value": "Talla L"
},
{
"customFieldId": 12,
"value": "42"
}
]
}
headers = {
"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: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'Juan',
lastName: 'Pérez',
email: 'juan.perez@example.com',
document: '12345678',
status: 'ADMITTED',
customFieldResponses: [
{id: 123, customFieldId: 5, value: 'Vegano'},
{customFieldId: 10, value: 'Talla L'},
{customFieldId: 12, value: '42'}
]
})
};
fetch('https://api.fint.app/api/v1/event/ticket/reference/{reference}', 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.fint.app/api/v1/event/ticket/reference/{reference}",
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([
'firstName' => 'Juan',
'lastName' => 'Pérez',
'email' => 'juan.perez@example.com',
'document' => '12345678',
'status' => 'ADMITTED',
'customFieldResponses' => [
[
'id' => 123,
'customFieldId' => 5,
'value' => 'Vegano'
],
[
'customFieldId' => 10,
'value' => 'Talla L'
],
[
'customFieldId' => 12,
'value' => '42'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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.fint.app/api/v1/event/ticket/reference/{reference}"
payload := strings.NewReader("{\n \"firstName\": \"Juan\",\n \"lastName\": \"Pérez\",\n \"email\": \"juan.perez@example.com\",\n \"document\": \"12345678\",\n \"status\": \"ADMITTED\",\n \"customFieldResponses\": [\n {\n \"id\": 123,\n \"customFieldId\": 5,\n \"value\": \"Vegano\"\n },\n {\n \"customFieldId\": 10,\n \"value\": \"Talla L\"\n },\n {\n \"customFieldId\": 12,\n \"value\": \"42\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.fint.app/api/v1/event/ticket/reference/{reference}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"Juan\",\n \"lastName\": \"Pérez\",\n \"email\": \"juan.perez@example.com\",\n \"document\": \"12345678\",\n \"status\": \"ADMITTED\",\n \"customFieldResponses\": [\n {\n \"id\": 123,\n \"customFieldId\": 5,\n \"value\": \"Vegano\"\n },\n {\n \"customFieldId\": 10,\n \"value\": \"Talla L\"\n },\n {\n \"customFieldId\": 12,\n \"value\": \"42\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fint.app/api/v1/event/ticket/reference/{reference}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"Juan\",\n \"lastName\": \"Pérez\",\n \"email\": \"juan.perez@example.com\",\n \"document\": \"12345678\",\n \"status\": \"ADMITTED\",\n \"customFieldResponses\": [\n {\n \"id\": 123,\n \"customFieldId\": 5,\n \"value\": \"Vegano\"\n },\n {\n \"customFieldId\": 10,\n \"value\": \"Talla L\"\n },\n {\n \"customFieldId\": 12,\n \"value\": \"42\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"invoiceId": 123,
"buyerFirstName": "<string>",
"buyerLastName": "<string>",
"buyerDocument": "<string>",
"buyerEmail": "<string>",
"buyerPhone": "<string>",
"totalAmount": "<string>",
"eventPageId": 123,
"pdfUrl": "<string>",
"reference": "<string>",
"createdAt": "<string>",
"customFieldResponses": [
{
"id": 123,
"customFieldId": 123,
"fieldLabel": "<string>",
"fieldType": "<string>",
"value": "<string>",
"optionId": 123,
"wasRequired": true
}
],
"eventPage": {
"id": 123,
"name": "<string>",
"reference": "<string>"
},
"attendee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"document": "<string>",
"email": "<string>",
"status": "<string>",
"amount": "<string>",
"reference": "<string>",
"qrUrl": "<string>",
"generateQr": true,
"pdfUrl": "<string>",
"askInformation": true,
"isAdditional": true,
"customFieldResponses": [
{
"id": 123,
"customFieldId": 123,
"fieldLabel": "<string>",
"fieldType": "<string>",
"value": "<string>",
"optionId": 123,
"wasRequired": true
}
],
"itemName": "<string>"
},
"isManual": true,
"organizationId": 123
}{
"message": "<string>",
"errors": [
"<string>"
]
}{
"message": "<string>"
}Authorizations
Path Parameters
Referencia única del ticket
Example:
"TKT-ABC123"
Body
application/json
Response
Ticket actualizado exitosamente
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I