Mandatos
Ejemplo:
mutation{
createInvoice(
document: {
# Consecutivo de la factura
id: {
number: 123451
prefix: "SETT"
}
documentLines: [
{
description: {
locale: ES_CO
# Concepto del producto
text: "Test factura mandato"
}
itemDescription: {
brandName: "asd"
standardItemId: {
id: "19877"
standardId: UNSPSC
}
incomeType: SELF_OWNED
}
# Monto antes de impuestos
lineExtensionAmount: "12600.06"
lineId: 1
note: {
locale: ES_CO
text: "Test factura mandato"
}
price: {
priceAmount: "12600.06"
baseQuantity: 1 # Obligatorio
unitCode: CO_ZZ # Obligatorio
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: "2394.01"
roundingAmount: "0"
taxSubtotal: [
{
taxAmount: "2394.01"
percent: 19
taxableAmount: "12600.06"
}
]
}
]
unitCode: CO_ZZ
}
]
documentParties: {
# Datos del comprador
accountingCustomerParty: {
additionalAccountId: NATURAL_PERSON
personId: {
idType: CC
identifier: "25275781"
}
personName: {
firstName: "Andres"
secondName: "Felipe"
firstSurname: "Rincon"
secondSurname: "Montoya"
}
physicalLocation: {
address: "CARRERA 8 No 20-14/40"
country: CO
city: "11001"
}
}
}
documentTotals: {
# Valor a pagar sin impuestos
lineExtensionAmount: "12600.06"
# taxes
taxExclusiveAmount: "12600.06"
# lineExtensionAmount + taxes
taxInclusiveAmount: "14994.07"
# Suma de descuentos
allowanceTotalAmount: "0"
# Suma de cargos
chargeTotalAmount: "0"
# Suma de anticipos
prePaidAmount: "0"
# Total de la factura
payableAmount: "14994.07"
}
# Información general de la factura
generalInformation: {
# Código de divisa de la factura
currency: USD
# Fecha y hora de emisión de la factura
issueDateTime: "2023-07-10T12:18:37"
# Correo del comprador
acquirerEmail: "sandrasolarte@gmail.com"
# Codigo de tipo de factura
operationCode: MDT
# 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-09-08T12:18:37"
paymentMeanCode: CO_ZZZ
paymentMeanId: IN_CASH
paymentTerms: {
locale: ES_CO
text: "Some text"
}
}
}
# Estructura con la información del importe total de los impuestos
taxDescription: [
{
taxName: CO_01
taxAmount: "2394.01"
roundingAmount: "0"
taxSubtotal: [
{
taxAmount: "2394.01"
percent: 19
taxableAmount: "12600.06"
}
]
}
]
}
){
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:
)