Request a return via tracking token
POST
/public/orders/track/{token}/return-request
Public RMA entry point. Validates the trk_ token (invalid/unknown → 404), then creates a return in 'requested' status with the supplied line items for the resolved order. Invalid body returns 422.
Auth: Public (no authentication).
Parameters
Path Parameters
token*
Tracking token matching /^trk_[a-zA-Z0-9]{16,40}$/
Type
Requiredstring
Request Body
application/json
JSON "reason": "string", "customerNotes": "string", "lines": [ ]
{
}
Responses
Return request created
application/json
JSON "ok": true, "data": { "returnId": "123e4567-e89b-12d3-a456-426614174000" }
{
}