Note: This guide will be published on the R74 Stage Future date of 10/6/26.
The gen_einvoice_m API generates, sends, or resend the e-invoice document for a single invoice. This identifies the invoice with the <invoice_no> or supplies the <einvoice_seq_no> to act on a specific previously generated document for that invoice.
Additional Guidance
Input Fields
| Field Name |
Notes |
| <einvoice_directive> |
Specifies the action to perform.
Allowable Values
| Values |
Description |
| 1 |
Generate and send |
| 2 |
Generate and don't send |
| 3 |
Resend an existing e-invoice document |
|
| Field Name |
Notes |
| <include_einvoice_data> |
Whether to return the generated or resent e-invoice document (einvoice_data) in the response, or only the confirmation/status fields. Since the document payload can be large, callers that only need confirmation of success can omit it to avoid the added response size. Default is 0.
Allowable Values
| Values |
Description |
| 0 |
Do not include einvoice data in response (default) |
| 1 |
Include einvoice data in response |
|
Output Field
| Field Name |
Notes |
| <einvoice_status_ind> |
The statement's e-invoicing status.
Allowable Values
| Values |
Description |
| 0 |
Pending |
| 1 |
Done |
| 2 |
Partial |
| 3 |
Failed |
| 4 |
Not Eligible |
|
Error Codes
| Error Code/Description |
Associated Inputs |
1009: account does not exist, Account not found: AriaNo (acct_no), Account not found: Userid (userid), or Account not found: ClientId (client_acct_id)
|
"Account Does Not Exist" message appears for e-invoicing. |
34001: No e-invoice document (XML) found for the specified account and invoice.
|
|
34003: No e-invoicing template is configured for this account or client.
|
|
34004: No e-invoicing recipient is configured for this account.
|
|
34005: The e-invoice document could not be delivered.
|
|
34006: The configured e-invoicing template has no content.
|
|
34007: Unable to calculate the invoice total for e-invoicing.
|
|
34008: An unexpected error occurred while generating the e-invoice document.
|
|
34009: The generated e-invoice document failed validation.
|
|