Ir al contenido

PlanesLista los planes comerciales

Lista los planes comerciales

Ver como Markdown
GET
/api/v1/plans
curl --request GET \
--url https://gateway.novafe.com.do/api/v1/plans \
--header 'X-API-Key: <X-API-Key>'

El catálogo de planes. Está disponible para cualquier usuario autenticado, no solo para el operador: el contribuyente lo necesita para elegir a qué nivel pedir un upgrade. Los planes ocultos (isPublic: false) solo los ve el operador.

Autenticación: requiere una API key válida (header X-API-Key).

activeOnly
boolean

OK

Tipo de contenidoapplication/json
Array<object>

Un nivel del catálogo de planes.

object
id
obligatorio
string format: uuid
key
obligatorio
string
displayName
obligatorio
string
monthlyPriceDop
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
annualPriceDop
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
includedEcfPerPeriod
obligatorio
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
overagePricePerEcfDop
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
hardCap
obligatorio
boolean
includedTenants
obligatorio
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
tenantOveragePriceDop
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
tenantHardCap
obligatorio
boolean
includedMembers
obligatorio
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
memberOveragePriceDop
obligatorio
number | string format: double
/^-?(?:0|[1-9]\d*)(?:\.\d+)?$/
memberHardCap
obligatorio
boolean
requestsPerMinute
obligatorio
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
sortOrder
obligatorio
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
active
obligatorio
boolean
customPricing
obligatorio
boolean
supportLabel
obligatorio
null | string
slaLabel
obligatorio
null | string
targetDescription
obligatorio
null | string
isPublic
obligatorio
boolean
paidEnvironmentsEnabled
obligatorio
boolean
Ejemplogenerado
[
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"key": "example",
"displayName": "example",
"monthlyPriceDop": 1,
"annualPriceDop": 1,
"includedEcfPerPeriod": 1,
"overagePricePerEcfDop": 1,
"hardCap": true,
"includedTenants": 1,
"tenantOveragePriceDop": 1,
"tenantHardCap": true,
"includedMembers": 1,
"memberOveragePriceDop": 1,
"memberHardCap": true,
"requestsPerMinute": 1,
"sortOrder": 1,
"active": true,
"customPricing": true,
"supportLabel": "example",
"slaLabel": "example",
"targetDescription": "example",
"isPublic": true,
"paidEnvironmentsEnabled": true
}
]

Falta la API key o no es válida: no existe, fue revocada o venció (Auth.MissingApiKey, Auth.InvalidApiKey).

Tipo de contenidoapplication/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code

Identificador estable del error, con la forma Grupo.Nombre. Es el que debes comparar en tu código.

string
traceId

Identificador de la petición. Inclúyelo al escribir a soporte.

string
Ejemplo
{
"code": "Ecf.IdempotencyKeyRequired"
}

Superaste el máximo de peticiones por minuto de tu organización (RateLimit.Exceeded). Espera los segundos del header Retry-After.

Tipo de contenidoapplication/problem+json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
code

Identificador estable del error, con la forma Grupo.Nombre. Es el que debes comparar en tu código.

string
traceId

Identificador de la petición. Inclúyelo al escribir a soporte.

string
Ejemplo
{
"code": "Ecf.IdempotencyKeyRequired"
}
Retry-After
integer

Segundos que debes esperar antes de repetir la petición.