Apply return rules
POST {{baseUrl}}/brand/:brand_domain/return-portal/rule-modifications
This endpoint evaluates return rules against the data provided in the request. Returns the new values to set on the fields and instructions for next steps.
Request Body
{"from_country"=>"<string>", "parcel_weight"=>"<string>", "delivery_option"=>"in_store", "reason_id"=>"<integer>", "refund_type"=>"exchange", "items"=>[{"name"=>"<string>", "id"=>"<string>", "sku"=>"<string>", "reason_id"=>"<integer>"}, {"name"=>"<string>", "id"=>"<string>", "sku"=>"<string>", "reason_id"=>"<integer>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"modifications":[{"action":"disable_return_requests","value":{"description":"Value to use, needed when applying certain actions. If a value is not needed for the action, it will be null."},"item_id":"\u003cstring\u003e"},{"action":"item_not_returnable","value":{"description":"Value to use, needed when applying certain actions. If a value is not needed for the action, it will be null."},"item_id":"\u003cstring\u003e"}]}