{
    "Version": "1.0",
    "CountryCode": "CR",
    "Header": {
        "DocType": "01",
        "IssuedDateTime": "2025-03-04T10:05:00-06:00",
        "AdditionalIssueType": "2",
        "AdditionalIssueDocInfo": {
            "Info": [
                {
                    "@_Name": "CodigoActividad",
                    "@_Data": null,
                    "@_Value": "000001"
                },
                {
                    "@_Name": "CondicionVenta",
                    "@_Data": null,
                    "@_Value": "01"
                },
                {
                    "@_Name": "CodigoPais",
                    "@_Data": null,
                    "@_Value": "506"
                },
                {
                    "@_Name": "Consecutivo",
                    "@_Data": null,
                    "@_Value": "0000000001"
                },
                {
                    "@_Name": "SituacionComprobante",
                    "@_Data": null,
                    "@_Value": "1"
                },
                {
                    "@_Name": "CodigoSeguridad",
                    "@_Data": null,
                    "@_Value": "00000021"
                }
            ]
        }
    },
    "Seller": {
        "TaxID": "3102891418",
        "TaxIDType": "02",
        "Name": "DIGIFACT SERVICIO SOCIEDAD DE RESPONSABILIDAD LIMITADA",
        "Contact": {
            "PhoneList": {
                "Phone": [
                    "64206205"
                ]
            },
            "EmailList": {
                "Email": [
                    "julio.cifuentes@digifact.com"
                ]
            }
        },
        "AdditionlInfo": {
            "Info": [
                {
                    "@_Name": "Provincia",
                    "@_Data": "",
                    "@_Value": "1"
                },
                {
                    "@_Name": "Canton",
                    "@_Data": "",
                    "@_Value": "02"
                },
                {
                    "@_Name": "Distrito",
                    "@_Data": "",
                    "@_Value": "03"
                },
                {
                    "@_Name": "CodigoPais",
                    "@_Data": "",
                    "@_Value": "506"
                }
            ]
        },
        "AddressInfo": {
            "Address": "Escazú San Rafael Centro Comercial Distrito Cuatro Tercer piso oficina Lawgical",
            "City": null,
            "District": null,
            "State": null,
            "Country": null
        },
        "BranchInfo": {
            "Code": "001",
            "Name": "DIGIFACT",
            "AdditionalBranchInfo": {
                "Info": [
                    {
                        "@_Name": "Caja",
                        "@_Value": "00007"
                    }
                ]
            }
        }
    },
    "Buyer": {
        "TaxID": "702320717",
        "TaxIDType": "01",
        "Name": "Walner Steven Borbon Jimenez",
        "Contact": {
            "PhoneList": {
                "Phone": [
                    "84922891"
                ]
            },
            "EmailList": {
                "Email": [
                    "julio.cifuentes@digifact.com"
                ]
            }
        },
        "AdditionlInfo": {
            "Info": [
                {
                    "@_Name": "CodigoPais",
                    "@_Data": null,
                    "@_Value": "506"
                }
            ]
        }
    },
    "Items": {
        "Item": [
            {
                "Codes": {
                    "Code": [
                        {
                            "@_Name": "Codigo",
                            "@_Data": "",
                            "@_Value": "0111100000100"
                        }
                    ]
                },
                "Description": "Trigo duro, para siembra (semillas)",
                "Qty": 1.00,
                "UnitOfMeasure": "kg",
                "Price": 10.00,
                "Discounts": {
                    "Discount": [
                        {
                            "Description": "Pronto pago",
                            "Amount": 3.00
                        }
                    ]
                },
                "Taxes": {
                    "Tax": [
                        {
                            "Code": "01",
                            "Description": "08",
                            "Rate": 13.00000,
                            "Amount": 0.91
                        }
                    ]
                },
                "Totals": {
                    "TotalBDiscount": 10.00,
                    "TotalWDiscount": 7.00,
                    "SpecificTotal": 0.91,
                    "TotalItem": 7.91
                }
            },
            {
                "Codes": {
                    "Code": [
                        {
                            "@_Name": "Codigo",
                            "@_Data": "",
                            "@_Value": "0115100000000"
                        }
                    ]
                },
                "Description": "Cebada, excepto para siembra",
                "Qty": 1.00,
                "UnitOfMeasure": "kg",
                "Price": 10.00,
                "Taxes": {
                    "Tax": [
                        {
                            "Code": "01",
                            "Description": "08",
                            "Rate": 13.00000,
                            "Amount": 1.30000
                        }
                    ]
                },
                "Totals": {
                    "TotalBDiscount": 10.00,
                    "TotalWDiscount": 10.00,
                    "SpecificTotal": 1.30000,
                    "TotalItem": 11.30000
                }
            }
        ]
    },
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "TotalImpuesto",
                    "Amount": 2.21000
                }
            ]
        },
        "TotalDiscounts": {
            "Discount": [
                {
                    "Amount": 3.00000
                }
            ]
        },
        "GrandTotal": {
            "TotalBDiscounts": 20.00000,
            "TotalWDiscounts": 17.00000,
            "InvoiceTotal": 19.21000
        },
        "AdditionalInfo": {
            "Info": [
                {
                    "@_Name": "TotalServGravados",
                    "@_Data": null,
                    "@_Value": "0"
                },
                {
                    "@_Name": "TotalServExentos",
                    "@_Data": null,
                    "@_Value": "0"
                },
                {
                    "@_Name": "TotalServExonerado",
                    "@_Data": null,
                    "@_Value": "0"
                },
                {
                    "@_Name": "TotalMercanciasGravadas",
                    "@_Data": null,
                    "@_Value": "20.00000"
                },
                {
                    "@_Name": "TotalMercanciasExentas",
                    "@_Data": null,
                    "@_Value": "0"
                },
                {
                    "@_Name": "TotalMercExonerada",
                    "@_Data": null,
                    "@_Value": "0"
                },
                {
                    "@_Name": "TotalGravado",
                    "@_Data": null,
                    "@_Value": "20.00000"
                },
                {
                    "@_Name": "TotalExento",
                    "@_Data": null,
                    "@_Value": "0"
                },
                {
                    "@_Name": "TotalExonerado",
                    "@_Data": null,
                    "@_Value": "0"
                }
            ]
        }
    },
    "Payments": {
        "Payment": [
            {
                "Code": "01"
            }
        ]
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Texts": {
                    "Text": [
                        {
                            "@_CNo": "OtroTexto",
                            "@_RNo": "Codigo1",
                            "#text": "hola mundo"
                        },
                        {
                            "@_CNo": "OtroTexto",
                            "@_RNo": "Codigo1",
                            "#text": "soy un texto random"
                        },
                        {
                            "@_CNo": "OtroTexto",
                            "#text": "hola soy un texto sin codigo siu"
                        }
                    ]
                }
            }
        ]
    }
}