Company Definitions Methods
| Method | Description |
|---|---|
| UpdCompDef | Update company definition |
| getCompDef | Get company definition |
Update Company Definitions Method
| REST API | compDefApi/UpdCompDef |
File Data
The following parameters should be included in a formdata object (see example here: https://docs.wizcloud.co.il/docs/files/#how-to-upload-a-file-via-postman )
| FieldName-trans | Type | Required | Description | Description |
|---|---|---|---|---|
| companyname | string | שם החברה | Company Name | |
| compforignname | string | שם החברה באנגלית | Company forign name | |
| vatnum | string | מספר עוסק מורשה | Vat number | |
| lossnum | string | מספר ח"פ | Loss number | |
| orgsort | numeric (1-4) | סוג עוסק: 1- חברה 2- מלכ"ר 3-מוסד פיננסי 4-מלכ"ר + עוסק רגיל | Organization type: 1-company 2-non-profit 3-financial institution 4-non-profit + company | |
| companyaddress | string | כתובת | Address | |
| compforignaddress | string | כתובת לועזית | Foreign Address | |
| string | מייל | |||
| website | string | אתר | Website | |
| WhatsAppPhone | string | ווצאפ | WhatsApp Phone | |
| WhatsAppToken | string | טוקן ווצאפ | WhatsApp Token | |
| EvalCurrency | string | מטבע לשיערוך | Eval Currency | |
| RoundType | numeric (0-3) | שיטת העיגול במסמך: 0 - ללא עיגול 1 - עיגול לעשרות אגורות 2 - עיגול לשקלים 3 - עיגול לעשרות שקלים | Rounding method in document: 0 – No rounding 1 – Round to the nearest tenth of a monetary unit 2 – Round to the nearest whole monetary unit 3 – Round to the nearest ten monetary units | |
| VatPrc | number | מע"מ | Vat percent | |
| add_pay_button | boolean | הוספת כפתור תשלום לחשבוניות | Add pay button | |
| LogoImage | file | תמונה לוגו עברי | Logo image | |
| ForeignLogoImage | file | תמונה לוגו אנגלי | Foreign logo image |
UpdCompDef OutputData
| Name | Options |
|---|---|
| status | 200/400/500 |
| Response | Success/error list |
Body Example

Get Company Definitions Method
| REST API | compDefApi/getCompDef |
getCompDef OutputData
| Name | Options |
|---|---|
| status | 200/500 |
| Response | Company Settings Object/ error |
Request Example

OutputData JSON example
{
"companyname": "wizdb7n5",
"compforignname": "Wiz International Ltd",
"vatnum": "123456789",
"lossnum": "1000000",
"orgsort": 5,
"companyaddress": "1234 Elm Street, NY",
"compforignaddress": "56 King Road, UK",
"email": "info@wizdb7n5.com",
"website": "https://www.wizdb7n5.com",
"whatsappphone": "2221111",
"whatsapptoken": "888888888",
"evalcurrency": "$",
"maincurrency": "$",
"roundtype": 2,
"vatprc": 18,
"addpaybutton": 1,
"logoimage": "W29iamVjdCBPYmplY3Rd",
"foreignlogoimage": "W29iamVjdCBPYmplY3Rd"
}