Needio.Services

<back to all web services

CreateRequestReturnByBuyerRequest

Requires Authentication
Required role:Approved
The following routes are available for this service:
All Verbs/Trans/CreateRequestReturnByBuyer/
CreateRequestReturnByBuyerRequest Parameters:
NameParameterData TypeRequiredDescription
TransIdqueryintNo
DeliveryTypequeryDeliveryTypesNo
ReturnItemListqueryList<CustomReturnItemDTO>No
WorkingUserTypequeryWorkingUserTypeNo
AdminUserIdqueryintNo
AdminUserNamequerystringNo
AdminReasonquerystringNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
CreateRequestReturnByBuyerResponse Parameters:
NameParameterData TypeRequiredDescription
InsertReturnIdformintNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
DeliveryTypes Enum:
NameValue
None0
DeliveryToAddress1
DeliveryInStore2
DeliveryByCargo4
CustomReturnItemDTO Parameters:
NameParameterData TypeRequiredDescription
ToReturnformboolNo
ReturnItemDTO Parameters:
NameParameterData TypeRequiredDescription
ReturnItemIdformintNo
ReturnIdformintNo
TransItemIdformintNo
PostIdformint?No
PostVariantIdformint?No
NameformstringNo
ReasonIdformshort?No
ReasonformstringNo
DescriptionformstringNo
ListPriceformdecimalNo
SalePriceformdecimalNo
UnitPriceformdecimalNo
QuantityformintNo
TotalPriceformdecimalNo
MediaIdformint?No
AlwActformReturnItemAlwActNo
InProgressCountformintNo
MaxReturnCountformintNo
PaidPriceformdecimal?No
TransactionItemformTransactionItemDTONo
ReturnItemAlwAct Enum:
NameValue
CanReturn1
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
WorkingUserType Enum:
NameValue
Buyer1
Seller2
Admin3
Hangfire4
AdminForBuyer5
AdminForSeller6
CreateRequestReturnByBuyerResponse Parameters:
NameParameterData TypeRequiredDescription
InsertReturnIdformintNo

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

{
	TransId: 0,
	DeliveryType: 0,
	ReturnItemList: 
	[
		{
			ToReturn: False,
			ReturnItemId: 0,
			ReturnId: 0,
			TransItemId: 0,
			PostId: 0,
			PostVariantId: 0,
			Name: String,
			ReasonId: 0,
			Reason: String,
			Description: String,
			ListPrice: 0,
			SalePrice: 0,
			UnitPrice: 0,
			Quantity: 0,
			TotalPrice: 0,
			MediaId: 0,
			AlwAct: 1,
			InProgressCount: 0,
			MaxReturnCount: 0,
			PaidPrice: 0,
			TransactionItem: 
			{
				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
			}
		}
	],
	WorkingUserType: 1,
	AdminUserId: 0,
	AdminUserName: String,
	AdminReason: String,
	start: 2021-10-27T06:28:19.8056975+03:00,
	DeviceUUID: String,
	APIKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	InsertReturnId: 0,
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	},
	PageInfo: 
	{
		TotalRecordCount: 0,
		TotalPageCount: 0,
		CurrentPage: 0
	}
}