Detracción
Método POST
Tipo: Bearer token
Token: token de la empresa
POSThttps://dev.factpro.la/api/v2/documentos
JSON A ENVIAR
{
"tipo_documento": "01",
"serie": "F004",
"numero": "#",
"tipo_operacion": "1001",
"fecha_de_emision": "2024-06-25",
"fecha_de_vencimiento": "",
"hora_de_emision": "",
"moneda": "PEN",
"porcentaje_de_venta": 18.00,
"enviar_automaticamente_al_cliente": true,
"forma_de_pago": "",
"numero_orden":"",
"codigo":"",
"datos_del_emisor": {
"codigo_establecimiento": "0000"
},
"cliente": {
"cliente_tipo_documento": "6",
"cliente_numero_documento": "20605577246",
"cliente_denominacion": "CORPORACION VEL PERU S.A.C.",
"codigo_pais": "",
"ubigeo": "",
"cliente_direccion": "Av. central",
"cliente_email": "",
"cliente_telefono": ""
},
"totales": {
"total_exportacion": 0.00,
"total_gravadas": 593.22,
"total_inafectas": 0.00,
"total_exoneradas": 0.00,
"total_gratuitas": 0.00,
"total_tax": 106.78,
"total_venta": 700
},
"items":[
{
"unidad": "ZZ",
"codigo": "",
"descripcion": "Servicio Tv",
"codigo_producto_sunat": "",
"codigo_producto_gsl": "",
"cantidad": 1,
"valor_unitario": 593.22,
"precio_unitario": 700.00,
"tipo_tax": "10",
"total_base_tax": 593.22,
"total_tax": 106.78,
"total": 700.00
}
],
"detraccion":{
"codigo": "022",
"porcentaje": "12.00",
"monto": "84",
"codigo_metodo_pago": "009",
"cuenta_bancaria": "00021124230",
"nombre_cuenta_bancaria": "Banco de la nación"
},
"acciones": {
"formato_pdf": "a4"
},
"termino_de_pago": {
"descripcion": "Contado",
"tipo": "0"
},
"observaciones": ""
}
JSON RESPUESTA
```json
{
"success": true,
"data": {
"number": "F004-25",
"filename": "20609753120-01-F004-25",
"external_id": "443434-3434-4ca5-804c-3444",
"number_to_letter": "Setecientos con 00/100 Soles",
"hash": "3434=",
"qr": "34+3/3/QXO/3+cPeU+qHwePg+yO2B7d2gnu3Z6vE77xF/lvF4IX2IKE92UB60NhfjIPh9mwci6oBbRsM1z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gYT2lGtn7mnXMpm2xZ19k/dOotzNHW3wQnuQ0B4ktEdckP9Otco0tpyfvjcKU6uW8waTTLY+8EJ7kNAe8X825bmuB3k1vG8/E9gyyeyst6i2i/FCe5DQnscCacxkrlvdTWzUmCdppLkb4IX2IKE9SGjPaCyURHOJEdXXSes4OunsO3mrPHihPUhoz6hdwg1IWmXFBlUtJyfLhsm9eKE9SGjPY9XcoAIvtAcJ7UFCe5DQHiS0BwntQUJ7kNAeJLQHCe1BQnuQ0B4ktOcfSyDNOc0LEqoAAAAASUVORK5CYII=",
"state_type_id": "05",
"state_description": "Aceptado"
},
"links": {
"xml": "https://factpro.pe/downloads/document/20609753120/xml/343444-531c-4ca5-804c-53fbc3ca9def",
"cdr": "https://factpro.pe/downloads/document/20609753120/cdr/3434-531c-4ca5-804c-53fbc3ca9def",
"pdf": "https://cpe.factpro.la/documents/66563b5275834c6f00656a07/print/pdf/3444?type=a4",
"download_pdf": "https://cpe.factpro.la/documents/343434/download/pdf/6673bd7aca188d5b57ea1a6c?type=a4",
"pdf_html": "https://cpe.factpro.la/documents/343434/print/6673bd7aca188d5b57ea1a6c?type=a4"
},
"sunat_information": {
"code": "0",
"description": "La Factura numero F004-25, ha sido aceptado",
"notes": []
}
}
```
Última actualización