Register a new partner (Public)
curl --request POST \
--url http://localhost:3000/partners/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"companyName": "Ticketmaster",
"contactName": "John Smith",
"contactEmail": "[email protected]",
"password": "password123",
"website": "https://ticketmaster.com",
"country": "US",
"currency": "USD",
"description": "We want to integrate with Tickify for blockchain ticketing"
}
'import requests
url = "http://localhost:3000/partners/auth/register"
payload = {
"companyName": "Ticketmaster",
"contactName": "John Smith",
"contactEmail": "[email protected]",
"password": "password123",
"website": "https://ticketmaster.com",
"country": "US",
"currency": "USD",
"description": "We want to integrate with Tickify for blockchain ticketing"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
companyName: 'Ticketmaster',
contactName: 'John Smith',
contactEmail: '[email protected]',
password: 'password123',
website: 'https://ticketmaster.com',
country: 'US',
currency: 'USD',
description: 'We want to integrate with Tickify for blockchain ticketing'
})
};
fetch('http://localhost:3000/partners/auth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/partners/auth/register",
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([
'companyName' => 'Ticketmaster',
'contactName' => 'John Smith',
'contactEmail' => '[email protected]',
'password' => 'password123',
'website' => 'https://ticketmaster.com',
'country' => 'US',
'currency' => 'USD',
'description' => 'We want to integrate with Tickify for blockchain ticketing'
]),
CURLOPT_HTTPHEADER => [
"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 := "http://localhost:3000/partners/auth/register"
payload := strings.NewReader("{\n \"companyName\": \"Ticketmaster\",\n \"contactName\": \"John Smith\",\n \"contactEmail\": \"[email protected]\",\n \"password\": \"password123\",\n \"website\": \"https://ticketmaster.com\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"We want to integrate with Tickify for blockchain ticketing\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://localhost:3000/partners/auth/register")
.header("Content-Type", "application/json")
.body("{\n \"companyName\": \"Ticketmaster\",\n \"contactName\": \"John Smith\",\n \"contactEmail\": \"[email protected]\",\n \"password\": \"password123\",\n \"website\": \"https://ticketmaster.com\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"We want to integrate with Tickify for blockchain ticketing\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/partners/auth/register")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"companyName\": \"Ticketmaster\",\n \"contactName\": \"John Smith\",\n \"contactEmail\": \"[email protected]\",\n \"password\": \"password123\",\n \"website\": \"https://ticketmaster.com\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"We want to integrate with Tickify for blockchain ticketing\"\n}"
response = http.request(request)
puts response.read_body{
"partner": {
"partnerId": "par_abc123def456",
"name": "Acme Ticketing",
"status": "PENDING",
"contactEmail": "[email protected]"
},
"user": {
"key": "user_xyz789",
"email": "[email protected]",
"role": "organiser"
},
"message": "Partner registration submitted successfully. Please check your email to verify your account. An admin will review your application and approve it."
}Partner Auth
Register a new partner (Public)
Register a new ticketing platform as a Tickify partner.
Process:
- Submit registration with company details
- Verification email sent to contact email
- Tickify admin reviews and approves/rejects
- If approved: partner status becomes ACTIVE, API keys can be generated
Required fields:
companyName: Legal company namecontactEmail: Primary contact email (must be unique)contactName: Contact person namepassword: Account password (min 8 chars)
Optional fields:
website: Company website URLcurrency: Default currency (ISO 4217, default: USD)
Response includes:
- Partner object with
partnerId(format:par_xxx) - Temporary user credentials for dashboard access
- Message about email verification and admin review
POST
/
partners
/
auth
/
register
Register a new partner (Public)
curl --request POST \
--url http://localhost:3000/partners/auth/register \
--header 'Content-Type: application/json' \
--data '
{
"companyName": "Ticketmaster",
"contactName": "John Smith",
"contactEmail": "[email protected]",
"password": "password123",
"website": "https://ticketmaster.com",
"country": "US",
"currency": "USD",
"description": "We want to integrate with Tickify for blockchain ticketing"
}
'import requests
url = "http://localhost:3000/partners/auth/register"
payload = {
"companyName": "Ticketmaster",
"contactName": "John Smith",
"contactEmail": "[email protected]",
"password": "password123",
"website": "https://ticketmaster.com",
"country": "US",
"currency": "USD",
"description": "We want to integrate with Tickify for blockchain ticketing"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
companyName: 'Ticketmaster',
contactName: 'John Smith',
contactEmail: '[email protected]',
password: 'password123',
website: 'https://ticketmaster.com',
country: 'US',
currency: 'USD',
description: 'We want to integrate with Tickify for blockchain ticketing'
})
};
fetch('http://localhost:3000/partners/auth/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/partners/auth/register",
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([
'companyName' => 'Ticketmaster',
'contactName' => 'John Smith',
'contactEmail' => '[email protected]',
'password' => 'password123',
'website' => 'https://ticketmaster.com',
'country' => 'US',
'currency' => 'USD',
'description' => 'We want to integrate with Tickify for blockchain ticketing'
]),
CURLOPT_HTTPHEADER => [
"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 := "http://localhost:3000/partners/auth/register"
payload := strings.NewReader("{\n \"companyName\": \"Ticketmaster\",\n \"contactName\": \"John Smith\",\n \"contactEmail\": \"[email protected]\",\n \"password\": \"password123\",\n \"website\": \"https://ticketmaster.com\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"We want to integrate with Tickify for blockchain ticketing\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://localhost:3000/partners/auth/register")
.header("Content-Type", "application/json")
.body("{\n \"companyName\": \"Ticketmaster\",\n \"contactName\": \"John Smith\",\n \"contactEmail\": \"[email protected]\",\n \"password\": \"password123\",\n \"website\": \"https://ticketmaster.com\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"We want to integrate with Tickify for blockchain ticketing\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/partners/auth/register")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"companyName\": \"Ticketmaster\",\n \"contactName\": \"John Smith\",\n \"contactEmail\": \"[email protected]\",\n \"password\": \"password123\",\n \"website\": \"https://ticketmaster.com\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"We want to integrate with Tickify for blockchain ticketing\"\n}"
response = http.request(request)
puts response.read_body{
"partner": {
"partnerId": "par_abc123def456",
"name": "Acme Ticketing",
"status": "PENDING",
"contactEmail": "[email protected]"
},
"user": {
"key": "user_xyz789",
"email": "[email protected]",
"role": "organiser"
},
"message": "Partner registration submitted successfully. Please check your email to verify your account. An admin will review your application and approve it."
}Body
application/json
Partner registration details
Example:
"Ticketmaster"
Example:
"John Smith"
Example:
Minimum string length:
8Example:
"password123"
Company website URL (optional)
Example:
"https://ticketmaster.com"
Example:
"US"
Example:
"USD"
Example:
"We want to integrate with Tickify for blockchain ticketing"
Response
Registration submitted successfully
Registration submitted successfully

