Needio.Services

<back to all web services

PrepareRequestReturnByBuyerRequest

The following routes are available for this service:
All Verbs/Trans/PrepareRequestReturnByBuyer/
PrepareRequestReturnByBuyerRequest Parameters:
NameParameterData TypeRequiredDescription
TransIdqueryintNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
PrepareRequestReturnByBuyerResponse Parameters:
NameParameterData TypeRequiredDescription
DeliveryTypeListformList<DeliveryTypes>No
ReturnItemListformList<CustomReturnItemDTO>No
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
PrepareRequestReturnByBuyerResponse Parameters:
NameParameterData TypeRequiredDescription
DeliveryTypeListformList<DeliveryTypes>No
ReturnItemListformList<CustomReturnItemDTO>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Trans/PrepareRequestReturnByBuyer/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"TransId":0,"start":"\/Date(1601538820997+0300)\/","DeviceUUID":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"DeliveryTypeList":[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":"\/Date(-62135596800000-0000)\/","ReturnCount":0}}],"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"},"PageInfo":{"TotalRecordCount":0,"TotalPageCount":0,"CurrentPage":0}}