Skip to main content

User

A FlipGive user.

type User {
accessToken: String
accessTokenExpiry: DateTimeISO
activeCampaign: Campaign
avatarImage: String
campaigns: [Campaign!]!
defaultPartnerCampaignId: ID @deprecated
email: String!
endedCampaigns: [Campaign!]!
event(
id: ID!
): Event
favoriteBrands(
first: Int!
currency: Currency
siteId: ID
): [Brand!]!
favoriteBrandsCount(
currency: Currency
siteId: ID
): Int
firstName: String!
giftcards(
ids: [ID!]
): [Giftcard!]! @deprecated
id: ID!
intents: [Intent!]!
isAdmin: Boolean!
lastName: String
linkedCards: [LinkedCard!]!
name: String
notifications(
first: Int!
beforeId: ID
): [Notification!]! @deprecated
notificationsPaginated(
first: Int!
after: String
last: Int
before: String
): NotificationConnection!
pastEvents(
first: Int
after: String
last: Int
before: String
): EventConnection!
privacyLevel: PrivacyLevel
refreshToken: String
runningCampaigns: [Campaign!]!
unreadNotificationCount: Int!
unseenNotificationCount: Int!
upcomingEvents(
first: Int
after: String
last: Int
before: String
): EventConnection!
}

Fields

User.accessToken ● String scalar

User's API access token

User.accessTokenExpiry ● DateTimeISO scalar

User's API access token expiry

User.activeCampaign ● Campaign object

Active campaign on FlipGive or partners

User.avatarImage ● String scalar

The url of the user's avatar

User.campaigns ● [Campaign!]! non-null object

A list of the user's campaigns

User.defaultPartnerCampaignId ● ID deprecated scalar

DEPRECATED: Please use the activeCampaign field to access the current active campaign for user across all FlipGive partner sites.

The ID of the user's default partner campaign

User.email ● String! non-null scalar

User's email address

User.endedCampaigns ● [Campaign!]! non-null object

A list of the user's ended campaigns

User.event ● Event object

Access a specific event for this user

User.event.id ● ID! non-null scalar

Which event to access

User.favoriteBrands ● [Brand!]! non-null object

Favorite brands for this user

User.favoriteBrands.first ● Int! non-null scalar

The number of brands to return, maximum: 50

User.favoriteBrands.currency ● Currency enum
User.favoriteBrands.siteId ● ID scalar

User.favoriteBrandsCount ● Int scalar

Number of favorite brands for this user

User.favoriteBrandsCount.currency ● Currency enum
User.favoriteBrandsCount.siteId ● ID scalar

User.firstName ● String! non-null scalar

User's first name

User.giftcards ● [Giftcard!]! deprecated non-null object

DEPRECATED: Use giftcardsPaginated field instead.

DEPRECATED! A list of the user's giftcards

User.giftcards.ids ● [ID!] list scalar

Array of IDs for specific giftcards to return

User.id ● ID! non-null scalar

User's ID

User.intents ● [Intent!]! non-null object

A list of the user's intents

User.isAdmin ● Boolean! non-null scalar

Is the user an admin?

User.lastName ● String scalar

User's last name

User.linkedCards ● [LinkedCard!]! non-null object

Linked cards for this user

User.name ● String scalar

User's full name

User.notifications ● [Notification!]! deprecated non-null object

DEPRECATED: Use notificationsPaginated field instead.

Returns a list of notifications, max: 50

User.notifications.first ● Int! non-null scalar

The number of notifications to return

User.notifications.beforeId ● ID scalar

Start pulling notifications before this ID

User.notificationsPaginated ● NotificationConnection! non-null object

Returns a paginated list of notifications

User.notificationsPaginated.first ● Int! non-null scalar

The number of notifications to return

User.notificationsPaginated.after ● String scalar

Returns the elements in the list that come after the specified cursor.

User.notificationsPaginated.last ● Int scalar

Returns the last n elements from the list.

User.notificationsPaginated.before ● String scalar

Returns the elements in the list that come before the specified cursor.

User.pastEvents ● EventConnection! non-null object

See my past events

User.pastEvents.first ● Int scalar

Returns the first n elements from the list.

User.pastEvents.after ● String scalar

Returns the elements in the list that come after the specified cursor.

User.pastEvents.last ● Int scalar

Returns the last n elements from the list.

User.pastEvents.before ● String scalar

Returns the elements in the list that come before the specified cursor.

User.privacyLevel ● PrivacyLevel enum

User's privacy level

User.refreshToken ● String scalar

User's API refresh token

User.runningCampaigns ● [Campaign!]! non-null object

A list of the user's running campaigns

User.unreadNotificationCount ● Int! non-null scalar

Number of unread notifications for this user

User.unseenNotificationCount ● Int! non-null scalar

Number of unseen notifications for this user

User.upcomingEvents ● EventConnection! non-null object

See my upcoming events

User.upcomingEvents.first ● Int scalar

Returns the first n elements from the list.

User.upcomingEvents.after ● String scalar

Returns the elements in the list that come after the specified cursor.

User.upcomingEvents.last ● Int scalar

Returns the last n elements from the list.

User.upcomingEvents.before ● String scalar

Returns the elements in the list that come before the specified cursor.

Member of

AccessLogs object ● AuthenticatePayload object ● BudgetPayment object ● BudgetPlayer object ● Campaign object ● Checkout object ● CommentType object ● Event object ● Intent object

Implemented by

AccountDeleteUnion union ● ActivityMarkAllNotificationsReadUnion union ● ActivityMarkAllNotificationsSeenUnion union ● ActivityMarkNotificationsReadUnion union ● ViewerRemoveLinkedCardUnion union ● ViewerReorderFavoriteBrandsUnion union ● ViewerSettingsUpdateUnion union