Ir al contenido

Actualizar emisor

PATCH
/emitters/{id}
curl --request PATCH \
--url https://api.sudte.com/v1/emitters/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "nit": "example", "nrc": "example", "name": "example", "trade_name": "example", "economic_activity": "example", "establishment_type": "example", "address": { "department": "example", "municipality": "example", "district": "example", "line": "example" }, "phone": "example", "email": "hello@example.com", "numbering": "centralized", "logo_url": "https://example.com", "is_large_taxpayer": false }'
id
obligatorio
string
Media type application/json
object
nit
obligatorio
string
nrc
obligatorio
string
name
obligatorio
string
trade_name
string
economic_activity
obligatorio

CAT-019

string
establishment_type

CAT-009

string
address
obligatorio
object
department

CAT-012

string
municipality

CAT-013

string
district

CAT-008

string
line
string
phone
string
email
obligatorio
string format: email
numbering

Normativa §7.1.2

string
default: per_establishment
Allowed values: centralized per_establishment
logo_url
string format: uri
is_large_taxpayer

Gran contribuyente (agente de retención/percepción). Habilita perception en CCF

boolean

Emisor

Media type application/json
object
nit
obligatorio
string
nrc
obligatorio
string
name
obligatorio
string
trade_name
string
economic_activity
obligatorio

CAT-019

string
establishment_type

CAT-009

string
address
obligatorio
object
department

CAT-012

string
municipality

CAT-013

string
district

CAT-008

string
line
string
phone
string
email
obligatorio
string format: email
numbering

Normativa §7.1.2

string
default: per_establishment
Allowed values: centralized per_establishment
logo_url
string format: uri
is_large_taxpayer

Gran contribuyente (agente de retención/percepción). Habilita perception en CCF

boolean
id
string
credentials
Array<object>
object
environment

00 pruebas, 01 producción (CAT-001)

string
Allowed values: 00 01
certificate_loaded
boolean
certificate_nit
string
mh_login_ok
boolean
checked_at
string format: date-time
mh_user

NIT del usuario de la API del MH (no es secreto)

string
certificate_valid_until
string format: date-time
message

Resultado legible de la última validación o prueba de conexión

string
created_at
string format: date-time

Example

{
"numbering": "centralized",
"is_large_taxpayer": false,
"credentials": [
{
"environment": "00"
}
]
}