Skip to Content
The AKIN Travel developer platform is in beta — APIs may change. Get started →
Partner Reporting API

Partner Reporting API

The Partner Reporting API gives your back end the data of the AKIN dashboard: the arrivals at your properties, your new members and your headline figures. Use it to feed a front-desk list, a CRM or a BI tool. It is five GraphQL queries on the same endpoint as the rest of the API.

QueryWhat it returns
partnerReportingAccessWhat your key may do: the partner it is pinned to, its scope and the reporting rate limit
partnerArrivalsThe arrivals at one of your properties on one local day
partnerMemberSignupsThe members who signed up with your partner in a window, one page at a time
partnerMetricsYour headline figures for a window, with the definition of each figure
partnerStaffSignupsThe sign-ups each of your team members made at each of your properties in a window

Every query reads your partner only. The partner comes from the API key. No query takes a partnerId or a userId argument, so you cannot read another partner’s data, and nobody can read yours with their key.

Download the Postman collection to try the five queries. It has an apiKey variable and points at the sandbox. The partner schema is also a download: akin-partner-schema.graphql. It is generated from the API on each docs build.

Get a reporting key

A reporting call needs a secret partner API key that holds the reporting:read scope, on a partner that holds the reporting grant.

  1. The grant. AKIN turns on the Partner Reporting API for your partner. Only an AKIN administrator can change it. A white-label partner has it on by default. When the API launched, every active secret key of a white-label partner received reporting:read.
  2. The scope. In the dashboard, go to Developers → API keys. Create or edit a secret key and select the Read reporting scope (reporting:read). The API refuses the scope on a key of a partner that does not hold the grant.
  3. Secret keys only. A publishable (browser-safe) key can never hold reporting:read. The API refuses the scope when you create, update or rotate a publishable key, and refuses every reporting call made with one. The reporting queries return member email, and a publishable key ships in a page that anyone can read.

reporting:read is never implied. An older key with an empty scope list keeps its other reads, but it does not get reporting. Add the scope to the key.

Send the key in the x-partner-api-key header, from your server only:

curl https://sandbox.akintravel.com/graphql \ -H 'content-type: application/json' \ -H 'x-partner-api-key: sk_test_…' \ -d '{"query":"{ partnerReportingAccess { partnerId scope requestsPerMinute requestsRemaining resetsAt } }"}'

Privacy rules

These rules apply to every reporting query. The API applies them on the server; you do not have to filter anything.

  • Your own members only. A member-level row is a guest at one of your properties (partnerArrivals) or a member who signed up with your partner (partnerMemberSignups). You never get another partner’s activity, earn or spend history.
  • The member id, always. Every row carries the AKIN member id (memberId), so you can join rows across queries.
  • Enrolled means an active enrolment. A member is enrolled with your partner when their enrolment with your partner is active. A member who left your programme is not enrolled. isEnrolledMember and enrollmentSource follow this rule on both queries.
  • Email only where it is allowed. On both queries you get the email of a member enrolled with your partner. On partnerArrivals you also get the email of a guest who is not enrolled, but only while the booking is current or upcoming, or ended within the last 60 days. On partnerMemberSignups a member who is not enrolled keeps the row, so the count still matches the dashboard, but email is null.
  • Closed and restricted members. A member who closed or erased the account, or who restricted or objected to the processing of their data, keeps the row on both queries, with the member id. The row has no email, no points balance and no enrolment fields: email, pointsBalance, enrollmentSource and originPropertyId are null and isEnrolledMember is false.
  • No points balance for a partner key. pointsBalance is always null when you call with your partner API key. No partner sees a member’s points balance, in any view. The field exists for AKIN’s own reads only.
  • Never a name, phone or address. No reporting type has a field for a member’s name, phone or address. partnerStaffSignups names your own team members, never a member.
  • Small groups are withheld. A figure that rests on fewer than 5 members could identify a guest. partnerMetrics returns it as null, never 0, and lists it in suppressed.

Rate limit

Each key may make 60 reporting calls a minute. This limit is per key, separate from and tighter than the key’s general rate limit. A call over the limit gets extensions.code = "RATE_LIMITED" with HTTP 429, and extensions.resetsAt and extensions.retryAfterSeconds tell you when to retry. partnerReportingAccess returns requestsRemaining for the current minute.

Every reporting call writes an audit line on the AKIN side: the query, your partner, the key, the dates, property and page size, whether a cursor was sent, and the number of rows. The audit line never holds an email, a member id or the cursor itself.

partnerReportingAccess

Check a key before you use it. No arguments.

query { partnerReportingAccess { partnerId scope requestsPerMinute requestsRemaining resetsAt flagEnabled } }
FieldTypeDescription
partnerIdID!The partner the key is pinned to. Every reporting query reads this partner only
scopeString!The reporting scope the key holds: reporting:read
requestsPerMinuteInt!Reporting calls one key may make in a minute (60)
requestsRemainingIntReporting calls left in this minute, after this one. null when the limiter could not answer
resetsAtDateTimeISO!When the minute window resets, at the latest
flagEnabledBoolean!Always true in a response. While the API is switched off, every reporting query refuses instead
{ "data": { "partnerReportingAccess": { "partnerId": "ebdec754-a48a-4579-a896-ae6585651629", "scope": "reporting:read", "requestsPerMinute": 60, "requestsRemaining": 59, "resetsAt": "2026-11-19T09:01:00.000Z", "flagEnabled": true } } }

partnerArrivals

The arrivals at one of your properties on one day: every booking in status CONFIRMED or PENDING whose check-in is that day.

partnerArrivals(propertyId: ID!, date: String!): PartnerArrivalsReport!
ArgumentTypeDescription
propertyIdID!One of your properties. Another partner’s property is refused
dateString!The property’s local day, YYYY-MM-DD

Date window. date must be from 366 days before to 30 days after today, where today is read on the property’s own clock. A day outside that window is refused with VALIDATION_ERROR, and the message names the allowed range. To backfill a year of arrivals, call once per day. On a past arrival, email follows the same rule as today: it shows for an enrolled member, or within 60 days after the stay.

Row cap. One call returns at most 500 rows, and there is no cursor. One property’s arrivals on one day are almost always far fewer than 500, so one call reads the whole day. When the day has more, truncated is true and the rows are the first 500.

PartnerArrivalsReport:

FieldTypeDescription
propertyIdID!The property
dateString!The property’s local day, YYYY-MM-DD
rowCapInt!The most rows one call returns (500)
truncatedBoolean!true when the day has more arrivals than rowCap
rows[PartnerArrivalRow!]!The arrivals

PartnerArrivalRow:

FieldTypeDescription
bookingIdID!The AKIN booking id
confirmationNumberString!The booking’s confirmation number
checkIn, checkOutString!Check-in and check-out days, YYYY-MM-DD
nights, guests, roomCountInt!Length of stay, guests and rooms
bookingStatusString!CONFIRMED or PENDING
memberIdID!The AKIN member id. Always set
emailStringThe member’s email, under the email rule. Otherwise null
isEnrolledMemberBoolean!The member is enrolled with your partner (an active enrolment). false for a closed or restricted member
tierStringThe member’s tier name in your programme
priorStaysAtPartnerInt!Completed stays at your properties before this check-in. Never stays elsewhere
perks[PartnerArrivalPerk!]!The perks on the booking: text, tier and status (PENDING, FULFILLED, …)
rewardsUsable[PartnerArrivalReward!]!The rewards from your own catalogue that the member can use here, at the member’s tier: rewardId, name, category
pointsBalanceFloatAlways null for a partner API key. No partner sees a member’s points balance
rateCodeStringThe rate code your PMS holds for the booking (for Mews, the reservation’s rate id)
rateNameStringThe name of the rate plan for that code at this property, when there is one. On a Mews property connected through the Channel Manager, the name of the rate plan that Mews rate is mapped to
enrollmentSourceStringHow the member enrolled with your partner (SIGNUP, WHITE_LABEL, SDK, …). null when not enrolled
originPropertyIdIDThe property the member joined at, only when it is one of yours. null for a closed or restricted member

Example request:

query { partnerArrivals(propertyId: "qa-sbx-rpt-prop-hotel", date: "2026-11-19") { date truncated rows { bookingId memberId email isEnrolledMember tier priorStaysAtPartner pointsBalance rateCode rateName enrollmentSource } } }

Example response:

{ "data": { "partnerArrivals": { "date": "2026-11-19", "truncated": false, "rows": [ { "bookingId": "qa-sbx-rpt-bkg-01", "memberId": "qa-sbx-rpt-member-01", "email": "test+qa-sbx-rpt-01@akintravel.com", "isEnrolledMember": true, "tier": "Demo Bronze", "priorStaysAtPartner": 2, "pointsBalance": null, "rateCode": "MEMBER10", "rateName": "Member rate, 10% off", "enrollmentSource": "SIGNUP" }, { "bookingId": "qa-sbx-rpt-bkg-03", "memberId": "qa-sbx-rpt-guest-01", "email": "test+qa-sbx-rpt-g1@akintravel.com", "isEnrolledMember": false, "tier": null, "priorStaysAtPartner": 0, "pointsBalance": null, "rateCode": "OTA-NR", "rateName": null, "enrollmentSource": null } ] } } }

partnerMemberSignups

The members who signed up with your partner in a window, oldest first. The list is the dashboard’s sign-ups list: the members whose sign-up partner is yours. A member who signed up with another partner and enrolled with yours later is not in it. For any window, the number of rows equals the dashboard’s sign-ups figure, and partnerMetrics.loyaltySignups for the same from and to.

partnerMemberSignups(from: DateTimeISO!, to: DateTimeISO!, first: Int! = 100, after: String): PartnerMemberSignupConnection!
ArgumentTypeDescription
fromDateTimeISO!First day of the window. Read as a UTC day: the time is ignored
toDateTimeISO!Last day of the window, included. Read as a UTC day
firstInt!Page size, 1 to 500. Default 100. A larger value reads as 500
afterStringThe endCursor of the previous page

Window. The same window as partnerMetrics: UTC days, both ends included, at most 366 days. from must be on or before to, and not in the future. Otherwise the call is refused with VALIDATION_ERROR. For example, from: "2026-10-01" and to: "2026-10-31" read every sign-up in October, including those on 31 October.

Cursor. The order is by sign-up time, then member id. Pass pageInfo.endCursor as after to read the next page while pageInfo.hasNextPage is true. A page is stable while new members sign up. A cursor this query did not return is refused with VALIDATION_ERROR.

PartnerMemberSignupConnection: nodes ([PartnerMemberSignup!]!) and pageInfo (hasNextPage, hasPreviousPage, endCursor).

PartnerMemberSignup:

FieldTypeDescription
memberIdID!The member id
emailStringThe member’s email, only when the member is enrolled with your partner. null otherwise, and always null for a closed or restricted member
enrollmentSourceStringHow the member enrolled with your partner: SIGNUP, WHITE_LABEL, SDK, DASHBOARD, URL_PARAM, MANUAL or MIGRATION. null when the member is not enrolled with your partner
originPropertyIdIDThe property the member signed up at, only when it is one of yours
signedUpAtDateTimeISO!When the member signed up with AKIN through your partner: the time the member account was made
nextBookingPropertyIdIDThe property of the member’s first booking at your properties after signing up. Not the stay they signed up on, and not an extension of an earlier stay
nextBookingCheckInStringThe check-in day of that booking, YYYY-MM-DD

Example request:

query { partnerMemberSignups(from: "2026-10-20T00:00:00.000Z", to: "2026-11-19T00:00:00.000Z", first: 2) { nodes { memberId email enrollmentSource originPropertyId signedUpAt nextBookingPropertyId nextBookingCheckIn } pageInfo { hasNextPage endCursor } } }

Example response:

{ "data": { "partnerMemberSignups": { "nodes": [ { "memberId": "qa-sbx-rpt-member-01", "email": "test+qa-sbx-rpt-01@akintravel.com", "enrollmentSource": "SIGNUP", "originPropertyId": "qa-sbx-rpt-prop-hotel", "signedUpAt": "2026-10-21T08:00:00.000Z", "nextBookingPropertyId": "qa-sbx-rpt-prop-hotel", "nextBookingCheckIn": "2026-11-07" }, { "memberId": "qa-sbx-rpt-member-02", "email": "test+qa-sbx-rpt-02@akintravel.com", "enrollmentSource": "WHITE_LABEL", "originPropertyId": "qa-sbx-rpt-prop-hotel", "signedUpAt": "2026-10-24T08:00:00.000Z", "nextBookingPropertyId": "qa-sbx-rpt-prop-hotel", "nextBookingCheckIn": "2026-11-19" } ], "pageInfo": { "hasNextPage": true, "endCursor": "eyJhIjoi…" } } } }

partnerMetrics

Your headline figures for a window, over all your properties or one of them. Each figure is the AKIN dashboard’s figure for the same partner, property and window.

partnerMetrics(from: DateTimeISO!, to: DateTimeISO!, propertyId: ID): PartnerMetricsReport!
ArgumentTypeDescription
fromDateTimeISO!First day of the window. Read as a UTC day: the time is ignored
toDateTimeISO!Last day of the window, included. Read as a UTC day
propertyIdIDOne of your properties. Leave it out for all of them

Window. At most 366 days, both ends included. from must be on or before to, and not in the future. Otherwise the call is refused with VALIDATION_ERROR. partnerMemberSignups reads from and to the same way.

PartnerMetricsReport:

FieldTypeDescription
from, toDateTimeISO!The window as UTC days, both included
propertyIdIDThe property, or null for all your properties
repeatGuestsIntMembers with a return visit made in the window
repeatGuestRateFloatShare of members with a post-join reservation who made a return visit, 0–1
loyaltySignupsIntMembers who signed up in the window
loyaltyMemberStayRateFloatShare of stays made by members enrolled with your partner, 0–1
directBookingRateFloatShare of bookings made through a direct channel (website, front desk, other direct), 0–1
memberRevenueUsdFloat!Revenue in USD from direct member bookings made after joining
cancellationsInt!Member bookings cancelled or no-show
noShowsIntMember bookings with status NO_SHOW. Part of cancellations. null when 1 to 4
averageLengthOfStayFloatNights per member booking. null when fewer than 5 member bookings are behind it
rewardsAttributedRevenueUsdFloatRevenue in USD attributed to a reward redemption
suppressed[PartnerMetricSuppression!]!One row per withheld figure: field, suppressed, rule, reason
definitions[PartnerMetricDefinition!]!The definition of every figure: id, field, name, definition, unit, measureClass, summableAcrossDays

Withheld figures. A figure that rests on 1 to 4 members or bookings is null, never 0, and has a row in suppressed. This includes 1 to 4 no-shows, and an average length of stay over fewer than 5 member bookings. A ratio with nothing to divide by (no bookings in the window) is also null, with no suppressed row. Always check for null before you show or add a figure.

Adding figures. Add the figures of single windows only when summableAcrossDays is true. A rate, a distinct count or an average must be asked for again over the larger window.

Money. Revenue is in US dollars, converted at AKIN’s rate for each booking.

The definition of every figure, generated from the same source as definitions: Reporting metric definitions.

Example request:

query { partnerMetrics(from: "2026-10-20T00:00:00.000Z", to: "2026-11-18T00:00:00.000Z") { repeatGuests loyaltySignups loyaltyMemberStayRate directBookingRate memberRevenueUsd cancellations noShows averageLengthOfStay rewardsAttributedRevenueUsd suppressed { field rule reason } definitions { field name unit summableAcrossDays } } }

Example response (definitions shortened):

{ "data": { "partnerMetrics": { "repeatGuests": null, "loyaltySignups": 8, "loyaltyMemberStayRate": 0.875, "directBookingRate": 0.64, "memberRevenueUsd": 2760, "cancellations": 3, "noShows": null, "averageLengthOfStay": 2.1, "rewardsAttributedRevenueUsd": null, "suppressed": [ { "field": "repeatGuests", "rule": "SMALL_COHORT_COUNT", "reason": "Fewer than 5 members: a count this small could identify a guest" }, { "field": "noShows", "rule": "SMALL_COHORT_COUNT", "reason": "Fewer than 5 members: a count this small could identify a guest" }, { "field": "rewardsAttributedRevenueUsd", "rule": "WITHHELD_WITH_SOURCE", "reason": "The member count this figure rests on is withheld, so the figure is withheld with it" } ], "definitions": [ { "field": "loyaltySignups", "name": "Loyalty sign-ups", "unit": "count", "summableAcrossDays": true } ] } } }

partnerStaffSignups

The sign-ups each of your team members made, per property, in a window. A team member is a staff user with a property role, including a person added with Add staff member in the dashboard, who has a QR code and link but no log-in. A guest who signs up through a team member’s QR code or link is credited to that team member and that property. The numbers equal the dashboard’s Sign-ups by team member report for your partner and the same days.

partnerStaffSignups(from: DateTimeISO!, to: DateTimeISO!, propertyId: ID): StaffSignupsReport!
ArgumentTypeDescription
fromDateTimeISO!First day of the window. Read as a UTC day: the time is ignored
toDateTimeISO!Last day of the window, included. Read as a UTC day
propertyIdIDOne of your properties. Leave it out to read all of them

Window. The same window as partnerMetrics: UTC days, both ends included, at most 366 days.

No member data. A row names your team member and your property, and has two counts. It has no member id, name or email. The counts are exact, and small counts are not withheld: they are your own team’s sign-ups at your own properties.

StaffSignupsReport:

FieldTypeDescription
dateFrom, dateToString!The window, YYYY-MM-DD, both included
rows[StaffSignupsReportRow!]!One row per team member and property, most sign-ups first. A team member with no sign-ups in the window has a row with zeros
properties[StaffSignupsPropertyTotal!]!One total per property, most sign-ups first
totalSignupsInt!All the sign-ups in the report
totalEligibleSignupsInt!All the eligible sign-ups in the report

StaffSignupsReportRow:

FieldTypeDescription
staffUserIdID!The team member’s AKIN user id
staffNameStringThe team member’s name. null for a shared desk log-in that has no person’s name
propertyIdIDOne of your properties, where the members signed up. A sign-up at another partner’s property, or with no property, is not in your report
propertyNameStringThe property’s name
signupsInt!The members this team member signed up at this property in the window
eligibleSignupsInt!Of those, the members with a stay at an AKIN property that is not cancelled: past, current or future. This is the Member Derby staff-board rule

StaffSignupsPropertyTotal: propertyId, propertyName, signups, eligibleSignups and teamMembers (the team members listed under the property, those with no sign-ups included).

Example request:

query { partnerStaffSignups(from: "2026-11-01T00:00:00.000Z", to: "2026-11-30T00:00:00.000Z") { dateFrom dateTo totalSignups totalEligibleSignups rows { staffUserId staffName propertyId propertyName signups eligibleSignups } properties { propertyId propertyName signups eligibleSignups teamMembers } } }

Example response:

{ "data": { "partnerStaffSignups": { "dateFrom": "2026-11-01", "dateTo": "2026-11-30", "totalSignups": 14, "totalEligibleSignups": 11, "rows": [ { "staffUserId": "usr-01", "staffName": "Ana Lima", "propertyId": "qa-sbx-rpt-prop-hotel", "propertyName": "Sandbox Hotel", "signups": 9, "eligibleSignups": 7 }, { "staffUserId": "usr-02", "staffName": "Ben Cruz", "propertyId": "qa-sbx-rpt-prop-hotel", "propertyName": "Sandbox Hotel", "signups": 5, "eligibleSignups": 4 }, { "staffUserId": "usr-03", "staffName": "Cai Moss", "propertyId": "qa-sbx-rpt-prop-hotel", "propertyName": "Sandbox Hotel", "signups": 0, "eligibleSignups": 0 } ], "properties": [ { "propertyId": "qa-sbx-rpt-prop-hotel", "propertyName": "Sandbox Hotel", "signups": 14, "eligibleSignups": 11, "teamMembers": 3 } ] } } }

Refusals

Branch on extensions.code, never on the message. The full list of codes is in Errors.

CodeWhen
ACCESS_DENIEDNo valid partner API key; a publishable key; the key does not hold reporting:read; your partner does not hold the reporting grant; propertyId is not one of your properties; or the Partner Reporting API is switched off
RATE_LIMITEDMore than 60 reporting calls in a minute on this key. HTTP 429
VALIDATION_ERRORA date, window or cursor outside the rules above. extensions.context.field names the argument. A page size outside 1 to 500 is not refused: it is read as the nearest of 1 and 500

Try it in the sandbox

The sandbox holds reporting fixtures, so every query returns data: arrivals today and tomorrow at qa-sbx-rpt-prop-hotel, sign-ups across the last 30 days, and stays, cancellations and no-shows for partnerMetrics. The fixtures reset each night, and their dates move with the reset

Last updated on