Methods

(async) authorize(client_id, redirect_uri, hostopt) → {Promise.<string>}

This function is used to authorize the application with TidyHQ and return an access token.
Parameters:
NameTypeAttributesDefaultDescription
client_idstringThe client ID of the application.
redirect_uristringThe redirect URI of the application.
hoststring<optional>
"https://accounts.tidyhq.com"The host url of TidyHQ.
Throws:
  • If `client_id` or `redirect_uri` are not strings.
    Type
    TypeError
  • If `client_id` is not 64 characters long or `redirect_uri` is not a valid URL.
    Type
    RangeError
  • For any Axios-related errors, including network issues or invalid responses.
    Type
    Error
Returns:
- The access token.
Type: 
Promise.<string>

(async) authorizeWithPassword(client_id, client_secret, username, password, domain_prefix) → {Promise.<string>}

This function is used to authorize using a username and password.
Parameters:
NameTypeDescription
client_idstringThe client ID of the application.
client_secretstringThe client secret of the application.
usernamestringThe username of the user.
passwordstringThe password of the user.
domain_prefixstringThe domain prefix of the club.
Throws:
  • If `client_id`, `client_secret`, `username`, `password`, or `domain_prefix` are not strings.
    Type
    TypeError
  • If `client_id` or `client_secret` are not 64 characters long.
    Type
    RangeError
  • For any Axios-related errors, including network issues or invalid responses.
    Type
    Error
Returns:
- The access token.
Type: 
Promise.<string>

makeURLParameters(keys, data) → {string}

This function is used to build a string of URL parameters.
Parameters:
NameTypeDescription
keysArray.<string>The keys of the parameters.
dataRecord.<string, any>The data to be used to build the parameters.
Returns:
- The parameters.
Type: 
string
Examples
makeURLParameters(["limit", "offset"], { limit: 10, offset: 0 });
makeURLParameters(["ids[]"], { ids: [123, 2] });
makeURLParameters(["filter[[]]"], { filter: [{ custom_field_id: "5f1c674336f2", custom_field_value: "1" }] });
makeURLParameters(["filter_equals[][]"], { filter_equals: { email_address: "test@test.com" } });

(async) requestAccessToken(client_id, client_secret, redirect_uri, code) → {Promise.<string>}

This function is used to request an access token from TidyHQ.
Parameters:
NameTypeDescription
client_idstringThe client ID of the application.
client_secretstringThe client secret of the application.
redirect_uristringThe redirect URI of the application.
codestringThe code returned from the authorize function.
Throws:
  • If `client_id`, `client_secret`, `redirect_uri`, or `code` are not strings.
    Type
    TypeError
  • If `client_id` or `client_secret` are not 64 characters long or `redirect_uri` is not a valid URL.
    Type
    RangeError
  • For any Axios-related errors, including network issues or invalid responses.
    Type
    Error
Returns:
- The access token.
Type: 
Promise.<string>

Type Definitions

TidyAPI_Data

Type:
  • Object
Properties
NameTypeAttributesDescription
messagestringThe message.
errorsObject<optional>
Optional for error responses.

TidyAPI_EmptyResponse

Type:
  • Object
Properties
NameTypeAttributesDescription
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_Response

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidyAPI_DataThe payload returned from the request or error information.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Categories

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Category> | TidyAPI_DataThe categories.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Contact

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Contact | TidyAPI_DataThe contact.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Contacts

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Contact> | TidyAPI_DataThe contacts.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_CustomField

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_CustomField | TidyAPI_DataThe custom field.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_CustomFieldChoice

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_CustomFieldChoice | TidyAPI_DataThe custom field.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_CustomFieldChoices

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_CustomFieldChoice> | TidyAPI_DataThe custom fields.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_CustomFields

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_CustomField> | TidyAPI_DataThe custom fields.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Deposit

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Deposit | TidyAPI_DataThe deposit.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Deposits

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Deposit> | TidyAPI_DataThe deposits.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Email

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Email | TidyAPI_DataThe email.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Emails

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Email> | TidyAPI_DataThe emails.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Event

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Event | TidyAPI_DataThe event.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Events

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Event> | TidyAPI_DataThe events.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Expense

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Expense | TidyAPI_DataThe expense.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Expenses

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Expense> | TidyAPI_DataThe expenses.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Group

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Group | TidyAPI_DataThe group.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Groups

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Group> | TidyAPI_DataThe groups.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Invoice

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Invoice | TidyAPI_DataThe invoice.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Invoices

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Invoice> | TidyAPI_DataThe invoices.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Meeting

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Meeting | TidyAPI_DataThe meeting.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Meetings

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Meeting> | TidyAPI_DataThe meetings.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Membership

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Membership | TidyAPI_DataThe membership.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_MembershipLevel

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_MembershipLevel | TidyAPI_DataThe membership level.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_MembershipLevels

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_MembershipLevel> | TidyAPI_DataThe membership levels.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Memberships

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Membership> | TidyAPI_DataThe memberships.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Organization

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Organization | TidyAPI_DataThe organization.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_OrganizationContacts

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_OrganizationPublicContact> | TidyAPI_DataThe organizations.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Organizations

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Organization> | TidyAPI_DataThe organizations.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Payment

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Payment | TidyAPI_DataThe organizations.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_PricingVariation

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_PricingVariation> | TidyAPI_DataThe membership level pricing variations.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_ShippingOption

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_ShippingOption | TidyAPI_DataThe shipping option.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_ShippingOptions

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_ShippingOption> | TidyAPI_DataThe shipping options.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_ShopOrder

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_ShopOrder | TidyAPI_DataThe shop order.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_ShopOrders

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_ShopOrder> | TidyAPI_DataThe shop orders.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_ShopProduct

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_ShopProduct | TidyAPI_DataThe shop product.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_ShopProducts

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_ShopProduct> | TidyAPI_DataThe shop products.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_SoldTickets

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_SoldTicket> | TidyAPI_DataThe sold tickets.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Task

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Task | TidyAPI_DataThe task.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Tasks

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Task> | TidyAPI_DataThe tasks.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Ticket

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Ticket | TidyAPI_DataThe ticket.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Tickets

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Ticket> | TidyAPI_DataThe tickets.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Transaction

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V1_Transaction | TidyAPI_DataThe transaction.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V1_Transactions

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V1_Transaction> | TidyAPI_DataThe transactions.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Contact

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V2_Contact | TidyAPI_DataThe contact.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Contacts

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V2_Contact> | TidyAPI_DataThe contacts.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Membership

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V2_Membership | TidyAPI_DataThe membership.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_MembershipLevel

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V2_MembershipLevel | TidyAPI_DataThe membership level.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_MembershipLevels

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V2_MembershipLevel> | TidyAPI_DataThe membership levels.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Memberships

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V2_Membership> | TidyAPI_DataThe memberships.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Note

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V2_Note | TidyAPI_DataThe note.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Organization

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V2_Organization | TidyAPI_DataThe organization.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_OrganizationRoles

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V2_OrganizationRole> | TidyAPI_DataThe roles.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Subscription

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V2_Subscription | TidyAPI_DataThe subscription.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_SubscriptionPost

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V2_SubscriptionPostResponse | TidyAPI_DataThe subscription and membership response.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Subscriptions

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V2_Subscription> | TidyAPI_DataThe subscriptions.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Webhook

Type:
  • Object
Properties
NameTypeAttributesDescription
dataTidy_V2_Webhook | TidyAPI_DataThe webhook.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

TidyAPI_V2_Webhooks

Type:
  • Object
Properties
NameTypeAttributesDescription
dataArray.<Tidy_V2_Webhook> | TidyAPI_DataThe webhooks.
statusnumberThe HTTP status code of the response.
statusTextstringThe status text (e.g., "OK", "Not Found") of the response.
successbooleanIndicates whether the request was successful.
messagestring<optional>
An optional error message, present only in error responses.

Tidy_V1_BundleAmount

Type:
  • Object
Properties
NameTypeDescription
amountstringThe amount for the bundle.
subsequentbooleanWhether this amount applies to subsequent members.
typestringThe type of member this amount applies to (e.g., "adult", "child").

Tidy_V1_Category

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the category.
namestringThe name of the category.
descriptionstringThe description of the category.
balanceObject.<string, number>The balance of the category in various currencies, with currency codes as keys and amounts as values. E.g., { "AUD": -20.0, "USD": 42.0 }.
created_atstringThe creation date and time of the category in ISO 8601 format.

Tidy_V1_Contact

Type:
  • Object
Properties
NameTypeDescription
idnumberUnique identifier for the contact.
first_namestringFirst name of the contact.
last_namestringLast name of the contact.
nick_namestringNickname of the contact.
companystringCompany name associated with the contact.
email_addressstringEmail address of the contact.
phone_numberstringPhone number of the contact.
address1stringStreet address of the contact.
citystringCity of the contact.
statestring | nullState of the contact.
countrystringCountry of the contact.
postcodestringPostcode of the contact.
genderTidy_V1_ContactGenderGender of the contact.
birthdaystring | nullBirthday of the contact.
facebookstringFacebook profile URL of the contact.
twitterstringTwitter handle of the contact.
linkedinstringLinkedIn profile URL of the contact.
instagramstringInstagram handle of the contact.
websitestring | nullWebsite URL of the contact.
detailsstring | nullAdditional details about the contact.
subscribedbooleanSubscription status of the contact.
metadatastring | nullMetadata associated with the contact.
created_atstringCreation date and time of the contact record.
updated_atstringLast update date and time of the contact record.
emergency_contact_personstring | nullEmergency contact person for the contact.
emergency_contact_numberstring | nullEmergency contact number for the contact.
member_sincestringDate since the contact is a member.
is_companybooleanFlag indicating if the contact is a company.
kindstringType of the contact (e.g., person).
display_namestringDisplay name of the contact.
contact_idnumberSecondary identifier for the contact.
contact_id_numberstringContact ID number.
profile_imagestring | nullURL to the profile image of the contact.
statusstringStatus of the contact (e.g., active).
custom_fieldsArray.<Tidy_V1_CustomField>Custom fields associated with the contact.
organizationTidy_V1_ContactOrganizationOrganization associated with the contact.
groupsArray.<Tidy_V1_ContactGroup>Groups associated with the contact.
contact_linksArray.<Tidy_V1_ContactLink>Links associated with the contact.

Tidy_V1_ContactCustomFields

A struct of custom field IDs as keys and their values. For dropdown fields, use the dropdown field choice ID as the value.
Type:
  • Object
Example
{
  "5b8ff85455e9": true, // Boolean field example
  "91288961b8d7": "2012-01-01", // Date field example
  "280ada4c1dea": "2fbd15a7ff31" // Dropdown field id as a key, dropdown field choice id as a value. Use blank value to empty the field
}

Tidy_V1_ContactGender

Type:
  • "female" | "male" | "non_binary" | "undisclosed"

Tidy_V1_ContactGroup

Type:
  • Object
Properties
NameTypeDescription
idnumberUnique identifier for the group.
labelstringLabel of the group.
Type:
  • Object
Properties
NameTypeDescription
contact_idnumberThe contact ID of the linked contact.
relationship_typestringThe type of relationship (e.g., "Adult", "Child").

Tidy_V1_ContactOrganization

Type:
  • Object
Properties
NameTypeDescription
idstringUnique identifier for the organization.
namestringName of the organization.
domain_prefixstringDomain prefix of the organization.

Tidy_V1_ContactParams

Type:
  • Object
Properties
NameTypeAttributesDescription
first_namestring<optional>
First name of the contact. Required only on creation.
last_namestring<optional>
Last name of the contact.
email_addressstring<optional>
Email address of the contact.
phone_numberstring<optional>
Phone number of the contact.
address1string<optional>
Street address of the contact.
citystring<optional>
City of the contact.
statestring<optional>
State of the contact.
countrystring<optional>
Country of the contact.
postcodestring<optional>
Postcode of the contact.
genderTidy_V1_ContactGender<optional>
Gender of the contact.
birthdaystring<optional>
Birthday of the contact in ISO 8601 format.
facebookstring<optional>
Facebook account name of the contact.
twitterstring<optional>
Twitter account name of the contact.
detailsstring<optional>
A brief description of the contact.
custom_fieldsTidy_V1_ContactCustomFields<optional>
A struct of custom field IDs as keys and values.

Tidy_V1_CustomField

Type:
  • Object
Properties
NameTypeAttributesDescription
idstringThe unique identifier for the custom field.
titlestringThe title of the custom field.
typeTidy_V1_CustomFieldTypeThe type of the custom field.
created_atstringThe creation date and time of the custom field.
choicesArray.<Tidy_V1_CustomFieldChoice><optional>
Optional. The choices for the custom field, applicable if the type is "dropdown".

Tidy_V1_CustomFieldChoice

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the custom field choice.
titlestringThe title of the custom field choice.
created_atstringThe creation date and time of the custom field choice.

Tidy_V1_CustomFieldType

Type:
  • "string" | "text" | "dropdown" | "boolean" | "date"

Tidy_V1_Deposit

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the deposit.
ref_nostringThe reference number of the deposit.
contact_idnumberThe ID of the contact associated with the deposit.
type"deposit"The type of the transaction.
namestringThe name of the deposit.
descriptionstring | nullThe description of the deposit.
category_idnumberThe category ID of the deposit.
currencystringThe currency of the deposit amount.
amountnumberThe amount of the deposit.
metadatastring | nullAdditional metadata associated with the deposit.
statusTidy_V1_FinanceStatusThe status of the deposit.
paymentsArray.<Tidy_V1_Payment>The payments associated with the deposit.

Tidy_V1_DepositParams

Type:
  • Object
Properties
NameTypeDescription
namestringThe name of the deposit.
amountnumberThe amount of the deposit as a decimal.
paid_datestringThe date that the deposit was paid in ISO 8601 format.
category_idnumberThe category of the deposit.
contact_idnumberThe source of the deposit.

Tidy_V1_Email

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the email.
sender_idnumberThe ID of the sender.
recipient_idsArray.<number>An array of IDs for the recipients.
way"inbound" | "outbound"The direction of the email (inbound or outbound).
type"email" | "group_email"The type of the email.
subjectstringThe subject of the email.
bodystringThe body text of the email.
scheduled_atstring | nullThe scheduled send time of the email, if any.
readbooleanWhether the email has been read.
archivedbooleanWhether the email has been archived.
deletedbooleanWhether the email has been deleted.
junkbooleanWhether the email has been marked as junk.
attachmentsArray.<Object>An array of attachments associated with the email.
created_atstringThe creation timestamp of the email.

Tidy_V1_Event

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the event.
namestringThe name of the event.
locationstring | nullThe location of the event.
start_atstringThe start time of the event.
end_atstringThe end time of the event.
bodystringThe body text of the event, which may contain HTML.
created_atstringThe creation timestamp of the event.
category_idnumberThe ID of the category this event belongs to.
publicbooleanWhether the event is public.
image_urlstringThe URL of the event's image.
public_urlstringThe public URL of the event.
archivedbooleanWhether the event has been archived.

Tidy_V1_EventParams

Type:
  • Object
Properties
NameTypeAttributesDescription
namestring<optional>
The name of the event. Required only on creation.
start_atstring<optional>
The start date of the event in ISO 8601 format. Required only on creation.
end_atstring<optional>
The end date of the event in ISO 8601 format.
bodystring<optional>
The description of the event.
locationstring<optional>
The location of the event. [!] There's an error in TidyHQ documentation/API regarding this field.
archivedboolean<optional>
Whether the event is archived or not (accessible via public events page).
hiddenboolean<optional>
Whether the event is hidden or not (showing on public events). When hidden and buying a ticket, certificates and receipts are not sent.
category_idnumber<optional>
The ID of the category to assign the event to (defaults to tickets category).

Tidy_V1_Expense

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the expense.
ref_nostringThe reference number of the expense.
contact_idnumberThe ID of the contact associated with the expense.
type"expense"The type of the transaction.
namestringThe name of the expense.
descriptionstring | nullThe description of the expense.
due_datestringThe due date of the expense.
category_idnumberThe category ID of the expense.
amountnumberThe total amount of the expense.
amount_paidnumberThe amount that has been paid towards the expense.
amount_duenumberThe amount that is still due.
paidbooleanWhether the expense has been fully paid or not.
metadatastring | nullAdditional metadata associated with the expense.
statusTidy_V1_FinanceStatusThe status of the expense.
paymentsArray.<Tidy_V1_Payment>The payments associated with the expense.

Tidy_V1_ExpenseParams

Type:
  • Object
Properties
NameTypeAttributesDescription
namestringThe name of the expense.
amountnumberThe amount of the expense.
due_datestringThe due date of the expense in ISO 8601 format.
category_idstringThe category of the expense.
contact_idstringThe source of the expense.
descriptionstring<optional>
The description of the expense.
metadatastring<optional>
The metadata of the expense.

Tidy_V1_FinanceStatus

Type:
  • "activated" | "cancelled"

Tidy_V1_Group

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the group.
labelstringThe label or name of the group.
descriptionstring | nullThe description of the group.
created_atstringThe creation timestamp of the group.
contacts_countnumberThe number of contacts associated with the group.
logo_imagestringThe URL path to the group's logo image.

Tidy_V1_Invoice

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the invoice.
ref_nostringThe reference number of the invoice.
contact_idnumberThe ID of the contact associated with the invoice.
type"invoice"The type of the transaction.
namestringThe name of the invoice.
descriptionstring | nullThe description of the invoice.
due_datestringThe due date of the invoice.
category_idnumberThe category ID of the invoice.
amountnumberThe total amount of the invoice.
amount_paidnumberThe amount that has been paid towards the invoice.
amount_duenumberThe amount that is still due.
paidbooleanWhether the invoice has been fully paid or not.
metadatastring | nullAdditional metadata associated with the invoice.
statusTidy_V1_FinanceStatusThe status of the invoice.
paymentsArray.<Tidy_V1_Payment>The payments associated with the invoice.

Tidy_V1_InvoiceParams

Type:
  • Object
Properties
NameTypeAttributesDescription
referencestringThe reference of the invoice. e.g. 'Invoice #1234'
amountnumberThe amount of the invoice expressed as a decimal.
included_tax_totalnumberThe total amount of tax expressed as a decimal.
pre_tax_amountnumberThe total amount before tax expressed as a decimal.
due_datestringThe due date of the invoice in ISO 8601 format.
category_idnumberThe ID of the category to assign the invoice to.
contact_idnumberThe ID of the contact to assign the invoice to.
descriptionstring<optional>
The description of the invoice.
metadatastring<optional>
The metadata of the invoice.

Tidy_V1_Meeting

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the meeting.
namestringThe name of the meeting.
descriptionstringThe HTML description of the meeting.
date_atstringThe date and time of the meeting in ISO 8601 format.
location_full_addressstring | nullThe full address of the meeting location.
topicsArray.<Tidy_V1_MeetingTopic>An array of topics discussed in the meeting.
publicbooleanWhether the meeting is public.
created_atstringThe creation timestamp of the meeting in ISO 8601 format.
schedule_meeting_topicsArray.<Tidy_V1_MeetingScheduleTopic>An array of scheduled meeting topics.
attendeesArray.<number>An array of IDs representing the attendees of the meeting.
apologiesArray.<number>An array of IDs representing the people who apologized for not attending the meeting.
maybeArray.<number>An array of IDs representing the people who might attend the meeting.
minute_takersArray.<number>An array of IDs representing the minute takers of the meeting.
chairpersonsArray.<number>An array of IDs representing the chairpersons of the meeting.
public_urlstringThe public URL to access the meeting.

Tidy_V1_MeetingScheduleTopic

Type:
  • Object
Properties
NameTypeDescription
member_idnumber | nullThe ID of the member associated with the scheduled meeting topic.
categoryTidy_V1_MeetingTopicCategoryThe category of the scheduled meeting topic.
namestringThe name of the scheduled meeting topic.
descriptionstringThe HTML description of the scheduled meeting topic.
decisionstring | nullThe decision made regarding the scheduled meeting topic.
created_atstringThe creation timestamp of the scheduled meeting topic.
taskTidy_V1_Task | nullThe task associated with the scheduled meeting topic.

Tidy_V1_MeetingTopic

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the topic.
namestringThe name of the topic.
categoryTidy_V1_MeetingTopicCategoryThe category of the topic.
schedule_meeting_idnumberThe ID of the scheduled meeting this topic is associated with.
positionnumberThe position of the topic in the meeting.
durationnumber | nullThe duration of the topic in minutes.
created_atstringThe creation timestamp of the topic.
updated_atstringThe update timestamp of the topic.
descriptionstringThe HTML description of the topic.
decisionstring | nullThe decision made regarding the topic.
parent_idnumber | nullThe ID of the parent topic.
codestringA unique hex code identifying the topic.
deleted_atstring | nullThe deletion timestamp of the topic.
member_idnumber | nullThe ID of the member associated with the topic.
revisionnumberThe revision number of the topic.
last_edited_by_idnumberThe ID of the last member who edited the topic.

Tidy_V1_MeetingTopicCategory

Type:
  • "idea" | "info" | "todo"

Tidy_V1_Membership

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the membership.
start_datestringThe start date of the membership in ISO 8601 format.
end_datestringThe end date of the membership in ISO 8601 format.
contact_idnumberThe unique identifier for the contact associated with the membership.
membership_level_idnumberThe unique identifier for the membership level.
statestringThe state of the membership (e.g., "activated").
membership_id_referencenumberA reference ID for the membership.
membership_idstringA unique string identifier for the membership.
membership_levelTidy_V1_MembershipLevelSummaryThe membership level details.
subscriptionsArray.<Tidy_V1_Subscription>An array of subscriptions associated with the membership.
adult_membersArray.<Tidy_V1_MembershipMember>An array of adult members associated with the membership.
child_membersArray.<Tidy_V1_MembershipMember>An array of child members associated with the membership.
created_atstringThe creation timestamp of the membership in ISO 8601 format.

Tidy_V1_MembershipLevel

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the membership level.
namestringThe name of the membership level.
descriptionstringThe description of the membership level.
durationnumberThe duration of the membership level.
unit_periodTidy_V1_MembershipLevelUnitPeriodThe unit of period for the duration.
fixedbooleanWhether the membership level has a fixed start date.
start_atstring | nullThe start date of the membership level, if fixed.
enabledbooleanWhether the membership level is enabled.
active_sincestring | nullThe date since the membership level has been active.
amountstringThe amount associated with the membership level.
bundlebooleanWhether the membership level is part of a bundle.
bundle_amountsArray.<Tidy_V1_BundleAmount> | nullThe bundle amounts, applicable if the membership level is part of a bundle.
deletedbooleanWhether the membership level is marked as deleted.
plan_typestringThe type of plan (e.g., "rolling").
auto_renewbooleanWhether the membership level auto-renews.
created_atstringThe creation timestamp of the membership level.

Tidy_V1_MembershipLevelSummary

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the membership level.
namestringThe name of the membership level.
plan_typestringThe type of plan (e.g., "rolling").
auto_renewbooleanWhether the membership level auto-renews.

Tidy_V1_MembershipLevelUnitPeriod

Type:
  • "day" | "week" | "month" | "year"

Tidy_V1_MembershipMember

Type:
  • Object
Properties
NameTypeDescription
contact_idnumberThe unique identifier for the contact.
member_sincestringThe date since the contact has been a member in ISO 8601 format.

Tidy_V1_Organization

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the organization.
namestringThe name of the organization.
domain_prefixstringThe domain prefix of the organization.
locationstringThe location of the organization.
addressstringThe street address of the organization.
citystringThe city of the organization.
statestringThe state of the organization.
postcodestringThe postcode of the organization.
countrystringThe country of the organization.
phonestringThe phone number of the organization.
websitestringThe website URL of the organization.
twitterstringThe Twitter handle of the organization.
facebookstringThe Facebook profile URL of the organization.
currencystringThe currency used by the organization.
time_zonestringThe time zone of the organization.
public_contactsArray.<Tidy_V1_OrganizationPublicContact>The public contacts of the organization.
logo_urlObjectThe URL to the logo of the organization.
planObjectThe plan of the organization.
Properties
NameTypeDescription
namestringThe name of the plan of the organization.
quotaTidy_V1_OrganizationPlanQuotaThe quota of the plan for the organization.
parent_organizationsArray.<Tidy_V1_OrganizationLink>The parent organizations of the organization.
child_organizationsArray.<Tidy_V1_OrganizationLink>The child organizations of the organization.
Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the organization.
namestringThe name of the organization.

Tidy_V1_OrganizationPlanQuota

Type:
  • Object
Properties
NameTypeDescription
emailsObjectThe email quota.
Properties
NameTypeDescription
limitObjectThe email limit.
sentObjectThe number of emails sent.
countObjectThe number of emails sent.
contactsObjectThe contacts quota.
Properties
NameTypeDescription
limitObjectThe contacts limit.
countObjectThe number of contacts.

Tidy_V1_OrganizationPublicContact

Type:
  • Object
Properties
NameTypeDescription
namestringThe name of the contact.
positionstringThe position of the contact.
emailstringThe email address of the contact.
phone_numberstringThe phone number of the contact.

Tidy_V1_Payment

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the payment.
amountnumberThe amount of the payment.
typeTidy_V1_PaymentTypeThe type of the payment.
paid_atstringThe timestamp when the payment was made.
statusTidy_V1_PaymentStatusThe status of the payment.

Tidy_V1_PaymentStatus

Type:
  • "paid" | "cancelled"

Tidy_V1_PaymentType

Type:
  • "cash" | "card" | "cheque" | "bank" | "other"

Tidy_V1_PricingVariation

Type:
  • Object
Properties
NameTypeDescription
StateArray.<Tidy_V1_PricingVariationState>An array of state-specific pricing variations.

Tidy_V1_PricingVariationAutofillGroup

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the autofill group.
namestringThe name of the autofill group.

Tidy_V1_PricingVariationClub

Type:
  • Object
Properties
NameTypeDescription
namestringThe name of the club for this pricing variation.
amountstringThe amount associated with this club.
destinationTidy_V1_PricingVariationDestinationThe destination organization details for this club's pricing variation.
autofill_groupTidy_V1_PricingVariationAutofillGroupThe autofill group details associated with this club's pricing variation.

Tidy_V1_PricingVariationDestination

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the destination.
typestringThe type of the destination (e.g., "Organisation").
namestringThe name of the destination.

Tidy_V1_PricingVariationState

Type:
  • Object
Properties
NameTypeDescription
namestringThe name of the state or group for this pricing variation.
amountstringThe amount associated with this state or group.
destinationTidy_V1_PricingVariationDestinationThe destination organization details for this pricing variation.
autofill_groupTidy_V1_PricingVariationAutofillGroupThe autofill group details associated with this pricing variation.
ClubArray.<Tidy_V1_PricingVariationClub>An array of club-specific pricing variations within the state.

Tidy_V1_ShippingOption

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the shipping option.
namestringThe name of the shipping option.
descriptionstringThe description of the shipping option, may include newline characters.
pricestringThe price of the shipping option.
category_idnumberThe ID of the category associated with the shipping option.
address_not_requiredbooleanIndicates whether an address is not required for this shipping option.
created_atstringThe creation timestamp of the shipping option, in ISO 8601 format.
country_codesArray.<string>An array of country codes where the shipping option is available.

Tidy_V1_ShopOrder

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the shipping order.
contact_idnumberThe ID of the contact associated with the order.
numberstringThe order number.
status"awaiting_payment" | "pending" | "completed" | "cancelled"The status of the order.
created_atstringThe creation timestamp of the order, in ISO 8601 format.
shipping_option_idstringThe unique identifier for the selected shipping option.
productsArray.<Tidy_V1_ShopOrderProduct>An array of products included in the order.

Tidy_V1_ShopOrderProduct

Type:
  • Object
Properties
NameTypeDescription
product_idstringThe unique identifier for the product.
variant_idstring | nullThe unique identifier for the variant of the product, null if not applicable.
quantitynumberThe quantity of the product ordered.

Tidy_V1_ShopProduct

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the product.
namestringThe name of the product.
descriptionstringThe HTML description of the product.
permalinkstringA unique permalink for the product.
sell_pricestringThe selling price of the product.
cost_pricestringThe cost price of the product.
sell_category_idnumberThe ID of the selling category.
cost_category_idnumberThe ID of the cost category.
quantitynumber | nullThe quantity available, null for unlimited.
created_atstringThe creation timestamp of the product.
status"draft" | "published"The status of the product
visible_to"admin" | "group" | "public"Who can see the product.
imagesArray.<string>An array of URLs to images of the product.
variantsArray.<Tidy_V1_ShopProductVariant>An array of variants of the product.

Tidy_V1_ShopProductVariant

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the variant.
namestringThe name of the variant.
quantitynumber | nullThe quantity available for the variant, null for unlimited.
created_atstringThe creation timestamp of the variant, in ISO 8601 format.

Tidy_V1_SoldTicket

Type:
  • Object
Properties
NameTypeDescription
contact_idnumberThe ID of the contact who purchased the ticket.
ticket_idstringThe unique identifier for the ticket purchased.
created_atstringThe timestamp when the ticket was sold, in ISO 8601 format.
codestringA unique code associated with the sold ticket.

Tidy_V1_Subscription

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the subscription.
start_datestringThe start date of the subscription.
end_datestringThe end date of the subscription.
statusstringThe status of the subscription (e.g., "Active", "Expired"). [!] Add all possible values.
variationsArray.<Tidy_V1_Variation>An array of variations associated with the subscription.

Tidy_V1_Task

Type:
  • Object
Properties
NameTypeDescription
idnumberThe unique identifier for the task.
titlestringThe title of the task.
descriptionstring | nullThe description of the task.
due_datestringThe due date of the task in ISO 8601 format.
created_atstringThe creation timestamp of the task.
recurrenceTidy_V1_TaskRecurrence | nullThe recurrence pattern of the task, if any.
contact_idnumber | nullThe ID of the contact associated with the task, if any.

Tidy_V1_TaskRecurrence

Type:
  • Object
Properties
NameTypeDescription
type"daily" | "weekly" | "monthly" | "yearly"The type of the recurrence
everynumberThe interval of the recurrence.
end_datestring | nullThe end date of the recurrence in ISO 8601 format, if any.
week_day_numbersArray.<string>An array of week day numbers (as strings) that the recurrence falls on (indexed 0 from Monday to 6 on Sunday)
day_of_monthnumber | nullThe day of the month the recurrence falls on.
monthnumber | nullThe month the recurrence falls on.

Tidy_V1_Ticket

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the ticket.
namestringThe name of the ticket.
amountstringThe price of the ticket in decimal string format.
initial_quantitynumber | nullThe initial quantity of tickets available, null for unlimited.
quantity_soldnumberThe number of tickets sold.
maximum_purchasenumber | nullThe maximum number of tickets one can purchase, null for unlimited.
sales_endstring | nullThe end date and time of ticket sales in ISO 8601 format.
members_onlybooleanWhether the ticket is available to members only.
membership_level_idnumber | nullThe ID of the membership level required to purchase the ticket, if members_only is true.
created_atstringThe creation timestamp of the ticket.

Tidy_V1_Transaction

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the transaction.
category_idnumberThe ID of the category associated with the transaction.
category_namestringThe name of the category associated with the transaction.
currencystringThe currency code for the transaction amount.
paid_atstringThe timestamp when the transaction was paid, in ISO 8601 format.
contact_idnumberThe ID of the contact associated with the transaction.
contact_namestringThe display name of the contact associated with the transaction.
payment_typeTidy_V1_PaymentTypeThe type of payment used for the transaction.
surchargebooleanIndicates whether a surcharge was applied to the transaction.
amountnumberThe total amount of the transaction.
feenumberThe fee associated with the transaction, if any.
statusTidy_V1_PaymentStatusThe status of the transaction.
itemsArray.<Tidy_V1_TransactionItem>An array of items associated with the transaction.

Tidy_V1_TransactionItem

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the item.
quantitystringThe quantity of the item.
type"deposit" | "expense" | "invoice"The type of transaction.

Tidy_V1_Variation

Type:
  • Object
Properties
NameTypeDescription
questionstringThe question related to the variation.
answerstringThe answer to the question.
pricestringThe price associated with the variation.
destinationTidy_V1_PricingVariationDestinationThe destination details for the variation.
autofill_groupTidy_V1_PricingVariationAutofillGroupThe autofill group details for the variation.

Tidy_V2_Contact

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique alphanumeric identifier for the contact.
contact_id_referencenumberReference to the contact ID in V1 API.
first_namestringFirst name of the contact.
last_namestringLast name of the contact.
nick_namestringNickname of the contact.
companystringCompany name associated with the contact.
email_addressstringEmail address of the contact.
phone_numberstringPhone number of the contact.
address1stringStreet address of the contact.
citystringCity of the contact.
statestring | nullState of the contact.
countrystringCountry of the contact.
postcodestringPostcode of the contact.
genderstringGender of the contact.
birthdaystring | nullBirthday of the contact.
facebookstringFacebook profile URL of the contact.
twitterstringTwitter handle of the contact.
linkedinstringLinkedIn profile URL of the contact.
instagramstringInstagram handle of the contact.
websitestring | nullWebsite URL of the contact.
detailsstring | nullAdditional details about the contact.
subscribedbooleanSubscription status of the contact.
metadatastring | nullMetadata associated with the contact.
created_atstringCreation date and time of the contact record.
updated_atstringLast update date and time of the contact record.
initialsstringInitials of the contact.
emergency_contact_personstring | nullEmergency contact person for the contact.
emergency_contact_numberstring | nullEmergency contact number for the contact.
member_sincestringDate since the contact is a member.
is_companybooleanFlag indicating if the contact is a company.
kindstringType of the contact (e.g., person).
display_namestringDisplay name of the contact.
contact_id_numberstringContact ID number.
profile_imagestring | nullURL to the profile image of the contact.
statusstringStatus of the contact (e.g., active).
organizationTidy_V2_ContactOrganizationOrganization associated with the contact.
groupsArray.<Tidy_V2_ContactGroup>Groups associated with the contact.
contact_linksArray.<Tidy_V2_ContactLink>Links associated with the contact.
notesArray.<Tidy_V2_Note>Notes associated with the contact.

Tidy_V2_ContactFilterEqualsOptions

Type:
  • Object
Properties
NameTypeAttributesDescription
first_namestring<optional>
Filter by the first name.
last_namestring<optional>
Filter by the last name.
companystring<optional>
Filter by the company name.
email_addressstring<optional>
Filter by the email address.
phone_numberstring<optional>
Filter by the phone number.
kindstring<optional>
Filter by the kind.
contact_id_numberstring<optional>
Filter by the contact ID number.

Tidy_V2_ContactGroup

Type:
  • Object
Properties
NameTypeDescription
idnumberAlphanumeric ID associated with the group.
labelstringLabel of the group.
group_id_referencestringReference to the group ID in V1 API.
descriptionstringDescription of the group.
created_atstringCreation date and time of the group.
updated_atstringLast update date and time of the group.
sizenumberNumber of contacts within the group.
imagestringURL to the image that represents the group.
Type:
  • Object
Properties
NameTypeDescription
contact_idnumberAlphanumeric ID associated with the contact this link is towards.
relationship_typestringThe type of relationship (e.g., "Adult", "Child").
titlestringThe title of the contact link.
metadatastring | nullOptional arbitrary metadata attached to the object.
created_atstringCreation date and time of the contact link.
updated_atstringLast update date and time of the contact link.
display_namestringHumanized version of the type field, suitable for display.
typestring[!] TBA
contact_idstringAlphanumeric (V2) ID associated with the contact this link is towards.

Tidy_V2_ContactOrganization

Type:
  • Object
Properties
NameTypeDescription
idstringUnique identifier for the organization.
namestringName of the organization.
domain_prefixstringDomain prefix of the organization.
permissionsArray.<string>Permissions user has for the organization.

Tidy_V2_MatchableContact

Type:
  • Object
Properties
NameTypeAttributesDescription
contact_idstring<optional>
The unique identifier for the contact.
emailstring<optional>
The email address of the contact.
first_namestring<optional>
The first name of the contact.
last_namestring<optional>
The last name of the contact.

Tidy_V2_Membership

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the membership.
created_atstringThe creation date and time of the membership.
updated_atstringThe last update date and time of the membership.
statestringThe state of the membership.
statusstringHuman-readable version of the state.
membership_id_referencenumberReference to the membership ID in V1 API.
auto_renew_onbooleanIf the membership is set to auto-renew.
auto_renewbooleanIf the membership is set to auto-renew.
membership_level_idstringThe ID of the membership level.
contact_idstringThe ID of the contact associated with the membership.
adult_members_contact_idsArray.<string>The IDs of the adult members associated with the membership.
child_members_contact_idsArray.<string>The IDs of the child members associated with the membership.
start_datestringThe start date of the membership.
end_datestringThe end date of the membership.
notesArray.<Tidy_V2_Note>The notes associated with the membership.

Tidy_V2_MembershipLevel

Type:
  • Object
Properties
NameTypeAttributesDescription
idstringThe unique identifier for the membership level.
membership_level_id_referencenumberReference to the membership level ID in V1 API.
namestringThe name of the membership level.
descriptionstringThe description of the membership level, may contain HTML.
durationnumberThe duration of the membership level.
unit_periodTidy_V1_MembershipLevelUnitPeriodThe unit of period for the duration.
active_sincestring | nullThe date since the membership level is active.
bundlebooleanIf the membership level is a bundle.
plan_typestringThe type of plan (e.g., rolling).
auto_renewbooleanIf the membership level is set to auto-renew.
allow_renewalbooleanIf the membership level allows renewal.
renewable_from_periodnumber | nullThe period from which renewal is allowed.
renewable_for_periodnumber | nullThe period for which renewal is allowed.
start_atstring | nullThe start date of the membership level.
created_atstringThe creation date and time of the membership level.
updated_atstringThe last update date and time of the membership level.
visible"anyone" | "admin" | "linked" | "permitted"Visibility of the membership level.
amountnumberThe price of the membership level.
deletedbooleanIf the membership level is deleted.
bundle_amountsArray.<Tidy_V2_MembershipLevelBundleAmount><optional>
The amounts associated with the bundle.

Tidy_V2_MembershipLevelBundleAmount

Type:
  • Object
Properties
NameTypeDescription
amountstringThe amount for the bundle.
subsequentbooleanFlag indicating if the amount is for subsequent periods.
typestringThe type of member the amount applies to (e.g., adult, child).

Tidy_V2_Note

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the note.
textstringThe content of the note.
created_atstringThe creation date and time of the note.
updated_atstringThe last update date and time of the note.
authorObjectThe author of the note. [!]

Tidy_V2_Organization

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the organization.
namestringThe name of the organization.
domain_prefixstringThe domain prefix of the organization.
locationstringThe location of the organization.
addressstringThe street address of the organization.
citystringThe city of the organization.
statestringThe state of the organization.
postcodestringThe postcode of the organization.
countrystringThe country of the organization.
phonestringThe phone number of the organization.
websitestringThe website URL of the organization.
twitterstringThe Twitter handle of the organization.
facebookstringThe Facebook profile URL of the organization.
currencystringThe currency used by the organization.
time_zonestringThe time zone of the organization.
public_contactsArray.<Tidy_V1_OrganizationPublicContact>The public contacts of the organization.
logo_urlObjectThe URL to the logo of the organization.
created_atstringThe creation date and time of the organization.
updated_atstringThe last update date and time of the organization.
planObjectThe plan of the organization.
Properties
NameTypeDescription
namestringThe name of the plan of the organization.
quotaTidy_V1_OrganizationPlanQuotaThe quota of the plan for the organization.
parent_organizationsArray.<Tidy_V1_OrganizationLink>The parent organizations of the organization.
child_organizationsArray.<Tidy_V1_OrganizationLink>The child organizations of the organization.

Tidy_V2_OrganizationRole

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the role.
namestringThe name of the role.
email_addressstringThe email address to contact the members of this role.
responsibilitiesstringThe responsibilities of the role.
contact_idsArray.<string>The contact IDs associated with the role.
created_atstringThe creation date and time of the role.
updated_atstringThe last update date and time of the role.

Tidy_V2_PostSubscriptionParams

Type:
  • Object
Properties
NameTypeAttributesDefaultDescription
memberTidy_V2_MatchableContact<optional>
On an individual membership level, change who it belongs to.
adultArray.<Tidy_V2_MatchableContact><optional>
For family memberships, changes the associated adults.
childrenArray.<Tidy_V2_MatchableContact><optional>
For family memberships, changes the associated children.
variationsObject.<string, string><optional>
A object mapping variation ids to variation value ids.
payment_type'paid' | 'invoice' | 'pay_now'Payment status of subscription, note that paid covers partially paid subscriptions.
payment_methodTidy_V1_PaymentTypeRequired when payment_type is paid, How the paid amount was paid.
partial_payment_amountstring<optional>
When marked as paid, and it's already partially-paid, an amount that has already been paid.
ref_nostring<optional>
When marked as paid, allows overriding the transaction ref for the given paid transaction. If left blank, will be automatically generated.
due_datestring<optional>
When paying by invoice, when said invoice is due.
send_welcome_mailboolean<optional>
trueSend a membership welcome email.
send_invoice_mailboolean<optional>
When paying by invoice, should we send an email with invoice details.
auto_assign_usersboolean<optional>
trueWhen processing contacts on the membership, should we automatically assign (either find existing, or create a new) user for them in Tidy. If users are created, will automatically send an account sign up email as well. For users to be automatically created / assigned, they require all of a first name, last name and an email address.
auto_renewboolean<optional>
Will set explicitly if the membership should auto renew, if possible. Defaults to use the value set on the membership level, but can overwrite if needed.
start_datestring<optional>
The start date of the membership.
end_datestring<optional>
The end date of the membership.

Tidy_V2_PricingVariationAutofillGroup

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the autofill group.
group_id_referencenumberThe reference ID for the group.
namestringThe name of the autofill group.

Tidy_V2_PricingVariationDestination

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the destination.
typestringThe type of the destination.
titlestringHuman-readable version of the type of destination.
namestringThe name of the destination.

Tidy_V2_Subscription

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the subscription.
statestringThe state of the subscription.
statusstringHuman-readable version of the state.
created_atstringThe creation date and time of the subscription.
updated_atstringThe last update date and time of the subscription.
start_datestringThe start date of the subscription.
end_datestringThe end date of the subscription.
membership_idstringThe ID of the associated membership.
variationsArray.<Tidy_V2_Variation>The variations associated with the subscription.

Tidy_V2_SubscriptionPostResponse

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the subscription.
statestringThe state of the subscription.
statusstringHuman-readable version of the state.
created_atstringThe creation date and time of the subscription.
updated_atstringThe last update date and time of the subscription.
start_datestringThe start date of the subscription.
end_datestringThe end date of the subscription.
membership_idstringThe ID of the associated membership.
variationsArray.<Tidy_V2_Variation>The variations associated with the subscription.
payment_urlstringWhen valid, a URL (pre-authed) a user can use to pay for the membership.
invoice_idstringWhen valid, the ID of the appropriate Invoice to be used with the invoices API.
membershipTidy_V2_MembershipA preview of the membership.

Tidy_V2_Variation

Type:
  • Object
Properties
NameTypeDescription
visibilitystringThe visibility of the variation.
pricestringThe price of the variation.
answerTidy_V2_VariationAnswerThe answer associated with the variation.
destinationTidy_V2_PricingVariationDestinationThe destination associated with the variation.
autofill_groupTidy_V2_PricingVariationAutofillGroupThe autofill group associated with the variation.
questionTidy_V2_VariationQuestionThe question associated with the variation.

Tidy_V2_VariationAnswer

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the answer.
valuestringThe value of the answer.
updated_atstringThe last update date and time of the answer.

Tidy_V2_VariationQuestion

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the question.
namestringThe name of the question.
requiredbooleanWhether the question is required.
created_atstringThe creation date and time of the question.
updated_atstringThe last update date and time of the question.

Tidy_V2_Webhook

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the webhook.
statusstringThe status of the webhook. [!] TBA add all possible values
created_atstringThe creation date and time of the webhook.
updated_atstringThe last update date and time of the webhook.
matching_kindstringThe kind of events to match for the webhook.
urlstringThe URL to which the webhook sends data.
descriptionstringA description of the webhook.
signing_key_b64stringThe base64 encoded signing key for the webhook.
allow_state_changesbooleanWhether the webhook allows state changes.

Tidy_V2_WebhookMessage

Type:
  • Object
Properties
NameTypeDescription
idstringThe unique identifier for the webhook message.
kindstringThe kind of the event, e.g., "event.ticket.updated".
objectstringThe type of object of the data, e.g., "event.ticket".
createdstringThe creation date and time of the webhook message.
dataObjectThe data of the webhook message.