ApexERPHost

<back to all web services

SaveDisUserCustomer

Requires Authentication
The following routes are available for this service:
PUT/Distribution/MobileUsers/Customers
SaveDisUserCustomer Parameters:
NameParameterData TypeRequiredDescription
PresalerCustomerbodyDistributionCustomerNo
DistributionCustomer Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserIdformintNo
BranchIdformintNo
CRTimeformDateTimeNo
SpendformboolNo
DriverIdformint?No
CarIdformint?No
RouteDaysformint[]No
UserformMobileUserNo
CustomerformCompanyBranchNo
CarformCarNo
DriverformDriverNo
ForwarderUserIdformint?No
ForwarderUserformMobileUserNo
MobileUser Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserNameformstringNo
SupervisorIdformint?No
PresalerIdformint?No
VanIdformint?No
PNformstringNo
CarIdformint?No
NameUformstringNo
PhoneformstringNo
EMailformstringNo
CanPayformboolNo
PayAccformstringNo
IsDeliveredformboolNo
BranchIdformint?No
CarformCarNo
PresalerformPresalerNo
SupervisorformDistributionSupervisorNo
VanformDistributionVanNo
BranchformCompanyBranchNo
SettingsformMobileUserSettingsNo
Car Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
NumberformstringNo
DescriptionformstringNo
DriverIdformint?No
CarTypeformint?No
Presaler Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CodeformstringNo
FullNameformstringNo
SpendformboolNo
DisCbanformboolNo
VisorIdformint?No
DistributionSupervisor Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
PersonalNumberformstringNo
ChannelIdformint?No
ChannelformDistributionChannelNo
SpendformboolNo
DistributionChannel Parameters:
NameParameterData TypeRequiredDescription
ChannelIdformintNo
NameformstringNo
SpendformboolNo
DistributionVan Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
CarIdformint?No
DriverIdformint?No
BranchIdformint?No
CarformCarNo
DriverformDriverNo
BranchformCompanyBranchNo
AllowRetailSaleformboolNo
RetailAccformstringNo
RetailAccInfoformAccountInfoNo
Driver Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
NameformstringNo
PerNumformstringNo
DrivingLicenseformstringNo
CompanyBranch Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CompanyIdformintNo
ParentIdformint?No
NameformstringNo
NameEnformstringNo
AddressIdformint?No
SpendformboolNo
AddressformAddressNo
CodeformstringNo
BranchNumformint?No
GroupIdformint?No
PhoneformstringNo
NoteformstringNo
CompanyformCompanyNo
CustomerParametersformCustomerParamsNo
BranchProdSpendListTypeformint?No
SupplierParamsformSupplierParamsNo
BankAccountsformList<CompanyBankAccount>No
BranchAccountsformList<CompanyBranchAccount>No
Address Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CityIdformstringNo
BlockIdformintNo
PostalCodeformstringNo
FullAddressformstringNo
LocationformGPSLocationNo
GPSLocation Parameters:
NameParameterData TypeRequiredDescription
LatitudeformdoubleNo
LongitudeformdoubleNo
Company Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
CodeformstringNo
NameformstringNo
NameEnformstringNo
IsOwnformboolNo
IsPartnerformboolNo
IsCustomerformboolNo
IsSupplierformboolNo
AddressIdformintNo
PhoneformstringNo
FaxformstringNo
EmailformstringNo
WebformstringNo
NoteformstringNo
SpendformboolNo
AddressformAddressNo
VatTypeformintNo
CustomerParams Parameters:
NameParameterData TypeRequiredDescription
BranchIdformintNo
CustomerTypeformint?No
ProductTypeformint?No
CustomerCategoryformint?No
CreditDaysformint?No
CreditLimitformdouble?No
OverdueLimitformdouble?No
SupplierParams Parameters:
NameParameterData TypeRequiredDescription
BranchIdformintNo
ProdSupplyDaysformint?No
MinOrderAmmountformdecimal?No
OrderGenIntervalDaysformint?No
ImporterformboolNo
MinOrderQuantityformdecimal?No
AutoOrderformboolNo
CompanyBankAccount Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
BranchIdformintNo
BankIdformstringNo
AccountformstringNo
NoteformstringNo
IsDefaultformboolNo
IntermediaryBankIdformstringNo
IntermediaryAccountformstringNo
CurrencyIdformstringNo
CompanyBranchAccount Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
BranchIdformint?No
AccTypeformintNo
AccountformstringNo
AccountInfo Parameters:
NameParameterData TypeRequiredDescription
AccformstringNo
NameformstringNo
SNformstringNo
WarehouseAddressformstringNo
AddressformstringNo
PhoneformstringNo
AccWithNameformstringNo
VatTypeformintNo
BranchIdformint?No
MobileUserSettings Parameters:
NameParameterData TypeRequiredDescription
UseCategoryRestrictionsformboolNo
UseProducerRestrictionsformboolNo
ShowNoRemProdformboolNo
WeekWorkDaysformList<int>No
WorkDayEndMinutesformintNo
ForceGPSLocationForVisitformboolNo
RemCheckformboolNo
CanReturnProductsformboolNo
CanEditClientGPSLocationformboolNo
CanEditPriceformboolNo
AllowVisitSaleWithoutDocumentUploadformboolNo
AllowVisitSaleWithoutWaybillUploadformboolNo
AllowVisitReturnWithoutDocumentUploadformboolNo
AllowVisitReturnWithoutWaybillUploadformboolNo
SplitReturnBySalesformboolNo
AllowGiftOrdersformboolNo
ShowProdCatalogformboolNo
DisallowOrdersformbool?No
UseMerchandisingformbool?No
AllowProdInventoryCheckingformbool?No
AllowFaAssetInventoryCheckingformbool?No
AllowImageFileCaptureformbool?No
AllowVideoFileCaptureformbool?No
AllowAudioFileCaptureformbool?No
SaveDisUserCustomerResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
NewIdformintNonew ID for user customer

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

HTTP + CSV

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

PUT /Distribution/MobileUsers/Customers HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"PresalerCustomer":{"Id":0,"UserId":0,"BranchId":0,"CRTime":"\/Date(-62135596800000-0000)\/","Spend":false,"DriverId":0,"CarId":0,"RouteDays":[0],"User":{"Id":0,"UserName":"String","SupervisorId":0,"PresalerId":0,"VanId":0,"PN":"String","CarId":0,"NameU":"String","Phone":"String","EMail":"String","CanPay":false,"PayAcc":"String","IsDelivered":false,"BranchId":0,"Car":{"ID":0,"Number":"String","Description":"String","DriverId":0,"CarType":0},"Presaler":{"Id":0,"Code":"String","FullName":"String","Spend":false,"DisCban":false,"VisorId":0},"Supervisor":{"Id":0,"Name":"String","PersonalNumber":"String","ChannelId":0,"Channel":{"ChannelId":0,"Name":"String","Spend":false},"Spend":false},"Van":{"Id":0,"Name":"String","CarId":0,"DriverId":0,"BranchId":0,"Car":{"ID":0,"Number":"String","Description":"String","DriverId":0,"CarType":0},"Driver":{"ID":0,"Name":"String","PerNum":"String","DrivingLicense":"String"},"Branch":{"Id":0,"CompanyId":0,"ParentId":0,"Name":"String","NameEn":"String","AddressId":0,"Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"Code":"String","BranchNum":0,"GroupId":0,"Phone":"String","Note":"String","Company":{"Id":0,"Code":"String","Name":"String","NameEn":"String","IsOwn":false,"IsPartner":false,"IsCustomer":false,"IsSupplier":false,"AddressId":0,"Phone":"String","Fax":"String","Email":"String","Web":"String","Note":"String","Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"VatType":0},"CustomerParameters":{"BranchId":0,"CustomerType":0,"ProductType":0,"CustomerCategory":0,"CreditDays":0,"CreditLimit":0,"OverdueLimit":0},"BranchProdSpendListType":0,"SupplierParams":{"BranchId":0,"ProdSupplyDays":0,"MinOrderAmmount":0,"OrderGenIntervalDays":0,"Importer":false,"MinOrderQuantity":0,"AutoOrder":false},"BankAccounts":[{"Id":0,"BranchId":0,"BankId":"String","Account":"String","Note":"String","IsDefault":false,"IntermediaryBankId":"String","IntermediaryAccount":"String","CurrencyId":"String"}],"BranchAccounts":[{"Id":0,"BranchId":0,"AccType":0,"Account":"String"}]},"AllowRetailSale":false,"RetailAcc":"String","RetailAccInfo":{"Acc":"String","Name":"String","SN":"String","WarehouseAddress":"String","Address":"String","Phone":"String","AccWithName":"String - String","VatType":0,"BranchId":0}},"Branch":{"Id":0,"CompanyId":0,"ParentId":0,"Name":"String","NameEn":"String","AddressId":0,"Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"Code":"String","BranchNum":0,"GroupId":0,"Phone":"String","Note":"String","Company":{"Id":0,"Code":"String","Name":"String","NameEn":"String","IsOwn":false,"IsPartner":false,"IsCustomer":false,"IsSupplier":false,"AddressId":0,"Phone":"String","Fax":"String","Email":"String","Web":"String","Note":"String","Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"VatType":0},"CustomerParameters":{"BranchId":0,"CustomerType":0,"ProductType":0,"CustomerCategory":0,"CreditDays":0,"CreditLimit":0,"OverdueLimit":0},"BranchProdSpendListType":0,"SupplierParams":{"BranchId":0,"ProdSupplyDays":0,"MinOrderAmmount":0,"OrderGenIntervalDays":0,"Importer":false,"MinOrderQuantity":0,"AutoOrder":false},"BankAccounts":[{"Id":0,"BranchId":0,"BankId":"String","Account":"String","Note":"String","IsDefault":false,"IntermediaryBankId":"String","IntermediaryAccount":"String","CurrencyId":"String"}],"BranchAccounts":[{"Id":0,"BranchId":0,"AccType":0,"Account":"String"}]},"Settings":{"UseCategoryRestrictions":false,"UseProducerRestrictions":false,"ShowNoRemProd":false,"WeekWorkDays":[0],"WorkDayEndMinutes":0,"ForceGPSLocationForVisit":false,"RemCheck":false,"CanReturnProducts":false,"CanEditClientGPSLocation":false,"CanEditPrice":false,"AllowVisitSaleWithoutDocumentUpload":false,"AllowVisitSaleWithoutWaybillUpload":false,"AllowVisitReturnWithoutDocumentUpload":false,"AllowVisitReturnWithoutWaybillUpload":false,"SplitReturnBySales":false,"AllowGiftOrders":false,"ShowProdCatalog":false,"DisallowOrders":false,"UseMerchandising":false,"AllowProdInventoryChecking":false,"AllowFaAssetInventoryChecking":false,"AllowImageFileCapture":false,"AllowVideoFileCapture":false,"AllowAudioFileCapture":false}},"Customer":{"Id":0,"CompanyId":0,"ParentId":0,"Name":"String","NameEn":"String","AddressId":0,"Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"Code":"String","BranchNum":0,"GroupId":0,"Phone":"String","Note":"String","Company":{"Id":0,"Code":"String","Name":"String","NameEn":"String","IsOwn":false,"IsPartner":false,"IsCustomer":false,"IsSupplier":false,"AddressId":0,"Phone":"String","Fax":"String","Email":"String","Web":"String","Note":"String","Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"VatType":0},"CustomerParameters":{"BranchId":0,"CustomerType":0,"ProductType":0,"CustomerCategory":0,"CreditDays":0,"CreditLimit":0,"OverdueLimit":0},"BranchProdSpendListType":0,"SupplierParams":{"BranchId":0,"ProdSupplyDays":0,"MinOrderAmmount":0,"OrderGenIntervalDays":0,"Importer":false,"MinOrderQuantity":0,"AutoOrder":false},"BankAccounts":[{"Id":0,"BranchId":0,"BankId":"String","Account":"String","Note":"String","IsDefault":false,"IntermediaryBankId":"String","IntermediaryAccount":"String","CurrencyId":"String"}],"BranchAccounts":[{"Id":0,"BranchId":0,"AccType":0,"Account":"String"}]},"Car":{"ID":0,"Number":"String","Description":"String","DriverId":0,"CarType":0},"Driver":{"ID":0,"Name":"String","PerNum":"String","DrivingLicense":"String"},"ForwarderUserId":0,"ForwarderUser":{"Id":0,"UserName":"String","SupervisorId":0,"PresalerId":0,"VanId":0,"PN":"String","CarId":0,"NameU":"String","Phone":"String","EMail":"String","CanPay":false,"PayAcc":"String","IsDelivered":false,"BranchId":0,"Car":{"ID":0,"Number":"String","Description":"String","DriverId":0,"CarType":0},"Presaler":{"Id":0,"Code":"String","FullName":"String","Spend":false,"DisCban":false,"VisorId":0},"Supervisor":{"Id":0,"Name":"String","PersonalNumber":"String","ChannelId":0,"Channel":{"ChannelId":0,"Name":"String","Spend":false},"Spend":false},"Van":{"Id":0,"Name":"String","CarId":0,"DriverId":0,"BranchId":0,"Car":{"ID":0,"Number":"String","Description":"String","DriverId":0,"CarType":0},"Driver":{"ID":0,"Name":"String","PerNum":"String","DrivingLicense":"String"},"Branch":{"Id":0,"CompanyId":0,"ParentId":0,"Name":"String","NameEn":"String","AddressId":0,"Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"Code":"String","BranchNum":0,"GroupId":0,"Phone":"String","Note":"String","Company":{"Id":0,"Code":"String","Name":"String","NameEn":"String","IsOwn":false,"IsPartner":false,"IsCustomer":false,"IsSupplier":false,"AddressId":0,"Phone":"String","Fax":"String","Email":"String","Web":"String","Note":"String","Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"VatType":0},"CustomerParameters":{"BranchId":0,"CustomerType":0,"ProductType":0,"CustomerCategory":0,"CreditDays":0,"CreditLimit":0,"OverdueLimit":0},"BranchProdSpendListType":0,"SupplierParams":{"BranchId":0,"ProdSupplyDays":0,"MinOrderAmmount":0,"OrderGenIntervalDays":0,"Importer":false,"MinOrderQuantity":0,"AutoOrder":false},"BankAccounts":[{"Id":0,"BranchId":0,"BankId":"String","Account":"String","Note":"String","IsDefault":false,"IntermediaryBankId":"String","IntermediaryAccount":"String","CurrencyId":"String"}],"BranchAccounts":[{"Id":0,"BranchId":0,"AccType":0,"Account":"String"}]},"AllowRetailSale":false,"RetailAcc":"String","RetailAccInfo":{"Acc":"String","Name":"String","SN":"String","WarehouseAddress":"String","Address":"String","Phone":"String","AccWithName":"String - String","VatType":0,"BranchId":0}},"Branch":{"Id":0,"CompanyId":0,"ParentId":0,"Name":"String","NameEn":"String","AddressId":0,"Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"Code":"String","BranchNum":0,"GroupId":0,"Phone":"String","Note":"String","Company":{"Id":0,"Code":"String","Name":"String","NameEn":"String","IsOwn":false,"IsPartner":false,"IsCustomer":false,"IsSupplier":false,"AddressId":0,"Phone":"String","Fax":"String","Email":"String","Web":"String","Note":"String","Spend":false,"Address":{"Id":0,"CityId":"String","BlockId":0,"PostalCode":"String","FullAddress":"String","Location":{"Latitude":0,"Longitude":0}},"VatType":0},"CustomerParameters":{"BranchId":0,"CustomerType":0,"ProductType":0,"CustomerCategory":0,"CreditDays":0,"CreditLimit":0,"OverdueLimit":0},"BranchProdSpendListType":0,"SupplierParams":{"BranchId":0,"ProdSupplyDays":0,"MinOrderAmmount":0,"OrderGenIntervalDays":0,"Importer":false,"MinOrderQuantity":0,"AutoOrder":false},"BankAccounts":[{"Id":0,"BranchId":0,"BankId":"String","Account":"String","Note":"String","IsDefault":false,"IntermediaryBankId":"String","IntermediaryAccount":"String","CurrencyId":"String"}],"BranchAccounts":[{"Id":0,"BranchId":0,"AccType":0,"Account":"String"}]},"Settings":{"UseCategoryRestrictions":false,"UseProducerRestrictions":false,"ShowNoRemProd":false,"WeekWorkDays":[0],"WorkDayEndMinutes":0,"ForceGPSLocationForVisit":false,"RemCheck":false,"CanReturnProducts":false,"CanEditClientGPSLocation":false,"CanEditPrice":false,"AllowVisitSaleWithoutDocumentUpload":false,"AllowVisitSaleWithoutWaybillUpload":false,"AllowVisitReturnWithoutDocumentUpload":false,"AllowVisitReturnWithoutWaybillUpload":false,"SplitReturnBySales":false,"AllowGiftOrders":false,"ShowProdCatalog":false,"DisallowOrders":false,"UseMerchandising":false,"AllowProdInventoryChecking":false,"AllowFaAssetInventoryChecking":false,"AllowImageFileCapture":false,"AllowVideoFileCapture":false,"AllowAudioFileCapture":false}}}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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