Needio.Services

<back to all web services

GetMyServicesRequest

Requires Authentication
Required role:Approved
The following routes are available for this service:
All Verbs/ServiceMan/GetMyServices
GetMyServicesRequest Parameters:
NameParameterData TypeRequiredDescription
UserIdqueryint?No
ServiceStatequeryServiceState?No
StoreIdqueryint?No
IgnoreStoreUserYnqueryboolNo
IsManagementqueryboolNo
UserAddressIdqueryint?No
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
isAdminformboolNo
CmdformstringNo
GetMyServicesResponse Parameters:
NameParameterData TypeRequiredDescription
ServicesformList<ServiceDto>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
ServiceDto Parameters:
NameParameterData TypeRequiredDescription
ServiceIdformintNo
StartDateformDateTimeNo
EndDateformDateTimeNo
ServiceStateformServiceStateNo
BuyerNotesformstringNo
SellerNotesformstringNo
PostIdformintNo
PostVariantIdformint?No
OfferIdformint?No
ServiceOfferIdformint?No
BuyerIdformintNo
TransIdformint?No
KeyManagementIdformint?No
ServiceOffersformList<ServiceOfferDto>No
ServiceLogsformList<ServiceLogDto>No
UserAddressformUserAddressDTONo
ReportInfoformServiceReportInfoNo
TimelineformServiceTimeLineNo
ServiceNameformstringNo
ServiceDescriptionformstringNo
AlwActformServiceAlwActNo
TransactionAmountformdecimalNo
PaymentTypeformPaymentTypesNo
KeyDeliveryTypeformServiceKeyDeliveryTypeNo
AddressAliasformstringNo
TrackingCodeformstringNo
TrackingUrlformstringNo
CargoKeyformstringNo
PriceTextformstringNo
StoreIdformintNo
SenderAddressformUserAddressDTONo
PhoneNumberformstringNo
TimelineTitleformstringNo
IsTakenFromAddressformboolNo
PostMediasformList<MediaDTO>No
AuditedBaseDto Parameters:
NameParameterData TypeRequiredDescription
CreatedOnformDateTimeNo
CreatedByformint?No
ModifiedOnformDateTime?No
ModifiedByformint?No
ServiceState Enum:
NameValue
WaitingAssignment1
WaitingSalerApproval2
SalerApproved11
SalerRejected12
BuyerCancelled13
KeyObtained15
KeyNotObtained16
ServiceStarted17
ServiceFinished18
ReportCreated19
ReportApproved20
BuyerApproved21
SalerAdminRejected42
ServiceOfferDto Parameters:
NameParameterData TypeRequiredDescription
ServiceOfferIdformintNo
PriceformdecimalNo
PriceMinformdecimalNo
PriceMaxformdecimalNo
PriceTypeformPriceTypesNo
OfferNotesformstringNo
PostIdformintNo
PostVarianttIdformint?No
PostHeaderformstringNo
ServiceNameformstringNo
ServiceDescriptionformstringNo
ServiceIdformintNo
AlwActformServiceOfferAlwActNo
StateformServiceOfferStateNo
ExpireDateformDateTime?No
OfferTypeformServiceOfferTypeNo
PriceTypes Enum:
NameValue
NoPrice0
SinglePrice1
MultiVariant2
PriceRange3
ServiceOfferAlwAct Enum:
NameValue
RequestOfferButtonVisible1
AddToBasketButtonVisible2
InBasketLabelVisible4
RequestRenewOfferButtonVisible8
ServiceOfferState Enum:
NameValue
New1
BuyerApproved2
BuyerRejected3
Expired4
ServiceOfferType Enum:
NameValue
Regular0
Extra1
ServiceLogDto Parameters:
NameParameterData TypeRequiredDescription
ServiceLogIdformintNo
ServiceStateformServiceStateNo
ServiceNoteformstringNo
ServiceIdformintNo
CreationAuditedBaseDto Parameters:
NameParameterData TypeRequiredDescription
CreatedOnformDateTimeNo
CreatedByformint?No
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
ExtensionDataformstringNo
IsHasOrderYnformboolNo
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
InvoiceAddressTypes Enum:
NameValue
Personel1
Company2
ServiceReportInfo Parameters:
NameParameterData TypeRequiredDescription
ServiceReportsformList<ServiceReportDto>No
HighRatingCountformintNo
MediumRatingCountformintNo
LowRatingCountformintNo
ServiceReportDto Parameters:
NameParameterData TypeRequiredDescription
ServiceReportIdformintNo
ReportNotesformstringNo
ReportRatingformServiceReportRatingNo
ServiceIdformintNo
SmServiceTaskIdformintNo
SmServiceTaskTitleformstringNo
SmServiceTaskDescriptionformstringNo
ReportMediasformList<MediaDTO>No
ServiceReportRating Enum:
NameValue
Low0
Medium1
High2
MediaDTO Parameters:
NameParameterData TypeRequiredDescription
PostIdformintNo
MediaIdformint?No
UsageTypeformUsageTypesNo
MediaTypeformMediaTypesNo
SourceformstringNo
MediaFileNameformstringNo
MediaMimeformstringNo
IsMainformboolNo
RefIdformint?No
OrderNumformintNo
ActionformDBActionNo
IsDeletedformboolNo
FriendlyURLformstringNo
PostVariantA1KeyformstringNo
SourceUrlformstringNo
ActiveYnformboolNo
UsageTypes Enum:
NameValue
StoreMedias1
StoreFiles2
MediaTypes Enum:
NameValue
icon0
Image1
Video2
Youtube3
Pdf8
File9
ThreeD10
Custom99
DBAction Enum:
NameValue
None0
Insert1
Update2
Delete3
ServiceTimeLine Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<ServiceTimeLineItem>No
AlwActformServiceTimeLineAlwActNo
FooterTitleformstringNo
FooterDescriptionformstringNo
ServiceTimeLineItem Parameters:
NameParameterData TypeRequiredDescription
TitleformstringNo
SubtitleformstringNo
StateformServiceTimeLineItemStateNo
MainColorformstringNo
TintColorformstringNo
DescriptionformstringNo
IsShowOfficeMapLinkVisibleformboolNo
IsShowAcceptServiceButtonVisibleformboolNo
IsShowServiceOffersButtonVisibleformboolNo
IsShowExtraOffersButtonVisibleformboolNo
IsDeliveryDateNotReachedVisibleformboolNo
IsGetCargoCodeButtonVisibleformboolNo
IsGoToCargoVisibleformboolNo
IsTrackCargoVisibleformboolNo
IsCargoErrorVisibleformboolNo
ShowServiceOffersTextformstringNo
ShowExtraServiceOffersTextformstringNo
ServiceTimeLineItemState Enum:
NameValue
Waiting0
InProgress1
Done2
Fail3
ServiceTimeLineAlwAct Enum:
NameValue
None0
IsCancelServiceButtonVisible1
IsShowReportButtonVisible2
ServiceAlwAct Enum:
NameValue
ShowReportsButtonVisible1
ShowOffersButtonVisible2
UpdateReportButtonVisible4
UpdateOfferButtonVisible8
DeliveryDateNotReached16
CreateBBCargoTrackingKeyVisible32
TrackCargoVisible64
GoToCargoVisible128
CargoErrorVisible256
ShowOfficeMapLinkVisible512
AddQuickOfferButtonVisible1024
PaymentTypes Enum:
NameValue
CreditCard1
Cash11
CreditCardOnDelivery12
Mixed21
Gift22
ServiceKeyDeliveryType Enum:
NameValue
ByShipping0
ByHand1
FromHome2
GetMyServicesResponse Parameters:
NameParameterData TypeRequiredDescription
ServicesformList<ServiceDto>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 /ServiceMan/GetMyServices HTTP/1.1 
Host: baseservices.needion.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	UserId: 0,
	ServiceState: 0,
	StoreId: 0,
	IgnoreStoreUserYn: False,
	IsManagement: False,
	UserAddressId: 0,
	start: 0001-01-01,
	DeviceUUID: String,
	APIKey: String,
	isAdmin: False,
	Cmd: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Services: 
	[
		{
			ServiceId: 0,
			StartDate: 0001-01-01,
			EndDate: 0001-01-01,
			ServiceState: 1,
			BuyerNotes: String,
			SellerNotes: String,
			PostId: 0,
			PostVariantId: 0,
			OfferId: 0,
			ServiceOfferId: 0,
			BuyerId: 0,
			TransId: 0,
			KeyManagementId: 0,
			ServiceOffers: 
			[
				{
					ServiceOfferId: 0,
					Price: 0,
					PriceMin: 0,
					PriceMax: 0,
					PriceType: 0,
					OfferNotes: String,
					PostId: 0,
					PostVarianttId: 0,
					PostHeader: String,
					ServiceName: String,
					ServiceDescription: String,
					ServiceId: 0,
					AlwAct: 1,
					State: 1,
					ExpireDate: 0001-01-01,
					OfferType: 0,
					CreatedOn: 0001-01-01,
					CreatedBy: 0,
					ModifiedOn: 0001-01-01,
					ModifiedBy: 0
				}
			],
			ServiceLogs: 
			[
				{
					ServiceLogId: 0,
					ServiceState: 1,
					ServiceNote: String,
					ServiceId: 0,
					CreatedOn: 0001-01-01,
					CreatedBy: 0
				}
			],
			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,
				ExtensionData: String,
				IsHasOrderYn: False
			},
			ReportInfo: 
			{
				ServiceReports: 
				[
					{
						ServiceReportId: 0,
						ReportNotes: String,
						ReportRating: 0,
						ServiceId: 0,
						SmServiceTaskId: 0,
						SmServiceTaskTitle: String,
						SmServiceTaskDescription: String,
						ReportMedias: 
						[
							{
								PostId: 0,
								MediaId: 0,
								UsageType: 1,
								MediaType: 0,
								Source: String,
								MediaFileName: String,
								MediaMime: String,
								IsMain: False,
								RefId: 0,
								OrderNum: 0,
								Action: 0,
								IsDeleted: False,
								FriendlyURL: String,
								PostVariantA1Key: String,
								SourceUrl: String,
								ActiveYn: False
							}
						],
						CreatedOn: 0001-01-01,
						CreatedBy: 0
					}
				],
				HighRatingCount: 0,
				MediumRatingCount: 0,
				LowRatingCount: 0
			},
			Timeline: 
			{
				Items: 
				[
					{
						
					}
				],
				AlwAct: 0,
				FooterTitle: String,
				FooterDescription: String
			},
			ServiceName: String,
			ServiceDescription: String,
			AlwAct: 1,
			TransactionAmount: 0,
			PaymentType: 1,
			KeyDeliveryType: 0,
			AddressAlias: String,
			TrackingCode: String,
			TrackingUrl: String,
			CargoKey: String,
			PriceText: String,
			StoreId: 0,
			SenderAddress: 
			{
				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,
				ExtensionData: String,
				IsHasOrderYn: False
			},
			PhoneNumber: String,
			TimelineTitle: String,
			IsTakenFromAddress: False,
			PostMedias: 
			[
				{
					PostId: 0,
					MediaId: 0,
					UsageType: 1,
					MediaType: 0,
					Source: String,
					MediaFileName: String,
					MediaMime: String,
					IsMain: False,
					RefId: 0,
					OrderNum: 0,
					Action: 0,
					IsDeleted: False,
					FriendlyURL: String,
					PostVariantA1Key: String,
					SourceUrl: String,
					ActiveYn: False
				}
			],
			CreatedOn: 0001-01-01,
			CreatedBy: 0,
			ModifiedOn: 0001-01-01,
			ModifiedBy: 0
		}
	],
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	},
	PageInfo: 
	{
		TotalRecordCount: 0,
		TotalPageCount: 0,
		CurrentPage: 0
	}
}