SII Key
Create an SII key
Stores a new SII credential for the caller. Cardda encrypts password and certificate_password at rest; this is the only entry point that accepts them in clear text. On creation Cardda runs a synchronous company sync against the SII — on success the key flips to approved and its managed companies are resolved; if the SII rejects the credentials the key ends up declined.
Company users must set user_id to their own Firebase uid, otherwise the request is rejected with 401.
post/v1/sii/keys
Parameters
#/paths/~1v1~1sii~1keys/get/parameters/0 — unresolved $ref
Request body
Example request
{
"rut": "761234567",
"password": "s3cr3t-clave-sii",
"certificate_password": "cert-pass",
"user_id": "U2MGkNZT6zNPKtB85OpJi9SjFvG2"
}Response
The created SII key. status is approved if the synchronous company sync succeeded, otherwise pending/declined.