myinvois_settings_save
[REQUIRES APPROVAL] Save the one-time LHDN supplier profile — the door checks for an existing row on your tenant and creates or updates in place, so this is the only write you ever call. Validates the TIN format, checks msic_code is a 5-digit MSIC code, and checks state_code against the LHDN state table before the row moves. NEXT: myinvois_invoice_generate reads this profile as the supplier party of every e-invoice.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brn | No | ||
| tin | No | ||
| city | No | ||
| No | |||
| scope | No | ||
| msic_code | No | ||
| sst_number | No | ||
| state_code | No | ||
| postal_code | No | ||
| company_name | No | ||
| country_code | No | ||
| address_line1 | No | ||
| address_line2 | No | ||
| contact_number | No | ||
| invoice_prefix | No | ||
| default_currency | No | ||
| business_activity | No | ||
| tourism_tax_number | No | ||
| default_payment_terms | No |