Skip to content

Commit aeefed0

Browse files
Merge pull request #168 from FacturAPI/chore/customization_example
chore(customization): add pdf_custom_section in guides
2 parents c106875 + 244339f commit aeefed0

File tree

10 files changed

+495
-1400
lines changed

10 files changed

+495
-1400
lines changed

website/docs/guides/invoices/complementos.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ A continuación encontrarás un ejemplo de cómo insertar un complemento a una f
4242
"complements": [
4343
{
4444
"type": "custom",
45-
"data": "<cartaporte20:CartaPorte Version=\"2.0\" TranspInternac=\"No\" TotalDistRec=\"69.80\"> <cartaporte20:Ubicaciones> <cartaporte20:Ubicacion TipoUbicacion=\"Origen\" RFCRemitenteDestinatario=\"ABC010101A19\" NombreRemitenteDestinatario=\"GASERA NACIONAL S.A. DE C.V.\" FechaHoraSalidaLlegada=\"2023-09-05T07:38:36\"> <cartaporte20:Domicilio Calle=\"Av. Francisco I. Madero\" NumeroExterior=\"304\" Colonia=\"1630\" Localidad=\"07\" Municipio=\"020\" Estado=\"GUA\" Pais=\"MEX\" CodigoPostal=\"37494\"/> </cartaporte20:Ubicacion> <cartaporte20:Ubicacion TipoUbicacion=\"Destino\" RFCRemitenteDestinatario=\"ABC010101A19\" NombreRemitenteDestinatario=\"GASERA NACIONAL S.A. DE C.V.\" FechaHoraSalidaLlegada=\"2023-09-05T23:59:00\" DistanciaRecorrida=\"69.80\"> <cartaporte20:Domicilio Calle=\"Los Robledos\" NumeroExterior=\"114\" Colonia=\"0366\" Localidad=\"06\" Municipio=\"017\" Estado=\"GUA\" Pais=\"MEX\" CodigoPostal=\"36503\"/> </cartaporte20:Ubicacion> </cartaporte20:Ubicaciones> <cartaporte20:Mercancias PesoBrutoTotal=\"1297.92\" UnidadPeso=\"KGM\" NumTotalMercancias=\"1\"> <cartaporte20:Mercancia BienesTransp=\"15111510\" Descripcion=\"GAS LP CARBURACION\" Cantidad=\"2250.00\" ClaveUnidad=\"LTR\" Unidad=\"LITROS\" MaterialPeligroso=\"Sí\" CveMaterialPeligroso=\"1075\" Embalaje=\"Z01\" DescripEmbalaje=\"No aplica\" PesoEnKg=\"1297.92\" ValorMercancia=\"22339.2000\" Moneda=\"MXN\"/> <cartaporte20:Autotransporte PermSCT=\"TPAF09\" NumPermisoSCT=\"000000\"> <cartaporte20:IdentificacionVehicular ConfigVehicular=\"C2\" PlacaVM=\"HB2712P\" AnioModeloVM=\"2018\"/> <cartaporte20:Seguros AseguraRespCivil=\"SEGURIMEX SEGUROS\" PolizaRespCivil=\"3-693750-71\" AseguraMedAmbiente=\"HDK SEGUROS\" PolizaMedAmbiente=\"10782483\"/> </cartaporte20:Autotransporte> </cartaporte20:Mercancias> <cartaporte20:FiguraTransporte> <cartaporte20:TiposFigura TipoFigura=\"01\" RFCFigura=\"PERE120817836\" NombreFigura=\"PEREZ RENTERIA EUSEBIO ADOLFO\" NumLicencia=\"BT5648\"/> </cartaporte20:FiguraTransporte></cartaporte20:CartaPorte>"
45+
"data": "<cartaporte31:CartaPorte Version=\"3.1\" IdCCP=\"CCCa01c6-61bf-4058-b874-c285dad794fe\" TranspInternac=\"Sí\" EntradaSalidaMerc=\"Salida\" PaisOrigenDestino=\"USA\" ViaEntradaSalida=\"01\" TotalDistRec=\"160.0\"><cartaporte31:Ubicaciones><cartaporte31:Ubicacion TipoUbicacion=\"Origen\" IDUbicacion=\"OR000000\" RFCRemitenteDestinatario=\"XEXX010101000\" NumRegIdTrib=\"01010101\" NombreRemitenteDestinatario=\"INTERNATIONAL CUSTOMER\" FechaHoraSalidaLlegada=\"2024-12-17T05:00:00\"><cartaporte31:Domicilio Calle=\"Carretera Dolores Hidalgo A San Luis De La Paz\" NumeroExterior=\"SINNUMERO\" Municipio=\"014\" Estado=\"GUA\" Pais=\"USA\" CodigoPostal=\"N/A\" /></cartaporte31:Ubicacion><cartaporte31:Ubicacion DistanciaRecorrida=\"160.0\" TipoUbicacion=\"Destino\" IDUbicacion=\"DE000001\" RFCRemitenteDestinatario=\"XEXX010101000\" NumRegIdTrib=\"01010101\" NombreRemitenteDestinatario=\"INTERNATIONAL CUSTOMER\" FechaHoraSalidaLlegada=\"2024-12-18T09:00:00\"><cartaporte31:Domicilio Calle=\"1400 W Hi Line Rd\" Municipio=\"015\" Estado=\"SLP\" Pais=\"USA\" CodigoPostal=\"N/A\" /></cartaporte31:Ubicacion></cartaporte31:Ubicaciones><cartaporte31:Mercancias PesoBrutoTotal=\"1.0\" UnidadPeso=\"XBX\" NumTotalMercancias=\"1\"><cartaporte31:Mercancia BienesTransp=\"52161512\" Descripcion=\"Altoparlantes\" Cantidad=\"1\" ClaveUnidad=\"H87\" PesoEnKg=\"1.0\"></cartaporte31:Mercancia><cartaporte31:Autotransporte PermSCT=\"TPXX00\" NumPermisoSCT=\"Permiso no contemplado en el catálogo\"><cartaporte31:IdentificacionVehicular ConfigVehicular=\"VL\" PesoBrutoVehicular=\"1\" PlacaVM=\"JHY7766\" AnioModeloVM=\"2021\" /><cartaporte31:Seguros AseguraRespCivil=\"No Cuenta\" PolizaRespCivil=\"No Cuenta\" /></cartaporte31:Autotransporte></cartaporte31:Mercancias><cartaporte31:FiguraTransporte><cartaporte31:TiposFigura TipoFigura=\"01\" NombreFigura=\"DUNDLER LUNA\" RFCFigura=\"XEXX010101000\" NumLicencia=\"DSADSADSA\" /></cartaporte31:FiguraTransporte></cartaporte31:CartaPorte>"
4646
}
47-
],
48-
"pdf_custom_section": "<h3>Complemento Carta Porte</h3><br><table><thead><th>Transporte Internacional</th><th>Tipo de Transporte Internacional</th><th>Vía de Transporte Internacional</th><th>País de Origen o Destino</th><th>Total distancia recorrida</th></tr></thead><tbody><tr><td>No</td><td></td><td></td><td></td><td></td></tr></tbody></table><br><br><table><thead><tr><th>Detalle del Transporte</th></tr><tr><th>Permiso SCT</th><th>Número de Permiso SCT</th><th>Configuración Vehicular / Tipo de remolque</th><th>Placa</th><th>Año</th></tr></thead><tbody><tr><td>TPAF09 - Transporte privado de carga.</td><td>000000</td><td>C2 - Camión Unitario (2 llantas en el eje delantero y 4 llantas en el eje trasero)</td><td>HB2712P</td><td>2018</td></tr></tbody></table><br><table><thead><tr><th>Aseguradora responsabilidad civil</th><th>Póliza responsabilidad civil</th><th>Aseguradora medio ambiente</th><th>Póliza medio ambiente</th><th>Aseguradora carga</th><th>Póliza carga</th><th>Prima seguro</th></tr></thead><tbody><tr><td>SEGURIMEX SEGUROS</td><td>3-693750-71</td><td>HDK SEGUROS</td><td>10782483</td><td></td><td></td><td></td></tr></tbody></table><br><br><table><thead><tr><th>Origen / Destino</th></tr><tr><th></th><th>RFC</th><th>Nombre</th><th>Fecha de Salida o Llegada</th><th>Domicilio</th><th>Distancia Recorrida</th></tr></thead><tbody><tr><td>Origen</td><td>ABC123456789</td><td>Gasera Nacional S.A. DE C.V.</td><td>2023-09-05T07:38:36</td><td>Av. Francisco I. Madero No. 304, Central de Abastos, C.P. 37494, León de los Aldama, Guanajuato, México</td><td></td></tr><tr><td>Destino</td><td>ABC123456789</td><td>Gasera Nacional S.A. DE C.V.</td><td>2023-09-05T23:59:00</td><td>Los Robledos No. 14, Zona Centro, 36503, IRAPUATO, IRAPUATO, GUA</td><td>69.80</td></tr></tbody></table><br><br><table><thead><tr><th>Figuras de Trasporte</th></tr><tr><th></th><th>RFC</th><th>Nombre</th><th>Licencia</th><th>Domicilio</th></tr></thead><tbody><tr><td>01 - Operador</td><td>PERE120817836</td><td>PEREZ RENTERIA EUSEBIO ADOLFO</td><td>BT5648</td><td>HIDALGO 314, 37260, León, León</td></tr></tbody></table><br><br><table><thead><tr><th>Mercancía</th></tr><tr><th>Cantidad</th><th>Unidad</th><th>Clave Producto/Servicio</th><th>Tipo Material Peligroso</th><th>Embalaje</th><th>Peso Kg</th><th>Valor Mercancía</th></tr></thead><tbody><tr><td>2250.00</td><td>LTR - LITROS</td><td>15111510 - Gas licuado de petróleo</td><td>1075 - GASES LICUADOS DEL PETROLEO</td><td>Z01 - No aplica</td><td>1297.92</td><td>22339.2000</td></tr></tbody></table>"
47+
]
4948
}
5049
```
5150

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
---
2+
sidebar_position: 9
3+
---
4+
5+
import Tabs from '@theme/Tabs';
6+
import TabItem from '@theme/TabItem';
7+
8+
# Personalización de facturas
9+
10+
Puedes añadir un html customizado mediante el campo de `pdf_custom_section` dentro del request de `invoices`.
11+
12+
## Tags permitidos
13+
14+
| Tag | Allowed Attributes |
15+
| ------ | ------------------------------ |
16+
| **h1** ||
17+
| **h2** ||
18+
| **h3** ||
19+
| **h4** ||
20+
| **h5** ||
21+
| **h6** ||
22+
| **div** ||
23+
| **a** | `href`, `title`, `target`, `blank` |
24+
| **p** ||
25+
| **span** ||
26+
| **small** ||
27+
| **br** ||
28+
| **b** ||
29+
| **i** ||
30+
| **ul** ||
31+
| **ol** ||
32+
| **li** ||
33+
| **strong** ||
34+
| **table** ||
35+
| **thead** ||
36+
| **tbody** ||
37+
| **tfoot** ||
38+
| **tr** ||
39+
| **th** | `colspan`, `align` |
40+
| **td** | `colspan`, `align` |
41+
42+
## Ejemplo
43+
44+
El siguiente ejemplo muestra el envío de `pdf_custom_section` dentro del request de creación `invoice`
45+
46+
<Tabs groupId="codeExamples">
47+
<TabItem value="js" label="Node.js" default>
48+
49+
```javascript
50+
const Facturapi = require('facturapi');
51+
const facturapi = new Facturapi('sk_test_API_KEY');
52+
53+
const invoice = await facturapi.invoices.create({
54+
customer: {
55+
legal_name: 'Dunder Mifflin',
56+
email: 'email@example.com',
57+
tax_id: 'ABC101010111',
58+
tax_system: '601',
59+
address: {
60+
zip: '85900'
61+
}
62+
},
63+
items: [{
64+
quantity: 2,
65+
product: {
66+
description: 'Ukelele',
67+
product_key: '60131324', // ClaveProdServ del SAT
68+
price: 345.60,
69+
taxes: [
70+
{
71+
type: 'IVA',
72+
rate: 0.16
73+
}
74+
]
75+
}
76+
}],
77+
use: 'G01',
78+
payment_form: "28" // "Tarjeta de débito",
79+
pdf_custom_section: '<h1>PDF Custom Section with h1</h1> <h2>Generado con <strong>Facturapi</strong></h2> <p>Detalles de la factura mediante tabla:</p> <table> <thead> <tr><th colspan="1" align="center">¡Concepto encerrado en thead!</th><th colspan="1" align="right">Importe</th></tr> </thead> <tbody> <tr><td><b>Servicio de Consultoría</b></td><td colspan="1" align="right" >$5,000.00</td></tr> </tbody> <tfoot> <tr><td align="left"><small>Total</small></td><td align="right"><strong>$5,000.00</strong></td></tr> </tfoot> </table> <p><i>Consulta y descarga tu CFDI en el siguiente enlace:</i></p> <a href="https://www.facturapi.io" target="_blank">Ver factura</a> <p><strong>Opciones de pago:</strong></p> <ul> <li>Transferencia bancaria</li> <li>Pago con tarjeta</li> </ul> <span><strong>Pasos para validar tu CFDI:</strong></span> <ol> <li>Accede al SAT</li> <li>Ingresa tu RFC y UUID</li> <li>Verifica la autenticidad</li> </ol> <br> <div>Si tienes dudas, contacta a soporte de <span>Facturapi</span>.</div>'
80+
});
81+
```
82+
83+
</TabItem>
84+
<TabItem value="cs" label="C#">
85+
86+
```csharp
87+
var facturapi = new FacturapiClient("sk_test_API_KEY");
88+
89+
var invoice = await facturapi.Invoice.CreateAsync(new Dictionary<string, object>
90+
{
91+
["customer"] = new Dictionary<string, object>
92+
{
93+
["legal_name"] = "Dunder Mifflin",
94+
["email"] = "email@example.com",
95+
["tax_id"] = "ABC101010111",
96+
["tax_system"] = "601",
97+
["address"] = new Dictionary<string, object>
98+
{
99+
["zip"] = "85900"
100+
}
101+
},
102+
["items"] = new Dictionary<string, object>[]
103+
{
104+
new Dictionary<string, object>
105+
{
106+
["quantity"] = 2,
107+
["product"] = new Dictionary<string, object>
108+
{
109+
["description"] = "Ukelele",
110+
["product_key"] = "60131324", // ClaveProdServ del SAT
111+
["price"] = 345.60,
112+
["taxes"] = new Dictionary<string, object>[]
113+
{
114+
new Dictionary<string, object>
115+
{
116+
["type"] = "IVA",
117+
["rate"] = 0.16
118+
}
119+
}
120+
}
121+
["product"] = new Dictionary<string, object>
122+
{
123+
["description"] = "Ukelele",
124+
["product_key"] = "60131324", // ClaveProdServ del SAT
125+
["price"] = 345.60,
126+
["taxes"] = new Dictionary<string, object>[]
127+
{
128+
new Dictionary<string, object>
129+
{
130+
["type"] = "IVA",
131+
["rate"] = 0.16
132+
}
133+
}
134+
}
135+
}
136+
},
137+
["use"] = "G01",
138+
["payment_form"] = "28" // "Tarjeta de débito",
139+
["pdf_custom_section"] = "<h1>PDF Custom Section with h1</h1> <h2>Generado con <strong>Facturapi</strong></h2> <p>Detalles de la factura mediante tabla:</p> <table> <thead> <tr><th colspan="1" align="center">¡Concepto encerrado en thead!</th><th colspan="1" align="right">Importe</th></tr> </thead> <tbody> <tr><td><b>Servicio de Consultoría</b></td><td colspan="1" align="right" >$5,000.00</td></tr> </tbody> <tfoot> <tr><td align="left"><small>Total</small></td><td align="right"><strong>$5,000.00</strong></td></tr> </tfoot> </table> <p><i>Consulta y descarga tu CFDI en el siguiente enlace:</i></p> <a href="https://www.facturapi.io" target="_blank">Ver factura</a> <p><strong>Opciones de pago:</strong></p> <ul> <li>Transferencia bancaria</li> <li>Pago con tarjeta</li> </ul> <span><strong>Pasos para validar tu CFDI:</strong></span> <ol> <li>Accede al SAT</li> <li>Ingresa tu RFC y UUID</li> <li>Verifica la autenticidad</li> </ol> <br> <div>Si tienes dudas, contacta a soporte de <span>Facturapi</span>.</div>"
140+
});
141+
```
142+
143+
</TabItem>
144+
<TabItem value="php" label="PHP">
145+
146+
```php
147+
$facturapi = new Facturapi( "sk_test_API_KEY" );
148+
149+
$invoice = $facturapi->Invoices->create([
150+
"customer" => [
151+
"legal_name" => "Dunder Mifflin",
152+
"email" => "email@example.com",
153+
"tax_id" => "ABC101010111",
154+
"tax_system" => "601",
155+
"address" => [
156+
"zip" => "85900"
157+
]
158+
],
159+
"items" => [
160+
[
161+
"quantity" => 2,
162+
"product" => [
163+
"description" => "Ukelele",
164+
"product_key" => "60131324", // ClaveProdServ del SAT
165+
"price" => 345.60,
166+
"taxes" => [
167+
[
168+
"type" => "IVA",
169+
"rate" => 0.16,
170+
]
171+
]
172+
]
173+
],
174+
],
175+
"payment_form" => "28" // "Tarjeta de débito"
176+
"pdf_custom_section" => "<h1>PDF Custom Section with h1</h1> <h2>Generado con <strong>Facturapi</strong></h2> <p>Detalles de la factura mediante tabla:</p> <table> <thead> <tr><th colspan="1" align="center">¡Concepto encerrado en thead!</th><th colspan="1" align="right">Importe</th></tr> </thead> <tbody> <tr><td><b>Servicio de Consultoría</b></td><td colspan="1" align="right" >$5,000.00</td></tr> </tbody> <tfoot> <tr><td align="left"><small>Total</small></td><td align="right"><strong>$5,000.00</strong></td></tr> </tfoot> </table> <p><i>Consulta y descarga tu CFDI en el siguiente enlace:</i></p> <a href="https://www.facturapi.io" target="_blank">Ver factura</a> <p><strong>Opciones de pago:</strong></p> <ul> <li>Transferencia bancaria</li> <li>Pago con tarjeta</li> </ul> <span><strong>Pasos para validar tu CFDI:</strong></span> <ol> <li>Accede al SAT</li> <li>Ingresa tu RFC y UUID</li> <li>Verifica la autenticidad</li> </ol> <br> <div>Si tienes dudas, contacta a soporte de <span>Facturapi</span>.</div>"
177+
]);
178+
```
179+
180+
</TabItem>
181+
<TabItem value="curl" label="cURL">
182+
183+
```bash
184+
curl https://www.facturapi.io/v2/invoices \
185+
-H "Authorization: Bearer sk_test_API_KEY" \
186+
-H "Content-Type: application/json" \
187+
-d '{
188+
"customer": {
189+
"legal_name": "Dunder Mifflin",
190+
"email": "email@example.com",
191+
"tax_id": "ABC101010111",
192+
"tax_system": "601",
193+
"address": {
194+
"zip": "85900"
195+
}
196+
},
197+
"items": [{
198+
"quantity": 2,
199+
"product": {
200+
"description": "Ukelele",
201+
"product_key": "60131324", // ClaveProdServ del SAT
202+
"price": 345.60,
203+
"taxes": [
204+
{
205+
"type": "IVA",
206+
"rate": 0.16
207+
}
208+
]
209+
}
210+
}],
211+
"use": "G01",
212+
"payment_form": "28" // "Tarjeta de débito",
213+
"pdf_custom_section": "<h1>PDF Custom Section with h1</h1> <h2>Generado con <strong>Facturapi</strong></h2> <p>Detalles de la factura mediante tabla:</p> <table> <thead> <tr><th colspan="1" align="center">¡Concepto encerrado en thead!</th><th colspan="1" align="right">Importe</th></tr> </thead> <tbody> <tr><td><b>Servicio de Consultoría</b></td><td colspan="1" align="right" >$5,000.00</td></tr> </tbody> <tfoot> <tr><td align="left"><small>Total</small></td><td align="right"><strong>$5,000.00</strong></td></tr> </tfoot> </table> <p><i>Consulta y descarga tu CFDI en el siguiente enlace:</i></p> <a href="https://www.facturapi.io" target="_blank">Ver factura</a> <p><strong>Opciones de pago:</strong></p> <ul> <li>Transferencia bancaria</li> <li>Pago con tarjeta</li> </ul> <span><strong>Pasos para validar tu CFDI:</strong></span> <ol> <li>Accede al SAT</li> <li>Ingresa tu RFC y UUID</li> <li>Verifica la autenticidad</li> </ol> <br> <div>Si tienes dudas, contacta a soporte de <span>Facturapi</span>.</div>"
214+
}'
215+
```
216+
217+
</TabItem>
218+
</Tabs>

website/docs/guides/invoices/nomina.mdx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ const invoice = await facturapi.invoices.create({
5656
fecha_final_pago: '2023-09-03T06:00:00.000Z',
5757
num_dias_pagados: 7,
5858
emisor: {
59-
curp: "DCBA531412HSACAP01",
59+
curp: "XEXX010101HNEXXXA4",
6060
registro_patronal: "A7025105103",
61-
rfc_patron_origen: "DCBA531412AP0"
61+
rfc_patron_origen: "URE180429TM6"
6262
},
6363
receptor: {
64-
curp: "ABCD990714HSRABS06",
64+
curp: "XEXX010101HNEXXXA4",
6565
tipo_contrato: "01",
6666
tipo_regimen: "02",
6767
num_empleado: "021",
@@ -77,12 +77,12 @@ const invoice = await facturapi.invoices.create({
7777
antiguedad: true
7878
},
7979
percepciones: {
80-
percepcion: {
80+
percepcion: [{
8181
tipo_percepcion: "001",
8282
clave: "5400-001",
8383
importe_gravado: 1522.08,
8484
importe_exento: 0
85-
}
85+
}]
8686
},
8787
deducciones: [
8888
{
@@ -146,13 +146,13 @@ var invoice = await facturapi.Invoice.CreateAsync(new Dictionary<string, object>
146146
["num_dias_pagados"] = 7,
147147
["emisor"] = new Dictionary<string, object>
148148
{
149-
["curp"] = "DCBA531412HSACAP01",
149+
["curp"] = "XEXX010101HNEXXXA4",
150150
["registro_patronal"] = "A7025105103",
151-
["rfc_patron_origen"] = "DCBA531412AP0"
151+
["rfc_patron_origen"] = "URE180429TM6"
152152
},
153153
["receptor"] = new Dictionary<string, object>
154154
{
155-
["curp"] = "ABCD990714HSRABS06",
155+
["curp"] = "XEXX010101HNEXXXA4",
156156
["tipo_contrato"] = "01",
157157
["tipo_regimen"] = "02",
158158
["num_empleado"] = "021",
@@ -169,7 +169,7 @@ var invoice = await facturapi.Invoice.CreateAsync(new Dictionary<string, object>
169169
},
170170
["percepciones"] = new Dictionary<string, object>
171171
{
172-
["percepcion"] = new Dictionary<string, object>
172+
["percepcion"] = new List<Dictionary<string, object>>
173173
{
174174
["tipo_percepcion"] = "001",
175175
["clave"] = "5400-001",
@@ -237,12 +237,12 @@ $invoice = $facturapi->Invoices->create([
237237
"fecha_final_pago" => "2023-09-03T06:00:00.000Z",
238238
"num_dias_pagados" => 7,
239239
"emisor" => [
240-
"curp" => "DCBA531412HSACAP01",
240+
"curp" => "XEXX010101HNEXXXA4",
241241
"registro_patronal" => "A7025105103",
242-
"rfc_patron_origen" => "DCBA531412AP0"
242+
"rfc_patron_origen" => "URE180429TM6"
243243
],
244244
"receptor" => [
245-
"curp" => "ABCD990714HSRABS06",
245+
"curp" => "XEXX010101HNEXXXA4",
246246
"tipo_contrato" => "01",
247247
"tipo_regimen" => "02",
248248
"num_empleado" => "021",
@@ -321,12 +321,12 @@ curl https://www.facturapi.io/v2/invoices \
321321
"fecha_final_pago": "2023-09-03T06:00:00.000Z",
322322
"num_dias_pagados": 7,
323323
"emisor": {
324-
"curp": "DCBA531412HSACAP01",
324+
"curp": "XEXX010101HNEXXXA4",
325325
"registro_patronal": "A7025105103",
326-
"rfc_patron_origen": "DCBA531412AP0"
326+
"rfc_patron_origen": "URE180429TM6"
327327
},
328328
"receptor": {
329-
"curp": "ABCD990714HSRABS06",
329+
"curp": "XEXX010101HNEXXXA4",
330330
"tipo_contrato": "01",
331331
"tipo_regimen": "02",
332332
"num_empleado": "021",
@@ -342,12 +342,12 @@ curl https://www.facturapi.io/v2/invoices \
342342
"antiguedad": true
343343
},
344344
"percepciones": {
345-
"percepcion": {
345+
"percepcion": [{
346346
"tipo_percepcion": "001",
347347
"clave": "5400-001",
348348
"importe_gravado": 1522.08,
349349
"importe_exento": 0
350-
}
350+
}]
351351
},
352352
"deducciones": [
353353
{

0 commit comments

Comments
 (0)