Skip to main content
GET
/
api
/
v1
/
invoice
/
xml
Obtener factura en formato XML
curl --request GET \
  --url https://sandbox.cucu.bo/api/v1/api/v1/invoice/xml \
  --header 'Content-Type: <content-type>' \
  --header 'cucukey: <cucukey>' \
  --data '
{
  "posId": 1,
  "invoiceNumber": 1026,
  "invoiceCode": "6D1B7B5D"
}
'
{
  "message": "<string>",
  "errors": "<string>",
  "success": true,
  "data": "<string>"
}

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
posId
integer
required
invoiceNumber
integer
required
invoiceCode
string
required
branchId
integer | null

Response

200 - application/json

Factura XML obtenida exitosamente

message
string
errors
string | null
success
boolean
data
string

XML de la factura