ApexERPHost

<back to all web services

GetLastProduction

Requires Authentication
The following routes are available for this service:
GET/Manufacturing/Production/LastProduced
GetLastProduction Parameters:
NameParameterData TypeRequiredDescription
TerminalIdqueryintNo
LocationIdqueryint?No
GetLastProductionResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ProductionformProduceLogNo
OperationformManufactureOperationNo
RecipeformProdRecipeWithDetailsNo
ProduceLog Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
DDateformDateTimeNo
ProdIDformstringNo
ProductTypeformintNo
RecipeIDformintNo
StatusformintNo
QuantityformdecimalNo
UserIdformintNo
TerminalIdformintNo
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
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
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
ProdRecipeWithDetails Parameters:
NameParameterData TypeRequiredDescription
RecipeformProdRecipeNo
MaterialListformList<ProdRecipeMaterial>No
ResultListformList<ProdRecipeResult>No
CheckListformList<ProdRecipeCheck>No
ProdRecipe Parameters:
NameParameterData TypeRequiredDescription
recipe_idformint?No
recipe_typeformintNo
prodpp_idformstringNo
cost_split_typeformintNo
spendformboolNo
bcodeformstringNo
products_nuformstringNo
category_idformstringNo
category_nuformstringNo
packcountformintNo
packbcountformdecimalNo
unitformstringNo
recipe_nameformstringNo
IsMainformboolNo
ProdRecipeMaterial Parameters:
NameParameterData TypeRequiredDescription
material_idformintNo
recipe_idformintNo
prodpp_idformstringNo
mcountformdecimalNo
sub_recipe_idformintNo
priorityformintNo
location_idformintNo
bcodeformstringNo
products_nuformstringNo
category_idformstringNo
category_nuformstringNo
packcountformintNo
packbcountformdecimalNo
unitformstringNo
location_nameformstringNo
ProdRecipeResult Parameters:
NameParameterData TypeRequiredDescription
result_idformintNo
recipe_idformintNo
prodpp_idformstringNo
icountformdecimalNo
cost_kformdecimalNo
bcodeformstringNo
products_nuformstringNo
category_idformstringNo
category_nuformstringNo
packcountformintNo
packbcountformdecimalNo
unitformstringNo
ProdRecipeCheck Parameters:
NameParameterData TypeRequiredDescription
idformintNo
recipe_idformintNo
prodpp_idformstringNo
check_idformintNo
bcodeformstringNo
products_nuformstringNo
category_idformstringNo
category_nuformstringNo
packcountformintNo
packbcountformdecimalNo
unitformstringNo
ex_dataformstringNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /Manufacturing/Production/LastProduced HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Production":{"ID":0,"DDate":"\/Date(-62135596800000-0000)\/","ProdID":"String","ProductType":0,"RecipeID":0,"Status":0,"Quantity":0,"UserId":0,"TerminalId":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},"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}}],"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},"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}}],"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)\/"}]},"Recipe":{"Recipe":{"recipe_id":0,"recipe_type":0,"prodpp_id":"String","cost_split_type":0,"spend":false,"bcode":"String","products_nu":"String","category_id":"String","category_nu":"String","packcount":0,"packbcount":0,"unit":"String","recipe_name":"String","IsMain":false},"MaterialList":[{"material_id":0,"recipe_id":0,"prodpp_id":"String","mcount":0,"sub_recipe_id":0,"priority":0,"location_id":0,"bcode":"String","products_nu":"String","category_id":"String","category_nu":"String","packcount":0,"packbcount":0,"unit":"String","location_name":"String"}],"ResultList":[{"result_id":0,"recipe_id":0,"prodpp_id":"String","icount":0,"cost_k":0,"bcode":"String","products_nu":"String","category_id":"String","category_nu":"String","packcount":0,"packbcount":0,"unit":"String"}],"CheckList":[{"id":0,"recipe_id":0,"prodpp_id":"String","check_id":0,"bcode":"String","products_nu":"String","category_id":"String","category_nu":"String","packcount":0,"packbcount":0,"unit":"String","ex_data":"String"}]}}