FitnessForce - UFP
Home
Home
  1. Reports
  • Introduction
  • Quickstart
  • Webhooks
  • Campaign
    • Get campaign
      GET
    • List campaign
      GET
    • Get campaign by GUID
      GET
    • Get automation by franchise
      GET
    • Get automation by tenant
      GET
    • Get automation by company
      GET
    • Update automation active
      POST
    • Update automation inactive
      POST
    • Update campaign active
      POST
    • Update campaign inactive
      POST
  • Class
    • Get class by id
      GET
    • Delete class
      DELETE
    • Update class
      PUT
    • List classes
      GET
    • Create class
      POST
    • Substitute coach in class
      POST
    • Reschedule class
      POST
    • Cancel class
      POST
    • Mark class as completed
      POST
    • List class bookings by client id
      GET
  • Client
    • Retrieves all client for a Tenant
      GET
    • Creates a new client
      POST
    • Gets client by ID
      GET
    • Gets clients birthday list
      GET
    • Gets clients at risk
      GET
    • Gets client mandatory fields
      GET
    • Adds client to blacklist
      POST
    • Removes client from blacklist
      POST
    • Updates client details
      PUT
    • Used for partial updates of client details
      PATCH
    • Changes client representative
      POST
    • Lists prospects
      GET
    • Lists ex-clients
      GET
    • Resets client password
      POST
    • Changes client representative for multiple clients
      POST
    • Lists prospect effective date history
      GET
    • Transfers prospect
      POST
  • Company
    • Get company details
  • Invoice
    • Get invoice PDF
  • Organisation
    • List organisations
    • Get organisation
  • Search
    • Perform Client Search
    • Search clients by tenant
    • Search clients by provider
    • Search clients by company
  • Tax
    • Get Tax Groups
    • Get Tax Group by ID
    • Get Tax Groups by Tenant IDs
    • Get Tax Line Items
    • Get Tax Line Item by ID
    • List Tax Line Items
    • List Tax Line Types
  • Tenant
    • Get tenant details
    • List tenants
    • Gets list of tenants
    • Updates tenant details
    • Gets tenant details
    • Updates tenant invoice template type
    • Updates tenant payment template type
  • Appointments
    • Create new appointment
    • List appointments
    • Change client membership in appointment
    • Get appointment
    • Update appointment
    • Mark client as checked in
    • Mark client as no-show
    • Substitute coach for appointment
    • Reschedule appointment
    • Cancel appointment
    • List appointments by client ID
    • Create appointment complimentory session
    • Create appointment
    • Reschedule appointment
    • Get appointment
  • Appointment Types
    • Get appointment types list
    • Get appointment type details
  • Authentication
    • Refresh Token exchange
    • Generate authentication token
  • Automation
    • Get automation master
    • List automation types
  • Call Transactions
    • Get call transaction details
    • Log new call transaction
    • Update call transaction
    • Delete call transaction
  • Charge Categories
    • List charge categories
    • Get charge category
  • Charge Master
    • List charge masters
    • Get charge master
    • Calculate charge breakup
  • Recurring Class
    • Create recurring class
    • List recurring class template
    • Update recurring class
    • Get recurring class template
    • Cancel recurring class
    • Reschedule recurring class
    • Substitute coach in recurring class
    • List classes by recurring class template ID
  • Class Booking
    • Books client to class
    • Changes client membership
    • Removes client from class
    • Marks client as no-show
    • Marks client as checked in
    • Adds a trial client to class
  • Class Complimentory
    • Creates complimentary class
  • Class Types
    • List class types
    • Get class type details
  • Company level class types
    • List class types
  • Client Communication
    • Gets email log
    • Gets client interactions
    • Lists unified communication messages
  • Client Tasks
    • Gets client tasks
  • Client Sales
    • Gets client sales returns
    • Gets client payments
    • Lists client refunds
  • Client Waivers
    • Gets client waivers
  • Client Sessions
    • Gets client session inventory
  • Client Referrals
    • Lists client referrals
  • Client Offers
    • Lists eligible client coupons
  • Client Export
    • Exports prospects list
    • Exports ex-clients list
    • Exports active clients list
    • Exports clients at risk list
  • Client Billing
    • Creates charges for a client
    • Creates balance payment for invoice
  • Client Check-in
    • Creates client check-in
    • Lists client check-ins
    • Lists client check-ins by tenant
    • Lists clients who are currently in the club
    • Deletes a client check-in
  • Client Credit Balance
    • Creates a new credit balance order for a client
    • Retrieves the credit balance for a client
    • Retrieves the credit balance for a client
    • Lists client credit balance centerwise
  • Client Documents
    • Uploads client document
    • Gets client document
    • Lists client documents
    • Deletes client document
  • Client Invoices
    • Get invoice by UUID
    • Generate balance UUID for invoice
  • Client Membership
    • Change client membership start date
    • Patch client membership
    • Change client membership end date
    • Get client membership details
  • Client Open API
    • Create prospect
    • Book tour
  • Client Payments
    • Get payment timeline
    • List client payment methods
  • Client Subscriptions
    • List client subscription invoices
    • Get client subscription
    • List client subscriptions
    • Get clients by plan ID
    • Change subscription start date
    • Change subscription end date
    • Void client subscription
    • Send manage subscription link
    • Get client subscription by UUID
    • Get client subscription invoices by UUID
  • Client Memberships
    • Change session owner
    • Get session owners
    • List active client memberships
  • Client Subscription Cancellation
    • Cancel client subscription
    • Reactivate client subscription
  • Client Subscription Freeze
    • Create subscription freeze
    • List subscription freezes
    • Stop subscription freeze
    • Cancel subscription freeze
    • List client freezes
    • Get subscriptions available for freeze
    • Update subscription freeze
    • Get subscription freeze timeline
  • Client Trials
    • List client trials
    • Create client trial
    • Get client trial
    • Update trial
    • Delete client trial
    • Activate client trial
    • Mark trial as inactive
    • Mark trial as active
    • List client trials by tenant
    • Export client trials by tenant
  • Client Upgrade
    • Calculates subscription upgrade
    • Voids subscription upgrade
  • Balance Write Off
    • Creates a write off
    • Gets the list of write offs
    • Voids a write off
  • Email Template
    • Create email template
    • List email templates
    • Update email template
    • Get email template
    • Delete email template
    • Mark email template as inactive
    • Mark email template as active
  • Email Template - Franchise
    • Create email template at franchise level
    • Get list of email templates at franchise level
    • Update email template at franchise level
    • Get email template at franchise level
    • Delete email template at franchise level
    • Mark email template as inactive at franchise level
    • Mark email template as active at franchise level
  • Email Template - Tenant
    • Create email template at tenant level
    • List email templates at tenant level
    • Update email template at tenant level
    • Get email template at tenant level
    • Delete email template at tenant level
    • Mark email template as inactive at tenant level
    • Mark email template as active at tenant level
  • Franchise Groups
    • Get franchise group details
    • List all franchise groups
  • Payment Methods
    • Initiate payment method update by UUID
    • Initiate payment method update by ID
  • Invoices
    • Get invoice
    • List client invoices
    • Void invoice
    • Get invoice PDF
    • Send invoice PDF
    • List invoice details
    • Change invoice sales rep
    • Send invoice clear balance link
  • Offer Master
    • List offer master
    • Get offer master
    • List eligible coupon master
    • List offer master coupon code link
    • List offer master service plan product link
    • List offer master organisation link
  • Online Signup
    • Get subscription plans
    • Get mandatory client fields
    • Get subscription plan details
    • Create client and invoice
  • Subscription
    • Get eligible add-ons
  • Sales
    • Get sales return PDF
  • Staff Availability
    • List staff availability
    • List staff availability by appointment category
    • List next available slots by appointment category
    • Check staff availability
    • Check staff availability for appointment category
    • Check staff availability for recurring schedule
    • Check staff availability for recurring schedule
    • Get staff scheduled unavailability
    • List staff availability for tours
  • Opportunities
    • List opportunities
    • Create opportunity
    • Get opportunity
    • Update opportunity
    • Delete opportunity
    • Change opportunity stage
    • Mark opportunity as won
    • Mark opportunity as lost
    • Mark opportunity as nurture
    • Update opportunity sort order
  • Opportunity Stage Master
    • List opportunity stage masters
    • Get opportunity stage master
  • Payments
    • Get payment details
    • Mark payment as void
    • Get payment PDF
    • Send payment PDF
  • Refunds
    • List refunds
    • Send refund PDF
    • Get refund PDF
  • Reports
    • Reporting Quickstart
    • GET Report Data
      GET
  • Report Filter Schedules
    • Create report filter schedule
    • Delete report filter schedule
  • Access Requests
    • Request access via email
  • Rooms
    • List rooms
    • Get room details
  • Sales Returns
    • Get sales return PDF
  • Email Communication
    • Send free form email
  • SMS
    • Send free form SMS
  • Service Categories
    • List service categories
    • Get service category
    • Get service category collections
  • Staff Management
    • Get staff by ID
    • List all staff
    • List staff schedules
    • List staff appointment types
  • Staff Appointment Type Link
    • Gets staff appointment type links
  • Staff Notifications
    • Mark staff notifications as read
    • Mark staff notification as deleted
    • List staff notifications
  • Staff Schedule
    • Lists staff schedules
    • Gets staff schedule
  • Subscription Plans
    • List subscription plans
    • Get subscription plan by ID
    • Get eligible addons
  • Subscription Signup
    • Get Order Summary
    • Validate Referral
    • Get Order Summary Billing Occurrence
    • Get Order Status
    • Get Waivers
    • Get Payment Methods
    • List Empty Client Mandatory Fields
    • Sign Guest Waiver
    • Send Payment Link
    • Send Signup Completion Link
  • Tasks
    • Create task for client
    • Create task for opportunity
    • List tasks
    • Get task details
    • Complete SMS task
    • Bulk reassign tasks
  • Task Categories
    • List task categories
    • Get task category
  • Task Open API
    • Reschedule tour
    • Get tour details
  • Trial Master
    • List trials
    • Get trial
  1. Reports

Reporting Quickstart

This guide provides detailed instructions for using the Reporting API to generate various reports for your platform.

API Endpoint#

The Reporting API uses a single GET endpoint. The structure of the request is as follows:
Method: GET
URL:
https://report-api.unifiedfitnessplatform.ai/tenants/{tenant_id}/reports/{report_key}

Authentication#

(please refer to QuickStart guide for Auth)

Parameter Details#

The endpoint uses a combination of path and query parameters to specify and filter the report.

1. Path Parameters#

ParameterTypeRequiredDescription
tenant_idintegerYesThe unique identifier for the tenant.
report_keystringYesThe unique key for the report you want to run. See the "Available Reports" table below for a full list.

2. Query Parameters#

ParameterTypeRequiredDescription
rpt_fltr_relative_date_rangestringNoA predefined date range for the report. If used, you do not need to specify from_date and to_date in the payload. Available values: Today, Tomorrow, ThisMonth, ThisQuarter, CustomDateRange, LastThirtyDays, LastSevenDays, LastMonth, Yesterday.
rpt_fltr_payloadstringYesA stringified JSON object containing the filters for the report. This is the main body of your filter criteria.

Constructing the rpt_fltr_payload#

The rpt_fltr_payload must be a URL-encoded string of a JSON object.

Common Payload Parameters#

These parameters are available for most reports and are used for pagination, date filtering (if not using rpt_fltr_relative_date_range), and localization.
time_zone (string): The target time zone (e.g., "India Standard Time").
page_no (integer): The page number for the results.
page_size (integer): The number of results to return per page.
from_date (string): The start date for the report in YYYY-MM-DDTHH:mm:ss.sssZ format. Required if using CustomDateRange.
to_date (string): The end date for the report in YYYY-MM-DDTHH:mm:ss.sssZ format. Required if using CustomDateRange.
localized_value (boolean): true to return localized enum values.
language_code (string): The language code (e.g., "en") for localization.

Additional Parameters#

Most reports may have additional parameters to filter and are specific to that report. These are listed in the table below.

Available Reports#

This table provides the report_key, name, description, and the additional, non-common parameters required inside the rpt_fltr_payload for each report.
report_keyReport NameReport DescriptionAdditional Payload Parameters
SubscriptionSignUpReportSubscription SignUp ReportGet the subscription sign up reportplan_id, plan_subscription_category, created_by, sales_rep, str_tenant_ids
ClientListReportClient List ReportN/Afull_name, home_club_id
PaymentReportPayment ReportGet the payment reportstr_payment_mode_level_1, str_payment_status, sales_rep, str_tenant_ids
SubscriptionDetailReportSubscription Detail ReportGet the subscription detail reportsubscription_status, created_by, sales_rep, str_tenant_ids
InProgressSubscriptionSignupsSubscription Signup - In-progress ReportThis report will show list of all subscriptions which are still in-porgress.plan_id, str_tenant_ids
ChargesFeesCharges & Fees reportThis report will show all Charges and fees charged during a selected periodcategory_id, str_tenant_ids
FailedSubscriptionSignupsSubscription Signup - Failed ReportThis report will show all failed and expired signupsplan_id, str_tenant_ids
CompletedTasksByStaffTask Completed by Staff ReportN/Astaff_id
SubscriptionExpiredSubscription Expired ReportThis report will show list of all Subscriptions that are expired in a given date rangestr_tenant_ids
SubscriptionNotRenewingSubscription not Renewing ReportThis report will show list of all Subscriptions that are due for Renewaing in a given date rangestaff_id, created_by, sales_rep
WonBackClientWon Back Client ReportThis report will show list of all won back clients in a given date rangestaff_id
ChurnClientChurn Client ReportThis report will show list of all churned clients in a given date rangestaff_id
AppointmentByCoachAppointment By Coach ReportThis report will show list of all Appointments conducted within the given date range by a specifc coachcoach_id
AppointmentByCategoryAppointment By Category ReportThis report will show list of all Appointments conducted within the given date range by categorycategory_id
CancelledAppointmentByCategoryCancelled Appointment By Category ReportThis report will show list of all cancelled Appointments conducted within the given date range by categorycategory_id
ClientCheckInsClient Check Ins ReportThis report will show list of all checkins conducted within the given date range by event type and access statusevent_type, access_status
NewJoinerClientNew Joiner Client ReportNew Joiner Client Reportinclude_rejoin, include_drop_in, plan_id
InvoiceSummaryInvoice Summary ReportA detailed overview of all Invoices created in a given time period.sales_rep, str_inv_status, created_by, str_tenant_ids
ClassAttendanceClass Attendance ReportGet the class attendance reportclass_type_id, coach_id, class_type_behaviour, class_booking_status
ClassSummaryClass Summary ReportGet the class summary reportclass_type_name_company_level, coach_id, class_type_behaviour, class_status, str_tenant_ids
SalesByServiceCategorySales By Service Category ReportGet the sales by service category wiseplan_id, sales_rep, category_id, str_tenant_ids
InvoiceDetailInvoice Details ReportGet the salesstr_tenant_ids
ARAgingSummaryByClientAR Aging Summary By Client ReportAR Aging summary by clients Reportclt_client_rep_id, balance_greater_than, as_on_date, number_of_aging_intervals, aging_interval_period_grouping_in_days
ARAgingDetailReportAR Aging Detail ReportAR Aging details Reportsales_rep, balance_greater_than, as_on_date, number_of_aging_intervals, aging_interval_period_grouping_in_days
DiscountReportDiscount ReportThis report will fetch values from invoice line item and invoice entity and show all the discounted invoicedplan_id, sales_rep, str_tenant_ids
TaskDoneTask Done ReportThis report will show list of all CRM tasks with specified date range by CRM task category and staffcategory_id, staff_id
ClientCreditBalanceClient Credit Balance ReportThis report will show the client current credit balance tenant wiseclt_client_rep_id, balance_greater_than, str_tenant_ids
MembershipRenewedReportMembership Renewed ReportThis report will show all the clients whose membership has been renewedclt_client_rep_id, category_id
MembershipExpiredReportMembership Expired ReportThis report will show all the clients whose membership is expiring and is not renewedclt_client_rep_id, category_id, str_tenant_ids
CreditBalanceTransactionReportCredit Balance Transaction ReportThis report will show all the clients credit debit transaction entrystaff_id, credit_balance_transaction_type, str_tenant_ids
ClientsByServiceCategoryClients By Service CategoryThis report will show all the clients list by Service Categoryclt_client_rep_id, client_channel, as_on_date, client_source, client_status, category_id
SalesReturnDetailReportSales Return ReportThis report will show all the sales return done.str_tenant_ids
EmailTransactionReportEmail Transaction ReportThis report will show all the email transaction detail reportstr_tenant_ids, email_transaction_status
SMSTransactionReportSMS Transaction ReportThis report will show all the sms transaction detail reportstr_tenant_ids, sms_transaction_status
WhatsAppTransactionReportWhatsapp Transaction ReportThis report will show all the whatsapp transaction detail reportstr_tenant_ids, whatsapp_transaction_status
PaymentTransactionReportPayment Transaction ReportN/Apayment_mode_level_1_single, payment_log_derived_status, sales_rep, str_tenant_ids
CountByMemberCategoryWiseHistorical Client by service categoryN/Aservice_category_name, include_non_base_membership, str_tenant_ids
ClientTrialReportClient Trial ReportThis report will display all clients, including their trial count and conversion status.trial_type, conversion, str_tenant_ids
InvoiceAndPaymentDetailsInvoice Detail ReportThis report will show all the invoices and its paymentsNot Specified
ServiceCategoriesAndChargesPaymentsN/AThis report will show all the service categories and charges and its paymentsNot Specified
MembershipDetailsMembership ReportThis report will show all the membership detailsNot Specified
LLCValueReportN/AN/ANot Specified

Example Request#

Here is a complete example of how to run the PaymentReport for tenant 123, for payments made in the last seven days.
1. Construct the Payload Object:
First, create the JSON object with all the necessary filters.
{
  "time_zone": "India Standard Time",
  "page_no": 1,
  "page_size": 50,
  "localized_value": false,
  "language_code": "en",
  "str_payment_mode_level_1": null,
  "str_payment_status": "Completed",
  "sales_rep": null,
  "str_tenant_ids": "123"
}
2. Stringify the Payload:
Convert the JSON object into a single string.
"{\"time_zone\":\"India Standard Time\",\"page_no\":1,\"page_size\":50,\"localized_value\":false,\"language_code\":\"en\",\"str_payment_mode_level_1\":null,\"str_payment_status\":\"Completed\",\"sales_rep\":null,\"str_tenant_ids\":\"123\"}"
3. URL-Encode the Stringified Payload:
This step is critical. The string must be URL-encoded to be safely passed in the URL.
%7B%22time_zone%22%3A%22India%20Standard%20Time%22%2C%22page_no%22%3A1%2C%22page_size%22%3A50%2C%22localized_value%22%3Afalse%2C%22language_code%22%3A%22en%22%2C%22str_payment_mode_level_1%22%3Anull%2C%22str_payment_status%22%3A%22Completed%22%2C%22sales_rep%22%3Anull%2C%22str_tenant_ids%22%3A%22123%22%7D
4. Assemble the Final URL:
Combine the base URL, path parameters, and query parameters to create the final request URL.
https://report-api.unifiedfitnessplatform.ai/tenants/123/reports/PaymentReport?rpt_fltr_relative_date_range=LastSevenDays&rpt_fltr_payload=%7B%22time_zone%22%3A%22India%20Standard%20Time%22%2C%22page_no%22%3A1%2C%22page_size%22%3A50%2C%22localized_value%22%3Afalse%2C%22language_code%22%3A%22en%22%2C%22str_payment_mode_level_1%22%3Anull%2C%22str_payment_status%22%3A%22Completed%22%2C%22sales_rep%22%3Anull%2C%22str_tenant_ids%22%3A%22123%22%7D
You can now send a GET request to this URL to receive the report data.
Modified at 2025-06-12 12:30:12
Previous
Get refund PDF
Next
GET Report Data
Built with