Update return by ID

PUT {{baseUrl}}/returns/:id

Service urls:
http://yourdomain.com/api/rest_admin/returns/{id}
OR
http://yourdomain.com/index.php?route=rest/return_admin/returns&id={id}

Request Body

{"order_id"=>"<integer>", "customer_id"=>"<integer>", "product_id"=>"<integer>", "firstname"=>"<string>", "lastname"=>"<string>", "email"=>"<string>", "telephone"=>"<string>", "product"=>"<string>", "model"=>"<string>", "quantity"=>"<integer>", "return_reason_id"=>"<integer>", "return_action_id"=>"<integer>", "return_status_id"=>"<integer>", "opened"=>"<integer>", "comment"=>"<string>", "date_ordered"=>"<date>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:&quot;\u003cinteger\u003e&quot;,&quot;error&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;data&quot;:&quot;\u003cobject\u003e&quot;}