action just_eat_post_consumers_tenant { label: "Create consumer" description: "Creates a consumer for the given tenant." provider: just_eat method: POST path: "/consumers/{tenant}" encoding: json input: { type: "object" properties: { emailAddress: { type: "string" format: "email" description: "The consumer's email address" } firstName: { type: "string" description: "The consumer's first name" } lastName: { type: "string" description: "The consumer's last name" } marketingPreferences: { type: "array" items: { type: "object" properties: { channelName: { type: "string" description: "The channel name." enum: ["Email", "Push", "Sms"] } dateUpdated: { type: "string" format: "date-time" description: "The date of the marketing preference change" } isSubscribed: { type: "boolean" description: "Should the channel be subscribed to?" } } } } password: { type: "string" description: "The consumer's password" } registrationSource: { type: "string" description: "The registration source of the consumer. Australia and New Zealand only support Guest" enum: ["Native", "Guest"] } tenant: { type: "string" } } required: ["emailAddress", "firstName", "lastName", "tenant"] additionalProperties: false } output: { type: "object" required: ["token", "type"] properties: { token: { type: "string" description: "The One Time Access Code (OTAC)" } type: { type: "string" description: "The type of token. At the moment, this will only ever be a One Time Access Code (OTAC)\n" enum: ["otac"] } } } }