
















Create a free account
Copy and save your private test key
Start developing your integration and issue test invoices
Enter your tax information and certificates
Subscribe to a plan
Copy and backup your private production key
Start issuing valid invoices to your customers
1 import Facturapi = from 'facturapi';
2 const facturapi = new Facturapi('TU_API_KEY');
3 // Crea una nueva factura
4 const invoice = await facturapi.invoices.create({
5 customer: {
6 legal_name: 'Kim Wexler',
7 tax_id: 'WXKE800401B12',
8 tax_system: facturapi.TaxSystem.GENERAL_LEY_DE_PERSONAS_MORALES,
9 address: {
10 zip: '12345',
11 country: 'MEX'
12 }
13 },
14 items: [{
15 quantity: 2,
16 product: {
17 description: 'Ukelele',
18 product_key: '60131324',
19 price: 1375.99
20 }
21 }],
22 payment_form: facturapi.PaymentForm.DINERO_ELECTRONICO
23 });
24 // Envía el XML y PDF por correo electrónico a tu cliente
25 await facturapi.invoices.sendByEmail(invoice.id, {
26 email: 'kim@wexlermcgill.com
27 });
Do I need to pay for each issuing RFC?
Do I need to be or have the help of a programmer to use Facturapi?
How are the subscription and consumables billed?
Start free trial