Actualizar emisor
PATCH
/v1/issuers/{id}
const url = 'https://api.chaski.ec/v1/issuers/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"legal_name":"example","trade_name":"example","head_office_address":"example","required_accounting":true,"special_taxpayer":"example","withholding_agent":"example","rimpe":"entrepreneur","reply_to_email":"[email protected]"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.chaski.ec/v1/issuers/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "legal_name": "example", "trade_name": "example", "head_office_address": "example", "required_accounting": true, "special_taxpayer": "example", "withholding_agent": "example", "rimpe": "entrepreneur", "reply_to_email": "[email protected]" }'Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»id
required
string
Request Bodyrequired
Sección titulada «Request Bodyrequired»Responses
Sección titulada «Responses»OK
Media typeapplication/json
object
id
required
string
ruc
required
string
legal_name
required
string
trade_name
required
string | null
head_office_address
required
string
required_accounting
required
boolean
special_taxpayer
required
string | null
withholding_agent
required
string | null
reply_to_email
required
string | null
sri_status
required
string
emission_points
required
Array<object>
object
id
required
Código del SRI: establecimiento-punto
string
label
required
string | null
address
required
string
branding_profile
required
Perfil de marca del RIDE y del correo; null usa la marca por defecto
string | null
created_at
required
string format: date-time
Example
{ "id": "iss_01jbx3k9q2f8m4tn6vwz0yh5ce", "rimpe": "entrepreneur", "sri_status": "test_only", "emission_points": [ { "id": "001-001" } ]}Petición inválida
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
key
additional properties
Example
{ "error": { "code": "invalid_request" }}Falta la API key o no es válida
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
key
additional properties
Example
{ "error": { "code": "invalid_request" }}No existe
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
key
additional properties
Example
{ "error": { "code": "invalid_request" }}Demasiadas peticiones
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
field
string
key
additional properties
Example
{ "error": { "code": "invalid_request" }}