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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"name": "<name>",
"pib": "<pib>",
"address": "<address>"
},
"name": "sef_add_customer"
}
}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 |