Consultar el medidor de la API
curl --request GET \
--url https://api.nomenclator.com.ar/v1/usage \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nomenclator.com.ar/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.nomenclator.com.ar/v1/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"month": "<string>",
"classifications": 4503599627370495,
"unit_price": {
"amount": 0,
"currency": "USD"
},
"amount": {
"amount": 0,
"currency": "USD"
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}Cuenta
Consultar el medidor de la API
Las clasificaciones por API resueltas en el mes calendario en curso (hora de Buenos Aires) y su importe.
GET
/
usage
Consultar el medidor de la API
curl --request GET \
--url https://api.nomenclator.com.ar/v1/usage \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nomenclator.com.ar/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.nomenclator.com.ar/v1/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"month": "<string>",
"classifications": 4503599627370495,
"unit_price": {
"amount": 0,
"currency": "USD"
},
"amount": {
"amount": 0,
"currency": "USD"
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": [
{
"field": "<string>",
"code": "<string>",
"message": "<string>"
}
]
}amount es classifications × unit_price, en centavos de USD: { "amount": 2400, "currency": "USD" } son USD 24,00. Mirá facturación.Autorizaciones
API key de tu organización, creada en la app en Ajustes → API. Se manda como Authorization: Bearer nmc_live_…, nunca en la query string. Alcances: read (solo leer) y classify (clasificar y leer).
Respuesta
Medidor del mes.
Mes calendario, AAAA-MM, en hora de Buenos Aires.
Pattern:
^\d{4}-(0[1-9]|1[0-2])$Clasificaciones por API resueltas en el mes.
Rango requerido:
0 <= x <= 9007199254740991Precio por clasificación resuelta.
Show child attributes
Show child attributes
Importe del mes: classifications por unit_price.
Show child attributes
Show child attributes