v1

latestOpenAPI 3.0.02026-07-1398671635.1 KB
Consumers
publicly-accessible

Create consumer

Creates a consumer for the given tenant.

post/consumers/{tenant}

Path parameters

tenantstring required

The identifier for the tenant. The only supported tenants are uk, au and nz

Request body

emailAddressstring email required

The consumer's email address

passwordstring

The consumer's password

firstNamestring required

The consumer's first name

lastNamestring required

The consumer's last name

registrationSource'Native' | 'Guest'

The registration source of the consumer. Australia and New Zealand only support Guest

Example request

{
  "emailAddress": "consumer@just-eat.com",
  "password": "Pa55word",
  "firstName": "Bob",
  "lastName": "Smith",
  "registrationSource": "Native"
}

Response

Consumer created.

type'otac' required

The type of token. At the moment, this will only ever be a One Time Access Code (OTAC)

tokenstring required

The One Time Access Code (OTAC)

Example response

{
  "type": "otac",
  "token": "SKgaDl0wZxnwjNgLxBnU646PDTquWLHOyPuyzidIZIg="
}