Account
https://numestri.com/api/v1 /request/balance Your current balance in US dollars, as a fixed two-decimal string.
Also accepts POST, with the same parameters in a form (application/x-www-form-urlencoded) or JSON body.
cURL
curl -X GET "https://numestri.com/api/v1/request/balance"TypeScript
const res = await fetch('https://numestri.com/api/v1/request/balance', {
method: 'GET',
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://numestri.com/api/v1/request/balance",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://numestri.com/api/v1/request/balance", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://numestri.com/api/v1/request/balance');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://numestri.com/api/v1/request/balance')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://numestri.com/api/v1/request/balance"))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Respuestas
Ejemplo
{
"balance": "48.06"
}Esquema
balancestringobligatorioparam names it.Ejemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringEjemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringRetry-After seconds.Ejemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringEjemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringhttps://numestri.com/api/v1 /account/partner-code The partner codes your account holds, and what each prices for you now. A partner code gives your account its prices for as long as the code is active; where your account already has a lower price, that one stays.
cURL
curl -X GET "https://numestri.com/api/v1/account/partner-code"TypeScript
const res = await fetch('https://numestri.com/api/v1/account/partner-code', {
method: 'GET',
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://numestri.com/api/v1/account/partner-code",
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://numestri.com/api/v1/account/partner-code", nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://numestri.com/api/v1/account/partner-code');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://numestri.com/api/v1/account/partner-code')
req = Net::HTTP::Get.new(uri)
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://numestri.com/api/v1/account/partner-code"))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Respuestas
Ejemplo
{
"success": {},
"codes": [
{
"code": "ticketbot123",
"partner": "TicketBot",
"active": true,
"redeemed_at": "2024-01-01T00:00:00Z",
"ends_at": "2024-01-01T00:00:00Z",
"unlocks": [
{
"platform": null,
"platform_name": null,
"country": null,
"product": null,
"price": null,
"price_without_code": null,
"cheaper": null
}
]
}
]
}Esquema
successobligatoriocodesobject[]obligatorioMostrar parámetros secundarios
codestringobligatoriopartnerstringobligatorioactivebooleanobligatorioredeemed_atstringobligatorioends_atstringobligatoriounlocksPartnerCodeUnlock[]obligatorioMostrar parámetros secundarios
platformstringobligatorioservice takes it.platform_namestringobligatoriocountrystringobligatorioproductstringobligatoriopricestringobligatorioprice_without_codestringobligatoriocheaperbooleanobligatorioparam names it.Ejemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringEjemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringRetry-After seconds.Ejemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringEjemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringhttps://numestri.com/api/v1 /account/partner-code Redeem a partner code for your account. Codes are case-insensitive. The code's prices then apply to every price you see and pay — the catalogue, quotes and purchases — for as long as the code is active, and the lower of the code's price and your own always wins.
Redeeming a code you already hold succeeds with already_redeemed: true. Every invalid, inactive, expired or fully-used code is the same 400; repeated failures are rate-limited (429).
Cuerpo de la solicitud application/x-www-form-urlencoded
codestringobligatoriokeystring{
"code": "TICKETBOT123",
"key": "string"
}cURL
curl -X POST "https://numestri.com/api/v1/account/partner-code" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d '{"code":"TICKETBOT123","key":"string"}'TypeScript
const res = await fetch('https://numestri.com/api/v1/account/partner-code', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: JSON.stringify({"code":"TICKETBOT123","key":"string"}),
});
const data = await res.json();Python
import requests
res = requests.request(
"POST",
"https://numestri.com/api/v1/account/partner-code",
headers={
"Content-Type": "application/x-www-form-urlencoded",
},
json={"code": "TICKETBOT123", "key": "string"},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://numestri.com/api/v1/account/partner-code", strings.NewReader(`{"code":"TICKETBOT123","key":"string"}`))
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://numestri.com/api/v1/account/partner-code');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/x-www-form-urlencoded']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"code":"TICKETBOT123","key":"string"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://numestri.com/api/v1/account/partner-code')
req = Net::HTTP::Post.new(uri)
req['Content-Type'] = 'application/x-www-form-urlencoded'
req.body = '{"code":"TICKETBOT123","key":"string"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://numestri.com/api/v1/account/partner-code"))
.header("Content-Type", "application/x-www-form-urlencoded")
.method("POST", BodyPublishers.ofString("{\"code\":\"TICKETBOT123\",\"key\":\"string\"}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Respuestas
Ejemplo
{
"success": {},
"code": "ticketbot123",
"partner": "TicketBot",
"already_redeemed": true,
"unlocks": [
{
"platform": "ticketmaster",
"platform_name": "Ticketmaster",
"country": null,
"product": "sms",
"price": "0.80",
"price_without_code": "1.20",
"cheaper": true
}
]
}Esquema
successobligatoriocodestringobligatoriopartnerstringobligatorioalready_redeemedbooleanobligatoriounlocksPartnerCodeUnlock[]obligatorioMostrar parámetros secundarios
platformstringobligatorioservice takes it.platform_namestringobligatoriocountrystringobligatorioproductstringobligatoriopricestringobligatorioprice_without_codestringobligatoriocheaperbooleanobligatoriocode, or not a valid partner code (param: code).Ejemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringEjemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringRetry-After seconds.Ejemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstringEjemplo
{
"success": 0,
"errors": [
{
"message": "You are missing a required parameter for this request.",
"param": "country",
"description": "Country code from /api/v1/catalog/platforms/{platform}/countries, e.g. US"
}
]
}Esquema
successobligatorioerrorsobject[]obligatorioMostrar parámetros secundarios
messagestringobligatorioparamstringdescriptionstring