Needio.Services

<back to all web services

CreateRequestReturnByBuyerRequest

The following routes are available for this service:
All Verbs/Trans/CreateRequestReturnByBuyer/
CreateRequestReturnByBuyerRequest Parameters:
NameParameterData TypeRequiredDescription
TransIdqueryintNo
DeliveryTypequeryDeliveryTypesNo
ReturnItemListqueryList<CustomReturnItemDTO>No
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
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
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
TransactionItemAlwAct Enum:
NameValue
CanRate1
CanReturn2
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: baseservices2.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,
			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
			}
		}
	],
	start: 2020-10-01T09:55:53.0823911+03:00,
	DeviceUUID: 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
	}
}