> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# shopperSessionCreate

> Delegate short-lived shopper access to one order or one email, without staff overrides. Null for a missing or unowned order.

**Required scopes:** [`shopper_sessions_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-shopper_sessions_write)

## Arguments

**input** `[ShopperSessionCreateInput!](/docs/api-reference/v3/reference/common/shopper-session-create-input)` *required*

The shopper resource authority to delegate.

**fields**

**email** `String`

An email address for access to its orders in this store.

**orderId** `ID`

A public or legacy order ID for single-order access.

## Returns

**shopperSessionCreate** `[ShopperCredentials](/docs/api-reference/v3/reference/common/shopper-credentials)`

Short-lived bearer credentials. Keep the access token private.

**fields**

**accessToken** `String!` *required*

The signed JWT used in the Authorization bearer header.

**expiresAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the access token expires.

**session** `[ShopperSession!](/docs/api-reference/v3/reference/common/shopper-session)` *required*

The authority granted by this token.

**fields**

**authenticationMethod** `[ShopperAuthenticationMethod!](/docs/api-reference/v3/reference/common/shopper-authentication-method)` *required*

The login or delegation method.

**email** `String`

The authorized email for an email-scoped session.

**emailAssurance** `[ShopperEmailAssurance!](/docs/api-reference/v3/reference/common/shopper-email-assurance)` *required*

Mailbox ownership assurance; admin delegation does not verify the shopper's email.

**expiresAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When this credential expires.

**orderLegacyId** `String`

The authorized order's legacy identifier for a single-order session.

**scope** `[ShopperScope!](/docs/api-reference/v3/reference/common/shopper-scope)` *required*

The session's resource boundary.

**tokenType** `String!` *required*

The authorization scheme: Bearer.

## Example

```graphql theme={null}
mutation {
  shopperSessionCreate(input: { ... }) {
    accessToken
    expiresAt
    tokenType
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.