ApexERPHost

<back to all web services

AddOperationToProduction

Requires Authentication
The following routes are available for this service:
POST/Manufacturing/Production/AddOperationToProduction
AddOperationToProduction Parameters:
NameParameterData TypeRequiredDescription
ProductionIDbodyint?No
OperationbodyManufactureOperationNo
TerminalIDbodyintNo
ManufactureOperation Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
StartTimeformDateTimeNo
EndTimeformDateTime?No
OperTypeformintNo
PersonIDformintNo
StatusformintNo
TaraInformList<TaraIn>No
TaraOutformList<TaraOut>No
ExtDataformstringNo
LocationIDformint?No
ShiftIDformintNo
ProdSpendformList<ProdSpend>No
ProdReceivedformList<ProdReceived>No
TaraMoveformList<TaraMove>No
TerminalIDformintNo
ChecksformList<OperationCheck>No
TaraIn Parameters:
NameParameterData TypeRequiredDescription
TaraInIDformlongNo
OperIDformintNo
TaraIDformintNo
TaraWeightformdecimalNo
ProdIDformstringNo
ICountformdecimalNo
RCountformdecimalNo
TaraOutIDformlong?No
CRTimeformDateTimeNo
CRPersonIDformintNo
WeightScaleIDformint?No
WeightTimeformDateTime?No
WeightPersonIDformint?No
SuppliesformList<string>No
TaraCodeformstringNo
VGformdecimalNo
SubTarasformList<SubTara>No
SubTara Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
SubTaraTypeformintNo
QuantityformdecimalNo
WeightformdecimalNo
TaraOut Parameters:
NameParameterData TypeRequiredDescription
TaraOutIDformlongNo
OperIDformintNo
TaraInIDformlongNo
SCountformdecimalNo
CRTimeformDateTimeNo
TaraInformTaraInNo
ProdSpend Parameters:
NameParameterData TypeRequiredDescription
spend_idformintNo
oper_idformintNo
prod_idformstringNo
scountformdecimalNo
crtimeformDateTimeNo
ProdInfoformGoodNo
Good Parameters:
NameParameterData TypeRequiredDescription
IDformstringNo
BCodeformstringNo
BBCodeformstringNo
InCodeformstringNo
NameformstringNo
NameEnformstringNo
PackBCountformdecimalNo
PackCountformshortNo
NettoformdecimalNo
ByWeightformbyteNo
CategoryIDformstringNo
CategoryformGoodCategoryNo
PPCatIDformstringNo
PCatIDformint?No
ProducerIDformstringNo
ProducerformProducerNo
VatformdecimalNo
LifeDaysformint?No
UnitformstringNo
ParentIDformstringNo
MaxDiscountformdecimal?No
IsImportedformboolNo
DimensionsformProdDimensionsNo
PackCCountformint?No
PDoseformstringNo
IntCodeIDformstringNo
IntCodeformIntCodeNo
ExciseIDformint?No
Exciseformdecimal?No
DestNumberformstringNo
PackTypeIDformint?No
PriceGRformdecimalNo
PriceGTformdecimalNo
Spendformbool?No
VatTypeformintNo
ExtendedInfoformGoodExtendedInfoNo
BarCodesformList<PPBCode>No
TypeformGoodTypeNo
HCategoryformHCategoryNo
BruttoformdecimalNo
SpendRformboolNo
PriceURformdecimal?No
PriceUTformdecimal?No
MDRetailformdecimal?No
MDTradeformdecimal?No
SupDaysformint?No
PrStatusformbool?No
LNotInPriceformbool?No
MinCountTradeformint?No
MinCountRetailformint?No
RegNformstringNo
RegDateformDateTime?No
RegEndDateformDateTime?No
HasSpecformboolNo
ReCalcformboolNo
ExciseCformdecimal?No
IsLinkedformboolNo
UnitIdformint?No
PPCatNameformstringNo
ImagesformList<ProdImage>No
CBCodeformstringNo
ScaleGroupformint?No
BrandformBrandNo
AttributesformDictionary<string, string>No
GoodCategory Parameters:
NameParameterData TypeRequiredDescription
CategoryIDformstringNo
CategoryCodeformstringNo
CategoryNameformstringNo
SpendformboolNo
Producer Parameters:
NameParameterData TypeRequiredDescription
ProducerIDformstringNo
ProducerNameformstringNo
CountryIdformstringNo
LOwnformboolNo
SpeendformboolNo
ProducerNameEnglishformstringNo
AddressformstringNo
PostalCodeformstringNo
PhoneformstringNo
FaxformstringNo
PersonformstringNo
EmailformstringNo
LdefaultformboolNo
MrgIdformint?No
CountryformCountryNo
ProducerCountryformstringNo
Country Parameters:
NameParameterData TypeRequiredDescription
CountryIdformstringNoCountry id
CountryNeformstringNoName (Eng)
LDefaultformboolNoDefault Country for Use
Spendformbool?NoRecord for Use - 0 ; Record Blocked for Use - 1
CountryNuformstringNoName (Geo Unicode)
ProdDimensions Parameters:
NameParameterData TypeRequiredDescription
XformdoubleNo
YformdoubleNo
ZformdoubleNo
IntCode Parameters:
NameParameterData TypeRequiredDescription
IntCodeIDformstringNo
NameformstringNo
NameEnformstringNo
VatformdecimalNo
TaxMethodformintNo
Tax1formdecimalNo
TaxKformdecimalNo
GoodExtendedInfo Parameters:
NameParameterData TypeRequiredDescription
ProdPPIDformstringNo
DescriptionformstringNo
AnotationformstringNo
GarantDaysformint?No
IsFastFoodformboolNo
DetailedWarehousingformboolNo
TrackAndTraceformboolNo
BrandIDformint?No
BrandformBrandNo
RTypeformint?No
SizeIdformint?No
ColorIdformint?No
GenderIdformint?No
SizeformProdSizeNo
ColorformDTAnyDataNo
GenderformDTAnyDataNo
MetaformDictionary<string, string>No
Brand Parameters:
NameParameterData TypeRequiredDescription
BrandIdformint?No
AbbreviationformstringNo
NameformstringNo
BrandNameEformstringNo
DescriptionformstringNo
Logoformbyte[]No
ProdSize Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
SizeTypeformintNo
DTAnyData Parameters:
NameParameterData TypeRequiredDescription
codeidformintNo
mgridformGuid?No
hnameformstringNo
hnameeformstringNo
hcodeformstringNo
defvalformboolNo
vmformdecimal?No
vpformdecimal?No
viformint?No
vdformDateTime?No
canceledformboolNo
crtimeformDateTime?No
unidformGuidNo
IUDformintNo
PPBCode Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ProdPPIdformstringNo
BCodeformstringNo
GoodType Parameters:
NameParameterData TypeRequiredDescription
IDformstringNo
NameformstringNo
NameEnformstringNo
LDefaultformboolNo
Spendformbool?No
HCategory Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
NameformstringNo
ParentIDformint?No
HCodeformstringNo
HccrtformstringNo
NameEnformstringNo
CrTimeformDateTime?No
UnidformGuid?No
IsDefaultformbool?No
Canceledformbool?No
ShortDescriptionformstringNo
DescriptionformstringNo
UrlSlugformstringNo
VideoUrlformstringNo
ShortDescription2formstringNo
Description2formstringNo
MinCountformdecimal?No
ProdImage Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
FileNameformstringNo
LinkformstringNo
ChecksumformstringNo
CreateTimeformDateTimeNo
UpdateTimeformDateTime?No
IsMainformboolNo
ProdReceived Parameters:
NameParameterData TypeRequiredDescription
idformintNo
oper_idformintNo
prod_idformstringNo
icountformdecimalNo
crtimeformDateTimeNo
ProdInfoformGoodNo
TaraMove Parameters:
NameParameterData TypeRequiredDescription
move_idformintNo
oper_idformintNo
tara_idformintNo
from_location_idformint?No
to_location_idformint?No
receive_confirmedformboolNo
receive_confirm_terminal_idformint?No
receive_confirm_user_idformint?No
OperationCheck Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
OperIdformintNo
ProdIdformstringNo
CheckTypeformintNo
ExtDataformstringNo
CRTimeformDateTimeNo
AddOperationToProductionResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
OperIDformintNo

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

HTTP + X-PROTOBUF

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

POST /Manufacturing/Production/AddOperationToProduction HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: application/x-protobuf
Content-Type: application/x-protobuf
Content-Length: length

{"ProductionID":0,"Operation":{"ID":0,"StartTime":"\/Date(-62135596800000-0000)\/","EndTime":"\/Date(-62135596800000-0000)\/","OperType":0,"PersonID":0,"Status":0,"TaraIn":[{"TaraInID":0,"OperID":0,"TaraID":0,"TaraWeight":0,"ProdID":"String","ICount":0,"RCount":0,"TaraOutID":0,"CRTime":"\/Date(-62135596800000-0000)\/","CRPersonID":0,"WeightScaleID":0,"WeightTime":"\/Date(-62135596800000-0000)\/","WeightPersonID":0,"Supplies":["String"],"TaraCode":"String","VG":0,"SubTaras":[{"Id":0,"SubTaraType":0,"Quantity":0,"Weight":0}]}],"TaraOut":[{"TaraOutID":0,"OperID":0,"TaraInID":0,"SCount":0,"CRTime":"\/Date(-62135596800000-0000)\/","TaraIn":{"TaraInID":0,"OperID":0,"TaraID":0,"TaraWeight":0,"ProdID":"String","ICount":0,"RCount":0,"TaraOutID":0,"CRTime":"\/Date(-62135596800000-0000)\/","CRPersonID":0,"WeightScaleID":0,"WeightTime":"\/Date(-62135596800000-0000)\/","WeightPersonID":0,"Supplies":["String"],"TaraCode":"String","VG":0,"SubTaras":[{"Id":0,"SubTaraType":0,"Quantity":0,"Weight":0}]}}],"ExtData":"String","LocationID":0,"ShiftID":0,"ProdSpend":[{"spend_id":0,"oper_id":0,"prod_id":"String","scount":0,"crtime":"\/Date(-62135596800000-0000)\/","ProdInfo":{"ID":"String","BCode":"String","BBCode":"String","InCode":"String","Name":"String","NameEn":"String","PackBCount":0,"PackCount":0,"Netto":0,"ByWeight":0,"CategoryID":"String","Category":{"CategoryID":"String","CategoryCode":"String","CategoryName":"String","Spend":false},"PPCatID":"String","PCatID":0,"ProducerID":"String","Producer":{"ProducerID":"String","ProducerName":"String","CountryId":"String","LOwn":false,"Speend":false,"ProducerNameEnglish":"String","Address":"String","PostalCode":"String","Phone":"String","Fax":"String","Person":"String","Email":"String","Ldefault":false,"MrgId":0,"Country":{"CountryId":"String","CountryNe":"String","LDefault":false,"Spend":false,"CountryNu":"String"},"ProducerCountry":"String"},"Vat":0,"LifeDays":0,"Unit":"String","ParentID":"String","MaxDiscount":0,"IsImported":false,"Dimensions":{"X":0,"Y":0,"Z":0},"PackCCount":0,"PDose":"String","IntCodeID":"String","IntCode":{"IntCodeID":"String","Name":"String","NameEn":"String","Vat":0,"TaxMethod":0,"Tax1":0,"TaxK":0},"ExciseID":0,"Excise":0,"DestNumber":"String","PackTypeID":0,"PriceGR":0,"PriceGT":0,"Spend":false,"VatType":0,"ExtendedInfo":{"ProdPPID":"String","Description":"String","Anotation":"String","GarantDays":0,"IsFastFood":false,"DetailedWarehousing":false,"TrackAndTrace":false,"BrandID":0,"Brand":{"BrandId":0,"Abbreviation":"String","Name":"String","BrandNameE":"String","Description":"String","Logo":"AA=="},"RType":0,"SizeId":0,"ColorId":0,"GenderId":0,"Size":{"Id":0,"Name":"String","SizeType":0},"Color":{"codeid":0,"mgrid":"00000000000000000000000000000000","hname":"String","hnamee":"String","hcode":"String","defval":false,"vm":0,"vp":0,"vi":0,"vd":"\/Date(-62135596800000-0000)\/","canceled":false,"crtime":"\/Date(-62135596800000-0000)\/","unid":"00000000000000000000000000000000","IUD":0},"Gender":{"codeid":0,"mgrid":"00000000000000000000000000000000","hname":"String","hnamee":"String","hcode":"String","defval":false,"vm":0,"vp":0,"vi":0,"vd":"\/Date(-62135596800000-0000)\/","canceled":false,"crtime":"\/Date(-62135596800000-0000)\/","unid":"00000000000000000000000000000000","IUD":0},"Meta":{"String":"String"}},"BarCodes":[{"Id":0,"ProdPPId":"String","BCode":"String"}],"Type":{"ID":"String","Name":"String","NameEn":"String","LDefault":false,"Spend":false},"HCategory":{"ID":0,"Name":"String","ParentID":0,"HCode":"String","Hccrt":"String","NameEn":"String","CrTime":"\/Date(-62135596800000-0000)\/","Unid":"00000000000000000000000000000000","IsDefault":false,"Canceled":false,"ShortDescription":"String","Description":"String","UrlSlug":"String","VideoUrl":"String","ShortDescription2":"String","Description2":"String","MinCount":0},"Brutto":0,"SpendR":false,"PriceUR":0,"PriceUT":0,"MDRetail":0,"MDTrade":0,"SupDays":0,"PrStatus":false,"LNotInPrice":false,"MinCountRetail":0,"RegN":"String","RegDate":"\/Date(-62135596800000-0000)\/","RegEndDate":"\/Date(-62135596800000-0000)\/","HasSpec":false,"ReCalc":false,"ExciseC":0,"IsLinked":false,"UnitId":0,"MinCountTrade":0,"PPCatName":"String","Images":[{"Id":0,"FileName":"String","Link":"String","Checksum":"String","CreateTime":"\/Date(-62135596800000-0000)\/","UpdateTime":"\/Date(-62135596800000-0000)\/","IsMain":false}],"CBCode":"String","ScaleGroup":0,"Brand":{"BrandId":0,"Abbreviation":"String","Name":"String","BrandNameE":"String","Description":"String","Logo":"AA=="},"Attributes":{"String":"String"}}}],"ProdReceived":[{"id":0,"oper_id":0,"prod_id":"String","icount":0,"crtime":"\/Date(-62135596800000-0000)\/","ProdInfo":{"ID":"String","BCode":"String","BBCode":"String","InCode":"String","Name":"String","NameEn":"String","PackBCount":0,"PackCount":0,"Netto":0,"ByWeight":0,"CategoryID":"String","Category":{"CategoryID":"String","CategoryCode":"String","CategoryName":"String","Spend":false},"PPCatID":"String","PCatID":0,"ProducerID":"String","Producer":{"ProducerID":"String","ProducerName":"String","CountryId":"String","LOwn":false,"Speend":false,"ProducerNameEnglish":"String","Address":"String","PostalCode":"String","Phone":"String","Fax":"String","Person":"String","Email":"String","Ldefault":false,"MrgId":0,"Country":{"CountryId":"String","CountryNe":"String","LDefault":false,"Spend":false,"CountryNu":"String"},"ProducerCountry":"String"},"Vat":0,"LifeDays":0,"Unit":"String","ParentID":"String","MaxDiscount":0,"IsImported":false,"Dimensions":{"X":0,"Y":0,"Z":0},"PackCCount":0,"PDose":"String","IntCodeID":"String","IntCode":{"IntCodeID":"String","Name":"String","NameEn":"String","Vat":0,"TaxMethod":0,"Tax1":0,"TaxK":0},"ExciseID":0,"Excise":0,"DestNumber":"String","PackTypeID":0,"PriceGR":0,"PriceGT":0,"Spend":false,"VatType":0,"ExtendedInfo":{"ProdPPID":"String","Description":"String","Anotation":"String","GarantDays":0,"IsFastFood":false,"DetailedWarehousing":false,"TrackAndTrace":false,"BrandID":0,"Brand":{"BrandId":0,"Abbreviation":"String","Name":"String","BrandNameE":"String","Description":"String","Logo":"AA=="},"RType":0,"SizeId":0,"ColorId":0,"GenderId":0,"Size":{"Id":0,"Name":"String","SizeType":0},"Color":{"codeid":0,"mgrid":"00000000000000000000000000000000","hname":"String","hnamee":"String","hcode":"String","defval":false,"vm":0,"vp":0,"vi":0,"vd":"\/Date(-62135596800000-0000)\/","canceled":false,"crtime":"\/Date(-62135596800000-0000)\/","unid":"00000000000000000000000000000000","IUD":0},"Gender":{"codeid":0,"mgrid":"00000000000000000000000000000000","hname":"String","hnamee":"String","hcode":"String","defval":false,"vm":0,"vp":0,"vi":0,"vd":"\/Date(-62135596800000-0000)\/","canceled":false,"crtime":"\/Date(-62135596800000-0000)\/","unid":"00000000000000000000000000000000","IUD":0},"Meta":{"String":"String"}},"BarCodes":[{"Id":0,"ProdPPId":"String","BCode":"String"}],"Type":{"ID":"String","Name":"String","NameEn":"String","LDefault":false,"Spend":false},"HCategory":{"ID":0,"Name":"String","ParentID":0,"HCode":"String","Hccrt":"String","NameEn":"String","CrTime":"\/Date(-62135596800000-0000)\/","Unid":"00000000000000000000000000000000","IsDefault":false,"Canceled":false,"ShortDescription":"String","Description":"String","UrlSlug":"String","VideoUrl":"String","ShortDescription2":"String","Description2":"String","MinCount":0},"Brutto":0,"SpendR":false,"PriceUR":0,"PriceUT":0,"MDRetail":0,"MDTrade":0,"SupDays":0,"PrStatus":false,"LNotInPrice":false,"MinCountRetail":0,"RegN":"String","RegDate":"\/Date(-62135596800000-0000)\/","RegEndDate":"\/Date(-62135596800000-0000)\/","HasSpec":false,"ReCalc":false,"ExciseC":0,"IsLinked":false,"UnitId":0,"MinCountTrade":0,"PPCatName":"String","Images":[{"Id":0,"FileName":"String","Link":"String","Checksum":"String","CreateTime":"\/Date(-62135596800000-0000)\/","UpdateTime":"\/Date(-62135596800000-0000)\/","IsMain":false}],"CBCode":"String","ScaleGroup":0,"Brand":{"BrandId":0,"Abbreviation":"String","Name":"String","BrandNameE":"String","Description":"String","Logo":"AA=="},"Attributes":{"String":"String"}}}],"TaraMove":[{"move_id":0,"oper_id":0,"tara_id":0,"from_location_id":0,"to_location_id":0,"receive_confirmed":false,"receive_confirm_terminal_id":0,"receive_confirm_user_id":0}],"TerminalID":0,"Checks":[{"Id":0,"OperId":0,"ProdId":"String","CheckType":0,"ExtData":"String","CRTime":"\/Date(-62135596800000-0000)\/"}]},"TerminalID":0}
HTTP/1.1 200 OK
Content-Type: application/x-protobuf
Content-Length: length

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