{
"client": {
"id": "client_1234567890",
"search": {
"on_key": "tax_id",
"on_value": "PEGJ800101ABC",
"auto_create": true
},
"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": [
"user@example.com"
],
"metadata": {},
"legal_name": "Juan Pérez García",
"tax_id": "PEGJ800101ABC",
"use": "P01",
"tax_system": "601"
},
"automation_type": "pue_invoice",
"currency": "MXN",
"exchange_rate": 1,
"items": [
{
"id": "service_1234567890",
"search": {
"on_key": "sku",
"on_value": "CONS-001",
"auto_create": true
},
"quantity": 1,
"description": "Consulting services",
"sku": "CONS-001",
"product_key": "80141503",
"unit_key": "E48",
"unit_name": "Servicio",
"unit_price": 1000,
"taxes": [
{
"base": "01",
"factor": "Tasa",
"inclusive": false,
"rate": 0.16,
"type": "IVA",
"withholding": false
}
],
"third_party": {
"legal_name": "Third Party SA",
"tax_id": "TPR800101ABC",
"tax_system": "601",
"zip": "03100"
}
}
],
"payment_form": "01",
"metadata": {},
"idempotency_key": "payment-register-12345",
"date": 1677651234000,
"invoice_config": {
"serie": "A",
"folio": "123"
},
"transfer_data": {
"master": 10,
"connect": "ABC123456789",
"master_to": "client",
"connect_to": "client",
"connect_custom_config": {
"product_key": "01010101",
"unit_key": "E48",
"custom_description": "Professional consulting services",
"custom_price": 250,
"taxes": [
{
"key": "002",
"name": "IVA",
"type": "federal",
"tax_mode": "tax",
"percentage": 16
}
]
}
}
}