Add or update a customer
sef_add_customerAdds or replaces a customer in the local SEF profile by ID, using a preview-then-confirm flow without sending data to SEF.
Instructions
Adds a customer to the local profile (or replaces the one with the same id). Same preview → confirm flow as sef_setup_company. Nothing is sent to SEF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Kratka oznaka kupca, npr. 'acme' (mala slova, cifre, - i _) | |
| mb | No | ||
| pib | Yes | ||
| name | Yes | ||
| No | |||
| jbkjs | No | Samo za javni sektor: JBKJS, 5 cifara | |
| notes | No | ||
| address | Yes | ||
| unitCode | No | ||
| sendToCir | No | ||
| confirmCode | No | Kod iz pregleda; šalje se tek kad korisnik potvrdi pregled | |
| vatRegistered | No | Da li je kupac u sistemu PDV-a (podrazumevano: da) | |
| contractNumber | No | ||
| paymentDueDays | No |