GraphQL reference
Operations and types available to partner integrations (the React SDK and direct API clients alike). The schema is filtered server-side by @PartnerSdkExposed; this page mirrors what __schema returns when introspected with a valid partner API key.
Queries
bookingsByMember
Get bookings by member
bookingsByMember(limit: Int, memberId: String!, offset: Int): [Booking!]!loyaltyTransactionsWithMetrics
Get loyalty transactions with tier metrics from v_booking_metrics view
loyaltyTransactionsWithMetrics(excludeDuplicates: Boolean, limit: Int, memberId: String!, offset: Int, partnerId: String): LoyaltyTransactionsWithMetricsResult!memberByEmail
Partner-scoped server-to-server read: member identity + tier by email. Requires a partner API key; limited to members the calling partner holds a qualifying tie to.
memberByEmail(email: String!): PartnerMemberRead!memberByExternalId
Partner-scoped server-to-server read: member identity + tier by the partner’s own external ID. Requires a partner API key; limited to members enrolled with that partner.
memberByExternalId(externalId: String!): PartnerMemberRead!memberProfile
Get comprehensive member profile with statistics
memberProfile(id: ID!): MemberProfilememberTierHistory
Get member tier change history
memberTierHistory(memberId: String!, pagination: PaginationInput): MemberTierHistoryConnection!partnerArrivals
Partner Reporting API: a property’s arrivals for one local day (today − 366 to today + 30), up to 500 rows. Requires a SECRET partner API key with the reporting:read scope; the property must be the key partner’s
partnerArrivals(date: String!, propertyId: ID!): PartnerArrivalsReport!partnerMemberSignups
Partner Reporting API: the members who signed up with the key’s partner from the UTC day from to the UTC day to, both included, with the enrolment source, origin property and next booking. The count for a window equals the dashboard sign-ups figure. Window at most 366 days; first at most 500. Requires a SECRET partner API key with the reporting:read scope, on a partner with the reporting grant
partnerMemberSignups(after: String, first: Int!, from: DateTimeISO!, to: DateTimeISO!): PartnerMemberSignupConnection!partnerMetrics
Partner Reporting API: the partner’s headline figures for a window of at most 366 days, over its own properties or one of them. Each figure equals the AKIN dashboard’s figure for the same partner, property and window. Requires a SECRET partner API key with the reporting:read scope
partnerMetrics(from: DateTimeISO!, propertyId: ID, to: DateTimeISO!): PartnerMetricsReport!partnerReportingAccess
Partner Reporting API: check a key. Answers the partner the key is pinned to, its reporting scope and the reporting rate limit. Requires a SECRET partner API key with the reporting:read scope, on a partner with the reporting grant
partnerReportingAccess: PartnerReportingAccess!partnerStaffSignups
Partner Reporting API: sign-ups by team member at the key’s partner, one row per team member and property, with property totals, from the UTC day from to the UTC day to, both included. The numbers equal the dashboard’s Sign-ups by team member report. Window at most 366 days. Requires a SECRET partner API key with the reporting:read scope, on a partner with the reporting grant
partnerStaffSignups(from: DateTimeISO!, propertyId: ID, to: DateTimeISO!): StaffSignupsReport!tierBenefits
Get all tier benefits for a partner - rewards grouped by tier and scope
tierBenefits(locale: String, originPartnerId: String, partnerId: String!): [TierBenefits!]!tierConfigs
Get tier configs for a partner (with global fallback) or global configs if no partnerId
tierConfigs(locale: String, partnerId: String): [LoyaltyTierConfig!]!Mutations
enrollMember
Partner SDK: enrol a member by email + profile (server-to-server, no user login). Creates the AKIN member when no member holds the email (created: true); an existing member is enrolled as is (created: false). Requires a partner API key with the member:write scope.
enrollMember(input: EnrollMemberInput!): EnrollMemberResult!loginMemberGIP
Website member login via GIP (Google Identity Platform)
loginMemberGIP(input: LoginMemberGIPInput!): GIPMemberAuthPayload!passkeyAuthenticate
Verify passkey authentication and return Firebase custom token with tenant ID
passkeyAuthenticate(authenticationResponse: JSONObject!, expectedChallenge: String): PasskeyAuthResponse!passkeyAuthenticationOptions
Generate WebAuthn authentication options
passkeyAuthenticationOptions(tenantId: String, userEmail: String, userId: String, userType: String): JSONObject!recordLoyaltyTransaction
Partner SDK: credit or debit a member’s AKIN points (server-to-server, idempotent). Requires a partner API key with the loyalty:write scope.
recordLoyaltyTransaction(input: RecordLoyaltyTransactionInput!): RecordLoyaltyTransactionResult!redeemReward
Partner SDK: record that a member redeemed one of the partner’s rewards (server-to-server, idempotent). Requires a partner API key with the loyalty:write scope.
redeemReward(input: RedeemRewardInput!): RedeemRewardResult!requestMagicLink
Request a magic link for login. Sends email to existing users. With createIfMissing (the apps, akin-travel/issues#6745), an address with no account gets a join link instead, and both emails carry a 6-digit code for verifyAuthCode; the response is the same either way.
requestMagicLink(analyticsContext: JoinAnalyticsContextInput, attributionToken: String, captchaToken: String, createIfMissing: Boolean, dateOfBirth: String, email: String!, forApp: Boolean, locale: String, nationality: String, partnerId: ID, partnerSlug: String, propertyId: ID, redirectUrl: String, referralCode: String, returnUrl: String, signupLocation: SignupLocation, userType: String!, utmCampaign: String, utmMedium: String, utmSource: String, viaHandle: String): RequestMagicLinkResult!requestPartnerBotSignInCode
A partner bot asks AKIN to email a member a 6-digit sign-in code (akin-travel/issues#8170). Needs a SECRET partner API key. An address with an account gets the log-in email, branded for the key’s partner, with a code for verifyPartnerBotSignInCode; an address AKIN does not know gets nothing — no account, no join email — and the SAME answer. Sign in only, never join
requestPartnerBotSignInCode(email: String!, locale: String): PartnerBotSignInCodeResult!signUpPasswordless
Creates a member account via an email verification link (website/white-label). NOT the passkey flow (passkeys are enrolled post-signup); NOT the removed iOS OTP login.
signUpPasswordless(input: SignUpPasswordlessInput!): SignUpResult!updateMember
Update member
updateMember(id: ID!, input: UpdateMemberInput!): Member!verifyAuthToken
Verify auth token from email link and return Firebase custom token for sign-in.
verifyAuthToken(token: String!): AuthTokenResult!verifyPartnerBotSignInCode
A partner bot swaps the 6-digit code a member received for a READ-ONLY token for that member (akin-travel/issues#8170). Needs the same SECRET partner API key, and only a code that key’s partner asked for. The code and the link in its email are one credential: whichever is used first, the other is refused. Returns an AKIN-signed bearer carrying the partner-bot read scope — every write tool on /mcp and every mutation on /graphql refuses it, and it is not a Firebase credential — or a typed refusal. A sign-in that needs a step a chat cannot finish answers SIGN_IN_ON_WEBSITE and no token. Never creates an account
verifyPartnerBotSignInCode(code: String!, email: String!): PartnerBotSignInResult!Types
AuthRefusal
Enum
Why a sign-in code or link was refused (akin-travel/issues#6816). WRONG_CODE: the code is wrong and the member may try again. CODE_EXPIRED: the code is dead (used, expired, replaced by a newer email, or never sent) — request a new one. CODE_LOCKED: too many tries — request a new code. LINK_ALREADY_USED: the link (or its code) has already been used. CODE_DAILY_LIMIT: too many code tries for this address today — the link in the email still works (akin-travel/issues#6748). CODE_SUPERSEDED: a newer email for this address replaced the code — use the code in the newest email (akin-travel/issues#8929)
| Value | Description |
|---|---|
CODE_DAILY_LIMIT | |
CODE_EXPIRED | |
CODE_LOCKED | |
CODE_SUPERSEDED | |
LINK_ALREADY_USED | |
WRONG_CODE |
AuthTokenResult
Object
Result of token verification
| Field | Type | Description |
|---|---|---|
| customToken | String | Firebase custom token for sign-in |
| error | String | Error message if failed |
| initialSync | InitialSyncSummary | Always null — the welcome sync was removed. Kept for installed mobile builds that select it |
| isNewUser | Boolean | Whether this is a new user (first verification) |
| legalAcceptanceRequired | Boolean | True when the signed-in member has recorded no Terms or Privacy acceptance at all — a member created at this sign-in, or one synced from a PMS without signing up (akin-travel/issues#6555). A client then shows the member the same Terms + Privacy clickwrap as sign-up (on the web, at magic-link sign-in, before the page continues) and records it with reacceptLegalTerms, which stamps the in-force versions server-side. It is advisory, not a gate: no operation is refused without it (akin-travel/issues#3855). False for a member who has accepted any version, and for a sign-up, which records both versions itself |
| memberData | Member | Member data if user is a member |
| programTermsAcceptanceRequired | Boolean | True when the link was sent from a white-label Program’s site and the signed-in member’s ACTIVE enrolment in that Program records no accepted Program Terms version — a member created at this sign-in, or one who joined before Row 1 shipped (akin-travel/issues#6602). False for a member not yet in the Program: the link enrols them only when a partner key or an existing link proves the partner (akin-travel/issues#8435), and the white-label page asks its consent step, which enrols them. A white-label client then shows Row 1 of the sign-up consent screen and records it with acceptProgramTerms, which resolves the version server-side. Read it beside legalAcceptanceRequired: Row 1’s one tickbox covers the AKIN Terms and Privacy Policy too. Advisory, like legalAcceptanceRequired. False for a link with no partner, AKIN, a partner with no white-label Program, and a join. The website ignores it: its sign-in step has no Program Terms |
| refusal | AuthRefusal | Why the code or link was refused, for a client to branch on instead of matching error (akin-travel/issues#6816). Set on every verifyAuthCode refusal and on the link replay refusal; null on success and on every other failure |
| requiresPasskey | Boolean | Whether passkey setup is required |
| serverSignUpSent | Boolean | True only when this verify created a member from a join link and the API sent its GA4 sign_up with the asking browser’s consent and client id (akin-travel/issues#8941). The client then sends login, not sign_up |
| success | Boolean! | Whether verification was successful |
| tenantId | String | Tenant ID used when creating the custom token |
| userId | String | User ID |
| userType | String | User type: MEMBER or DASHBOARD_USER |
Booking
Object
Booking/reservation record
| Field | Type | Description |
|---|---|---|
| adultCount | Int | |
| averageNightlyRate | Float! | Average nightly rate (total price / nights), in the booking currency — cents preserved |
| balanceOwed | Float | Balance the guest owes the property on arrival: stay total − the AKIN 15% reservation deposit (bookingFee). NULL when no AKIN deposit was collected (a PMS-synced reservation where the property takes the whole amount at the desk) — clients render NULL as a fallback (the dashboard uses ”—”). |
| bookingDate | DateTimeISO | |
| bookingFee | Float | Booking fee amount (10% of total) |
| bookingFeePaid | Boolean! | Whether the booking fee has been paid |
| bookingFeePaidAt | DateTimeISO | When the booking fee was confirmed paid |
| bookingSourceId | String | FK to booking_sources table for channel attribution |
| bookingSurface | String | The site the booking was made on — AKIN or WHITE_LABEL, read from its trip. NULL for a booking with no trip (a PMS or channel import). Populated by the bookings list query only |
| bookingSurfaceName | String | AKIN, or the name of the partner whose site took the booking. NULL for a booking with no trip. Populated by the bookings list query only |
| cashDepositCollected | Float | Actual cash Stripe collected for this booking (the 15% deposit minus any travel credit applied), in the booking currency. Computed by the Stripe webhook as booking_fee * (chargeAmount / baseChargeAmount). The PMS push orchestrator posts THIS to the Cloudbeds folio instead of total_price, so the folio matches what AKIN charged the card. NULL = not recorded; 0 = travel credit covered the full deposit. |
| channelGuestConfirmationNumber | String | OTA guest-facing confirmation number (e.g. Booking.com 6044.913.102 the guest sees on their confirmation email). Distinct from pms_confirmation_number, which carries the channel-feed property-facing reservation id. Populated for OTA-channel bookings only. See akin-travel/issues#1551. |
| channelName | String | Booking channel from PMS (e.g., Direct, Booking.com, Expedia). Used for loyalty eligibility. |
| checkIn | String | Check-in date (YYYY-MM-DD, property-local). NULL for bad-data rows with no recorded check-in. |
| checkOut | String | Check-out date (YYYY-MM-DD, property-local). NULL for bad-data rows with no recorded check-out. |
| childCount | Int | |
| confirmationNumber | String | |
| consolidatedFrom | [String!] | Array of original booking IDs that were merged into this one |
| createdAt | DateTimeISO! | |
| currency | String | |
| depositRefundAmount | Float | Deposit amount refunded on an in-window (flexible-rate) cancellation, in depositRefundCurrency |
| depositRefundCurrency | String | ISO currency of the deposit refund |
| depositRefundType | DepositRefundType | How the deposit refund was issued: CASH (Stripe) or CREDIT (travel credit) |
| depositRefundedAt | DateTimeISO | When the deposit refund was issued |
| eligibilityReason | String | ⚠️ Deprecated. Sunset 2026-12-08: Use eligibilityReasonCode and translate client-side. Removal is blocked by GET_MEMBER_PROFILE (packages/api-client/src/operations/member.ts), which the dashboard member page fetches for BookingHistoryTable — akin-travel/issues#5572 — Deprecated alias of eligibilityReasonCode. Populated identically during migration. |
| exchangeRate | Float | USD exchange rate used for conversion |
| fees | Float | |
| guaranteeCardReference | String | PMS-side id of the stored guarantee card — for Mews the creditCards/getAll Id, i.e. the paymentMethodId the Checkout embed returns. A vault reference, never card data: AKIN never sees a PAN. It may be set with guaranteeCollectedAt still NULL, and that combination is meaningful rather than inconsistent (akin-travel/issues#5535): the status poll stamps this reference as soon as it VERIFIES a card, because AKIN cannot delete a stored Mews card and this row is the only durable trace of one it caused to be stored, while guaranteeCollectedAt is written only by the confirm and is what marks a booking GUARANTEED. So this field alone means OBSERVED, not collected — never read it as evidence of a guarantee, and never as evidence a booking confirmed. |
| guaranteeCollectedAt | DateTimeISO | When the guest’s card was stored as a guarantee for this booking — no charge was taken (akin-travel/issues#4586). NOT NULL means AKIN collected no deposit by design: bookingFee and cashDepositCollected are legitimately NULL, and balanceOwed is therefore NULL (the guest owes the property the whole stay). NULL on every deposit-model and PMS-imported booking. |
| guestEmail | String | Guest email for non-member bookings (for future member linking) |
| guestIdentityWithheld | Boolean | True when guest identity on this row was withheld by the Customer Data Availability Policy post-stay cutoff (the stay checked out over 60 days ago and the caller is partner/property staff). NULL = the policy did not act. Read this instead of inferring ‘not linked’ from a blank memberId — a withheld row and a genuinely member-less row look identical otherwise. Discloses nothing about whether a member is attached: every lapsed row is anonymised, linked or not. |
| guestPhone | String | Guest phone (E.164) for non-member bookings — orphan-link signal alongside guest_email |
| guests | Int | |
| id | ID! | |
| isAkinManaged | Boolean! | True when AKIN owns this booking’s lifecycle — created through AKIN direct-booking checkout (source=WEBSITE / trip flow) — vs a reservation synced in from the property PMS. Member-facing cancel / perks / edit controls gate on this so a synced reservation can’t be cancelled or have rewards changed through AKIN. See akin-travel/issues#1925. |
| isConsolidated | Boolean! | True if this booking was created by merging manual + PMS bookings |
| isLinked | Boolean! | True when the booking is linked to a member account (memberId is set). False = OTA/non-member booking. |
| isOriginBooking | Boolean! | True if booking is at member origin partner (members.origin_partner_id == property.partnerId). Never the vestigial members.partner_id — akin-travel/issues#4857 |
| loyaltyForfeitFraction | Float | The forfeited share behind loyaltyForfeitVerdict, 0-1: (0, 1] on EARNS, exactly 0 on FORFEITS, NULL on HELD and on every unstamped row (akin-travel/issues#5686). Points are round(fraction × spend_usd) and Travel Credit is fraction × the booking’s 2.5%, so a fraction below 1 is the pro-rata line the activity statement shows. |
| loyaltyForfeitVerdict | String | Which way this booking’s loyalty went on a cancel or no-show (akin-travel/issues#5686, epic #5683): EARNS (the member forfeited money and keeps the Points and Travel Credit on the forfeited share), FORFEITS (nothing was forfeited, nothing earns) or HELD (undecidable from the data — the folio settlement sweep or a human decides). NULL on every booking that has not been cancelled or no-showed since LOYALTY_ON_FORFEIT went live, and on every PMS-imported one. Read forfeitPreview for the copy a member sees BEFORE cancelling. |
| memberDiscountAmount | Float | The money memberDiscountRateApplied comes to on this booking’s CURRENT totalPrice, in the booking’s own currency. Written at checkout and rewritten by every date change: the change re-prices at the tier in effect at the time of the change and writes the rate it applied and the discount that rate came to on the new dates in the same statement, so this is always the saving on the stay the member now holds. 0 when the rate took nothing off it (the rate is 0, or the rail could not carry an AKIN price); NULL exactly when memberDiscountRateApplied is NULL. |
| memberDiscountRateApplied | Float | The member discount fraction AKIN last applied to this booking: stamped at checkout from the tier the member held then, and rewritten by every date change from the tier the member holds at the time of the change, up or down (akin-travel/issues#5997). 0.15 is 15%. 0 = the per-tier path ran and applied nothing (a guest, no partner rate, a rail that cannot carry one, a plan excluded from the member rate, or a plan that already carried the discount). NULL = the path has not run for this booking, because ENABLE_TIER_MEMBER_RATE was off at booking and at every date change since. |
| memberId | String | Member ID (null for non-member OTA bookings) |
| memberTierAtStay | String | Loyalty tier code the member held on arrival for this stay (e.g. TIER2), stamped once by the database on first CHECKED_IN/CHECKED_OUT/COMPLETED. Read-only. NULL = unknown, not a tier. |
| membershipYear | Int | Membership year (-1 = pre-membership, 1+ = membership years, null = unknown). Computed, not stored. |
| mergedIntoBookingId | String | If this booking was merged, points to the consolidated booking ID |
| metadata | BookingMetadata | Booking metadata |
| nights | Int! | Number of nights (minimum 1 for same-day stays) |
| paymentStatus | PaymentStatus | |
| pmsBookingId | String | |
| pmsCancelStatus | String | Outbound PMS cancel push state — tracked separately from create |
| pmsConfirmationNumber | String | PMS confirmation number (from property management system) |
| pmsCustomerId | String | Guest ID in the PMS (Mews CustomerId etc.) |
| pmsLastError | String | Most recent PMS push error message |
| pmsLastSyncedAt | DateTimeISO | Last successful PMS push timestamp |
| pmsPaymentPostedAt | DateTimeISO | When the Stripe-collected payment was posted to the PMS folio (Cloudbeds postPayment). NULL = not yet posted. Guards against double-post on retry. Set ONLY after a confirmed post (akin-travel/issues#1909), so a crash before the post leaves this NULL and the deposit stays retryable. |
| pmsReportedTotal | Float | What the PMS last reported this AKIN-managed booking costs, in the booking currency, once it has differed from totalPrice (akin-travel/issues#6309). AKIN keeps totalPrice/subtotal/taxes/fees (the checkout figures and the commission basis); a genuine PMS modification lands its total here instead. NULL when the PMS never reported a differing total, or the booking is PMS-imported and totalPrice follows the PMS. |
| pmsReportedTotalAt | DateTimeISO | When the PMS report in pmsReportedTotal was received (akin-travel/issues#6309). NULL exactly when pmsReportedTotal is NULL. |
| pmsSyncAttempts | Int | Number of attempts made to push this booking to the PMS |
| pmsSyncStatus | String | Outbound PMS push state: NOT_APPLICABLE, PENDING, SYNCING, SYNCED, FAILED |
| pointsEarned | Int | Points earned from this booking (derived from total_price + currency exchange rate) |
| propertyId | String! | |
| rateCurrency | String | Currency of the rate charged (from availability) |
| ratePlanId | String | Rate plan ID |
| refundabilityAtCheckout | RatePlanRefundability | The refundability label the member was shown at checkout, frozen at booking (akin-travel/issues#5685, exposed by akin-travel/issues#6334): REFUNDABLE, NON_REFUNDABLE or UNKNOWN (the rate said nothing either way). NULL means NO LABEL WAS RECORDED — every PMS-imported booking and every checkout before the column existed — and must never be read as non-refundable. Read it behind freeCancellationDeadline: a recorded deadline is the more precise answer. It describes the rate, it does not decide a change or a cancellation — the server’s quote does. |
| roomCount | Int | |
| roomTypeId | String | Room type ID |
| source | String | |
| specialRequests | String | |
| spendUsd | Float | Spend converted to USD via exchange rate |
| status | BookingStatus | |
| staySubtotal | Float | The pre-tax portion of stayTotal, resolved on the SAME basis. Render this — never the raw subtotal column — above a taxesFeesTotal row: the raw columns hold the checkout QUOTE, which at a Colombian property is a tax the folio does not charge, so stacking them under stayTotal shows a sum that does not add up. |
| stayTotal | Float | The full tax-inclusive stay total. Resolved folio-first (the property PMS is authoritative), falling back to the persisted subtotal+taxes+fees, then to the pre-tax total_price. Use this, not totalPrice, for any member-facing “what this stay costs” figure. |
| stripePaymentIntentId | String | Stripe PaymentIntent ID for booking fee |
| subtotal | Float | |
| taxIncluded | Boolean! | Whether the stay total genuinely accounts for tax. False means no tax was ever established for this booking (non-Cloudbeds property, no connection, failed quote, or a pre-#4904 row), so surfaces must disclose that property taxes may apply on top. A genuinely quoted zero is TRUE with a zero tax figure — the two are not the same fact. |
| taxQuoteSource | String | Provenance of subtotal/taxes/fees: PMS_QUOTE = quoted from the property PMS at checkout (the figure the deposit was sized off); UNQUOTED = no quote was obtainable, so the deposit fell back to pre-tax. NULL on rows predating akin-travel/issues#4904 — read as unknown, NEVER as zero-tax. |
| taxes | Float | |
| taxesFeesTotal | Float! | Tax + fees inside stayTotal. Zero both when tax is genuinely zero and when it was never established — read taxIncluded to tell those apart. |
| totalPrice | Float | |
| tripId | String | Trip ID (when booked via trip flow) |
| updatedAt | DateTimeISO! |
BookingMetadata
Object
Booking metadata
| Field | Type | Description |
|---|---|---|
| confirmationSent | Boolean | |
| internalNotes | String | |
| notes | String | |
| reminderSent | Boolean | |
| source | String |
BookingStatus
Enum
| Value | Description |
|---|---|
CANCELLED | |
CHECKED_IN | |
CHECKED_OUT | |
COMPLETED | |
CONFIRMED | |
MERGED | |
NO_SHOW | |
PENDING |
DateTimeISO
Scalar
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the date-time format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format.
DepositRefundType
Enum
| Value | Description |
|---|---|
CASH | |
CREDIT |
DeviceInfoInput
Input
Device information for session tracking
| Field | Type | Description |
|---|---|---|
| browser | String | |
| device | String | |
| ipAddress | String | |
| os | String | |
| userAgent | String |
EnrollMemberInput
Input
Server-to-server member enrollment by a partner
| Field | Type | Description |
|---|---|---|
String! | Member email (matched case-insensitively for idempotency) | |
| externalId | String | Partner’s own loyalty key for this member on their side. Unique per partner. |
| firstName | String! | |
| lastName | String! | |
| propertyId | String | The property the person signed up at. Must be one of your properties, or the call is refused with PROPERTY_NOT_FOUND and nothing is created. Set on a new member only; an existing member keeps its property. |
EnrollMemberResult
Object
Result of a partner server-to-server member enrollment
| Field | Type | Description |
|---|---|---|
| created | Boolean! | True if a new member account was created (vs an existing one reused) |
| enrollmentChanged | Boolean! | True if the partner enrollment was newly created or reactivated |
| memberId | ID! | AKIN member id for the partner to persist |
EnrollmentSource
Enum
| Value | Description |
|---|---|
DASHBOARD | |
MANUAL | |
MIGRATION | |
SDK | |
SIGNUP | |
URL_PARAM | |
WHITE_LABEL |
GIPMemberAuthPayload
Object
GIP member authentication payload
| Field | Type | Description |
|---|---|---|
| memberData | Member! | Loyalty member data |
| user | MemberUser! | GIP user information |
InitialSyncSummary
Object
Summary of initial signup sync (past + future stays)
| Field | Type | Description |
|---|---|---|
| failedStaysCount | Int! | Stays that failed to import and were skipped. Never populated: the welcome sync was removed |
| futureStays | [SyncedStay!]! | Future stays (no points yet) |
| futureStaysCount | Int! | Number of future stays synced |
| message | String | Summary message |
| pastStays | [SyncedStay!]! | Past stays with points awarded |
| pastStaysCount | Int! | Number of past stays synced |
| pointsAwarded | Int! | Total points awarded from past stays |
| success | Boolean! | Whether sync was successful |
JSONObject
Scalar
The JSONObject scalar type represents JSON objects as specified by ECMA-404 .
JoinAnalyticsContextInput
Input
With createIfMissing: the asking browser’s analytics consent and GA4 client id, for the server-sent GA4 sign_up of a join (akin-travel/issues#8941). Ignored without createIfMissing, and for an address that has an account
| Field | Type | Description |
|---|---|---|
| analyticsConsent | Boolean | True only when the browser has granted analytics consent. Anything else is stored as no consent |
| gaClientId | String | The GA4 client id (\<digits>.\<digits>, from the _ga cookie), sent only with consent. Dropped without consent; a value of another shape is stored as none |
LoginMemberGIPInput
Input
GIP (Google Identity Platform) authentication input for website members
| Field | Type | Description |
|---|---|---|
| countryCode | String | Country code (e.g., AU, US, GB) |
| dateOfBirth | String | Date of birth, YYYY-MM-DD, 18 or over (Customer Terms §3.1). Read only when this sign-in CREATES the member (a GIP user with no member row), and required for that create: without it the create is refused with the dateOfBirth field error signUpPasswordless gives. Never written to an existing member. See akin-travel/issues#7230, #7870 |
| deviceInfo | DeviceInfoInput | |
| enrollmentSource | EnrollmentSource | Where the sign-in originated from (white-label site, URL param, SDK, etc.). Used to tag partner enrollments for existing members signing in with a new partner context. Defaults to WHITE_LABEL when partnerId is set and this is omitted, or SDK when the request is partner-SDK-authenticated. Issue #1160. |
| firstName | String | First name for new member registration |
| gender | String | Gender, one of FEMALE, MALE, NON_BINARY, SELF_DESCRIBED, PREFER_NOT_TO_SAY (“Prefer not to say” is an answer). Read only when this sign-in creates the member, and required for that create, as the date of birth is: without it the create is refused with the gender field error. Never written to an existing member. See akin-travel/issues#8402 |
| genderSelfDescription | String | The member’s own words for their gender, up to 80 characters, with gender SELF_DESCRIBED. Read only when this sign-in creates the member. See akin-travel/issues#8402 |
| idToken | String! | GIP ID token from client authentication |
| lastName | String | Last name for new member registration |
| marketingOptIn | Boolean | Marketing email opt-in preference |
| nationality | String | Nationality (citizenship) as an ISO 3166-1 alpha-2 code — NOT countryCode, the phone’s dial country. Read only when this sign-in creates the member; optional, and validated when sent. See akin-travel/issues#7230, #7870 |
| partnerId | String | Partner ID for attribution tracking |
| phone | String | Phone number for SMS/MFA |
| termsAccepted | Boolean | Terms and conditions acceptance |
LoyaltyTierConfig
Object
Loyalty tier configuration
| Field | Type | Description |
|---|---|---|
| active | Boolean! | |
| cardBodyData | String | |
| cardFooterData | String | |
| createdAt | DateTimeISO! | |
| directBookingDiscountRate | Float | Fraction off the direct-booking price for a member holding this tier, on a rail that carries a price (the Mews channel-manager push). 0.15 is 15%; the stored value is range-checked to [0,1]. NULL means the rung is unset — NOT a zero-discount rung. |
| directBookingRatePlanName | String | Name of the PMS rate plan a member holding this tier books, resolved per property by name at quote time (the Cloudbeds delivery, where the property prices the stay). A name rather than a rate plan id because one rung serves every property in the partner. NULL means this rung delivers no tagged plan. |
| displayName | String! | |
| displayOrder | Int! | Ladder position, 1-based ascending. NOTE: backed by loyalty_tier_configs.tier_level, NOT the table’s display_order column. Sort ladder axes on this. |
| eligibility | String | |
| id | ID! | |
| maxPerksAllowed | Int! | |
| partnerId | String | |
| secretBenefits | Boolean! | Secret benefits — hide benefit details unless member has reached this tier |
| sourceLocale | String! | BCP-47 locale this tier config was authored in. Drives the source language used by translation.service. |
| tierByline | String | |
| tierColor | String | |
| tierIcon | String | |
| tierName | TierName! | |
| tierTextColor | String | |
| tierType | TierType! | |
| translations | JSONObject | Auto-translated content per locale |
| updatedAt | DateTimeISO! |
LoyaltyTransaction
Object
Loyalty points transaction record
| Field | Type | Description |
|---|---|---|
| balanceAfter | Int | ⚠️ Deprecated. Sunset 2027-03-08: No longer computed. Use getMemberBalance query instead. Removal is blocked by the published @akin-travel/sdk-core 0.1.0, 0.1.1 and 0.2.0 (live in apps/api/deployed-client-operations/registry.json; their frozen snapshots select it), by Android 1.1.3 (10103), live on Play with no snapshot, whose GetLoyaltyTransactions selected it, by the partner SDK document GET_LOYALTY_TRANSACTIONS_WITH_METRICS (packages/sdk-core/src/graphql/server-operations.ts), and by GET_LOYALTY_TRANSACTIONS_WITH_METRICS, GET_ACCOUNT_PAGE_DATA, GET_WHITE_LABEL_LOYALTY_DATA and GET_LOYALTY_TRANSACTIONS_BY_MEMBER (packages/api-client/src/operations/member.ts). GET_LOYALTY_TRANSACTIONS (member.ts) and the LOYALTY_TRANSACTION_FIELDS fragment (packages/api-client/src/fragments/booking.fragments.ts) also select it but nothing uses them; delete them with the field. akin-travel/issues#9038 clears these consumers |
| bookingChannelName | String | Booking channel from PMS (e.g., Direct, Booking.com) |
| bookingCheckIn | String | Booking check-in date YYYY-MM-DD (for booking transactions) |
| bookingCheckOut | String | Booking check-out date YYYY-MM-DD (for booking transactions). With bookingStatus, it is what the member activity statement leads a row by when no stay describes it: a future check-out is an upcoming stay, never a completed one (akin-travel/issues#6938). |
| bookingId | String | |
| bookingSourceType | String | Booking source type (web_direct, admin_direct, direct, pms, consolidated) |
| bookingStatus | String | The booking’s own status (CONFIRMED, CANCELLED, NO_SHOW, CHECKED_OUT, …) for booking transactions, null elsewhere (akin-travel/issues#6938). Display only: the earn label still keys on earnBasis. |
| createdAt | DateTimeISO! | |
| currency | String | Original booking currency code |
| description | String | |
| droppedNights | Int | The nights a shortened stay dropped, behind an AMENDMENT_FORFEIT earnBasis (akin-travel/issues#5869, epic #5862) — read through the leg’s forfeit event, since that leg carries no booking. The statement renders ‘Shortened stay · {property} · 2 nights’. NULL on every other leg. Populated only by loyaltyTransactionsWithMetrics and accountPageData (activityLog); always null on the loyaltyTransaction, loyaltyTransactions and loyaltyTransactionsByMember reads (akin-travel/issues#7752). |
| earnBasis | String | What this BOOKING leg is earned on (akin-travel/issues#5688, epic #5683): FORFEIT for a cancel / no-show whose loyalty_forfeit_verdict is EARNS — the member forfeited money and keeps the Points on the forfeited share, dated at the forfeit — or COMPLETED_STAY for every other booking leg, including one that earns nothing. NULL on the referral and adjustment legs. The activity-statement label (‘Forfeited booking’ vs ‘Completed stay’) keys on this, never on bookingStatus. |
| eligibilityReasonCode | String | Eligibility reason code for BOOKING transactions (null = eligible). Codes: BOOKING_CANCELLED, STATUS_NOT_COMPLETED, PRE_MEMBERSHIP_OUTSIDE_WINDOW, OTA_NOT_ELIGIBLE, NON_REVENUE_CHANNEL. Null on another partner’s stay for a partner-facing reader, whatever the code: the code names the stay’s lifecycle (akin-travel/issues#8242). |
| exchangeRate | Float | Exchange rate to USD at time of booking |
| expiresAt | DateTimeISO | When these points expire (null = never) |
| id | ID! | |
| isDuplicate | Boolean | True when this transaction is a same-day same-property duplicate of another transaction for this member — computed server-side via ROW_NUMBER so pagination cannot split a duplicate group across pages (akin-travel/issues#1231). |
| isMergedDuplicate | Boolean | True on the BOOKING leg of a MERGED booking — a duplicate import folded into a surviving booking, which carries its points (akin-travel/issues#7860). Never withheld, so a reader without the survivor’s reference still sees the row as merged, not pending. False on every other row. |
| isPermanent | Boolean | True if points never expire (tattoo, etc.) |
| loyaltyForfeitFraction | Float | The forfeited share behind a FORFEIT earnBasis, 0-1 (akin-travel/issues#5686): below 1 the statement adds a pro-rata line (‘25% of the stay was charged’). NULL on every other leg. Populated only by loyaltyTransactionsWithMetrics and accountPageData (activityLog); always null on the loyaltyTransaction, loyaltyTransactions and loyaltyTransactionsByMember reads (akin-travel/issues#7752). |
| memberId | String! | |
| membershipYear | Int | Membership year (-1 = pre-membership, 1+ = membership years, null = unknown) |
| mergedIntoBookingReference | String | The surviving booking’s reference (its PMS confirmation number, else its AKIN confirmation number, else ’#’ and the first 8 characters of its id) on the BOOKING leg of a MERGED booking, a duplicate import the cross-rail merge folded into that survivor; null on every other row (akin-travel/issues#7860). The admin activity statement says ‘Merged into <reference>’ instead of the pending copy the view’s STATUS_NOT_COMPLETED code would give it. Withheld from a reader outside the survivor’s tenancy (partner staff outside its partner, property staff outside its property), as Booking is; isMergedDuplicate still says the row is merged. |
| nightsMemberOrigin | Int | Nights (member origin scope) |
| nightsNetwork | Int | Nights (network scope) |
| nightsPartner | Int | Nights (partner scope - requires context) |
| pointsChange | Int! | |
| propertiesMemberOrigin | Int | Distinct properties (member origin scope) |
| propertiesNetwork | Int | Distinct properties (network scope) |
| propertiesPartner | Int | Distinct properties (partner scope - requires context) |
| propertyId | String | Property ID of the booking that produced this transaction (populated only via loyaltyTransactionsWithMetrics; null on the plain ledger query) |
| reason | String | |
| relatedMemberEmail | String | Obfuscated email of the related member (for referral transactions) |
| source | String | Source of this transaction (booking, referral, preference, adjustment) |
| spendMemberOrigin | Float | Spend in USD (member origin scope) |
| spendNetwork | Float | Spend in USD (network scope) |
| spendOriginal | Float | Spend in original booking currency |
| spendPartner | Float | Spend in USD (partner scope - requires context) |
| staysMemberOrigin | Int | Stays (member origin scope). Null on another partner’s booking for a partner-facing reader, as staysNetwork (akin-travel/issues#8242). |
| staysNetwork | Int | Stays (network scope). 0 on a cancelled or no-show booking. Null on another partner’s booking for a partner-facing reader, where the count would say the stay was cancelled (akin-travel/issues#8242). |
| staysPartner | Int | Stays (partner scope - requires context) |
| transactionType | LoyaltyTransactionType! |
LoyaltyTransactionDirection
Enum
Direction of a server-to-server partner points write
| Value | Description |
|---|---|
CREDIT | |
DEBIT |
LoyaltyTransactionType
Enum
Type of loyalty transaction
| Value | Description |
|---|---|
ADJUSTED | |
ADJUSTMENT | |
AMENDMENT_FORFEIT | |
BONUS | |
BOOKING | |
EARN | |
EARNED | |
EXPIRATION | |
EXPIRED | |
REDEMPTION | |
REFERRAL | |
REFERRAL_REFERRED | |
REFERRAL_REFERRER | |
SPENT |
LoyaltyTransactionsWithMetricsResult
Object
Paginated loyalty transactions with tier metrics
| Field | Type | Description |
|---|---|---|
| items | [LoyaltyTransaction!]! | |
| totalCount | Int! |
Member
Object
Member of the loyalty program
| Field | Type | Description |
|---|---|---|
| accessibilityNeeds | String | Member-supplied accessibility needs, free text (may be GDPR Art. 9 health data — optional, never inferred). |
| addressCity | String | Postal address — city. |
| addressCountryCode | String | Postal address — ISO 3166-1 alpha-2 country code, upper-case. |
| addressLine1 | String | Postal address — line 1. |
| addressLine2 | String | Postal address — line 2. |
| addressPostalCode | String | Postal address — postal code. |
| addressRegion | String | Postal address — state / region. |
| attribution | MemberAttribution | Why this member is in the viewing partner’s cohort, and until when. NULL means not resolved for this viewer (GLOBAL scope / policy dark) — it is NOT a tie and must never render as a default one |
| avatarModeration | String | Avatar moderation status: null (pending), approved, rejected |
| avatarUrl | String | URL of member profile avatar image |
| closedAt | DateTimeISO | When the member closed their account (soft-delete); row is hard-purged 3 years after this |
| countryCode | String | |
| createdAt | DateTimeISO! | |
String! | ||
| emailPreferences | JSONObject | Per-template-code email opt-in/out map. Shape: { “<templateCode>”: boolean }. Absent entry = use default (transactional always on; marketing falls back to marketing_opt_in). See akin-travel/issues#1563 |
| emergencyContactName | String | Emergency contact — name. |
| emergencyContactPhone | String | Emergency contact — phone number, validated like the member phone. |
| firstName | String | |
| id | ID! | |
| initialBonusAwardedAt | DateTimeISO | When initial signup sync was performed (one-time bonus) |
| lastName | String | |
| loyaltyNumber | String | |
| marketingOptIn | Boolean | |
| networkYearStart | DateTimeISO | When member network year began (for annual reset) |
| originPartnerId | String | Partner where member originally signed up |
| originPropertyId | String | Property where member originally signed up (for QR code tracking) |
| perkPreferences | [String!] | |
| phone | String | |
| placeTypePreferences | [String!] | |
| preferencesBonusAwarded | Int | Points the one-time travel-preferences bonus paid on THIS updateMember write; null on every other write and every other read |
| preferredCurrency | String | Display currency the member chose (ISO 4217, one of DISPLAY_CURRENCY_CODES). Null when never chosen — the client keeps the browser’s stored choice. |
| preferredLanguage | String | |
| privacyAcceptedAt | DateTimeISO | Server-stamped time the member accepted the Privacy Policy |
| privacyAcceptedVersion | String | Published Privacy Policy version the member accepted (e.g. v24.05.2026). See akin-travel/issues#1820 |
| processingObjectionAt | DateTimeISO | GDPR Art. 21 (AKIN-1023#AKIN-1039): when a staff-upheld objection to legitimate-interests processing took effect. Non-NULL suppresses every MARKETING-category email at the send-time gate, ahead of marketingOptIn and emailPreferences. NULL = no active objection. Set only by resolveProcessingObjection, never by the member. |
| signedUpByUserId | String | Dashboard/staff user who enrolled this member (for staff competition leaderboard) |
| signupLocation | SignupLocation | Where the member originally signed up |
| status | MemberStatus | |
| termsAccepted | Boolean | |
| termsAcceptedAt | DateTimeISO | Server-stamped time the member accepted the Customer T&C |
| termsAcceptedVersion | String | Published Customer T&C version the member accepted (e.g. v24.05.2026); pre-v24.05.2026 for legacy rows. See akin-travel/issues#1820 |
| updatedAt | DateTimeISO! | |
| utmCampaign | String | UTM campaign parameter captured at signup (e.g., spring2026) |
| utmMedium | String | UTM medium parameter captured at signup (e.g., newsletter, cpc) |
| utmSource | String | UTM source parameter captured at signup (e.g., email, google) |
| vibePreference | String |
MemberAttribution
Object
Why a member is in the viewing partner’s cohort, and when that ceases
| Field | Type | Description |
|---|---|---|
| checkIn | String | Check-in of the booking behind the tie (YYYY-MM-DD). Null for WHITE_LABEL — a standing enrolment owns no booking |
| checkOut | String | Check-out of the booking behind the tie (YYYY-MM-DD). Null for WHITE_LABEL |
| tie | MemberQualifyingTie! | The member’s strongest qualifying tie to the viewing partner |
| visibleUntil | String | Last day this tie keeps the member in the cohort (YYYY-MM-DD): check-in for CANCELLED_UPCOMING, check-out + 60 days for POST_STAY_WINDOW. Null when the tie has no date-bounded expiry (BOOKING_WINDOW rolls into the post-stay window; WHITE_LABEL is standing) — never a guess |
MemberProfile
Object
Comprehensive member profile with statistics
| Field | Type | Description |
|---|---|---|
| bookingHistory | [Booking!]! | Booking history for this member |
| favoriteReward | String | Most frequently selected reward/perk |
| lifetimeStats | MemberStats! | Lifetime statistics |
| member | Member! | Core member data |
| membershipYearStats | MemberStats! | Statistics for current membership year (from join date anniversary) |
| originPartnerName | String | Name of origin partner |
| originPropertyName | String | Name of origin property (for QR code tracking) |
MemberQualifyingTie
Enum
| Value | Description |
|---|---|
BOOKING_WINDOW | |
CANCELLED_UPCOMING | |
POST_STAY_WINDOW | |
WHITE_LABEL |
MemberStats
Object
Member statistics for a time period
| Field | Type | Description |
|---|---|---|
| akinPoints | Float! | AKIN points in this period (derived from bookings; masked to 0 for partner staff when the Data Availability Policy withholds it) |
| originStays | Int! | Number of stays at origin partner |
| totalNights | Int! | Total number of nights across all properties |
| totalStays | Int! | Total number of stays |
MemberStatus
Enum
| Value | Description |
|---|---|
ACTIVE | |
BLOCKED | |
CLOSED | |
INACTIVE | |
VIP |
MemberTierHistory
Object
Member tier change audit record
| Field | Type | Description |
|---|---|---|
| changeReason | TierChangeReason! | |
| createdAt | DateTimeISO! | |
| id | ID! | |
| memberId | String! | |
| metadata | String | |
| newTier | String! | |
| oldTier | String! | |
| pointsAtChange | Int | Points balance snapshot at the tier change. Withheld (null) from partner-facing reads under Data Availability Policy §4 — null means withheld, not zero. |
| staysAtChange | Int! |
MemberTierHistoryConnection
Object
| Field | Type | Description |
|---|---|---|
| edges | [MemberTierHistoryEdge!]! | |
| pageInfo | PageInfo! | |
| totalCount | Int! |
MemberTierHistoryEdge
Object
| Field | Type | Description |
|---|---|---|
| cursor | String! | |
| node | MemberTierHistory! |
MemberUser
Object
Member user info from GIP
| Field | Type | Description |
|---|---|---|
| countryCode | String | |
String! | ||
| emailVerified | String! | |
| firstName | String | |
| id | ID! | |
| lastName | String | |
| marketingOptIn | String | |
| name | String! | |
| phone | String | |
| phoneVerified | Boolean! | |
| termsAccepted | String | |
| termsAcceptedAt | String |
PageInfo
Object
| Field | Type | Description |
|---|---|---|
| endCursor | String | |
| hasNextPage | Boolean! | |
| hasPreviousPage | Boolean! | |
| startCursor | String |
PaginationInput
Input
| Field | Type | Description |
|---|---|---|
| after | String | |
| before | String | |
| first | Int | |
| offset | Int |
PartnerArrivalPerk
Object
A perk on an arriving booking
| Field | Type | Description |
|---|---|---|
| status | String! | The fulfilment status: PENDING, FULFILLED, … |
| text | String! | |
| tier | String | The tier key the perk belongs to, when it has one |
PartnerArrivalReward
Object
A reward the member can use at this partner, from the partner’s own catalogue
| Field | Type | Description |
|---|---|---|
| category | String | |
| name | String! | |
| rewardId | ID! | The reward template id |
PartnerArrivalRow
Object
One arrival at the partner’s property. Never a name, phone or address
| Field | Type | Description |
|---|---|---|
| bookingId | ID! | |
| bookingStatus | String! | The booking status: CONFIRMED or PENDING |
| checkIn | String! | Check-in day, YYYY-MM-DD |
| checkOut | String! | Check-out day, YYYY-MM-DD |
| confirmationNumber | String! | |
String | The member’s email — only when the member is enrolled with this partner, or the booking is current, upcoming or ended within 60 days. Otherwise null, and always null for an erased or closed member and for a member under a processing restriction or objection | |
| enrollmentSource | String | How the member enrolled with this partner (SIGNUP, WHITE_LABEL, SDK, …). Null when not enrolled |
| guests | Int! | |
| isEnrolledMember | Boolean! | The member is enrolled with this partner |
| memberId | ID! | The AKIN member id. Always set |
| nights | Int! | |
| originPropertyId | ID | The property the member joined at — only when it is one of this partner’s |
| perks | [PartnerArrivalPerk!]! | |
| pointsBalance | Float | Always null for a partner API key: no partner sees a member’s points balance (Customer Data Availability Policy §2.1/§4). Set only where the points rule allows it (an AKIN admin, or the member’s own read), and then only for a member enrolled with this partner |
| priorStaysAtPartner | Int! | Completed stays at this partner’s properties before this check-in. Never stays elsewhere |
| rateCode | String | The PMS rate code on the booking |
| rateName | String | The rate plan name for that code, when the property has one |
| rewardsUsable | [PartnerArrivalReward!]! | Rewards the member can use at this partner, at the member’s tier |
| roomCount | Int! | |
| tier | String | The member’s tier name in this partner’s programme |
PartnerArrivalsReport
Object
A property’s arrivals for one day
| Field | Type | Description |
|---|---|---|
| date | String! | The property’s local day, YYYY-MM-DD |
| propertyId | ID! | |
| rowCap | Int! | The most rows one call returns |
| rows | [PartnerArrivalRow!]! | |
| truncated | Boolean! | True when the day has more arrivals than rowCap; the rows are the first rowCap |
PartnerBotSignInCodeResult
Object
The answer to requestPartnerBotSignInCode (akin-travel/issues#8170). Identical for an address with an account and one without
| Field | Type | Description |
|---|---|---|
| error | String | Why the request itself failed (a server error). Null on success |
| success | Boolean! | True when the request was accepted. It says nothing about whether the address has an account |
PartnerBotSignInRefusal
Enum
Why verifyPartnerBotSignInCode refused (akin-travel/issues#8170). CODE_REFUSED: not a code that works — wrong, expired, locked after too many tries, or never sent; ask the member again, and after a few tries send a new code. It never says whether the address has an account. CODE_DAILY_LIMIT: too many tries for this address today — try again tomorrow. LINK_ALREADY_USED: the code, or the link in the same email, was already used — send a new code. SIGN_IN_ON_WEBSITE: the code was right, but this sign-in needs a step a chat cannot finish (legal acceptance, Program Terms, a passkey, or an account the app must set up) — ask the member to sign in on the website or in the app, then come back. CANNOT_SIGN_IN: this address cannot sign in through a bot at all (for example a closed account) — do not send another code
| Value | Description |
|---|---|
CANNOT_SIGN_IN | |
CODE_DAILY_LIMIT | |
CODE_REFUSED | |
LINK_ALREADY_USED | |
SIGN_IN_ON_WEBSITE |
PartnerBotSignInResult
Object
The answer to verifyPartnerBotSignInCode (akin-travel/issues#8170)
| Field | Type | Description |
|---|---|---|
| error | String | English copy for the refusal, for a bot that reads only text. Null on success |
| expiresInSeconds | Int | How long the token is valid, in seconds, from now. Null on a refusal |
| refusal | PartnerBotSignInRefusal | Why the code was refused, for the bot to branch on instead of matching error. Null on success |
| success | Boolean! | True when the code was accepted and a token is returned |
| token | String | An AKIN-signed READ-ONLY bearer for the confirmed member: send it as Authorization: Bearer to /mcp and /graphql. It is not a Firebase token and needs no exchange. Every write tool and mutation refuses it, and it carries no staff access. Expires after expiresInSeconds; there is no refresh — send a new code. Null on a refusal |
PartnerMemberRead
Object
Partner-scoped member identity + current loyalty standing (tier).
| Field | Type | Description |
|---|---|---|
String! | ||
| firstName | String | |
| lastName | String | |
| memberId | ID! | AKIN member ID |
| tier | TierName | Member’s current calculated tier with this partner (current membership year) |
PartnerMemberSignup
Object
One member who signed up with the partner. Never a name, phone or address
| Field | Type | Description |
|---|---|---|
String | The member email — only when the member is enrolled with this partner (an ACTIVE enrolment). Null otherwise, and always null for an erased or closed member and for a member under a processing restriction or objection | |
| enrollmentSource | String | How the member enrolled with this partner (SIGNUP, WHITE_LABEL, SDK, DASHBOARD, URL_PARAM, MANUAL, MIGRATION). Null when the member is not enrolled with this partner |
| memberId | ID! | The member id |
| nextBookingCheckIn | String | The check-in date (YYYY-MM-DD) of that next booking |
| nextBookingPropertyId | ID | The property of the member’s first booking at this partner’s properties after signing up. Not the stay they signed up on, and not an extension of an earlier stay. Null when there is none |
| originPropertyId | ID | The property the member signed up at. Null when it is not one of this partner’s properties |
| signedUpAt | DateTimeISO! | When the member signed up with AKIN through this partner (the member account was created) |
PartnerMemberSignupConnection
Object
A page of the partner’s member sign-ups
| Field | Type | Description |
|---|---|---|
| nodes | [PartnerMemberSignup!]! | Sign-ups in sign-up order, oldest first |
| pageInfo | PageInfo! | Pass endCursor as after to read the next page |
PartnerMetricDefinition
Object
How one partnerMetrics figure is defined. Built from the AKIN metric registry
| Field | Type | Description |
|---|---|---|
| definition | String! | What the figure counts, in plain English |
| field | String! | The PartnerMetricsReport field this describes |
| id | String! | The registry id, e.g. partnerReporting.repeatGuests |
| measureClass | String! | ADDITIVE, SEMI_ADDITIVE or POINT_IN_TIME |
| name | String! | |
| summableAcrossDays | Boolean! | True when the figures of single days add up to the figure of the window |
| unit | String! | count, ratio (0–1), USD or nights |
PartnerMetricSuppression
Object
A partnerMetrics figure that is withheld. The figure itself is null
| Field | Type | Description |
|---|---|---|
| field | String! | The PartnerMetricsReport field that is null |
| reason | String! | |
| rule | String! | The small-cohort rule that withheld it |
| suppressed | Boolean! | Always true |
PartnerMetricsReport
Object
Partner Reporting API: the partner’s headline figures for one window, over its own properties
| Field | Type | Description |
|---|---|---|
| averageLengthOfStay | Float | Nights per member booking. Null when withheld: fewer than 5 member bookings behind it |
| cancellations | Int! | Member bookings cancelled or no-show |
| definitions | [PartnerMetricDefinition!]! | The definition of every figure on this payload |
| directBookingRate | Float | Share of bookings made through a direct channel, 0–1 |
| from | DateTimeISO! | First day of the window (UTC) |
| loyaltyMemberStayRate | Float | Share of stays made by members enrolled with the partner, 0–1 |
| loyaltySignups | Int | Members who signed up in the window. Null when withheld |
| memberRevenueUsd | Float! | Revenue in USD from direct member bookings made after joining |
| noShows | Int | Member bookings with status NO_SHOW. Part of cancellations. Null when withheld: 1–4 no-shows |
| propertyId | ID | The property the figures are for; null = every property of the partner |
| repeatGuestRate | Float | Share of members with a post-join reservation who made a return visit, 0–1 |
| repeatGuests | Int | Members with a return visit made in the window. Null when withheld |
| rewardsAttributedRevenueUsd | Float | Revenue in USD attributed to a reward redemption. Null when withheld |
| suppressed | [PartnerMetricSuppression!]! | One row per figure that is withheld |
| to | DateTimeISO! | Last day of the window (UTC), included |
PartnerReportingAccess
Object
What a partner API key may do on the Partner Reporting API
| Field | Type | Description |
|---|---|---|
| flagEnabled | Boolean! | The Partner Reporting API flag. Always true here: while the flag is off, every reporting query refuses |
| partnerId | ID! | The partner the key is pinned to. Every reporting query reads this partner only |
| requestsPerMinute | Int! | Reporting calls one key may make in a minute |
| requestsRemaining | Int | Reporting calls left in this minute, after this one. Null when the limiter could not answer |
| resetsAt | DateTimeISO! | When the minute window resets, at the latest |
| scope | String! | The scope the key holds for reporting: reporting:read |
PasskeyAuthResponse
Object
Passkey authentication response
| Field | Type | Description |
|---|---|---|
| customToken | String! | Firebase custom token for authentication |
| tenantId | String! | GIP tenant ID the token was created for |
PaymentStatus
Enum
| Value | Description |
|---|---|
FAILED | |
PAID | |
PENDING | |
REFUNDED |
RatePlanRefundability
Enum
| Value | Description |
|---|---|
NON_REFUNDABLE | |
REFUNDABLE | |
UNKNOWN |
RecordLoyaltyTransactionInput
Input
Server-to-server partner points credit/debit
| Field | Type | Description |
|---|---|---|
| description | String | Optional longer description |
String | Member email (matched case-insensitively) | |
| externalId | String | Partner’s own external id for the member (as set on enrollment) |
| idempotencyKey | String! | Idempotency token. A retry with the same token returns the original transaction and writes nothing. |
| memberId | ID | AKIN member id |
| points | Int! | Positive points magnitude to credit or debit |
| reason | String! | Short reason, surfaced in the member activity statement |
| type | LoyaltyTransactionDirection! |
RecordLoyaltyTransactionResult
Object
Result of a server-to-server partner points write
| Field | Type | Description |
|---|---|---|
| balance | Float | Member’s network-wide points balance after the write. Withheld (null) from server-to-server partner-key callers under Data Availability Policy §4 — null means withheld, not zero. |
| idempotentReplay | Boolean! | True when this matched a prior idempotency key — no new write happened |
| memberId | ID! | AKIN member id the points were applied to |
| pointsChange | Int! | Signed delta applied (+credit / -debit) |
| transactionId | ID! | The loyalty transaction (adjustment) id |
| type | LoyaltyTransactionDirection! |
RedeemRewardInput
Input
Server-to-server partner reward redemption
| Field | Type | Description |
|---|---|---|
String | Member email (matched case-insensitively) | |
| externalId | String | Partner’s own external id for the member (as set on enrollment) |
| idempotencyKey | String! | Idempotency token. A retry with the same token returns the original redemption and writes nothing. |
| memberId | ID | AKIN member id |
| note | String | Optional note stored with the claim |
| propertyId | ID! | Property where the reward was redeemed. Must belong to the key’s partner. |
| rewardInstanceId | ID! | Reward instance id — the id returned by rewardInstancesForTier |
RedeemRewardResult
Object
Result of a server-to-server partner reward redemption
| Field | Type | Description |
|---|---|---|
| idempotentReplay | Boolean! | True when this matched a prior idempotency key — no new write happened |
| memberId | ID! | AKIN member id the reward was recorded against |
| propertyId | ID! | Property the redemption was recorded against |
| redeemedAt | DateTimeISO! | When the redemption was recorded |
| redemptionId | ID! | The member activity (REWARD_CLAIM) id |
| remainingRedemptions | Int | Redemptions of this reward still available to the member under the tightest limit enforced on this claim. Null when no limit is enforced. |
| rewardId | ID! | The underlying reward template id — the identity network limits are counted on |
| rewardInstanceId | ID! | The reward instance that was redeemed |
| rewardName | String | Effective reward name at redemption time |
| tier | String | Member’s tier at redemption time |
RequestMagicLinkResult
Object
Result of magic link request
| Field | Type | Description |
|---|---|---|
| error | String | Error message if failed |
| success | Boolean! | Whether the request was successful |
| verificationUrl | String | Verification URL (E2E testing only - returned when E2E_AUTO_CONFIRM=true) |
SignUpErrorCode
Enum
Why a sign-up was refused. LEGAL_VERSION_STALE: a legal version is no longer in force — read currentLegalVersions again and ask the member to confirm. LEGAL_ACCEPTANCE_REQUIRED: one or both legal versions are missing (akin-travel/issues#6734)
| Value | Description |
|---|---|
LEGAL_ACCEPTANCE_REQUIRED | |
LEGAL_VERSION_STALE |
SignUpPasswordlessInput
Input
Passwordless signup input for website/white-label members
| Field | Type | Description |
|---|---|---|
| attributionToken | String | Time-bounded HMAC-signed assertion, minted by the white-label server, of the partner whose HOST this sign-up came from. Every other partner signal on this input is client-chosen by design (QR / referral / cookie attribution); this is the only one the API can verify, so it is what gates the Row 1 program-terms write — a consent record must not attach to a partner the caller merely named. It expires a day after it is minted, which is a whole sign-up session and not a page render (akin-travel/issues#5570) — what makes a scraped copy useless is the signature, not the clock. Omitted by the website and the SDK, neither of which writes a program-terms version. See akin-travel/issues#3944 |
| captchaToken | String | Cloudflare Turnstile token from the shared invisible widget (akin-travel/issues#3199). Transport-only — consumed by the RequireCaptcha middleware before the resolver body runs and never persisted on the member. Nullable because enforcement is dark-launched behind ENABLE_AUTH_CAPTCHA while the native clients have no Turnstile path; a non-null field would break every existing caller on schema validation alone. |
| countryCode | String | Country code (e.g., AU, US, GB) |
| dateOfBirth | String | Date of birth, YYYY-MM-DD. Members must be 18 or over (Customer Terms §3.1). Required, whatever signupLocation says: a sign-up without it is refused with the dateOfBirth field error. Nullable on the wire so an installed client that does not send it gets that field error, not a schema error. See akin-travel/issues#4140, #7870 |
String! | Email address | |
| firstName | String! | First name |
| forApp | Boolean | The native app is asking for this link (akin-travel/issues#6652). The link then carries the one path the apps claim (/\{locale\}/auth/app-verify) instead of the web path, so it opens the app on a phone that has one; the website forwards the app path to the web sign-in page, so a phone without the app still signs in. Omit it on the web: a web link must open in the browser |
| gender | String | Gender, one of FEMALE, MALE, NON_BINARY, SELF_DESCRIBED, PREFER_NOT_TO_SAY (“Prefer not to say” is an answer). Required on a WEBSITE or WHITE_LABEL sign-up, which asks it beside the date of birth: without it the sign-up is refused with the gender field error. Optional on every other surface; a value that is sent is validated. See akin-travel/issues#8402 |
| genderSelfDescription | String | The member’s own words for their gender, up to 80 characters, kept only with gender SELF_DESCRIBED (dropped with any other token, as on updateMember). See akin-travel/issues#8402 |
| lastName | String! | Last name |
| locale | String | User locale for email links (e.g., en, de, fr) |
| marketingOptIn | Boolean | Row 3 — marketing opt-in for AKIN, across the whole AKIN network (spec §2.3). On the website this is the single marketing opt-in |
| nationality | String | Nationality (citizenship) as an ISO 3166-1 alpha-2 code — NOT countryCode, which is the phone number’s dial country. Optional at sign-up; a value that is sent is validated. See akin-travel/issues#4140, #7870 |
| partnerId | ID | Partner ID for attribution |
| partnerMarketingOptIn | Boolean | Row 2 — marketing opt-in for the attributed white-label Partner specifically (spec §2.2). Recorded separately from marketingOptIn: §2.4 forbids collapsing rows 2 and 3 into a single marketing flag. See akin-travel/issues#3427 |
| partnerSlug | String | Partner slug for URL building (preferred over partnerId) |
| phone | String | Phone number |
| privacyAcceptedVersion | String | Published Privacy Policy version the member agreed to (must match the current LEGAL_PRIVACY_VERSION). See akin-travel/issues#1820 |
| programTermsAccepted | Boolean | Row 1 of the white-label consent screen included this program’s WL Program Terms & Conditions (Sign-Up Flow & Consent Spec 18 Jul 2026 §2.1). A boolean, NOT a version: the accepted version is resolved server-side from the attributed program, because the program documents are server-rendered and a client cannot be the authority on which one it showed. See akin-travel/issues#3427 |
| propertyId | ID | Property ID for signup tracking (from QR code links) |
| redirectUrl | String | Custom verification page URL for SDK integrations (e.g., https://viajero.com/auth/verify ) |
| referralCode | String | Referral code from referrer |
| signedUpByUserId | ID | Staff user id credited for this signup (the su param on a promotions QR link). Spoofable — server-validated against the attributed partner and dropped to NULL when it does not belong. See akin-travel/issues#3434 |
| signupLocation | SignupLocation | Surface the signup originated from. Every surface except SDK must send both legal versions (akin-travel/issues#1820, #7502). An SDK sign-up (or one naming no surface) on a request with a verified partner API key may omit them when termsAccepted is true: the server then records the in-force versions as the partner’s attestation. Without a verified key an SDK claim earns no relaxation |
| termsAccepted | Boolean | Terms and conditions acceptance |
| termsAcceptedVersion | String | Published Customer T&C version the member agreed to (must match the current LEGAL_TERMS_VERSION). See akin-travel/issues#1820 |
| utmCampaign | String | UTM campaign parameter for campaign tracking |
| utmMedium | String | UTM medium parameter for campaign tracking |
| utmSource | String | UTM source parameter for campaign tracking |
| viaHandle | String | Readable QR handle credited for this signup (the via param on a cascading-QR link, e.g. paula-diaz). Resolved to a dashboard user and validated against the attributed partner exactly like su; wins over su when both are present. See akin-travel/issues#3507 |
SignUpResult
Object
Result of passwordless signup
| Field | Type | Description |
|---|---|---|
String | Email address | |
| error | String | Error message if failed |
| errorCode | SignUpErrorCode | Typed reason for a refusal, when it has one (akin-travel/issues#6734). Branch on this, not on error: LEGAL_VERSION_STALE means read currentLegalVersions again and ask the member to confirm. Null on success and on refusals without a code |
| success | Boolean! | Whether signup was successful |
| userId | String | User ID if successful |
| verificationUrl | String | Verification URL (E2E testing only - returned when E2E_AUTO_CONFIRM=true) |
SignupLocation
Enum
| Value | Description |
|---|---|
ANDROID | |
DASHBOARD | |
IOS | |
SDK | |
WEBSITE | |
WHITE_LABEL |
StaffSignupsPropertyTotal
Object
The sign-ups at one property, over all its team members
| Field | Type | Description |
|---|---|---|
| eligibleSignups | Int! | |
| propertyId | ID | |
| propertyName | String | |
| signups | Int! | |
| teamMembers | Int! | Team members listed under this property, those with no sign-ups included |
StaffSignupsReport
Object
Sign-ups by team member for a date range
| Field | Type | Description |
|---|---|---|
| dateFrom | String! | First day of the window, YYYY-MM-DD (UTC), included |
| dateTo | String! | Last day of the window, YYYY-MM-DD (UTC), included |
| properties | [StaffSignupsPropertyTotal!]! | One total per property, most sign-ups first |
| rows | [StaffSignupsReportRow!]! | One row per team member and property. A team member with no sign-ups in the window has a row with zeros |
| totalEligibleSignups | Int! | |
| totalSignups | Int! |
StaffSignupsReportRow
Object
Sign-ups one team member made at one property. Never names a member
| Field | Type | Description |
|---|---|---|
| eligibleSignups | Int! | Of those, the members with a non-cancelled stay anywhere in the AKIN network, past, current or future |
| propertyId | ID | The property the members signed up at. Null when they signed up with no property |
| propertyName | String | |
| signups | Int! | Members this team member signed up at this property in the window |
| staffName | String | The team member’s name. Null for a shared login with no person’s name |
| staffUserId | ID! | The team member (a staff user) |
SyncedStay
Object
A synced stay from initial signup sync
| Field | Type | Description |
|---|---|---|
| checkIn | String! | Check-in date (YYYY-MM-DD) |
| checkOut | String! | Check-out date (YYYY-MM-DD) |
| confirmationNumber | String | Confirmation number |
| points | Int! | Points awarded (0 for future stays) |
| propertyName | String! | Property name |
| source | String | Booking source |
TierBenefitGroup
Object
A group of rewards scoped to all properties or a specific property
| Field | Type | Description |
|---|---|---|
| propertyId | String | Property ID (only when scope=PROPERTY) |
| propertyName | String | Property name (only when scope=PROPERTY) |
| rewardNames | [String!]! | Reward names in this group |
| scope | String! | ALL_PROPERTIES or PROPERTY |
TierBenefits
Object
Tier benefits - rewards available at a specific tier
| Field | Type | Description |
|---|---|---|
| groups | [TierBenefitGroup!] | Rewards grouped by scope (all properties vs per-property) |
| rewardNames | [String!]! | Flat list of all reward names at this tier (backward compat) |
| selectableRewardNames | [String!] | The names in rewardNames a member chooses at this tier (SELECTABLE) |
| staffOnlyRewardNames | [String!] | The names in rewardNames that staff give on request at this tier (STAFF_ONLY) rather than apply to every stay |
| tierName | String! |
TierChangeReason
Enum
Reason for tier change
| Value | Description |
|---|---|
MANUAL | |
POINTS | |
PROMOTION | |
STAYS |
TierName
Enum
Loyalty tier levels
| Value | Description |
|---|---|
TIER1 | |
TIER2 | |
TIER3 | |
TIER4 | |
TIER5 |
TierType
Enum
How a tier can be achieved - POINTS for activity-based progression, INVITATION for manual assignment only
| Value | Description |
|---|---|
INVITATION | |
POINTS |
UpdateMemberInput
Input
| Field | Type | Description |
|---|---|---|
| accessibilityNeeds | String | |
| addressCity | String | |
| addressCountryCode | String | ISO 3166-1 alpha-2; upper-cased on write |
| addressLine1 | String | |
| addressLine2 | String | |
| addressPostalCode | String | |
| addressRegion | String | |
| avatarUrl | String | URL of member profile avatar image |
| countryCode | String | |
| dateOfBirth | String | YYYY-MM-DD; a real past date, member at least 18 |
| emergencyContactName | String | |
| emergencyContactPhone | String | Validated like the member phone |
| firstName | String | |
| gender | String | FEMALE | MALE | NON_BINARY | SELF_DESCRIBED | PREFER_NOT_TO_SAY |
| genderSelfDescription | String | Accepted only with gender = SELF_DESCRIBED; cleared otherwise |
| lastName | String | |
| loyaltyNumber | String | ⚠️ Deprecated. Sunset 2026-12-31: refused; the loyalty number is minted by the server and never changes (akin-travel/issues#7567) |
| marketingOptIn | Boolean | |
| nationality | String | ISO 3166-1 alpha-2 nationality (citizenship); upper-cased on write. Never countryCode, which is the phone country |
| perkPreferences | [String!] | |
| phone | String | |
| placeTypePreferences | [String!] | |
| preferredCurrency | String | Display currency (ISO 4217, one of the selectable display currencies); null clears it |
| preferredLanguage | String | |
| signUpStep | Boolean | True only on the sign-up step’s save (the web profile step and details prompt, the apps’ “Set up your account”). The write is refused without a gender, sent or already on file: VALIDATION_ERROR with context { field: “gender”, reason: “REQUIRED” }. Not stored. Every other caller, checkout and the account editors included, leaves it unset and is never asked a gender |
| termsAccepted | Boolean | |
| vibePreference | String |