Set up the company profile
sef_setup_companyCreate or update your company's local seller profile without editing JSON by hand. Returns a preview and confirmation code; data is saved only after confirmation and nothing is sent to SEF.
Instructions
Creates or updates the seller (your company) in the local profile, so no JSON has to be edited by hand. Call without confirmCode to get a preview and a confirmCode; show the preview to the user; only after they confirm, call again with the same values plus confirmCode. Nothing is sent to SEF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mb | Yes | Matični broj, 8 cifara | |
| pib | Yes | PIB, 9 cifara | |
| name | Yes | Pun naziv firme kao u APR-u | |
| No | |||
| notes | No | Napomene na svakoj fakturi | |
| address | Yes | Ulica i broj, mesto, poštanski broj | |
| unitCode | No | ||
| defaultTax | No | Podrazumevano PDV pravilo. Ako se izostavi: van PDV-a → SS / 0 / PDV-RS-33, u PDV-u → S / 20. Potvrditi sa knjigovođom. | |
| bankAccount | Yes | Tekući račun, npr. 265-0000000000000-00 | |
| confirmCode | No | Kod iz pregleda; šalje se tek kad korisnik potvrdi pregled | |
| numberPattern | No | Regex za broj fakture, npr. ^FA-\d{4}-\d{3}$ | |
| vatRegistered | Yes | Da li je firma u sistemu PDV-a | |
| paymentDueDays | No |