myinvois_customer_update
Edit a registered buyer's LHDN details — send only the fields you are changing. When tin is included it is re-checked against the same format gate create runs, and when state_code is included it is re-checked against the LHDN state table, so an edited buyer stays valid to generate against. Never touches e-invoices already generated for this buyer; each one sealed its own copy of the buyer party. NEXT: myinvois_customer_list to find the id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The myinvois_customer id (myinvois_customer_list shows them). | |
| brn | No | ||
| tin | No | ||
| city | No | ||
| name | No | ||
| No | |||
| notes | No | ||
| address | No | ||
| sst_number | No | ||
| state_code | No | ||
| postal_code | No | ||
| country_code | No | ||
| contact_number | No | ||
| expected_updated_at | No | Optional compare-and-set guard: the updated_at from a prior myinvois_customer_list/read. Mismatch returns CONFLICT with the current value. |