---
title: "Create consumer"
method: POST
path: "/consumers/{tenant}"
tags: ["Consumers", "publicly-accessible"]
---

# Create consumer

`POST /consumers/{tenant}`

Creates a consumer for the given tenant.

## Path parameters

- `tenant` string, required

## Request body

- ConsumerCreate
  - `emailAddress` string, email, required — The consumer's email address
  - `password` string — The consumer's password
  - `firstName` string, required — The consumer's first name
  - `lastName` string, required — The consumer's last name
  - `registrationSource` 'Native' | 'Guest' — The registration source of the consumer. Australia and New Zealand only support Guest
  - `marketingPreferences` object[]
    - `channelName` 'Email' | 'Push' | 'Sms' — The channel name.
    - `isSubscribed` boolean — Should the channel be subscribed to?
    - `dateUpdated` string, date-time — The date of the marketing preference change

## Response `201`

Consumer created.

- ConsumerCreateResponse
  - `type` 'otac', required — The type of token. At the moment, this will only ever be a One Time Access Code (OTAC)
  - `token` string, required — The One Time Access Code (OTAC)

## Other responses

- `400` — Bad request.
- `403` — Forbidden.
- `404` — The specified tenant does not exist.
- `409` — The specified email already exists.
- `500` — Internal Server Error

---

[API](https://skmtc.net/just-eat/apis/just-eat-api.md) · [All operations](https://skmtc.net/just-eat/apis/just-eat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/just-eat/just-eat-api/revisions/4b25c7d97a53/schema)
