Skip to content

FactpyEmitir

Creates and submits an Electronic Document (DE) to Paraguay’s SIFEN (Sistema Integrado de Facturación Electrónica Nacional) through FactPy. The node returns the CDC (Código de Control) unique code assigned by the SET and the KuDE URL (visual representation of the DE).

FieldTypeRequiredDescription
credentials_idcredentialsYesFactPy account API key
document_typeselectNoDE type (default: 1=Invoice)
currencyselectNoPYG=Guaraní, USD, EUR (default: PYG)
establishmenttextNoEstablishment code (default: 001)
pointtextNoPoint of issue (default: 001)
conditionselectNo1=Cash, 2=Credit (default: 1)
datetextNoDate YYYY-MM-DD (default: today)
observationstextNoDE observations
receiverobjectYesJSON object with receiver data
itemsarrayYesJSON array with DE line items
CodeType
1Electronic Invoice
4Electronic Credit Note
5Electronic Debit Note
6Electronic Remission Note
11Export Invoice

Requires a factpy credential type with:

  • API Key: access key from the FactPy settings panel
  • Environment: sandbox (testing) or production (real SET)
{
"ruc": "80012345-6",
"name": "Client Company S.A.",
"address": "Av. España 1234, Asunción",
"email": "client@company.com.py",
"phone": "0981123456"
}

Use ci instead of ruc for individuals. For foreign recipients, use their ID document.

[
{
"description": "Software development service",
"quantity": 1,
"unit_price": 5000000,
"iva_rate": 10,
"unit": "SRV"
}
]

Paraguay VAT rates: 10% (general), 5% (basic goods), 0% (exempt).

{
"success": true,
"document_id": "de-abc123",
"cdc": "01800123456001001000001234567890123456789012",
"document_type": 1,
"status": "approved",
"kude_url": "https://app.factpy.com/kude/de-abc123",
"raw": { ... }
}
{
"credentials_id": "cred-factpy-prod",
"document_type": "1",
"currency": "PYG",
"receiver": {
"ruc": "80012345-6",
"name": "Client Company S.A.",
"address": "Mcal. López 1234, Asunción",
"email": "admin@client.com.py"
},
"items": [
{
"description": "Consulting service",
"quantity": 1,
"unit_price": 2500000,
"iva_rate": 10,
"unit": "SRV"
}
]
}
  • The CDC is the unique DE identifier with SET — store it for cancellations and queries
  • The KuDE is the visual representation of the DE (similar to PDF) delivered to the receiver
  • The SET may take a few seconds to process the DE; query with factpyConsulta if status is pending