Estándar
Ejemplo:
mutation{
# Ejemplo de creación de documento soporte sin modificadores(cargos y descuentos), la persona Yeimi Moron adquirio un servicio de arreglo de tuberias por un costo de COP 55.000.
createAcquisitionSupportDocument(
document: {
# ID de la unidad organizacional
organizationalUnitId: "310730d9-c662-44c2-85ce-2ff510644c76"
# Consecutivo del documento soporte
id: {
number: 376903
prefix: "SSDT"
}
# Datos del comprador
documentParties: {
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"
}
}
}
# Información general del documento soporte
generalInformation: {
acquirerEmail: "ymoron14@gmail.com"
currency: COP
issueDateTime: "2023-07-18T09:10:43"
operationCode: STANDARD
subtypeCode: REGULAR_PURCHASE
}
# Información de los productos o servicios
documentLines: [
{
description: {
locale: ES_CO
text: "Arreglo de tuberias"
}
itemDescription: {
brandName: "asd"
standardItemId: {
id: "811571013579"
standardId: GTIN
}
incomeType: SELF_OWNED
}
# Monto antes de impuestos
lineExtensionAmount: "55000"
lineId: 1
note: {
locale: EN_US
text: "Some text"
}
price: {
priceAmount: "55000"
baseQuantity: 1 # Obligatorio
unitCode: CO_ZZ # Obligatorio
priceType: COMMERCIAL_VALUE
priceChangeReason: "text"
}
quantity: "1"
taxDescription: [
{
taxName: CO_01
taxAmount: "0"
roundingAmount: "0"
taxSubtotal: [
{
taxAmount: "0"
percent: 0
taxableAmount: "55000"
}
]
}
]
unitCode: CO_ZZ
}
]
# Estructura con la información del importe total de los impuestos / Información de los impuestos
taxDescription: [
{
taxName: CO_01
taxAmount: "0"
roundingAmount: "0"
taxSubtotal: [
{
taxAmount: "0.0"
percent: 0
taxableAmount: "55000.00"
}
]
}
]
# Descripción del valor total a pagar
documentTotals: {
lineExtensionAmount: "55000"
# taxes
taxExclusiveAmount: "55000"
# lineExtensionAmount + taxes
taxInclusiveAmount: "55000"
# Suma de descuentos
allowanceTotalAmount: "0"
# Suma de cargos
chargeTotalAmount: "0"
# Suma de anticipos
prePaidAmount: "0"
# Total del documento soporte
payableAmount: "55000"
}
# Descripción de la forma de pago
paymentDescription: {
paymentMeans: {
paymentDueDate: "2020-11-09T01:01:01"
paymentMeanCode: CO_ZZZ
paymentMeanId: CREDIT
paymentTerms: {
locale: ES_CO
text: "Some text"
}
}
}
}
){
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:
)