Needio.Services

<back to all web services

AddUserAddressRequest

Requires Authentication
The following routes are available for this service:
All Verbs/User/AddUserAddress/
AddUserAddressRequest Parameters:
NameParameterData TypeRequiredDescription
UserAddressqueryUserAddressDTONo
IgnoreValidationqueryboolNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
AddUserAddressResponse Parameters:
NameParameterData TypeRequiredDescription
UserAddressformUserAddressDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
UserAddressDTO Parameters:
NameParameterData TypeRequiredDescription
UserAddressIdformintNo
AddressAliasformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
ZipCodeformstringNo
DistrictIdformint?No
CityIdformint?No
StateIdformint?No
CountryIdformint?No
DistrictformstringNo
StreetformstringNo
BuildingNoformstringNo
DoorNoformstringNo
AddressRecipeformstringNo
GeoAddressformstringNo
LocationformGeoLocationNo
InvoiceYnformboolNo
DeliveryYnformboolNo
ActiveYnformboolNo
DefaultYnformboolNo
PhoneNumberformstringNo
EmailformstringNo
InvoiceAddressTypeformInvoiceAddressTypes?No
InvoiceNameformstringNo
TaxOfficeformstringNo
TaxNoformstringNo
Registerformbool?No
DeliveryNameformstringNo
DeliverySurnameformstringNo
EInvoiceYnformbool?No
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
InvoiceAddressTypes Enum:
NameValue
Personel1
Company2
AddUserAddressResponse Parameters:
NameParameterData TypeRequiredDescription
UserAddressformUserAddressDTONo

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 /User/AddUserAddress/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	UserAddress: 
	{
		UserAddressId: 0,
		AddressAlias: String,
		Address1: String,
		Address2: String,
		City: String,
		State: String,
		Country: String,
		ZipCode: String,
		DistrictId: 0,
		CityId: 0,
		StateId: 0,
		CountryId: 0,
		District: String,
		Street: String,
		BuildingNo: String,
		DoorNo: String,
		AddressRecipe: String,
		GeoAddress: String,
		Location: 
		{
			Lon: String,
			Lat: String,
			GeoAddress: String,
			IsDeleted: False
		},
		InvoiceYn: False,
		DeliveryYn: False,
		ActiveYn: False,
		DefaultYn: False,
		PhoneNumber: String,
		Email: String,
		InvoiceAddressType: 0,
		InvoiceName: String,
		TaxOffice: String,
		TaxNo: String,
		Register: False,
		DeliveryName: String,
		DeliverySurname: String,
		EInvoiceYn: False
	},
	IgnoreValidation: False,
	start: 2020-07-06T01:09:39.3125471+03:00
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	UserAddress: 
	{
		UserAddressId: 0,
		AddressAlias: String,
		Address1: String,
		Address2: String,
		City: String,
		State: String,
		Country: String,
		ZipCode: String,
		DistrictId: 0,
		CityId: 0,
		StateId: 0,
		CountryId: 0,
		District: String,
		Street: String,
		BuildingNo: String,
		DoorNo: String,
		AddressRecipe: String,
		GeoAddress: String,
		Location: 
		{
			Lon: String,
			Lat: String,
			GeoAddress: String,
			IsDeleted: False
		},
		InvoiceYn: False,
		DeliveryYn: False,
		ActiveYn: False,
		DefaultYn: False,
		PhoneNumber: String,
		Email: String,
		InvoiceAddressType: 0,
		InvoiceName: String,
		TaxOffice: String,
		TaxNo: String,
		Register: False,
		DeliveryName: String,
		DeliverySurname: String,
		EInvoiceYn: False
	},
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	}
}