Function input and output

Shopify Functions request an input against the schema of the specific Function API schema. Function API schemas are based on the Cart API. The output is also defined by the same Function API schema. The output is a declarative object which represents operations for Shopify to execute.

Shopify passes input as JSON to your function via STDIN, and your function writes output to Shopify via STDOUT. See the WebAssembly API for details.