myinvois_invoice_record_submission
Record the UUID the LHDN MyInvois portal assigned after the owner keyed this e-invoice into the portal (its form or LHDN's Excel batch template). Simpler never submits to LHDN and never calls the MyInvois API; this only stores the UUID the owner copies back. Only a type-01 original accepts a UUID: credit, debit and refund notes are refused (they link through BillingReference), so record the UUID on the original instead. Moves status generated to submitted; calling it again on a submitted invoice corrects a mistyped UUID. NEXT: myinvois_invoice_read to see the UUID attached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The myinvois_invoice id to record the LHDN UUID against (myinvois_invoice_list shows them). | |
| status | No | ||
| currency | No | ||
| buyer_tin | No | ||
| lhdn_uuid | No | ||
| tax_cents | No | ||
| buyer_name | No | ||
| issue_date | No | ||
| customer_id | No | ||
| total_cents | No | ||
| invoice_data | No | ||
| invoice_type | No | ||
| lhdn_long_id | No | ||
| invoice_number | No | ||
| subtotal_cents | No | ||
| lhdn_submitted_at | No | ||
| reference_invoice_id | No |