{
"uuid": "invoice_1234567890",
"idempotency_key": "unique_key_123",
"client": {
"id": "client_1234567890",
"address": {
"country": "Mexico",
"street": "Av. Insurgentes Sur",
"zip": "03100",
"city": "Ciudad de México",
"state": "CDMX",
"exterior": "123",
"interior": "4B",
"municipality": "Benito Juárez",
"neighborhood": "Del Valle"
},
"name": "Juan Pérez García",
"company": "Empresa SA de CV",
"phone": "+52 55 1234 5678",
"email": "juan.perez@ejemplo.com",
"bcc": [
"admin@empresa.com"
],
"metadata": {
"custom_field": "value"
},
"is_valid": true,
"from": "api",
"legal_name": "Juan Pérez García",
"livemode": true,
"owner": "user_1234567890",
"tax_id": "PEGJ800101ABC",
"use": "P01",
"tax_system": "601",
"team": "team_1234567890",
"created_at": 1677651234,
"efos": {
"is_valid": true
},
"defaults": {
"keep_full_legal_name": false,
"issue_automatic_invoices": false,
"issue_invoiceable_receipts": true
}
},
"created_at": 1677651234,
"currency": "MXN",
"exchange_rate": 1,
"total": 1160,
"subtotal": 1000,
"discount": 0,
"taxes": 160,
"withholding_taxes": 0,
"series": "A",
"folio_number": 123,
"invoice_type": "I",
"use": "P01",
"payment_form": "03",
"payment_method": "PUE",
"payment_conditions": "",
"livemode": true,
"owner": "user_1234567890",
"from": "api",
"status": "valid",
"payments": [
"payment_1234567890"
],
"invoices": [],
"addenda": "",
"exports": "01",
"invoice_pdf_notes": "",
"global": {
"periodicity": "04",
"months": "01",
"year": 2024
},
"related_documents": [
{
"relationship": "04",
"documents": [
"12345678-1234-1234-1234-123456789012"
]
}
],
"complements": [
{
"type": "custom",
"data": "<xml>...</xml>"
}
],
"cancellation": {
"cancelled_at": 1677651234,
"requested_by": "",
"cancellation_receipt": "",
"cancellation_status": "accepted",
"cancellation_type": "cancellation",
"code": "201",
"last_checked": 1677651234,
"motive": "02",
"requested_at": 1677651234,
"substitution_uuid": ""
},
"stamp": {
"sello": "ABC123...",
"stamp_at": 1677651234
},
"items": [
{
"id": "item_123",
"taxability": "01",
"taxes": [
{
"base": "01",
"factor": "Tasa",
"inclusive": false,
"rate": 0.16,
"type": "IVA",
"withholding": false
}
],
"description": "Consulting services",
"product_key": "80141503",
"quantity": 1,
"sku": "CONS-001",
"unit_price": 1000,
"unit_key": "E48",
"unit_name": "Servicio",
"customs_request": null,
"complement": null,
"property_tax_account": null,
"third_party": {
"legal_name": "Third Party SA de CV",
"tax_id": "TPR800101ABC",
"tax_system": "601",
"zip": "03100"
}
}
],
"automations": [
{
"triggered_by": "successful_payment",
"creates": "invoice",
"description": "Create PUE invoice on successful payment"
}
],
"namespaces": [
"string"
],
"verification_url": "",
"automation": "pue_invoice",
"export_classification": "01"
}