Needio.Services

<back to all web services

PrepareReturnRecordRequest

Requires Authentication
The following routes are available for this service:
All Verbs/Trans/PrepareReturnRecord/
PrepareReturnRecordRequest Parameters:
NameParameterData TypeRequiredDescription
TransItemIdqueryintNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
PrepareReturnRecordResponse Parameters:
NameParameterData TypeRequiredDescription
transactionReturnformTransactionReturnDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
TransactionReturnDTO Parameters:
NameParameterData TypeRequiredDescription
ReturnIdformintNo
TransIdformintNo
TransDateformDateTimeNo
DeliveryDateformDateTimeNo
ReturnDateformDateTimeNo
MessageBodyformstringNo
StatusformTransactionReturnStatusNo
AcceptRejectDateformDateTimeNo
RejectReasonIdformshort?No
RejectReasonformstringNo
TicketIdformstringNo
TransItemIdformintNo
PostIdformint?No
VariantIdformint?No
QuantityformintNo
ReturnReasonIdformshort?No
ReturnReasonformstringNo
UnitPriceformdecimalNo
TotalAmountformdecimalNo
PostHeaderformstringNo
PostDescriptionformstringNo
MessageHeaderformstringNo
MessageToformstringNo
TransactionItemformTransactionItemDTONo
TransactionReturnStatus Enum:
NameValue
Inprogress1
Approve10
Reject20
TransactionItemDTO Parameters:
NameParameterData TypeRequiredDescription
TransItemIdformintNo
StoreIdformint?No
PostIdformint?No
PostVariantIdformint?No
NameformstringNo
DescriptionformstringNo
ListPriceformdecimalNo
UnitPriceformdecimalNo
QuantityformintNo
TotalPriceformdecimalNo
MediaIdformint?No
RatedYnformboolNo
ReturnedYnformboolNo
ReturnedQuantityformintNo
AlwActformTransactionItemAlwActNo
TransactionItemAlwAct Enum:
NameValue
CanRate1
CanReturn2
PrepareReturnRecordResponse Parameters:
NameParameterData TypeRequiredDescription
transactionReturnformTransactionReturnDTONo

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

HTTP + CSV

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

POST /Trans/PrepareReturnRecord/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TransItemId":0,"start":"\/Date(1594833954952+0300)\/"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"transactionReturn":{"ReturnId":0,"TransId":0,"TransDate":"\/Date(-62135596800000-0000)\/","DeliveryDate":"\/Date(-62135596800000-0000)\/","ReturnDate":"\/Date(-62135596800000-0000)\/","MessageBody":"String","Status":1,"AcceptRejectDate":"\/Date(-62135596800000-0000)\/","RejectReasonId":0,"RejectReason":"String","TicketId":"String","TransItemId":0,"PostId":0,"VariantId":0,"Quantity":0,"ReturnReasonId":0,"ReturnReason":"String","UnitPrice":0,"TotalAmount":0,"PostHeader":"String","PostDescription":"String","MessageHeader":"String","MessageTo":"String","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}},"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"}}