Place an order
curl --request POST \
--url https://openapi.orriven.com/v1/events/{eventId}/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"name": "<string>",
"items": [
{
"itemId": "<string>",
"quantity": 50
}
],
"redemptionCode": "<string>",
"responses": {}
}
'import requests
url = "https://openapi.orriven.com/v1/events/{eventId}/orders"
payload = {
"email": "jsmith@example.com",
"name": "<string>",
"items": [
{
"itemId": "<string>",
"quantity": 50
}
],
"redemptionCode": "<string>",
"responses": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'jsmith@example.com',
name: '<string>',
items: [{itemId: '<string>', quantity: 50}],
redemptionCode: '<string>',
responses: {}
})
};
fetch('https://openapi.orriven.com/v1/events/{eventId}/orders', 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://openapi.orriven.com/v1/events/{eventId}/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jsmith@example.com',
'name' => '<string>',
'items' => [
[
'itemId' => '<string>',
'quantity' => 50
]
],
'redemptionCode' => '<string>',
'responses' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://openapi.orriven.com/v1/events/{eventId}/orders"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"items\": [\n {\n \"itemId\": \"<string>\",\n \"quantity\": 50\n }\n ],\n \"redemptionCode\": \"<string>\",\n \"responses\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://openapi.orriven.com/v1/events/{eventId}/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"items\": [\n {\n \"itemId\": \"<string>\",\n \"quantity\": 50\n }\n ],\n \"redemptionCode\": \"<string>\",\n \"responses\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.orriven.com/v1/events/{eventId}/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"items\": [\n {\n \"itemId\": \"<string>\",\n \"quantity\": 50\n }\n ],\n \"redemptionCode\": \"<string>\",\n \"responses\": {}\n}"
response = http.request(request)
puts response.read_body{
"alreadyRegistered": true,
"registration": {
"status": "<string>",
"type": "<string>"
}
}{
"alreadyRegistered": false,
"order": {
"id": "<string>",
"eventId": "<string>",
"orderNumber": "<string>",
"email": "<string>",
"name": "<string>",
"status": "pending",
"totalAmount": 123,
"discountAmount": 123,
"refundedAmount": 123,
"currency": "<string>",
"registrationId": "<string>",
"items": [
{
"itemType": "registration_type",
"itemId": "<string>",
"name": "<string>",
"quantity": 123,
"unitAmount": 123
}
],
"expiresAt": "<string>",
"paidAt": "<string>",
"fulfilledAt": "<string>",
"createdAt": "<string>"
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}Orders
Place an order
The headless cart’s settlement: tickets, add-ons and bundles in one order, with an optional redemption code. The order holds its places for 15 minutes until confirmed. A buyer already registered in the event is acknowledged (alreadyRegistered: true) — never sold a second seat, never shown an error.
POST
/
v1
/
events
/
{eventId}
/
orders
Place an order
curl --request POST \
--url https://openapi.orriven.com/v1/events/{eventId}/orders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"name": "<string>",
"items": [
{
"itemId": "<string>",
"quantity": 50
}
],
"redemptionCode": "<string>",
"responses": {}
}
'import requests
url = "https://openapi.orriven.com/v1/events/{eventId}/orders"
payload = {
"email": "jsmith@example.com",
"name": "<string>",
"items": [
{
"itemId": "<string>",
"quantity": 50
}
],
"redemptionCode": "<string>",
"responses": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'jsmith@example.com',
name: '<string>',
items: [{itemId: '<string>', quantity: 50}],
redemptionCode: '<string>',
responses: {}
})
};
fetch('https://openapi.orriven.com/v1/events/{eventId}/orders', 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://openapi.orriven.com/v1/events/{eventId}/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jsmith@example.com',
'name' => '<string>',
'items' => [
[
'itemId' => '<string>',
'quantity' => 50
]
],
'redemptionCode' => '<string>',
'responses' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://openapi.orriven.com/v1/events/{eventId}/orders"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"items\": [\n {\n \"itemId\": \"<string>\",\n \"quantity\": 50\n }\n ],\n \"redemptionCode\": \"<string>\",\n \"responses\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://openapi.orriven.com/v1/events/{eventId}/orders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"items\": [\n {\n \"itemId\": \"<string>\",\n \"quantity\": 50\n }\n ],\n \"redemptionCode\": \"<string>\",\n \"responses\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.orriven.com/v1/events/{eventId}/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jsmith@example.com\",\n \"name\": \"<string>\",\n \"items\": [\n {\n \"itemId\": \"<string>\",\n \"quantity\": 50\n }\n ],\n \"redemptionCode\": \"<string>\",\n \"responses\": {}\n}"
response = http.request(request)
puts response.read_body{
"alreadyRegistered": true,
"registration": {
"status": "<string>",
"type": "<string>"
}
}{
"alreadyRegistered": false,
"order": {
"id": "<string>",
"eventId": "<string>",
"orderNumber": "<string>",
"email": "<string>",
"name": "<string>",
"status": "pending",
"totalAmount": 123,
"discountAmount": 123,
"refundedAmount": 123,
"currency": "<string>",
"registrationId": "<string>",
"items": [
{
"itemType": "registration_type",
"itemId": "<string>",
"name": "<string>",
"quantity": 123,
"unitAmount": 123
}
],
"expiresAt": "<string>",
"paidAt": "<string>",
"fulfilledAt": "<string>",
"createdAt": "<string>"
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}{
"error": {
"code": 404,
"status": "NOT_FOUND",
"message": "Event not found.",
"details": [
"<unknown>"
]
}
}Authorizations
The API key's secret (osk_…), shown once when the key is created in the console.
Path Parameters
Body
application/json
⌘I