# createWhiteLabelGuest

> Required permission: WhiteLabelGuestWrite

Source: https://docs.gastrogate.io/docs/api/mutations/createWhiteLabelGuest

```graphql
createWhiteLabelGuest(
  whiteLabelId: ID!
  input: WhiteLabelGuestInput!
): WhiteLabelGuest
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `whiteLabelId` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |
| `input` | [`WhiteLabelGuestInput`](https://docs.gastrogate.io/docs/api/types/WhiteLabelGuestInput.md)! |  |

## Returns

[`WhiteLabelGuest`](https://docs.gastrogate.io/docs/api/types/WhiteLabelGuest.md)

## Example

```graphql
mutation CreateWhiteLabelGuest($whiteLabelId: ID!, $input: WhiteLabelGuestInput!) {
  createWhiteLabelGuest(whiteLabelId: $whiteLabelId, input: $input) {
    id
    amountSpent
    createdAt
    email
    invitationStatus
    name
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { createWhiteLabelGuest(...) { __typename } }"}'
```
