axFuelService

<back to all web services

SaveCompany

Requires Authentication
SaveCompany Parameters:
NameParameterData TypeRequiredDescription
companyqueryCompanyNo
appnamequerystringNo
hostnamequerystringNo
Company Parameters:
NameParameterData TypeRequiredDescription
idformintNo
rs_codeformstringNo
nameformstringNo
name_enformstringNo
addressformstringNo
address_phformstringNo
phoneformstringNo
faxformstringNo
emailformstringNo
webformstringNo
noteformstringNo
spendformboolNo
company_idformintNo
accformstringNo
withoutvatformboolNo
discounts_idformint?No
discounts_dateformDateTime?No
SaveCompanyResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformintNo

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.

POST /jsv/reply/SaveCompany HTTP/1.1 
Host: axfuel.apex.ge 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	company: 
	{
		id: 0,
		rs_code: String,
		name: String,
		name_en: String,
		address: String,
		address_ph: String,
		phone: String,
		fax: String,
		email: String,
		web: String,
		note: String,
		spend: False,
		company_id: 0,
		acc: String,
		withoutvat: False,
		discounts_id: 0,
		discounts_date: 0001-01-01
	},
	appname: String,
	hostname: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Result: 0
}