ApexERPHost

<back to all web services

PutAccount

Requires Authentication
The following routes are available for this service:
PUT/Accounting/Accounts
PutAccount Parameters:
NameParameterData TypeRequiredDescription
AccountbodyAccountNoგანკუთვნილია ანალიზური ანგარიშის რედაქტირებისთვის
Account Parameters:
NameParameterData TypeRequiredDescription
AccformstringNo
PlaceIdformint?No
AccountsformstringNo
Lapformbool?No
AccAltformstringNo
LQuantitativeformboolNo
DateStartformDateTimeNo
DateEndformDateTime?No
LOffformbool?No
ReCalcformbool?No
NameformstringNo
NameEnformstringNo
ClientIDformstringNo
CardformstringNo
CurrencyIDformstringNo
Spendformbool?No
unidformGuidNo
prsIDformint?No
DetailsformAccountDetailsNo
CurrencyformCurrencyNo
AccountDetails Parameters:
NameParameterData TypeRequiredDescription
AddressformstringNo
JurAddressformstringNo
SNformstringNo
OwnerNameformstringNo
DataTypeformintNo
VatTypeformint?No
Currency Parameters:
NameParameterData TypeRequiredDescription
CurrencyIDformstringNo
NameformstringNo
NameEnformstringNo
CodeformstringNo
CurTypeformintNo
ReCalcformboolNo
LastDateformDateTimeNo
RateformdecimalNo
SpendformboolNo
CurrencyCntformintNo
Currency_NformstringNo
LDefaultformboolNo
SaveAccountResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo

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.

PUT /Accounting/Accounts HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Account: 
	{
		Acc: String,
		PlaceId: 0,
		Accounts: String,
		Lap: False,
		AccAlt: String,
		LQuantitative: False,
		DateStart: 0001-01-01,
		DateEnd: 0001-01-01,
		LOff: False,
		ReCalc: False,
		Name: String,
		NameEn: String,
		ClientID: String,
		Card: String,
		CurrencyID: String,
		Spend: False,
		unid: 00000000000000000000000000000000,
		prsID: 0,
		Details: 
		{
			Address: String,
			JurAddress: String,
			SN: String,
			OwnerName: String,
			DataType: 0,
			VatType: 0
		},
		Currency: 
		{
			CurrencyID: String,
			Name: String,
			NameEn: String,
			Code: String,
			CurType: 0,
			ReCalc: False,
			LastDate: 0001-01-01,
			Rate: 0,
			Spend: False,
			CurrencyCnt: 0,
			Currency_N: String,
			LDefault: False
		}
	}
}
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
		}
	}
}