Needio.Services

<back to all web services

GetMySalesRequest

Requires Authentication
Required role:Approved
The following routes are available for this service:
All Verbs/Trans/GetMySales/
GetMySalesRequest Parameters:
NameParameterData TypeRequiredDescription
TransListTypesqueryTransactionListTypes?No
SearchTextquerystringNo
StoreIdqueryintNo
IncludeStoreYnqueryboolNo
IncludeItemsYnqueryboolNo
PagequeryintNo
CountqueryintNo
ShowBuyerCancelledqueryboolNo
TransIdqueryintNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
GetMySalesResponse Parameters:
NameParameterData TypeRequiredDescription
SalesformList<TransactionDTO>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
TransactionDTO Parameters:
NameParameterData TypeRequiredDescription
TransactionHeaderIdformintNo
TransIdformintNo
StoreIdformintNo
PostTypeIdformintNo
SessionIdformstringNo
PaymentTypeformPaymentTypesNo
SalerformUserInfoNo
BuyerformUserInfoNo
TransDateformDateTimeNo
ApproveDateformDateTime?No
BasketTotalformdecimalNo
ShippingAmountformdecimalNo
TransAmountformdecimalNo
GiftAmountformdecimal?No
CommisionRateformdecimalNo
CommisionAmountformdecimalNo
StatusformTransactionStatusesNo
ChatStatusformChatStatusesNo
TransStateformTransactionStatesNo
PaymentStatusformPaymentStatusesNo
IsInvoicedformboolNo
ReturnedYnformboolNo
ShippingCodeformstringNo
ShippingCode2formstringNo
ShippingDateformDateTime?No
ShippedDateformDateTime?No
ShippingExtentformshort?No
DeliveryStatusformshort?No
ExtrernalInvoiceNoformstringNo
PaymentCompletedYnformbool?No
ShippingMethodIdformshort?No
ShipmentTypeformShipmentTypesNo
ReasonIdformshort?No
ReasonformstringNo
StoreformStoreDTONo
TransactionItemsformList<TransactionItemDTO>No
RatedYnformboolNo
AlwActformTransactionAlwActNo
DeliveryTypeformDeliveryTypesNo
AllowedReturnDateformDateTime?No
PaymentAmountformdecimalNo
InfoTextformList<string>No
TYearformstringNo
TMonthformstringNo
OrderDataformstringNo
PaymentTypes Enum:
NameValue
CreditCard1
Cash11
CreditCardOnDelivery12
Mixed21
Gift22
UserInfo Parameters:
NameParameterData TypeRequiredDescription
UserIdformintNo
UserNameformstringNo
FirstNameformstringNo
UserFullNameformstringNo
SurnameformstringNo
NickNameformstringNo
ProfileImageformMediaDTONo
UserSocialInfoformUserSocialInfoDTONo
AvatarformstringNo
MediaDTO Parameters:
NameParameterData TypeRequiredDescription
PostIdformintNo
MediaIdformint?No
MediaTypeformMediaTypesNo
SourceformstringNo
MediaFileNameformstringNo
MediaMimeformstringNo
IsMainformboolNo
RefIdformint?No
OrderNumformintNo
ActionformDBActionNo
IsDeletedformboolNo
FriendlyURLformstringNo
PostVariantA1KeyformstringNo
SourceUrlformstringNo
ActiveYnformboolNo
MediaTypes Enum:
NameValue
icon0
Image1
Video2
Youtube3
Pdf8
File9
ThreeD10
Custom99
DBAction Enum:
NameValue
None0
Insert1
Update2
Delete3
UserSocialInfoDTO Parameters:
NameParameterData TypeRequiredDescription
AvgRateformdoubleNo
RateCountformintNo
LikeCountformintNo
BanCountformintNo
BannedCountformintNo
FollowCountformintNo
FollowedCountformintNo
ActivePostCountformintNo
ViewCountformintNo
DidUserLikeformboolNo
DidUserBanformboolNo
DidUserBannedformboolNo
DidUserRateformboolNo
DidUserFollowformboolNo
DidUserFollowedformboolNo
TransactionStatuses Enum:
NameValue
Draft0
InProgress1
SalerApproved11
SalerRejected12
BuyerCancelled13
SalerStartShippment16
ShipmentStarted17
ShipmentCanceled19
BuyerApproved21
BuyerRejected22
AdminApproved41
AdminRejected42
Completed101
ReturnedItem102
SalerFirstNotification201
SalerSecondNotification202
BuyerFirstNotification203
BuyerSecondNotification204
ChatStatuses Enum:
NameValue
Active1
WaitForSalerAction2
WaitForBuyerAction3
WaitForAdminAction4
WaitForRateAction5
WaitForShipAction6
ShipmentReturned7
Completed10
Archived11
Deleted99
TransactionStates Enum:
NameValue
Draft0
InProgress1
Completed2
Cancelled3
PaymentStatuses Enum:
NameValue
Unknown0
InProgress1
Approved2
Refunded3
Cancelled4
ShipmentTypes Enum:
NameValue
None0
Online1
Manual2
External3
StoreDTO Parameters:
NameParameterData TypeRequiredDescription
StoreIdformintNo
StoreNameformstringNo
StoreHeaderformstringNo
SummaryformstringNo
DescriptionformstringNo
PostTypeIdformshortNo
LocationformGeoLocationNo
BadgesformList<ItemBadgeDTO>No
MainMediaformMediaDTONo
SocialInfoformItemSocialInfoDTONo
StoreStatusformItemStatusesNo
StoreStateformItemStatesNo
UserIdformintNo
OwnerformUserInfoNo
ActionformDBActionNo
SaleLocalYnformboolNo
SaleCountryYnformboolNo
DeliveryToAddressYnformboolNo
DeliveryInStoreYnformboolNo
DeliveryByCargoformboolNo
OpenYnformboolNo
ShippingPriceYnformboolNo
ShippingAmountformdecimal?No
ShippingUpperLimitformdecimal?No
ShippingUpperAmountformdecimal?No
MaxDistanceformshort?No
DistanceformdoubleNo
MapAvatarformstringNo
StartDateformDateTime?No
EndDateformDateTime?No
OpenHoursformWeekOpenHoursNo
AlwActformintNo
MinAmountForOrderformdecimal?No
AverageServiceTimeformshort?No
ClosedYnformboolNo
FriendlyURLformstringNo
CategoryIdformshortNo
CategoryKeyformstringNo
ChatMethodformChatMethodsNo
AllowPaymentOnAddresformboolNo
AllowedPaymentsformstringNo
AttributeDataformstringNo
AttributeMetaformstringNo
GeoAddressformstringNo
VersionStatusformVersionStatusNo
BlockedYnformboolNo
EmailformstringNo
PhoneformstringNo
StatusInfoHashTagformstringNo
StatusInfoTextformstringNo
TrustedYnformboolNo
StoreCustomformStoreCustomDtoNo
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
ItemBadgeDTO Parameters:
NameParameterData TypeRequiredDescription
BadgeIdformintNo
ItemIdformintNo
BadgeTypeIdformshortNo
StartDateformDateTime?No
EndDateformDateTime?No
Priortyformshort?No
ActiveYnformboolNo
ItemSocialInfoDTO Parameters:
NameParameterData TypeRequiredDescription
AvgRateformdecimalNo
RateCountformintNo
Rate1CountformintNo
Rate2CountformintNo
Rate3CountformintNo
Rate4CountformintNo
Rate5CountformintNo
LikeCountformintNo
FollowCountformintNo
ViewCountformintNo
DidUserLikeformboolNo
DidUserRateformboolNo
DidUserFollowformboolNo
CanBeSharedformboolNo
ScoreformshortNo
ApprovedDateformDateTime?No
ItemStatuses Enum:
NameValue
Draft0
Pending1
Rejected2
Published10
Archived11
Blocked12
Deleted99
ItemStates Enum:
NameValue
New0
Exist10
Archived11
Bloked12
Deleted99
WeekOpenHours Parameters:
NameParameterData TypeRequiredDescription
OpenHoursIdformint?No
Open7x24formboolNo
OfflinePOYnformboolNo
Day1formDayOpenHoursNo
Day2formDayOpenHoursNo
Day3formDayOpenHoursNo
Day4formDayOpenHoursNo
Day5formDayOpenHoursNo
Day6formDayOpenHoursNo
Day7formDayOpenHoursNo
ActionformDBActionNo
DayOpenHours Parameters:
NameParameterData TypeRequiredDescription
OpenHourIdformintNo
WeekDayformintNo
IsOpenformboolNo
StartformTimeSpan?No
EndformTimeSpan?No
ChatMethods Enum:
NameValue
NoChat0
Platform1
External2
VersionStatus Enum:
NameValue
AddOrEdit1
Approved2
DeleteRequest3
Deleted4
StoreCustomDto Parameters:
NameParameterData TypeRequiredDescription
StoreIdformintNo
StoreCustomIdformintNo
ExternalYnformboolNo
ExtProviderIdformExternalProvidersNo
ExtProviderformstringNo
SecretKeyformstringNo
ApiKeyformstringNo
ChatMethodformChatMethodsNo
TransTrackMethodformTransactionTrackMethodsNo
NotificationMethodformNotificationMethodsNo
StockCodeControlYnformboolNo
PreferedShipmentTypeformShipmentTypesNo
PreferedShipmentMethodIdformShippingCompanies?No
PreferedReturnShipmentTypeformShipmentTypesNo
PreferedReturnShipmentMethodIdformShippingCompanies?No
PreferedReturnShipmentDescriptionformstringNo
ExtensionDataformstringNo
ExternalProviders Enum:
NameValue
Needion0
Ayensoft1
Entegra2
StockMount11
TransactionTrackMethods Enum:
NameValue
Platform1
External2
NotificationMethods Enum:
NameValue
None0
OnlyFCM1
All2
ShippingCompanies Enum:
NameValue
YurticiKargo1
ArasKargo2
UPSKargo3
MNGKargo4
SuratKargo5
DHLKargo6
PTTKargo8
TransactionItemDTO Parameters:
NameParameterData TypeRequiredDescription
TransItemIdformintNo
StoreIdformint?No
PostIdformint?No
PostVariantIdformint?No
NameformstringNo
DescriptionformstringNo
ListPriceformdecimalNo
UnitPriceformdecimalNo
QuantityformintNo
TotalPriceformdecimalNo
MediaIdformint?No
RatedYnformboolNo
ReturnedYnformboolNo
ReturnedQuantityformintNo
AlwActformTransactionItemAlwActNo
AllowReturnformboolNo
AllowedReturnDateformDateTime?No
ReturnCountformintNo
MediaUrlformstringNo
CategoryformstringNo
PaidPriceformdecimal?No
DiscountAmountformdecimal?No
MessageformstringNo
NetUnitPriceformdecimal?No
NetTotalPriceformdecimal?No
CampaignIdformint?No
ItemDataformstringNo
SerialNumberformstringNo
TransactionItemAlwAct Enum:
NameValue
CanRate1
CanReturn2
ShowReturnInfo4
AllowSerialNumber8
TransactionAlwAct Enum:
NameValue
ActionRequired1
SalerReject2
SalerApprove4
SalerApproveByCode8
SalerShipping16
SalerExtendShippingDate32
ShowBuyerInvoiceInfo64
BuyerReturn128
BuyerCancel256
BuyerApprov512
BuyerReject1024
BuyerRateStore2048
ShowCargoInfo4096
ShowHowToShipInfo8192
DeliveryTypes Enum:
NameValue
None0
DeliveryToAddress1
DeliveryInStore2
DeliveryByCargo4
TransactionListTypes Enum:
NameValue
Drafts0
InProgress1
Approved2
Shipped3
Rejected4
Cancelled5
New6
All10
BuyerCancelled13
Completed101
Returned102
GetMySalesResponse Parameters:
NameParameterData TypeRequiredDescription
SalesformList<TransactionDTO>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 /Trans/GetMySales/ HTTP/1.1 
Host: baseservices.needion.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	TransListTypes: 0,
	SearchText: String,
	StoreId: 0,
	IncludeStoreYn: False,
	IncludeItemsYn: False,
	Page: 0,
	Count: 0,
	ShowBuyerCancelled: False,
	TransId: 0,
	start: 2021-10-20T23:30:08.4081561+03:00,
	DeviceUUID: String,
	APIKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Sales: 
	[
		{
			TransactionHeaderId: 0,
			TransId: 0,
			StoreId: 0,
			PostTypeId: 0,
			SessionId: String,
			PaymentType: 1,
			Saler: 
			{
				UserId: 0,
				UserName: String,
				FirstName: String,
				UserFullName: String,
				Surname: String,
				NickName: String,
				ProfileImage: 
				{
					PostId: 0,
					MediaId: 0,
					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
				},
				UserSocialInfo: 
				{
					AvgRate: 0,
					RateCount: 0,
					LikeCount: 0,
					BanCount: 0,
					BannedCount: 0,
					FollowCount: 0,
					FollowedCount: 0,
					ActivePostCount: 0,
					ViewCount: 0,
					DidUserLike: False,
					DidUserBan: False,
					DidUserBanned: False,
					DidUserRate: False,
					DidUserFollow: False,
					DidUserFollowed: False
				},
				Avatar: String
			},
			Buyer: 
			{
				UserId: 0,
				UserName: String,
				FirstName: String,
				UserFullName: String,
				Surname: String,
				NickName: String,
				ProfileImage: 
				{
					PostId: 0,
					MediaId: 0,
					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
				},
				UserSocialInfo: 
				{
					AvgRate: 0,
					RateCount: 0,
					LikeCount: 0,
					BanCount: 0,
					BannedCount: 0,
					FollowCount: 0,
					FollowedCount: 0,
					ActivePostCount: 0,
					ViewCount: 0,
					DidUserLike: False,
					DidUserBan: False,
					DidUserBanned: False,
					DidUserRate: False,
					DidUserFollow: False,
					DidUserFollowed: False
				},
				Avatar: String
			},
			TransDate: 0001-01-01,
			ApproveDate: 0001-01-01,
			BasketTotal: 0,
			ShippingAmount: 0,
			TransAmount: 0,
			GiftAmount: 0,
			CommisionRate: 0,
			CommisionAmount: 0,
			Status: 0,
			ChatStatus: 1,
			TransState: 0,
			PaymentStatus: 0,
			IsInvoiced: False,
			ReturnedYn: False,
			ShippingCode: String,
			ShippingCode2: String,
			ShippingDate: 0001-01-01,
			ShippedDate: 0001-01-01,
			ShippingExtent: 0,
			DeliveryStatus: 0,
			ExtrernalInvoiceNo: String,
			PaymentCompletedYn: False,
			ShippingMethodId: 0,
			ShipmentType: 0,
			ReasonId: 0,
			Reason: String,
			Store: 
			{
				StoreId: 0,
				StoreName: String,
				StoreHeader: String,
				Summary: String,
				Description: String,
				PostTypeId: 0,
				Location: 
				{
					Lon: String,
					Lat: String,
					GeoAddress: String,
					IsDeleted: False
				},
				Badges: 
				[
					{
						BadgeId: 0,
						ItemId: 0,
						BadgeTypeId: 0,
						StartDate: 0001-01-01,
						EndDate: 0001-01-01,
						Priorty: 0,
						ActiveYn: False
					}
				],
				MainMedia: 
				{
					PostId: 0,
					MediaId: 0,
					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
				},
				SocialInfo: 
				{
					AvgRate: 0,
					RateCount: 0,
					Rate1Count: 0,
					Rate2Count: 0,
					Rate3Count: 0,
					Rate4Count: 0,
					Rate5Count: 0,
					LikeCount: 0,
					FollowCount: 0,
					ViewCount: 0,
					DidUserLike: False,
					DidUserRate: False,
					DidUserFollow: False,
					CanBeShared: False,
					Score: 0,
					ApprovedDate: 0001-01-01
				},
				StoreStatus: 0,
				StoreState: 0,
				UserId: 0,
				Owner: 
				{
					UserId: 0,
					UserName: String,
					FirstName: String,
					UserFullName: String,
					Surname: String,
					NickName: String,
					ProfileImage: 
					{
						PostId: 0,
						MediaId: 0,
						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
					},
					UserSocialInfo: 
					{
						AvgRate: 0,
						RateCount: 0,
						LikeCount: 0,
						BanCount: 0,
						BannedCount: 0,
						FollowCount: 0,
						FollowedCount: 0,
						ActivePostCount: 0,
						ViewCount: 0,
						DidUserLike: False,
						DidUserBan: False,
						DidUserBanned: False,
						DidUserRate: False,
						DidUserFollow: False,
						DidUserFollowed: False
					},
					Avatar: String
				},
				Action: 0,
				SaleLocalYn: False,
				SaleCountryYn: False,
				DeliveryToAddressYn: False,
				DeliveryInStoreYn: False,
				DeliveryByCargo: False,
				OpenYn: False,
				ShippingPriceYn: False,
				ShippingAmount: 0,
				ShippingUpperLimit: 0,
				ShippingUpperAmount: 0,
				MaxDistance: 0,
				Distance: 0,
				MapAvatar: String,
				StartDate: 0001-01-01,
				EndDate: 0001-01-01,
				OpenHours: 
				{
					OpenHoursId: 0,
					Open7x24: False,
					OfflinePOYn: False,
					Day1: 
					{
						OpenHourId: 0,
						WeekDay: 0,
						IsOpen: False,
						Start: PT0S,
						End: PT0S
					},
					Day2: 
					{
						OpenHourId: 0,
						WeekDay: 0,
						IsOpen: False,
						Start: PT0S,
						End: PT0S
					},
					Day3: 
					{
						OpenHourId: 0,
						WeekDay: 0,
						IsOpen: False,
						Start: PT0S,
						End: PT0S
					},
					Day4: 
					{
						OpenHourId: 0,
						WeekDay: 0,
						IsOpen: False,
						Start: PT0S,
						End: PT0S
					},
					Day5: 
					{
						OpenHourId: 0,
						WeekDay: 0,
						IsOpen: False,
						Start: PT0S,
						End: PT0S
					},
					Day6: 
					{
						OpenHourId: 0,
						WeekDay: 0,
						IsOpen: False,
						Start: PT0S,
						End: PT0S
					},
					Day7: 
					{
						OpenHourId: 0,
						WeekDay: 0,
						IsOpen: False,
						Start: PT0S,
						End: PT0S
					},
					Action: 0
				},
				AlwAct: 0,
				MinAmountForOrder: 0,
				AverageServiceTime: 0,
				ClosedYn: False,
				FriendlyURL: String,
				CategoryId: 0,
				CategoryKey: String,
				ChatMethod: 0,
				AllowPaymentOnAddres: False,
				AllowedPayments: String,
				AttributeData: String,
				AttributeMeta: String,
				GeoAddress: String,
				VersionStatus: 1,
				BlockedYn: False,
				Email: String,
				Phone: String,
				StatusInfoHashTag: String,
				StatusInfoText: String,
				TrustedYn: False,
				StoreCustom: 
				{
					StoreId: 0,
					StoreCustomId: 0,
					ExternalYn: False,
					ExtProviderId: 0,
					ExtProvider: String,
					SecretKey: String,
					ApiKey: String,
					ChatMethod: 0,
					TransTrackMethod: 1,
					NotificationMethod: 0,
					StockCodeControlYn: False,
					PreferedShipmentType: 0,
					PreferedShipmentMethodId: 0,
					PreferedReturnShipmentType: 0,
					PreferedReturnShipmentMethodId: 0,
					PreferedReturnShipmentDescription: String,
					ExtensionData: String
				}
			},
			TransactionItems: 
			[
				{
					TransItemId: 0,
					StoreId: 0,
					PostId: 0,
					PostVariantId: 0,
					Name: String,
					Description: String,
					ListPrice: 0,
					UnitPrice: 0,
					Quantity: 0,
					TotalPrice: 0,
					MediaId: 0,
					RatedYn: False,
					ReturnedYn: False,
					ReturnedQuantity: 0,
					AlwAct: 1,
					AllowReturn: False,
					AllowedReturnDate: 0001-01-01,
					ReturnCount: 0,
					MediaUrl: String,
					Category: String,
					PaidPrice: 0,
					DiscountAmount: 0,
					Message: String,
					NetUnitPrice: 0,
					NetTotalPrice: 0,
					CampaignId: 0,
					ItemData: String,
					SerialNumber: String
				}
			],
			RatedYn: False,
			AlwAct: 1,
			DeliveryType: 0,
			AllowedReturnDate: 0001-01-01,
			PaymentAmount: 0,
			InfoText: 
			[
				String
			],
			TYear: String,
			TMonth: String,
			OrderData: String
		}
	],
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	},
	PageInfo: 
	{
		TotalRecordCount: 0,
		TotalPageCount: 0,
		CurrentPage: 0
	}
}