SynapseNetCom

<back to all web services

DobaviKomitente

Requires Authentication
The following routes are available for this service:
GET/komitenti
DobaviKomitenteResult Parameters:
NameParameterData TypeRequiredDescription
KomitentiformList<Komitent>No
ResponseStatusformResponseStatusNo
Komitent Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
SifraformstringNo
NazivformstringNo
AdresaformstringNo
PibformstringNo
KontaktOsobaformstringNo
Telefon1formstringNo
Telefon2formstringNo
EmailformstringNo
UgovorformboolNo
PdvObveznikformboolNo
MaticniBrojformstringNo
NapomeneformstringNo
OslobodjenObracunaPdvformboolNo
LicnaKartaformboolNo
TipKomitentaformIdNazivNo
MestoformMestoNo
IdNaziv Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NazivformstringNo
Mesto Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
PttformstringNo
NazivformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /komitenti HTTP/1.1 
Host: netcom.poslovnisoftver.rs 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	komitenti: 
	[
		{
			id: String,
			sifra: String,
			naziv: String,
			adresa: String,
			pib: String,
			kontaktOsoba: String,
			telefon1: String,
			telefon2: String,
			email: String,
			maticniBroj: String,
			napomene: String,
			tipKomitenta: 
			{
				id: String,
				naziv: String
			},
			mesto: 
			{
				id: String,
				ptt: String,
				naziv: String
			}
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}