Skip to main content
POST
/
api
/
v1
/
invoice
/
config
Configurar visualización de factura
curl --request POST \
  --url https://sandbox.cucu.bo/api/v1/api/v1/invoice/config \
  --header 'Content-Type: <content-type>' \
  --header 'cucukey: <cucukey>' \
  --data '
{
  "colorPrimary": "#ff5729",
  "colorBorder": "#ff972a",
  "colorShadow": "#ffffef",
  "fontType": 2,
  "isBorder": true
}
'
{
  "message": "COMPLETED",
  "errors": null,
  "success": true,
  "data": {
    "colorPrimary": "#ff5729",
    "colorBorder": "#ff972a",
    "colorShadow": "#ffffef",
    "logo": null,
    "fontType": "COURIER_STD",
    "isBorder": true
  }
}

Headers

Content-Type
string
default:application/json
required

Debe ser siempre 'application/json'

Example:

"application/json"

cucukey
string
default:Token eyJhbGciOiJIUzUxMiJ9...
required

Token obtenido del login. Formato: 'Token '

Example:

"Token abc123def456"

Body

application/json
colorPrimary
string
required

Color Primario para las letras (valor hexadecimal)

Example:

"#ff5729"

colorBorder
string
required

Color para el borde (valor hexadecimal)

Example:

"#ff972a"

colorShadow
string
required

Color para el fondo de los montos (valor hexadecimal)

Example:

"#ffffef"

fontType
enum<integer>
required

Tipo de fuente (1=OVERPASS, 2=COURIER_STD, 3=COURIER_PRIME, 4=NOTO_SANS_MONO)

Available options:
1,
2,
3,
4
isBorder
boolean
required

Habilitar o deshabilitar borde en la factura

Response

200 - application/json

Configuración actualizada exitosamente

message
string
errors
string | null
success
boolean
data
object