JSON Factura de Mandato – Segunda Moneda

Método de envío.

Para el proceso de pruebas de la factura de exportación recuerde

  1. Solicitar el TOKEN
  2. Valide el parámetro de envió para pruebas

        «sMethod»: «classTaxxa.fjDocumentAdd»,

        «jParams»: {

            «wVersionUBL»: 2.1,

            «wEnvironment»: «test»,

El ambiente de producción debe ajustar el parámetro de la siguiente forma:

        «sMethod»: «classTaxxa.fjDocumentAdd»,

        «jParams»: {

            «wVersionUBL»: 2.1,

            «wEnvironment»: «prod»,

Es importante tener en cuenta el prefijo sino la factura será rechazada, a continuación, se especifican los campos adicionales que se deben adicionar en el JSON para la factura de exportación, a continuación encontrará  un json de ejemplo. Finalmente   al final del documento encontrará  los  campos aplicables a este tipo de factura con la explicación y catalogo que corresponda.

				
					{
    "stoken": "000000000",
    "japi": {
        "smethod": "classTaxxa.fjDocumentAdd",
        "jparams": {
            "wformat": "taxxa.co.dian.document",
            "wVersionUBL": 2,
            "wenvironment": "test",
            "jdocument": {
                "sdocumentprefix": "SETP",
                "wdocumenttype": "Invoice",
                "wdocumenttypecode": "01",
                "scustomizationid": "11",
                "wcurrency": "COP",
                "spaymentmethod": "ZZZ",
                "wpaymentmeans": "1",
                "tissuedate": "2024-03-14",
                "tissuetime": "13:00:00",
                "tduedate": "2024-01-16",
                "sorderreference": "BUN-2024-001",
                "nlineextensionamount": 1011927,
                "ntaxinclusiveamount": 1040902,
                "npayableamount": 1040902,
                "nprepayment": 806000,
                "snotes": "",
                "ntrm": 3957,
                "nSourceCurrencyBaseRate": 2944,
                "tdatetrm": "2024-05-01",
                "sTargetCurrencyCode": "USD",
                "nTargetCurrencyBaseRate": 1,
                "jtotalescop": {
                    "nFctConvCop": 5000,
                    "sMonedaCop": "USD",
                    "nSubTotalCop": 200,
                    "nDescuentoDetalleCop": 0.00,
                    "nRecargoDetalleCop": 0.00,
                    "nTotalBrutoFacturaCop": 200,
                    "nTotIvaCop": 38.00,
                    "nTotIncCop": 0.00,
                    "nTotBolCop": 0.00,
                    "nImpOtroCop": 0.00,
                    "nMntImpCop": 0.00,
                    "nTotalNetoFacturaCop": 238.00,
                    "nMntDctoCop": 0.00,
                    "nMntRcgoCop": 0.00,
                    "nVlrPagarCop": 238.00,
                    "nReteFueCop": 3.00,
                    "nReteIvaCop": 0.00,
                    "nReteIcaCop": 0.00,
                    "nTotAnticiposCop": 0.00
                },
                "jseller": {
                    "wlegalorganizationtype": "person",
                    "sfiscalresponsibilities": "R-99-PN",
                    "sdocid": "901402281",
                    "sdoctype": "NIT",
                    "ssellername": "RAZON SOCIAL DEL VENDEDOR COMO SE  ENCUENTRA EN EL RUT",
                    "ssellerbrand": "NOMBRE COMERCIAL DEL ESTABLECIMIENTO",
                    "scontactperson": "NOMBRE PERSONA DE CONTACTO",
                    "saddresszip": "110001",
                    "wdepartmentcode": "11",
                    "wtowncode ": "11001",
                    "scityname": "BOGOTA",
                    "jcontact": {
                        "selectronicmail": "correo@correo.com",
                        "jregistrationaddress": {
                            "wdepartmentcode": "11",
                            "scityname": "BOGOTA",
                            "saddressline1": "CL 13 11 75",
                            "scountrycode": "CO",
                            "wprovincecode": "11001",
                            "szip": "110001",
                            "sdepartmentname": "BOGOTA"
                        }
                    }
                },
                "jbuyer": {
                    "wlegalorganizationtype": "company",
                    "sbuyername": "XXXXXXXXXXXXXXXX",
                    "sfiscalresponsibilities": "R-99-PN",
                    "jpartylegalentity": {
                        "wdoctype": "NIT",
                        "sdocno": "00000000000",
                        "scorporateregistrationschemename": "XXXXXXXXXXXXXX"
                    },
                    "jcontact": {
                        "selectronicmail": "",
                        "stelephone": "0000000",
                        "scontactperson": "XXXXXXXXXXXXXXXXXXXXXXX",
                        "jregistrationaddress": {
                            "saddressline1": "Direccion",
                            "scountrycode": "CO",
                            "wdepartmentcode": "11",
                            "sdepartmentname": "BOGOTA",
                            "wprovincecode": "11001",
                            "scityname": "BOGOTA",
                            "szip": "110001"
                        },
                        "jphysicallocationaddress": {
                            "saddressline1": "Direccion",
                            "scountrycode": "CO",
                            "wdepartmentcode": "11",
                            "sdepartmentname": "BOGOTA",
                            "wprovincecode": "11001",
                            "scityname": "BOGOTA",
                            "szip": "110001",
                            "wlanguage": "es"
                        }
                    }
                },
                "jextrainfo": {
                    "ssalespersonname": "NOMBRE DEL VENDEDOR",
                    "iitemscount": 4,
                    "scarga": "PINTURA EN POLVO",
                    "sbultos": "6",
                    "skilos": "5401",
                    "smn": "MN",
                    "sbl": "NGB/BUN/0000000",
                    "sdocaduana": "DCIM 0000000000-0",
                    "svalorusd": "12908.36",
                    "spedido": "BUN-000000-001",
                    "sadicional": "DOBUN-00000-001",
                    "ntotalpropiosgra": 717557,
                    "ntotalpropiosnogra": 294370,
                    "ntotalingresospropios": "",
                    "ntotalingresosterceros": "",
                    "ntotalinvoicepayment": 806000,
                    "stotalinvoicewords": "Ochosientos seis mil pesos M/CTE"
                },
                "jdocumentitems": {
                    "1": {
                        "jextrainfo": {
                            "sbarcode": "1_013"
                        },
                        "sdescription": "Comision xxxxxxxxxxxxxxxxxxxxxxxx",
                        "sgroupname": "GASTOS Y PAGOS A TERCEROS",
                        "sstandarditemidentification": "1_013",
                        "smandate": "111111111111",
                        "smandateid": "0",
                        "nunitprice": 105300,
                        "nusertotal": 105300,
                        "notherunitprice": 3500,
                        "nothertotal": 3500,
                        "nquantity": 1,
                        "wproductcodetype": "999"
                    },
                    "2": {
                        "jextrainfo": {
                            "sbarcode": "1_031"
                        },
                        "sdescription": "Bodegajes fact. xxxxxxxxxxxxxxxxxxx",
                        "sgroupname": "GASTOS Y PAGOS A TERCEROS",
                        "sstandarditemidentification": "1_031",
                        "nunitprice": 612257,
                        "nusertotal": 612257,
                        "smandate": "111111111111",
                        "smandateid": "0",
                        "notherunitprice": 3500,
                        "nothertotal": 3500,
                        "nquantity": 1,
                        "wproductcodetype": "999"
                    },
                    "3": {
                        "jextrainfo": {
                            "sbarcode": "2_001"
                        },
                        "sdescription": "Reintegro de otros costos y gastos Gastos admon derivados de la operac.",
                        "sgroupname": "INGRESOS PROPIOS",
                        "sstandarditemidentification": "2_001",
                        "nunitprice": 141870,
                        "nusertotal": 141870,
                        "smandate": "2222222222",
                        "smandateid": "1",
                        "notherunitprice": 3500,
                        "nothertotal": 3500,
                        "nquantity": 1,
                        "wproductcodetype": "999",
                        "jtax": {}
                    },
                    "4": {
                        "jextrainfo": {
                            "sbarcode": "2_010"
                        },
                        "sdescription": "Asesorias en comercio exterior BUN",
                        "sgroupname": "INGRESOS PROPIOS",
                        "sstandarditemidentification": "2_010",
                        "smandate": "2222222222",
                        "smandateid": "1",
                        "nunitprice": 152500,
                        "nusertotal": 152500,
                        "notherunitprice": 3500,
                        "nothertotal": 3500,
                        "nquantity": 1,
                        "wproductcodetype": "999",
                        "jtax": {
                            "jiva": {
                                "nrate": 19,
                                "sname": "IVA",
                                "namount": 28975,
                                "nbaseamount": 152500
                            }
                        }
                    }
                }
            }
        }
    }
}