{
  "info": {
    "name": "AKIN Partner Reporting API",
    "description": "The four Partner Reporting API queries. Set apiKey to a SECRET partner API key that holds the reporting:read scope (sk_test_… in the sandbox). baseUrl is the sandbox. With a live key, set baseUrl to the production endpoint. Change the example dates to dates near today. Guide: /partner-reporting on the AKIN developer docs.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://sandbox.akintravel.com/graphql" },
    { "key": "apiKey", "value": "sk_test_your_secret_key" },
    { "key": "propertyId", "value": "qa-sbx-rpt-prop-hotel" }
  ],
  "item": [
    {
      "name": "partnerReportingAccess",
      "request": {
        "description": "Check a key: the partner it is pinned to, its reporting scope and the reporting rate limit.",
        "method": "POST",
        "header": [
          { "key": "x-partner-api-key", "value": "{{apiKey}}", "type": "text" },
          { "key": "content-type", "value": "application/json", "type": "text" }
        ],
        "url": { "raw": "{{baseUrl}}", "host": ["{{baseUrl}}"] },
        "body": {
          "mode": "graphql",
          "graphql": {
            "query": "query PartnerReportingAccess {\n  partnerReportingAccess {\n    partnerId\n    scope\n    requestsPerMinute\n    requestsRemaining\n    resetsAt\n    flagEnabled\n  }\n}",
            "variables": "{}"
          }
        }
      }
    },
    {
      "name": "partnerArrivals",
      "request": {
        "description": "A property's arrivals for one local day, from today − 366 to today + 30. date is the property's local day, YYYY-MM-DD. The sandbox fixtures arrive today and tomorrow.",
        "method": "POST",
        "header": [
          { "key": "x-partner-api-key", "value": "{{apiKey}}", "type": "text" },
          { "key": "content-type", "value": "application/json", "type": "text" }
        ],
        "url": { "raw": "{{baseUrl}}", "host": ["{{baseUrl}}"] },
        "body": {
          "mode": "graphql",
          "graphql": {
            "query": "query PartnerArrivals($propertyId: ID!, $date: String!) {\n  partnerArrivals(propertyId: $propertyId, date: $date) {\n    propertyId\n    date\n    rowCap\n    truncated\n    rows {\n      bookingId\n      confirmationNumber\n      checkIn\n      checkOut\n      nights\n      guests\n      roomCount\n      bookingStatus\n      memberId\n      email\n      isEnrolledMember\n      tier\n      priorStaysAtPartner\n      perks {\n        text\n        tier\n        status\n      }\n      rewardsUsable {\n        rewardId\n        name\n        category\n      }\n      pointsBalance\n      rateCode\n      rateName\n      enrollmentSource\n      originPropertyId\n    }\n  }\n}",
            "variables": "{\n  \"propertyId\": \"{{propertyId}}\",\n  \"date\": \"2026-11-20\"\n}"
          }
        }
      }
    },
    {
      "name": "partnerMemberSignups",
      "request": {
        "description": "The members who signed up with your partner from the UTC day from to the UTC day to, both ends included, at most 366 days — the same window as partnerMetrics. first is 1 to 500. For the next page, pass pageInfo.endCursor as after.",
        "method": "POST",
        "header": [
          { "key": "x-partner-api-key", "value": "{{apiKey}}", "type": "text" },
          { "key": "content-type", "value": "application/json", "type": "text" }
        ],
        "url": { "raw": "{{baseUrl}}", "host": ["{{baseUrl}}"] },
        "body": {
          "mode": "graphql",
          "graphql": {
            "query": "query PartnerMemberSignups($from: DateTimeISO!, $to: DateTimeISO!, $first: Int, $after: String) {\n  partnerMemberSignups(from: $from, to: $to, first: $first, after: $after) {\n    nodes {\n      memberId\n      email\n      enrollmentSource\n      originPropertyId\n      signedUpAt\n      nextBookingPropertyId\n      nextBookingCheckIn\n    }\n    pageInfo {\n      hasNextPage\n      endCursor\n    }\n  }\n}",
            "variables": "{\n  \"from\": \"2026-10-21T00:00:00.000Z\",\n  \"to\": \"2026-11-19T00:00:00.000Z\",\n  \"first\": 100\n}"
          }
        }
      }
    },
    {
      "name": "partnerMetrics",
      "request": {
        "description": "Headline figures for a window of UTC days, both ends included, at most 366 days. propertyId is optional: leave it out for all your properties. A withheld figure is null and is listed in suppressed.",
        "method": "POST",
        "header": [
          { "key": "x-partner-api-key", "value": "{{apiKey}}", "type": "text" },
          { "key": "content-type", "value": "application/json", "type": "text" }
        ],
        "url": { "raw": "{{baseUrl}}", "host": ["{{baseUrl}}"] },
        "body": {
          "mode": "graphql",
          "graphql": {
            "query": "query PartnerMetrics($from: DateTimeISO!, $to: DateTimeISO!, $propertyId: ID) {\n  partnerMetrics(from: $from, to: $to, propertyId: $propertyId) {\n    from\n    to\n    propertyId\n    repeatGuests\n    repeatGuestRate\n    loyaltySignups\n    loyaltyMemberStayRate\n    directBookingRate\n    memberRevenueUsd\n    cancellations\n    noShows\n    averageLengthOfStay\n    rewardsAttributedRevenueUsd\n    suppressed {\n      field\n      suppressed\n      rule\n      reason\n    }\n    definitions {\n      id\n      field\n      name\n      definition\n      unit\n      measureClass\n      summableAcrossDays\n    }\n  }\n}",
            "variables": "{\n  \"from\": \"2026-10-21T00:00:00.000Z\",\n  \"to\": \"2026-11-19T00:00:00.000Z\"\n}"
          }
        }
      }
    },
    {
      "name": "partnerStaffSignups",
      "request": {
        "description": "The sign-ups each of your team members made at each of your properties, from the UTC day from to the UTC day to, both ends included, at most 366 days. propertyId is optional: leave it out for all your properties. Team member names and counts only, no member data.",
        "method": "POST",
        "header": [
          { "key": "x-partner-api-key", "value": "{{apiKey}}", "type": "text" },
          { "key": "content-type", "value": "application/json", "type": "text" }
        ],
        "url": { "raw": "{{baseUrl}}", "host": ["{{baseUrl}}"] },
        "body": {
          "mode": "graphql",
          "graphql": {
            "query": "query PartnerStaffSignups($from: DateTimeISO!, $to: DateTimeISO!, $propertyId: ID) {\n  partnerStaffSignups(from: $from, to: $to, propertyId: $propertyId) {\n    dateFrom\n    dateTo\n    totalSignups\n    totalEligibleSignups\n    rows {\n      staffUserId\n      staffName\n      propertyId\n      propertyName\n      signups\n      eligibleSignups\n    }\n    properties {\n      propertyId\n      propertyName\n      signups\n      eligibleSignups\n      teamMembers\n    }\n  }\n}",
            "variables": "{\n  \"from\": \"2026-11-01T00:00:00.000Z\",\n  \"to\": \"2026-11-30T00:00:00.000Z\"\n}"
          }
        }
      }
    }
  ]
}
