TeleportService

<back to all web services

Evotor_GroupEdit

Requires Authentication
The following routes are available for this service:
All Verbs/Evotor_GroupEdit
Evotor_GroupEdit Parameters:
NameParameterData TypeRequiredDescription
FiltersqueryList<CatalogFilter>No
ShopUUIDquerystringYes
EditTaxqueryEditTaxNo
EditAllowSalequeryEditAllowSaleNo
EditPricequeryEditPriceNo
RoundPricequeryRoundPriceNo
CatalogFilter Parameters:
NameParameterData TypeRequiredDescription
modeformstringNo
nameformstringNo
operationformstringNo
valueformstringNo
groupformstringNo
EditTax Parameters:
NameParameterData TypeRequiredDescription
TaxformTaxTypesNo
TaxTypes Enum:
NO_VAT
VAT_10
VAT_18
VAT_0
VAT_18_118
VAT_10_110
EditAllowSale Parameters:
NameParameterData TypeRequiredDescription
AllowSaleformboolNo
EditPrice Parameters:
NameParameterData TypeRequiredDescription
EditMethodformEditMethodNo
CalculateTypeformCalculateTypeNo
ValueformdecimalNo
EditMethod Enum:
ByPercent
ByValue
ByCostPricePercent
ByCostPriceValue
CalculateType Enum:
add
take
RoundPrice Parameters:
NameParameterData TypeRequiredDescription
RoundTypeformRoundTypeNo
RoundType Enum:
k10
r1
r5
r10
r100
ErrCodeResponse Parameters:
NameParameterData TypeRequiredDescription
errCodeformintNo
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.

POST /Evotor_GroupEdit HTTP/1.1 
Host: wbs.e-teleport.ru 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Filters: 
	[
		{
			mode: String,
			name: String,
			operation: String,
			value: String,
			group: String
		}
	],
	ShopUUID: String,
	EditTax: 
	{
		Tax: NO_VAT
	},
	EditAllowSale: 
	{
		AllowSale: False
	},
	EditPrice: 
	{
		EditMethod: ByPercent,
		CalculateType: add,
		Value: 0
	},
	RoundPrice: 
	{
		RoundType: k10
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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