PDF PERSONALIZADO

PDF PERSONALIZADO#

Espacio para informar que el documento equivalente se transmitirá con representación gráfica personalizada por el emisor en base64. Para ello se debe agregar una estructura especifica en el DTO o JSON del documento.

1. PdfData (PDF PERSONALIZADO)

Sección Opcional:

{
	"PdfData": {
		"Pdf": "BASE64"
	}
}

NA

Codificar representación gráfica de formato PDF a Base64.

DTO PDF PERSONALIZADO#

JSON (DTO) - ESTRUCTURA PDF
{
    "IssueDate": "2023-11-27T15:43:09.958Z",
    "DueDate": "2023-11-27T15:43:09.958Z",
    "DeliveryDate": "2023-11-27T15:43:09.958Z",
    "Currency": "COP",
    "SeriePrefix": "EPOS", //**
    "SerieNumber": "200", //**
    "OperationType": "10",
    "SerieExternalKey": "{{serieexternalkeyDE}}",
    "CorrelationDocumentId": "POSTMAN-{{$timestamp}}",
    "BuyerBenefits": { // Extensión Información Beneficios del Comprador
        "BuyerIdentificationDocumentNumber": "900606963", // Valor de la característica que se quiere informar (Código del comprador).
        "BuyerIdentificationName": "Saphety Transacciones Electrónicas S.A.S", // Valor de la característica que se quiere informar (Nombres y apellidos del comprador).
        "Points": "200" // Valor de la característica que se quiere informar (Cantidad de Puntos acumulados por el comprador).
    },
    "POSInformation": { // Extensión Información de la Caja de Venta
        "InventoryBoxPlate": " PV123", //Valor de la característica que se quiere informar (Placa de inventario de la Caja).
        "InventoryBoxLocation": "Entrada1", //Valor de la característica que se quiere informar (Ubicación de la caja ALMACEN).
        "VendorName": "John Doe", //Valor de la característica que se quiere informar (nombres y apellidos del cajero o vendedor).
        "InventoryBoxType": "Caja Rapida", //Valor de la característica que se quiere informar (Tipo de Caja).
        "SalesCode": "SC00001", //Valor de la característica que se quiere informar (Código de la Venta).
        "SalesSubTotal": " 136850.00" //Valor de la característica que se quiere informar (Subtotal de la venta).
    },
    "SoftwareMaker": {
        "LegalName": "string",
        "NameAndLastname": "string",
        "SoftwareName": "string"
    },
    "PaymentMeans": [
        {
            "Code": "20",
            "Mean": "1",
            "DueDate": "2023-11-27"
        }
    ],
    "IssuerParty": {
        "Identification": {
            "DocumentNumber": "{{nit}}",
            "DocumentType": "NIT",
            "CountryCode": "CO",
            "CheckDigit": "{{digitoverificacion}}"
        }
    },
    "CustomerParty": {
        "LegalType": "Legal",
        "Email": "correo@sovos.com",
        "TaxScheme": "ZZ",
        "ResponsabilityTypes": [
            "R-99-PN"
        ],
        "Identification": {
            "DocumentNumber": "{{nit}}",
            "DocumentType": "NIT",
            "CountryCode": "CO",
            "CheckDigit": "{{digitoverificacion}}"
        },
        "Name": "Saphety Transacciones Electrónicas S.A.S",
        "Address": {
            "DepartmentCode": "11",
            "CityCode": "11001",
            "AddressLine": "Calle 97a No. 9 - 45",
            "Country": "CO"
        }
    },
    "Lines": [
        {
            "Number": "1",
            "Quantity": "1",
            "QuantityUnitOfMeasure": "NAR",
            "TaxSubTotals": [
                {
                    "TaxCategory": "01",
                    "TaxPercentage": "19.00",
                    "TaxableAmount": "115000.00",
                    "TaxAmount": "21850.00"
                }
            ],
            "TaxTotals": [
                {
                    "TaxCategory": "01",
                    "TaxAmount": "21850.00"
                }
            ],
            "UnitPrice": "115000.00",
            "GrossAmount": "115000.00",
            "NetAmount": "115000.00",
            "Item": {
                "Gtin": "987654321",
                "Description": "Descripcion del producto o servicio"
            }
        }
    ],
    "Notes": [
        "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. "
    ],
    "TaxSubTotals": [
        {
            "TaxCategory": "01",
            "TaxPercentage": "19.00",
            "TaxableAmount": "115000.00",
            "TaxAmount": "21850.00"
        }
    ],
    "TaxTotals": [
        {
            "TaxCategory": "01",
            "TaxAmount": "21850.00"
        }
    ],
    "Total": {
        "GrossAmount": "115000.00",
        "TotalBillableAmount": "136850.00",
        "PayableAmount": "136850.00",
        "TaxableAmount": "115000.00",
        "AllowancesTotalAmount": "0.00",
        "ChargesTotalAmount": "0.00",
        "PrePaidTotalAmount": "0.00"
    },
    "PrepaidPayments": [
        {
            "PaidDate": "2023-11-27",
            "PaidAmount": "0.00"
        }
    ],
    "AllowanceCharges": [
        {
            "ChargeIndicator": "false",
            "BaseAmount": "100000.00",
            "ReasonCode": "00 ",
            "Reason": "Discount",
            "Amount": "0.00",
            "Percentage": "0",
            "SequenceIndicator": "1"
        },
        {
            "ChargeIndicator": "true",
            "BaseAmount": "100000.00",
            "ReasonCode": "00",
            "Reason": "charge",
            "Amount": "0.00",
            "Percentage": "0.00",
            "SequenceIndicator": "2"
        }
    ],
     "PdfData": { // Estructura para enviar PDF
        "Pdf": "PDF en base64"
        }
}