Ir al contenido

Range status (same model as R4)

GET
/companies/{companyId}/ncf-ranges
curl --request GET \
--url https://acme.gravitastec.com/api/v1/companies/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ncf-ranges \
--header 'Authorization: Bearer <token>'
companyId
required
string format: uuid

Ranges

Media typeapplication/json
Array<object>
object
id
required
string format: uuid
environment
required
string
Allowed values: testecf certecf ecf
ecfType
required
integer
from
required
integer
to
required
integer
expiresOn
string | null format: date
lowThreshold
required
integer
nextNumber
required
integer
remaining
required
integer
status
required
string
Allowed values: active exhausted expired annulled inactive

Example

[
{
"environment": "testecf",
"status": "active"
}
]

Not found or outside the credential scope

Media typeapplication/problem+json
object
type
string
title
string
status
integer
code
string
errors
Array<object>
object
path
string
message
string
code

Stable snake_case rule code when the rule has one (e.g. modified_same_type, foreign_id_in_rnc, emitter_rnc_mismatch, encf_invalid, encf_type_mismatch, encf_not_in_range, encf_already_used, sequence_expiry_mismatch).

string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"code": "example",
"errors": [
{
"path": "example",
"message": "example",
"code": "example"
}
]
}