Factura de venta regular
Ejemplo: Compra de Computador con procesador Intel Core I7 con 8 GB de memoria RAM y tamaño de 15 pulgadas con un precio de COP 1.190.000,00 IVA incluido.
mutation{
createInvoice(
# Consecutivo de la factura
document: {
id: {
number: 376751
prefix: "SETT"
}
documentLines: [
# Producto
{
# Descripcion del producto
description: {
locale: ES_CO
text: "Computador ASUS 15hxtewf i7 8 ram 15pul"
}
itemDescription: {
brandName: "ROA"
standardItemId: {
id: "811571013579"
standardId: GTIN
}
incomeType: SELF_OWNED
}
# Monto antes de impuestos
lineExtensionAmount: "55000"
lineId: 1
note: {
locale: EN_US
text: "Some text"
}
# Precio del producto
price: {
priceAmount: "1000000,00" # Obligatorio
baseQuantity: 1 # Opcional
unitCode: CO_ZZ # Opcional
priceType: COMMERCIAL_VALUE
priceChangeReason: "text"
}
# Cantidad de items de este producto
quantity: "1"
# Descuentos -> En el anexo se pueden colocar descuentos.
taxDescription: [
{
# TaxCode "CO_01" es el IVA
taxName: CO_01
taxAmount: "190000.00"
roundingAmount: "0"
taxSubtotal: [
{
taxAmount: "190000.00"
percent: 19.0
taxableAmount: "1000000.00"
}
]
}
]
unitCode: CO_ZZ
}
]
documentParties: {
# Datos del comprador
accountingCustomerParty: {
additionalAccountId: NATURAL_PERSON
personId: {
idType: CC
identifier: "20959210"
}
personName: {
firstName: "Yeimmy"
secondName: "Rocio"
firstSurname: "Moron"
secondSurname: "Rayo"
}
physicalLocation: {
address: "CR 3 5 64"
country: CO
city: "25769"
}
}
}
documentTotals: {
# Valor a pagar sin impuestos
lineExtensionAmount: "1000000.00"
# taxes
taxExclusiveAmount: "190000.00"
# lineExtensionAmount + taxes
taxInclusiveAmount: "1190000.00"
# Suma de descuentos
allowanceTotalAmount: "0"
# Suma de cargos
chargeTotalAmount: "0"
# Suma de anticipos
prePaidAmount: "0"
# Total de la factura
payableAmount: "1190000.00"
}
# Información general de la factura
generalInformation: {
# Código de divisa de la factura
currency: COP
# Fecha y hora de emisión de la factura
issueDateTime: "2023-07-10T09:10:43"
# Correo del comprador
acquirerEmail: "ymoron14@gmail.com"
# Codigo de tipo de factura
operationCode: STD
# Codigo del subtipo de la factura
subtypeCode: SALES_INVOICE
}
# ID de la unidad organizacional
organizationalUnitId: "310730d9-c662-44c2-85ce-2ff510644c76"
# Descripcion de pago de la factura
paymentDescription: {
paymentMeans: {
paymentDueDate: "2023-11-09T01:01:01"
paymentMeanCode: CO_ZZZ
paymentMeanId: CREDIT
paymentTerms: {
locale: ES_CO
text: "Some text"
}
}
}
# Estructura con la información del importe total de los impuestos
taxDescription: [
{
# TaxCode "CO_01" es el IVA
taxName: CO_01
taxAmount: "190000.00"
roundingAmount: "0"
taxSubtotal: [
{
taxAmount: "190000.00"
percent: 19.0
taxableAmount: "1000000.00"
}
]
}
]
}
){
document{
id # Consecutivo de la resolución de la DIAN que tiene el documento
uid # UUID del documento generado en YABI*CO
documentUid # CUFE
# documentQR # Contenido del código QR
}
errors{
helpText
id
language
message
subType
title
type
}
warnings{
helpText
id
language
message
subType
title
type
}
notifications{
helpText
id
language
message
subType
title
type
}
}
}
Created:
(Updated:
)