Needio.Services

<back to all web services

ExtGetChatMessageListRequest

Requires Authentication
The following routes are available for this service:
All Verbs/Ext/GetStoreChatMessages/
ExtGetChatMessageListRequest Parameters:
NameParameterData TypeRequiredDescription
StoreIdqueryintNo
StartDatequeryDateTimeNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
ExtGetChatMessageListResponse Parameters:
NameParameterData TypeRequiredDescription
MessagesformList<ExternalOutMessage>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
ExternalOutMessage Parameters:
NameParameterData TypeRequiredDescription
StoreIdformintNo
SenderIdformintNo
SenderNameformstringNo
DateformDateTimeNo
MessageIdformstringNo
SeqIdformintNo
ExternalInMessage Parameters:
NameParameterData TypeRequiredDescription
ChatIdformstringNo
TypeformMessageTypesNo
TextformstringNo
MediaformChatMediaNo
LocationformGeoLocationNo
Location2formGeoLocationNo
RefNoformstringNo
MessageTypes Enum:
NameValue
Text1
Media2
Location3
Basket4
PaymentRequest11
Payment12
Approve21
Review22
Auto101
Cargo102
ChatMedia Parameters:
NameParameterData TypeRequiredDescription
IdformObjectIdNo
MediaTypeformMediaTypesNo
FileNameformstringNo
SourceformstringNo
MediaMimeformstringNo
UrlformstringNo
MediaTypes Enum:
NameValue
icon0
Image1
Video2
Youtube3
Pdf8
File9
Custom10
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
ExtGetChatMessageListResponse Parameters:
NameParameterData TypeRequiredDescription
MessagesformList<ExternalOutMessage>No

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

{
	StoreId: 0,
	StartDate: 0001-01-01,
	start: 2020-07-11T10:44:43.2912525+03:00
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Messages: 
	[
		{
			StoreId: 0,
			SenderId: 0,
			SenderName: String,
			Date: 0001-01-01,
			MessageId: String,
			SeqId: 0,
			ChatId: String,
			Type: 1,
			Text: String,
			Media: 
			{
				Id: 000000000000000000000000,
				MediaType: 0,
				FileName: String,
				Source: String,
				MediaMime: String,
				Url: String
			},
			Location: 
			{
				Lon: String,
				Lat: String,
				GeoAddress: String,
				IsDeleted: False
			},
			Location2: 
			{
				Lon: String,
				Lat: String,
				GeoAddress: String,
				IsDeleted: False
			},
			RefNo: String
		}
	],
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	}
}