Evolus Rewards API Reference
The Evolus Reward API uses GraphQL to retrieve and manipulate data. You will need a few things to get up and running:
-
Your Client ID and Client Secret
-
The GraphQL Endpoint
-
An Access Token from the auth query
API Endpoints
# Staging:
https://4xjn5ui0hj.execute-api.us-east-1.amazonaws.com/staging/graphql
Headers
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE Client Secret And Client ID
Your Client ID and Client Secret will be provided to you separately from this document. You will also be provided with an Account ID and Facility ID that you may use to begin testing the API.
The GraphQL Endpoint
The GraphQL Endpoint URL below will allow you to access the API as well as the GraphQL playground where you can test all queries, mutations, inputs, and outputs that are required to interact with the Evolus Rewards API:
https://4xjn5ui0hj.execute-api.us-east-1.amazonaws.com/staging/graphql
Note: When your integration is production ready, you will be provided with a new endpoint specifically for production.
Access Token
You can generate an access token by executing the auth query using your Client Id and Client Secret. If you are using the GraphQL playground add these to the "QUERY VARIABLES" section:
QUERY VARIABLES
{
"input ": {
"clientId ": "YOUR_CLIENT_ID ",
"clientSecret ": "YOUR_CLIENT_SECRET ",
"grantType ": "client_credentials ",
"scope ": null
}
}
All other queries and mutations will require an Authorization header using the accessToken from the
auth query response.
If you are using the GraphQL Playground add your headers in the "HTTP HEADERS" section:
HTTP HEADERS
{
"Authorization ": "Bearer YOUR_ACCESS_TOKEN_HERE"
}
The Rewards API Check In Flow
This section is intended to help you understand the general flow on the check in process and the required queries and mutations.
1. Lookup Account
Check the Account with the getAccountOptInDetails query to make sure it's eligible for Evolus Rewards.
- If
status=ACTIVE=> proceed to Step 2 - Lookup Profile - If
status=INACTIVE=> the account is not eligible for Evolus Rewards
2. Lookup Profile
Check the status of the consumer's profile using the getProfileStatus query.
- If not
isEnrolled=> call createProfile mutation and wait for consumer to finish profile. Then proceed to Step 3 - Lookup Reward - If
isEnrolledbut notisCompleted=> call resendEnrollmentLink mutation and wait for consumer to finish profile. Then proceed to Step 3 - Lookup Reward - If
isBlackListed=> display a message about the carrier not being support - If
isEnrolledandisCompleted=> proceed to Step 3 - Lookup Reward
3. Lookup Reward
After the user has completed their profile or if they have an existing completed profile call the getActiveReward query to get the status of the consumers active reward.
- If
eligibilityStatusisEXPIRED=> consumer's reward is expired, call the createReward mutation to make a new reward. - If
eligibilityStatusisEXPIRED_IN_GRACE_PERIOD=> proceed to Step 4 - Lookup Injector - If
eligibilityStatusisNOT_YET_ACTIVE=> consumer's reward is not available yet, cannot check in consumer - If
eligibilityStatusisELIGIBLE=> proceed to Step 4 - Lookup Injector
4. Lookup Injector
Call the getInjectors query to determine if a facility has injector specialists linked to their account and display the list to the user.
- Store the user selected injector and proceed to Step 5 - Check In
- Optionally store a newly created injector in memory and proceed to Step 5 - Check In
5. Check In
Create a new check in using checkIn mutation, and conditionally store the injector that is responsible for the consumer's treatment.
- If an injector was selected/created => create check in with injector, and proceed to Step 6 - Send Secret
- If an injector was not selected/created => create check in without injector, and proceed to Step 6 - Send Secret
6. Send Secret
Send the consumer a secret phrase using the sendSecret mutation. The secret phrase will be verified during Step 7 - Redeem Reward.
- If consumer not
isBlackListed- AND if enrollment method is
SMSsendSecret withdeliveryMethod=SMS - AND if enrollment method is
EMAILsendSecret withdeliveryMethod=EMAIL
- AND if enrollment method is
- If consumer
isBlackListed, sendSecret withdeliveryMethod=TEXT_TO_VOICE
7. Redeem Reward
Validate the secret phrase and finalize the check in process using the redeemReward mutation.
- If consumer does not successfully answer the secret phrase => allow guessing 3 total times max
- If consumer does not successfully answer the secret phrase, and exceeds 3 max attempts => resend secret phase with sendSecret mutation.
- If consumer successfully answers the secret phrase => check in complete
Useful Information & Assistance
You may find the following links useful:
- https://graphql.org/learn/ - A general guide for developers new to GraphQL
- https://docs.github.com/en/graphql/guides/introduction-to-graphql - A short guide if you're new to using GraphQL from Github.
- https://docs.github.com/en/graphql/guides/forming-calls-with-graphql - A longer guide to forming calls with GraphQL. Useful if you're coming from a REST background.
- https://www.postman.com/ - A great tool for building and using APIs
Any questions can be directed to:
Queries
auth
Description
Used to get a valid accessToken to send requests to the API. Add your accessToken in an
Authorization header when making requests to the API.
Example:
Authorization: Bearer YOUR_ACCESS_TOKEN_HERE
Response
Returns an
OAuthResult!
Arguments
| Name | Description |
|---|---|
input -
OAuthRequest!
|
Example
Query
query Auth($input: OAuthRequest!) {
auth(input: $input) {
accessToken
expiresIn
tokenType
}
}
Variables
{"input": OAuthRequest}
Response
{
"data": {
"auth": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"expiresIn": 3600,
"tokenType": "Bearer"
}
}
}
getAccountOptInDetails
Description
Used to validate the Account has been opted into Evolus Rewards. Only Account's with the status of ACTIVE will be able to check in a consumer. Additionally it returns details about the account and related facilities.
Response
Returns a
GetAccountOptInDetailsResponse
Arguments
| Name | Description |
|---|---|
request -
GetAccountOptInDetailsRequest!
|
Example
Query
query GetAccountOptInDetails($request: GetAccountOptInDetailsRequest!) {
getAccountOptInDetails(request: $request) {
accountId
accountName
facilities {
address {
...AddressFragment
}
facilityId
name
}
status
}
}
Variables
{"request": GetAccountOptInDetailsRequest}
Response
{
"data": {
"getAccountOptInDetails": {
"accountId": "A-123456",
"accountName": "xyz789",
"facilities": [PublicOptedInFacilityInfo],
"status": "INACTIVE"
}
}
}
getActiveReward
Description
Used to lookup a consumer by phone number and return their active reward, if any.
Response
Returns a
GetActiveRewardByPhoneResponse
Arguments
| Name | Description |
|---|---|
request -
GetActiveRewardByPhoneRequest!
|
Example
Query
query GetActiveReward($request: GetActiveRewardByPhoneRequest!) {
getActiveReward(request: $request) {
promotion {
amount
endDate
startDate
}
reward {
consumerProfileId
earnedAt
eligibilityStatus
eligibleAt
expiration
rewardAmount
status
}
}
}
Variables
{"request": GetActiveRewardByPhoneRequest}
Response
{
"data": {
"getActiveReward": {
"promotion": ConsumerCheckInPromotion,
"reward": ConsumerReward
}
}
}
getInjectors
Description
Returns a list of injector specialists who provide the treatments at a Facility.
Response
Returns a
GetInjectorsResponse
Arguments
| Name | Description |
|---|---|
request -
GetInjectorsRequest!
|
Example
Query
query GetInjectors($request: GetInjectorsRequest!) {
getInjectors(request: $request) {
externalLookupSuccess
injectors {
externalId
name
uniqueId
}
}
}
Variables
{"request": GetInjectorsRequest}
Response
{
"data": {
"getInjectors": {
"externalLookupSuccess": true,
"injectors": [InjectorResponse]
}
}
}
getProfileStatus
Description
Used to look up a consumer by either phone number or email address. See
[GetProfileStatusResponse] for additional details about the specific fields returned.
Response
Returns a
GetProfileStatusResponse
Arguments
| Name | Description |
|---|---|
request -
GetProfileStatusRequest!
|
Example
Query
query GetProfileStatus($request: GetProfileStatusRequest!) {
getProfileStatus(request: $request) {
email
enrollmentMethod
isBlackListed
isCompleted
isEnrolled
}
}
Variables
{"request": GetProfileStatusRequest}
Response
{
"data": {
"getProfileStatus": {
"email": "user@domain.com",
"enrollmentMethod": "EMAIL",
"isBlackListed": false,
"isCompleted": false,
"isEnrolled": true
}
}
}
Mutations
checkIn
Description
Used to start the check in process for a consumers treatment at a Facility after the consumer has completed their profile.
Response
Returns a
CheckInConsumerResponse!
Arguments
| Name | Description |
|---|---|
request -
CheckInConsumerRequest!
|
Example
Query
mutation CheckIn($request: CheckInConsumerRequest!) {
checkIn(request: $request) {
checkIn {
accountId
checkInDate
consumerProfileId
facilityId
hasInjector
id
phoneNumber
}
reward {
consumerProfileId
earnedAt
eligibilityStatus
eligibleAt
expiration
rewardAmount
status
}
}
}
Variables
{"request": CheckInConsumerRequest}
Response
{
"data": {
"checkIn": {
"checkIn": ConsumerCheckIn,
"reward": ConsumerReward
}
}
}
createEBookingCancellation
Description
Used to keep track of when a consumer has cancelled an ebooking appointment.
Response
Returns a
SuccessResponse!
Arguments
| Name | Description |
|---|---|
request -
CreateEBookingCancellationRequest!
|
Example
Query
mutation CreateEBookingCancellation($request: CreateEBookingCancellationRequest!) {
createEBookingCancellation(request: $request) {
message
success
}
}
Variables
{"request": CreateEBookingCancellationRequest}
Response
{
"data": {
"createEBookingCancellation": {
"message": "xyz789",
"success": true
}
}
}
createEBookingConfirmation
Description
Used to keep track of when a consumer has confirmed an ebooking appointment.
Response
Returns a
SuccessResponse!
Arguments
| Name | Description |
|---|---|
request -
CreateEBookingConfirmationRequest!
|
Example
Query
mutation CreateEBookingConfirmation($request: CreateEBookingConfirmationRequest!) {
createEBookingConfirmation(request: $request) {
message
success
}
}
Variables
{"request": CreateEBookingConfirmationRequest}
Response
{
"data": {
"createEBookingConfirmation": {
"message": "abc123",
"success": false
}
}
}
createEBookingDropOff
Description
Used to track when a consumer has dropped off during the ebooking process.
Response
Returns a
SuccessResponse!
Arguments
| Name | Description |
|---|---|
request -
CreateEBookingDropOffRequest!
|
Example
Query
mutation CreateEBookingDropOff($request: CreateEBookingDropOffRequest!) {
createEBookingDropOff(request: $request) {
message
success
}
}
Variables
{"request": CreateEBookingDropOffRequest}
Response
{
"data": {
"createEBookingDropOff": {
"message": "abc123",
"success": false
}
}
}
createProfile
Description
Used to create a new profile for a consumer. The consumer will receive a text message with a link to complete their profile.
Response
Returns a
CreateProfileResponse!
Arguments
| Name | Description |
|---|---|
request -
CreateProfileRequest!
|
Example
Query
mutation CreateProfile($request: CreateProfileRequest!) {
createProfile(request: $request) {
isBlackListed
isCompleted
isEnrolled
success
}
}
Variables
{"request": CreateProfileRequest}
Response
{
"data": {
"createProfile": {
"isBlackListed": false,
"isCompleted": true,
"isEnrolled": true,
"success": false
}
}
}
createReward
Description
Used to create a new reward when the consumer's existing reward has expired.
Response
Returns a
CreateConsumerRewardResponse!
Arguments
| Name | Description |
|---|---|
request -
CreateConsumerRewardRequest!
|
Example
Query
mutation CreateReward($request: CreateConsumerRewardRequest!) {
createReward(request: $request) {
reward {
consumerProfileId
earnedAt
eligibilityStatus
eligibleAt
expiration
rewardAmount
status
}
}
}
Variables
{"request": CreateConsumerRewardRequest}
Response
{"data": {"createReward": {"reward": ConsumerReward}}}
redeemReward
Description
Used to validate the secret phrase sent to the consumer and finalize the check in process.
Response
Returns a
RedeemRewardResponse!
Arguments
| Name | Description |
|---|---|
request -
RedeemRewardRequest!
|
Example
Query
mutation RedeemReward($request: RedeemRewardRequest!) {
redeemReward(request: $request) {
attemptsRemaining
success
}
}
Variables
{"request": RedeemRewardRequest}
Response
{"data": {"redeemReward": {"attemptsRemaining": 987, "success": true}}}
resendEnrollmentLink
Description
Used to resend the link to complete a consumers profile when isEnrolled is true but isCompleted is false.
Response
Returns a
ResendEnrollmentLinkResponse!
Arguments
| Name | Description |
|---|---|
request -
ResendEnrollmentLinkRequest!
|
Example
Query
mutation ResendEnrollmentLink($request: ResendEnrollmentLinkRequest!) {
resendEnrollmentLink(request: $request) {
isAlreadyCompleted
}
}
Variables
{"request": ResendEnrollmentLinkRequest}
Response
{"data": {"resendEnrollmentLink": {"isAlreadyCompleted": true}}}
sendSecret
Description
Used to send the consumer a text message with a secret phrase. The consumer will need to validate the secret phrase to finish the enrollment process.
Response
Returns a
SendRewardSecretResponse!
Arguments
| Name | Description |
|---|---|
request -
SendRewardSecretRequest!
|
Example
Query
mutation SendSecret($request: SendRewardSecretRequest!) {
sendSecret(request: $request) {
attemptsRemaining
deliveryMethod
}
}
Variables
{"request": SendRewardSecretRequest}
Response
{"data": {"sendSecret": {"attemptsRemaining": 987, "deliveryMethod": "EMAIL"}}}
Types
AccountId
Description
A string prefixed with A- followed by numbers.
Example
"A-123456"
Address
Animals
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"BIRD"
Boolean
Description
The Boolean scalar type represents true or false.
CheckInConsumerRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId!
|
|
facilityId -
FacilityId!
|
|
injector -
InjectorInput
|
|
phoneNumber -
PhoneNumber!
|
Example
{
"accountId": "A-123456",
"facilityId": "F-123456",
"injector": InjectorInput,
"phoneNumber": "19876543210"
}
CheckInConsumerResponse
Fields
| Field Name | Description |
|---|---|
checkIn -
ConsumerCheckIn!
|
|
reward -
ConsumerReward!
|
Example
{
"checkIn": ConsumerCheckIn,
"reward": ConsumerReward
}
Colors
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"ABUNDANT"
ConsumerCheckIn
Fields
| Field Name | Description |
|---|---|
accountId -
AccountId!
|
|
checkInDate -
DateTime!
|
|
consumerProfileId -
String!
|
|
facilityId -
FacilityId!
|
|
hasInjector -
Boolean!
|
|
id -
String!
|
|
phoneNumber -
PhoneNumber!
|
Example
{
"accountId": "A-123456",
"checkInDate": "2016-10-07T01:08:03.420Z",
"consumerProfileId": "xyz789",
"facilityId": "F-123456",
"hasInjector": true,
"id": "abc123",
"phoneNumber": "19876543210"
}
ConsumerCheckInPromotion
ConsumerReward
Fields
| Field Name | Description |
|---|---|
consumerProfileId -
String!
|
|
earnedAt -
DateTime!
|
|
eligibilityStatus -
EligibilityStatus!
|
|
eligibleAt -
DateTime!
|
|
expiration -
DateTime
|
|
rewardAmount -
Float!
|
|
status -
RewardStatus!
|
Example
{
"consumerProfileId": "abc123",
"earnedAt": "2016-10-07T01:08:03.420Z",
"eligibilityStatus": "ALREADY_REDEEMED",
"eligibleAt": "2016-10-07T01:08:03.420Z",
"expiration": "2016-10-07T01:08:03.420Z",
"rewardAmount": 123.45,
"status": "REDEEMED"
}
CreateConsumerRewardRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId!
|
|
facilityId -
FacilityId!
|
|
phoneNumber -
PhoneNumber!
|
Example
{
"accountId": "A-123456",
"facilityId": "F-123456",
"phoneNumber": "19876543210"
}
CreateConsumerRewardResponse
Fields
| Field Name | Description |
|---|---|
reward -
ConsumerReward!
|
Example
{"reward": ConsumerReward}
CreateEBookingCancellationRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId!
|
|
cancellationFee -
Float!
|
|
email -
Email!
|
|
facilityId -
FacilityId!
|
|
phoneNumber -
PhoneNumber!
|
Example
{
"accountId": "A-123456",
"cancellationFee": 987.65,
"email": "user@domain.com",
"facilityId": "F-123456",
"phoneNumber": "19876543210"
}
CreateEBookingConfirmationRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId!
|
|
appointmentAt -
DateTime!
|
|
bookedAt -
DateTime!
|
|
email -
Email!
|
|
facilityId -
FacilityId!
|
|
firstName -
String!
|
|
lastName -
String!
|
|
phoneNumber -
PhoneNumber!
|
|
requestingEntity -
String!
|
Example
{
"accountId": "A-123456",
"appointmentAt": "2016-10-07T01:08:03.420Z",
"bookedAt": "2016-10-07T01:08:03.420Z",
"email": "user@domain.com",
"facilityId": "F-123456",
"firstName": "xyz789",
"lastName": "xyz789",
"phoneNumber": "19876543210",
"requestingEntity": "abc123"
}
CreateEBookingDropOffRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId!
|
|
bookedAt -
DateTime!
|
|
cancellationFee -
Float!
|
|
dropOffStep -
Float!
|
|
email -
Email!
|
|
emrName -
String!
|
|
facilityId -
FacilityId!
|
|
firstName -
String!
|
|
lastName -
String!
|
|
phoneNumber -
PhoneNumber!
|
|
requestingEntity -
String!
|
Example
{
"accountId": "A-123456",
"bookedAt": "2016-10-07T01:08:03.420Z",
"cancellationFee": 987.65,
"dropOffStep": 123.45,
"email": "user@domain.com",
"emrName": "abc123",
"facilityId": "F-123456",
"firstName": "abc123",
"lastName": "abc123",
"phoneNumber": "19876543210",
"requestingEntity": "xyz789"
}
CreateProfileRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId
|
|
facilityId -
FacilityId
|
|
isOptedIn -
Boolean!
|
|
metadata -
UnknownObjectOfStringsScalar
|
|
phoneNumber -
PhoneNumber!
|
|
requestingEntity -
String
|
Example
{
"accountId": "A-123456",
"facilityId": "F-123456",
"isOptedIn": false,
"metadata": UnknownObjectOfStringsScalar,
"phoneNumber": "19876543210",
"requestingEntity": "abc123"
}
CreateProfileResponse
DateTime
Description
A string formatted in the ISO8601 standard.
Example
"2016-10-07T01:08:03.420Z"
DeliveryMethod
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"EMAIL"
EligibilityStatus
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"ALREADY_REDEEMED"
Description
A personal email address as defined by Section 3.4 of RFC 5322
Example
"user@domain.com"
EnrollmentMethod
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"EMAIL"
FacilityId
Description
A string prefixed with F- followed by numbers.
Example
"F-123456"
Float
Description
The Float scalar type represents signed double-precision fractional values as specified by
IEEE 754.
Example
987.65
GetAccountOptInDetailsRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId!
|
Example
{"accountId": "A-123456"}
GetAccountOptInDetailsResponse
Fields
| Field Name | Description |
|---|---|
accountId -
AccountId!
|
|
accountName -
String!
|
|
facilities -
[PublicOptedInFacilityInfo!]
|
|
status -
OptInStatus!
|
Example
{
"accountId": "A-123456",
"accountName": "abc123",
"facilities": [PublicOptedInFacilityInfo],
"status": "INACTIVE"
}
GetActiveRewardByPhoneRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId
|
|
phoneNumber -
PhoneNumber!
|
Example
{
"accountId": "A-123456",
"phoneNumber": "19876543210"
}
GetActiveRewardByPhoneResponse
Fields
| Field Name | Description |
|---|---|
promotion -
ConsumerCheckInPromotion
|
|
reward -
ConsumerReward
|
Example
{
"promotion": ConsumerCheckInPromotion,
"reward": ConsumerReward
}
GetInjectorsRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId!
|
|
facilityId -
FacilityId!
|
Example
{
"accountId": "A-123456",
"facilityId": "F-123456"
}
GetInjectorsResponse
Fields
| Field Name | Description |
|---|---|
externalLookupSuccess -
Boolean!
|
|
injectors -
[InjectorResponse!]
|
Example
{
"externalLookupSuccess": false,
"injectors": [InjectorResponse]
}
GetProfileStatusRequest
Fields
| Input Field | Description |
|---|---|
email -
Email
|
|
phoneNumber -
PhoneNumber
|
Example
{
"email": "user@domain.com",
"phoneNumber": "19876543210"
}
GetProfileStatusResponse
Fields
| Field Name | Description |
|---|---|
email -
Email
|
|
enrollmentMethod -
EnrollmentMethod
|
|
isBlackListed -
Boolean
|
If true the consumer's phone carrier is blacklisted and we will be unable to send a text message to the consumer. |
isCompleted -
Boolean
|
If true the consumer is enrolled within the Evolus Rewards system and the consumer has completed profile. |
isEnrolled -
Boolean
|
If true the consumer is enrolled within the Evolus Rewards system. The consumer may or may not have completed their profile. |
Example
{
"email": "user@domain.com",
"enrollmentMethod": "EMAIL",
"isBlackListed": true,
"isCompleted": true,
"isEnrolled": false
}
InjectorInput
InjectorResponse
Int
Description
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
987
OAuthRequest
OAuthResult
Example
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"expiresIn": 3600,
"tokenType": "Bearer"
}
OptInStatus
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"INACTIVE"
PhoneNumber
Description
A string of numbers starting with the country code followed by the remaining digits.
Example
"19876543210"
PublicOptedInFacilityInfo
Fields
| Field Name | Description |
|---|---|
address -
Address
|
|
facilityId -
FacilityId
|
|
name -
String
|
Example
{
"address": Address,
"facilityId": "F-123456",
"name": "xyz789"
}
RedeemRewardRequest
Fields
| Input Field | Description |
|---|---|
accountId -
AccountId!
|
|
checkInId -
String!
|
|
facilityId -
FacilityId!
|
|
phoneNumber -
PhoneNumber!
|
|
secretPhrase -
SecretPhrase!
|
Example
{
"accountId": "A-123456",
"checkInId": "xyz789",
"facilityId": "F-123456",
"phoneNumber": "19876543210",
"secretPhrase": SecretPhrase
}
RedeemRewardResponse
ResendEnrollmentLinkRequest
Fields
| Input Field | Description |
|---|---|
email -
Email
|
|
phoneNumber -
PhoneNumber!
|
Example
{
"email": "user@domain.com",
"phoneNumber": "19876543210"
}
ResendEnrollmentLinkResponse
Fields
| Field Name | Description |
|---|---|
isAlreadyCompleted -
Boolean
|
Example
{"isAlreadyCompleted": true}
RewardStatus
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"REDEEMED"
SecretPhrase
SendRewardSecretRequest
Fields
| Input Field | Description |
|---|---|
checkInId -
String!
|
|
deliveryMethod -
DeliveryMethod!
|
|
phoneNumber -
PhoneNumber!
|
Example
{
"checkInId": "xyz789",
"deliveryMethod": "EMAIL",
"phoneNumber": "19876543210"
}
SendRewardSecretResponse
Fields
| Field Name | Description |
|---|---|
attemptsRemaining -
Int!
|
|
deliveryMethod -
DeliveryMethod!
|
Example
{"attemptsRemaining": 987, "deliveryMethod": "EMAIL"}
String
Description
The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Example
"xyz789"
SuccessResponse
UnknownObjectOfStringsScalar
Description
Object of unknown keys and string values
Example
UnknownObjectOfStringsScalar