AfipQueryInvoice
Description
Section titled “Description”Queries Argentina’s AFIP for the complete data of an already-authorized voucher. Lets you verify the CAE, total amount, and CAE expiry date for any voucher issued from a given point of sale.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | AFIP SDK server credential |
| voucher_type | select | No | Type: 1=Invoice A, 6=Invoice B, 11=Invoice C (default: 6) |
| point_of_sale | number | Yes | Point of sale number |
| voucher_number | number | Yes | Voucher number to query |
Credentials
Section titled “Credentials”Requires an afip credential type:
- Server URL: URL of the AFIP SDK server
- Token: Authentication token (optional)
- CUIT: Tax ID of the company
- Environment:
homologationorproduction
Output
Section titled “Output”{ "success": true, "cae": "71234567890123", "cae_fch_vto": "20251231", "voucher_number": 42, "voucher_type": 6, "point_of_sale": 1, "total_amount": 1210.00, "raw": { ... }}Usage Example
Section titled “Usage Example”Query voucher 42 of Invoice B
Section titled “Query voucher 42 of Invoice B”{ "credentials_id": "cred-afip-prod", "voucher_type": "6", "point_of_sale": "1", "voucher_number": "42"}Query the last voucher (chained with AfipGetLastVoucher)
Section titled “Query the last voucher (chained with AfipGetLastVoucher)”The voucher_number field can take the value from data.last_voucher of the previous node:
{ "credentials_id": "cred-afip-prod", "voucher_type": "6", "point_of_sale": "1"}In this case
voucher_numberis read fromdata.last_voucherif not explicitly configured.
- If
voucher_numberis 0 or no valid number is provided, the node returns an error - The
rawfield contains the full SDK server response for debugging - Useful for reprinting invoices or verifying authorizations in reconciliation processes
Related Nodes
Section titled “Related Nodes”- AfipCreateInvoice - Issue an electronic invoice
- AfipGetLastVoucher - Query last authorized voucher number