سرویس های مشتریان فروشگاه


ثبت نام


http://livegalleria.ir/customer/register

[Required] [StringLength(100, ErrorMessage = "رمز عبور باید بیشتر از شش کاراکتر باشد.", MinimumLength = 6)] string Password , string UserName , string FirstName , string LastName , string Address , string Cell , string PostalCode, string Email , string PhoneNumber , string Description

success: { result = 1 }
fail: result = {"0":name is required}

ویرایش اطلاعات


http://livegalleria.ir/customer/edit

string FirstName , string LastName , string Address , string Cell , string PostalCode , string Email , string PhoneNumber , string Description

success: { result = 1 }
fail: result = {"0":name is required}

تغییر رمز عبور


http://livegalleria.ir/customer/changepassword

string oldpassword,string newpassword

success: { result = 1 }
fail: result = [{errors}]

گرفتن اطلاعات مشتری


http://livegalleria.ir/customer/info

{ UserName, Address, FirstName, LastName, Id, PostalCode, Cell, GroupId, IsActive, PhoneNumber, Email, Description, RegisterType, StartDate }

گرفتن اطلاعات فروشگاه


http://livegalleria.ir/customer/shopinfo

{ UserName, ShopName, Email, Longitude, Latitude, CellNumber, PhoneNumber, ManagerName, ManagerLastName, logo , dom, setting = { s.LeftToRight, s.PicSizing, s.ShowCount, s.ShowLastUpdate, s.UpdateColor, s.SiteColor, s.TaxCost, s.PostCost, s.PostType, s.ShowDiscount, s.ShowPrice, dom, UpdateTime = s.UpdateTime.Format(), s.Contact, s.EnableOrder, s.ShowRate, s.SendEmail, s.SendSms } }

ورود


http://livegalleria.ir/customer/login

string UserName , string Password

success: { result = 1 وIsActive}
fail: result = {result=-1}

افزودن به علاقه مندی


http://livegalleria.ir/customer/AddToFavorite

i=0,..,n
ids[i]={productid}&....

success: status accepted(202) {row:(number of item added)10}
fail: status 200 with some error json

حذف علاقه مندی


http://livegalleria.ir/customer/RemoveFavorite

i=0,..,n
ids[i]={productid}&....

success: status accepted(202) {row:(number of item added)10}
fail: status 200 with some error json

سفارشات مشتری


http://livegalleria.ir/customer/Orders

no parameters

[{date, Id, Address, Code, Description, Mobile, Payed, Phone, PostalCode, ReceiverName, Status, TotalPrice, TotalPay}]

سفارشات مشتری


http://livegalleria.ir/customer/Orders

no parameters

[{date, Id, Address, Code, Description, Mobile, Payed, Phone, PostalCode, ReceiverName, Status, TotalPrice, TotalPay}]