Nota débito estandar
Ejemplo: Se tiene una factura con el ID = 123456 a la cual se le hace una modificación al agregar un producto, para este caso un memoria micro-SD cuyo valor es de COP 59.500,00 con IVA incluido.
mutation{
# Ejemplo de creacion de nota debito
createDebitNote(
document: {
# ID de la unidad organizacional
organizationalUnitId: "c5eee397-0cfd-42bf-b81f-1c6d3adee7ed"
# ID de la nota debito
id: {
number: 431
prefix: "TDE"
}
# ID de la factura
invoiceToModify:{
id:{
number: 123456
prefix: "SETT"
}
uid: "310730d9-c662-44c2-85ce-2ff510644c76"
}
# Información general de la nota debito
generalInformation: {
issueDateTime: "2023-07-09T09:10:43"
acquirerEmail: "ymoron14@gmail.com"
operationCode: STANDARD
subtypeCode: DEBIT_NOTE
reasonOfIssuance: {
locale: ES_CO
text: "Compra adicional por parte del cliente"
}
}
# Información de los productos o servicios
documentLines: [
{
description: {
locale: ES_CO
text: "Memoria micro SD - Nintendo Switch"
}
itemDescription: {
brandName: "NINTENDO"
standardItemId: {
id: "1"
standardId: GTIN
}
incomeType: SELF_OWNED
}
lineExtensionAmount: "50000"
lineId: 1
note: {
locale: EN_US
text: "Some text"
}
price: {
priceAmount: "50000"
baseQuantity: 1 # Obligatorio
unitCode: CO_ZZ # Obligatorio
priceType: COMMERCIAL_VALUE
priceChangeReason: "text"
}
quantity: "1"
taxDescription: [
{
taxName: CO_01
taxAmount: "9500"
roundingAmount: "0"
taxSubtotal: [
{
taxAmount: "9500"
percent: 19
taxableAmount: "50000"
}
]
}
]
unitCode: CO_ZZ
}
]
# Estructura con la información del importe total de los impuestos / Información de los impuestos
taxDescription: [
{
taxName: CO_01
taxAmount: "9500"
roundingAmount: "0"
taxSubtotal: [
{
taxAmount: "9500.0"
percent: 19
taxableAmount: "50000.00"
}
]
}
]
# Descripción de la forma de pago
paymentDescription: {
paymentMeans: {
paymentDueDate: "2023-11-09T01:01:01"
paymentMeanCode: CO_ZZZ
paymentMeanId: CREDIT
paymentTerms: {
locale: ES_CO
text: "Some text"
}
}
}
# Descripción del valor total a pagar
documentTotals: {
lineExtensionAmount: "50000"
# taxes
taxExclusiveAmount: "50000"
# lineExtensionAmount + taxes
taxInclusiveAmount: "59500"
# Suma de descuentos
allowanceTotalAmount: "0"
# Suma de cargos
chargeTotalAmount: "0"
# Suma de anticipos
prePaidAmount: "0"
# Total de la factura
payableAmount: "59500"
}
}
){
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:
)