Update authenticated partner information
curl --request PATCH \
--url http://localhost:3000/partners/partners \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Ticketing",
"website": "https://ticketmaster.com",
"companyName": "Ticketmaster Inc.",
"contactEmail": "[email protected]",
"contactName": "John Smith",
"country": "US",
"currency": "USD",
"description": "Description",
"status": "ACTIVE"
}
'import requests
url = "http://localhost:3000/partners/partners"
payload = {
"name": "Acme Ticketing",
"website": "https://ticketmaster.com",
"companyName": "Ticketmaster Inc.",
"contactEmail": "[email protected]",
"contactName": "John Smith",
"country": "US",
"currency": "USD",
"description": "Description",
"status": "ACTIVE"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Ticketing',
website: 'https://ticketmaster.com',
companyName: 'Ticketmaster Inc.',
contactEmail: '[email protected]',
contactName: 'John Smith',
country: 'US',
currency: 'USD',
description: 'Description',
status: 'ACTIVE'
})
};
fetch('http://localhost:3000/partners/partners', 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/partners",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Ticketing',
'website' => 'https://ticketmaster.com',
'companyName' => 'Ticketmaster Inc.',
'contactEmail' => '[email protected]',
'contactName' => 'John Smith',
'country' => 'US',
'currency' => 'USD',
'description' => 'Description',
'status' => 'ACTIVE'
]),
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 := "http://localhost:3000/partners/partners"
payload := strings.NewReader("{\n \"name\": \"Acme Ticketing\",\n \"website\": \"https://ticketmaster.com\",\n \"companyName\": \"Ticketmaster Inc.\",\n \"contactEmail\": \"[email protected]\",\n \"contactName\": \"John Smith\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"Description\",\n \"status\": \"ACTIVE\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("http://localhost:3000/partners/partners")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Ticketing\",\n \"website\": \"https://ticketmaster.com\",\n \"companyName\": \"Ticketmaster Inc.\",\n \"contactEmail\": \"[email protected]\",\n \"contactName\": \"John Smith\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"Description\",\n \"status\": \"ACTIVE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/partners/partners")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Ticketing\",\n \"website\": \"https://ticketmaster.com\",\n \"companyName\": \"Ticketmaster Inc.\",\n \"contactEmail\": \"[email protected]\",\n \"contactName\": \"John Smith\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"Description\",\n \"status\": \"ACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"partner": {
"partnerId": "par_abc123def456",
"name": "Acme Ticketing",
"status": "ACTIVE",
"website": "https://acme.com",
"contactEmail": "[email protected]"
},
"message": "Partner updated successfully"
}Partners
Update authenticated partner information
Partially update the authenticated partner’s profile information.
Authentication: Requires valid Partner API Key in Authorization header (Bearer token).
Note: Only fields provided in the request body will be updated. All fields are optional.
PATCH
/
partners
/
partners
Update authenticated partner information
curl --request PATCH \
--url http://localhost:3000/partners/partners \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Ticketing",
"website": "https://ticketmaster.com",
"companyName": "Ticketmaster Inc.",
"contactEmail": "[email protected]",
"contactName": "John Smith",
"country": "US",
"currency": "USD",
"description": "Description",
"status": "ACTIVE"
}
'import requests
url = "http://localhost:3000/partners/partners"
payload = {
"name": "Acme Ticketing",
"website": "https://ticketmaster.com",
"companyName": "Ticketmaster Inc.",
"contactEmail": "[email protected]",
"contactName": "John Smith",
"country": "US",
"currency": "USD",
"description": "Description",
"status": "ACTIVE"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Ticketing',
website: 'https://ticketmaster.com',
companyName: 'Ticketmaster Inc.',
contactEmail: '[email protected]',
contactName: 'John Smith',
country: 'US',
currency: 'USD',
description: 'Description',
status: 'ACTIVE'
})
};
fetch('http://localhost:3000/partners/partners', 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/partners",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Ticketing',
'website' => 'https://ticketmaster.com',
'companyName' => 'Ticketmaster Inc.',
'contactEmail' => '[email protected]',
'contactName' => 'John Smith',
'country' => 'US',
'currency' => 'USD',
'description' => 'Description',
'status' => 'ACTIVE'
]),
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 := "http://localhost:3000/partners/partners"
payload := strings.NewReader("{\n \"name\": \"Acme Ticketing\",\n \"website\": \"https://ticketmaster.com\",\n \"companyName\": \"Ticketmaster Inc.\",\n \"contactEmail\": \"[email protected]\",\n \"contactName\": \"John Smith\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"Description\",\n \"status\": \"ACTIVE\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("http://localhost:3000/partners/partners")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Ticketing\",\n \"website\": \"https://ticketmaster.com\",\n \"companyName\": \"Ticketmaster Inc.\",\n \"contactEmail\": \"[email protected]\",\n \"contactName\": \"John Smith\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"Description\",\n \"status\": \"ACTIVE\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/partners/partners")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Ticketing\",\n \"website\": \"https://ticketmaster.com\",\n \"companyName\": \"Ticketmaster Inc.\",\n \"contactEmail\": \"[email protected]\",\n \"contactName\": \"John Smith\",\n \"country\": \"US\",\n \"currency\": \"USD\",\n \"description\": \"Description\",\n \"status\": \"ACTIVE\"\n}"
response = http.request(request)
puts response.read_body{
"partner": {
"partnerId": "par_abc123def456",
"name": "Acme Ticketing",
"status": "ACTIVE",
"website": "https://acme.com",
"contactEmail": "[email protected]"
},
"message": "Partner updated successfully"
}Authorizations
access-tokenpartner-api-key
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Partner update fields
Partner name
Example:
"Acme Ticketing"
Company website URL
Example:
"https://ticketmaster.com"
Legal company name
Example:
"Ticketmaster Inc."
Contact email
Example:
Contact person name
Example:
"John Smith"
ISO 3166-1 alpha-2 country code
Example:
"US"
Default currency (ISO 4217)
Example:
"USD"
Partner description
Example:
"Description"
Partner status
Example:
"ACTIVE"

