Factura con descuento Global
Método POST
Tipo: Bearer token
Token: token de la empresa
URL https://dev.factpro.la/api/documents
JSON A ENVIAR |
{
"serie_documento": "F001",
"numero_documento": "#",
"fecha_de_emision": "2024-02-17",
"hora_de_emision": "10:11:11",
"codigo_tipo_operacion": "0101",
"codigo_tipo_documento":"01",
"codigo_tipo_moneda": "PEN",
"fecha_de_vencimiento":"2024-02-09",
"numero_orden_de_compra": "",
"nombre_almacen": "",
"enviar_automaticamente_al_cliente": true,
"datos_del_emisor": {
"codigo_del_domicilio_fiscal": "0000"
},
"datos_del_cliente_o_receptor":{
"codigo_tipo_documento_identidad": "6",
"numero_documento": "10414711221",
"apellidos_y_nombres_o_razon_social": "DEMO",
"codigo_pais": "PE",
"ubigeo": "150101",
"direccion": "Av.",
"correo_electronico": "laverioa@gmail.com",
"telefono": "427-1148"
},
"totales": {
"total_exportacion": 0.00,
"total_operaciones_gravadas": 90.00,
"total_operaciones_inafectas": 0.00,
"total_operaciones_exoneradas": 0.00,
"total_operaciones_gratuitas": 0.00,
"total_igv": 16.2,
"total_impuestos": 16.2,
"total_valor": 90,
"total_venta": 106.20,
"tipo_descuento": "monto",
"descuentos":
{
"codigo": "02",
"descripcion": "Descuento global",
"porcentaje": 0.10,
"monto": 10.00,
"base": 100.00
}
},
"items":[
{
"codigo": "88996",
"descripcion":"thteegegg5g",
"codigo_producto_sunat": "",
"codigo_producto_gsl": "",
"unidad_de_medida": "NIU",
"cantidad": 1,
"valor_unitario": 100,
"codigo_tipo_precio": "01",
"precio_unitario": 118,
"codigo_tipo_afectacion_igv": "10",
"total_base_igv": 100.00,
"porcentaje_igv": 18,
"total_igv": 18,
"total_impuestos": 18,
"total_valor_item": 100,
"total_item": 118
}
],
"acciones": {
"formato_pdf": "a4"
},
"additional_information": "",
"termino_de_pago": {
"descripcion": "Contado",
"tipo": "0"
},
"metodo_de_pago": ""
}
```
<cbc:ID>F001-62</cbc:ID>
<cbc:IssueDate>2024-02-17</cbc:IssueDate>
<cbc:IssueTime>19:18:52</cbc:IssueTime>
<cbc:DueDate>2024-02-09</cbc:DueDate>
<cbc:InvoiceTypeCode listID="0101">01</cbc:InvoiceTypeCode>
<cbc:Note languageLocaleID="1000">
<![CDATA[ Ciento seis con 20/100 ]]>
</cbc:Note>
<cbc:DocumentCurrencyCode>PEN</cbc:DocumentCurrencyCode>
<cac:Signature>
<cbc:ID>signatureDEVPRO</cbc:ID>
<cbc:Note>DEVPRO</cbc:Note>
<cac:SignatoryParty>
<cac:PartyIdentification>
<cbc:ID>20909090784</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>DEMO facturador</cbc:Name>
</cac:PartyName>
</cac:SignatoryParty>
<cac:DigitalSignatureAttachment>
<cac:ExternalReference>
<cbc:URI>#signatureDEVPRO</cbc:URI>
</cac:ExternalReference>
</cac:DigitalSignatureAttachment>
</cac:Signature>
<cac:AccountingSupplierParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID schemeID="6">20909090784</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>DEMO facturador</cbc:Name>
</cac:PartyName>
<cac:PartyLegalEntity>
<cbc:RegistrationName>DEMO facturador</cbc:RegistrationName>
<cac:RegistrationAddress>
<cbc:ID>150101</cbc:ID>
<cbc:AddressTypeCode>0000</cbc:AddressTypeCode>
<cbc:CityName>Lima</cbc:CityName>
<cbc:CountrySubentity>LIMA</cbc:CountrySubentity>
<cbc:District>Lima</cbc:District>
<cac:AddressLine>
<cbc:Line>-</cbc:Line>
</cac:AddressLine>
<cac:Country>
<cbc:IdentificationCode>PE</cbc:IdentificationCode>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:Telephone>-</cbc:Telephone>
<cbc:ElectronicMail>20909090784@gmail.com</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID schemeID="6">10414711221</cbc:ID>
</cac:PartyIdentification>
<cac:PartyLegalEntity>
<cbc:RegistrationName>DEMO</cbc:RegistrationName>
<cac:RegistrationAddress>
<cbc:ID>150122</cbc:ID>
<cac:AddressLine>
<cbc:Line>Av.</cbc:Line>
</cac:AddressLine>
<cac:Country>
<cbc:IdentificationCode>PE</cbc:IdentificationCode>
</cac:Country>
</cac:RegistrationAddress>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:Telephone>427-1148</cbc:Telephone>
<cbc:ElectronicMail>demo@gmail.com</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:PaymentTerms>
<cbc:ID>FormaPago</cbc:ID>
<cbc:PaymentMeansID>Contado</cbc:PaymentMeansID>
</cac:PaymentTerms>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReasonCode>02</cbc:AllowanceChargeReasonCode>
<cbc:MultiplierFactorNumeric>0.10000</cbc:MultiplierFactorNumeric>
<cbc:Amount currencyID="PEN">10.00</cbc:Amount>
<cbc:BaseAmount currencyID="PEN">100.00</cbc:BaseAmount>
</cac:AllowanceCharge>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="PEN">16.20</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="PEN">90.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="PEN">16.20</cbc:TaxAmount>
<cac:TaxCategory>
<cac:TaxScheme>
<cbc:ID>1000</cbc:ID>
<cbc:Name>IGV</cbc:Name>
<cbc:TaxTypeCode>VAT</cbc:TaxTypeCode>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="PEN">90.00</cbc:LineExtensionAmount>
<cbc:TaxInclusiveAmount currencyID="PEN">106.20</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="PEN">106.20</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="NIU">1.0000</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="PEN">100.00</cbc:LineExtensionAmount>
<cac:PricingReference>
<cac:AlternativeConditionPrice>
<cbc:PriceAmount currencyID="PEN">118.000000</cbc:PriceAmount>
<cbc:PriceTypeCode>01</cbc:PriceTypeCode>
</cac:AlternativeConditionPrice>
</cac:PricingReference>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="PEN">18.00</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="PEN">100.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="PEN">18.00</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:Percent>18.00</cbc:Percent>
<cbc:TaxExemptionReasonCode>10</cbc:TaxExemptionReasonCode>
<cac:TaxScheme>
<cbc:ID>1000</cbc:ID>
<cbc:Name>IGV</cbc:Name>
<cbc:TaxTypeCode>VAT</cbc:TaxTypeCode>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:Item>
<cbc:Description>
<![CDATA[ thteegegg5g ]]>
</cbc:Description>
<cac:SellersItemIdentification>
<cbc:ID>88996</cbc:ID>
</cac:SellersItemIdentification>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="PEN">100.0000000000</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
JSON RESPUESTA |
{
"success": true,
"data": {
"number": "F001-5",
"filename": "20415963255-01-F001-5",
"external_id": "103c8710-6c6e-4b7b-8d7b-c59f642c7a71",
"number_to_letter": "Ciento dieciocho con 00/100 ",
"hash": "gLOlpznxBvvhT/BUUugMYDhQo84=",
"qr": "iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEgklEQVR4nO2d3XYbMQgG4568/yund45bqwQBWneOZy7t1U/yHZAWIXz7+vr6EDK/Xj0B6aKEeJQQjxLiUUI8SohHCfEoIR4lxKOEeJQQjxLi+Uw+d7vd+oM9htTvHd4/fBzi+="
},
"links": {
"xml": "https://factpro.pe/downloads/document/xml/103c8710-6c6e-4b7b-8d7b-c59f642c7a71",
"pdf": "https://factpro.pe/downloads/document/pdf/103c8710-6c6e-4b7b-8d7b-c59f642c7a71",
"cdr": "https://factpro.pe/downloads/document/cdr/103c8710-6c6e-4b7b-8d7b-c59f642c7a71"
},
"response": {
"code": "0",
"description": "La Factura numero F001-5, ha sido aceptada",
"notes": []
}
}
Última actualización