change documentation from hash to payload