Skip to content

cucuAdministrar

Manages your company in CUCU: list and create branches, list and create points of sale (registered with the SIAT), mark them configured, import the points of sale that already exist in the SIAT, and see the digital certificate status and expiry. Uploading the certificate and its private key is done from the CUCU panel, not from a workflow.

Part of the Bolivia Fiscal Hub as an alternative to connecting directly to SIAT: CUCU is an authorised provider handling signing, CUIS/CUFD codes and submission to the SIN. Node: “Sucursales, puntos de venta y certificado”.

FieldTypeRequiredDescription
credentials_idcredentialsYescucu credential
operationselectNoOperation — list_branches, create_branch, list_pos, create_pos, configure_pos, sync_pos, certificate_status
company_idtextNoCompany ID (UUID) — Empty = the credential one
branch_idtextNoBranch ID (UUID)
pos_idtextNoPoint of sale (UUID) — Empty = the credential default point of sale
nametextNoName
addresstextNoAddress
siat_codenumberNoSIAT branch code — Empty = the next available
citytextNoCity
municipalitytextNoMunicipality
phonetextNoPhone
emailtextNoEmail
descriptiontextNoPoint of sale description
siat_type_posnumberNoSIAT point of sale type — Empty = 5 (CUCU default)
onlineselectNoOperates online — “, true, false
output_keytextNoOutput key — The result is added to data[key] keeping the rest of the data

This module requires a credential of type cucu with the fields:

  • API key: starts with sk_test_ (sandbox) or sk_live_ (production); the environment is inferred from the prefix
  • Environment: automatic, testing or production (if it contradicts the key, nothing is sent)
  • Default point of sale (UUID): used when the node does not specify one
  • Company ID (UUID): for branches and certificate status
  • Webhook secret (whsec_…): to verify event signatures
{
"operation": "certificate_status",
"data": {
"hasCertificate": true,
"certificateValid": true
}
}

The output is stored under the configured key (output_key, default cucu) and the rest of data is kept. On error: error.message, error.type and, where applicable, status, code and siat_code.

{
"credentials_id": "cred-cucu",
"operation": "list_branches"
}
  • Branches, points of sale and the company certificate status (needs company_id in the credential).
  • Uploading the certificate and private key is intentionally NOT in the node, so they never pass through workflow traces. Do it from the CUCU panel.