schema to payload