Mariana Tek

App · 24 actions

Find and update customers, see classes and orders, and book, cancel or check in class reservations.

Actions

ActionWhat it does
Add a customer noteAdd a staff note to a customer's profile.
Archive a customerArchive a customer's account, so it no longer shows among active customers.
Book a classBook a customer into a class, paid with one of their memberships or credits.
Cancel a reservationCancel a customer's reservation, under the studio's late-cancel rules unless waived.
Check in a reservationMark that the customer has arrived for their class.
Create a customerAdd a customer account.
Delete a customer noteDelete a staff note from a customer's profile.
Get a classGet one class: when it is, who teaches it and how many spots are left.
Get a customerGet one customer's profile: contact details, waiver and class history.
Get a customer membershipGet one membership a customer holds: its status, renewal and next charge.
Get a reservationGet one reservation: its status, spot and check-in time.
Get an orderGet one order with its totals, taxes and discounts.
List class typesList the kinds of class the studio runs, such as a 45-minute ride.
List classesList scheduled classes, by date, location, class type or instructor.
List customer membershipsList the memberships customers hold, by customer or status.
List customer notesList the staff notes kept on customers.
List customersFind customers by name, email or phone, or list those changed in a time range.
List employeesList the studio's staff accounts.
List locationsList the studio's locations.
List ordersList purchases made in the studio's shop and at the front desk.
List regionsList the regions the studio's locations are grouped into.
List reservationsList class reservations, for a customer, a class or a status.
Mark a reservation as a no-showRecord that the customer didn't come to their class.
Update a customerChange a customer's details.

Add a customer note

Add a staff note to a customer's profile. Customers never see it.

Inputs

Customer IDcustomer_idnumberRequired
The customer the note is about, by ID.At least 1.
NotetexttextRequired
The note.
Pinnedis_pinnedtrue/false
On to pin the note to the top.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "is_pinned": true,
        "note_datetime": "example",
        "text": "example",
        "user": 1
      },
      "id": "example",
      "relationships": {},
      "type": "user_notes"
    }
  }
}

Archive a customer

Archive a customer's account, so it no longer shows among active customers.

Inputs

Customer IDcustomer_idnumberRequired
The customer, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {}
}

Book a class

Book a customer into a class, paid with one of their memberships or credits.

Inputs

Customer IDcustomer_idtextRequired
The customer to book, by ID.
Class IDclass_session_idtextRequired
The class to book, by ID.
Pay withpayment_typetext
What pays for the class: one of the customer's memberships or a credit pack.One of: membership, credit.
Payment option IDpayment_option_idnumber
The ID of that membership or credit pack, from the customer's payment options.At least 1.
Reservation typereservation_typetext
Standard books a spot; waitlist puts the customer on the waitlist of a full class.One of: standard, waitlist.
Spot IDspot_idtext
A particular spot (a bike or a mat) by ID. Leave empty for any free spot.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "cancel_date": "example",
        "check_in_date": "example",
        "creation_date": "example",
        "guest_email": "example",
        "guest_name": "example",
        "reservation_type": "standard",
        "reserved_for_guest": true,
        "status": "pending"
      },
      "id": "example",
      "relationships": {},
      "type": "reservations"
    }
  }
}

Cancel a reservation

Cancel a customer's reservation, under the studio's late-cancel rules unless waived.

Inputs

Reservation IDreservation_idnumberRequired
The reservation, by ID.At least 1.
Waive penaltygracetrue/false
On to cancel without the late-cancel penalty. Needs a staff account allowed to waive it.
Don't notify the customersuppress_notificationstrue/false
On to cancel without emailing the customer.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "cancel_date": "example",
        "check_in_date": "example",
        "creation_date": "example",
        "guest_email": "example",
        "guest_name": "example",
        "reservation_type": "standard",
        "reserved_for_guest": true,
        "status": "pending"
      },
      "id": "example",
      "relationships": {},
      "type": "reservations"
    }
  }
}

Check in a reservation

Mark that the customer has arrived for their class.

Inputs

Reservation IDreservation_idnumberRequired
The reservation, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "cancel_date": "example",
        "check_in_date": "example",
        "creation_date": "example",
        "guest_email": "example",
        "guest_name": "example",
        "reservation_type": "standard",
        "reserved_for_guest": true,
        "status": "pending"
      },
      "id": "example",
      "relationships": {},
      "type": "reservations"
    }
  }
}

Create a customer

Add a customer account. Mariana Tek requires a password for every account.

Inputs

EmailemailtextRequired
The customer's email address.
First namefirst_nametextRequired
First name.
Last namelast_nametextRequired
Last name.
PasswordpasswordtextRequired
A password for the account. The customer can change it later.
Phone numberphone_numbertext
Phone number.
Date of birthbirth_datedate
Date of birth.
Gendergendertext
Gender, as Mariana Tek records it.One of: female, male, transgender_female (Transgender female), transgender_male (Transgender male), genderqueer, agender, non_binary (Non binary), other, prefer_not_to_say (Prefer not to say).
Address line 1address_line1text
First line of the address.
Address line 2address_line2text
Second line of the address.
Citycitytext
Town or city.
State or provincestate_provincetext
State or province.
Postal codepostal_codetext
Postal or ZIP code.
Countrycountrytext
Country.
Emergency contact nameemergency_contact_nametext
Who to contact in an emergency.
Emergency contact phoneemergency_contact_phonetext
The emergency contact's phone number.
Marketing opt-inmarketing_opt_intrue/false
On if the customer agreed to marketing email.
Home locationhome_locationtext
The customer's home studio.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "address_line1": "example",
        "address_line2": "example",
        "archived_at": "example",
        "birth_date": "example",
        "city": "example",
        "completed_class_count": 1,
        "country": "example",
        "date_joined": "example",
        "email": "example",
        "first_class_taken_date": "example",
        "first_name": "example",
        "full_name": "example",
        "gender": "example",
        "last_class_taken_date": "example",
        "last_name": "example",
        "marketing_opt_in": true,
        "phone_number": "example",
        "postal_code": "example",
        "signed_waiver": true,
        "state_province": "example"
      },
      "id": "example",
      "relationships": {},
      "type": "users"
    }
  }
}

Delete a customer note

Delete a staff note from a customer's profile.

Inputs

Note IDnote_idnumberRequired
The note, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {}
}

Get a class

Get one class: when it is, who teaches it and how many spots are left.

Inputs

Class IDclass_session_idnumberRequired
The class, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "available_spots": 1,
        "cancellation_datetime": "example",
        "capacity": 1,
        "checked_in_user_count": 1,
        "class_type_display": "example",
        "classroom_display": "example",
        "end_datetime": "example",
        "instructor_names": [
          "example"
        ],
        "is_free_class": true,
        "location_display": "example",
        "public": true,
        "public_note": "example",
        "standard_reservation_user_count": 1,
        "start_date": "example",
        "start_datetime": "example",
        "start_time": "example",
        "waitlist_reservation_user_count": 1
      },
      "id": "example",
      "relationships": {},
      "type": "class_sessions"
    }
  }
}

Get a customer

Get one customer's profile: contact details, waiver and class history.

Inputs

Customer IDcustomer_idnumberRequired
The customer, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "address_line1": "example",
        "address_line2": "example",
        "archived_at": "example",
        "birth_date": "example",
        "city": "example",
        "completed_class_count": 1,
        "country": "example",
        "date_joined": "example",
        "email": "example",
        "first_class_taken_date": "example",
        "first_name": "example",
        "full_name": "example",
        "gender": "example",
        "last_class_taken_date": "example",
        "last_name": "example",
        "marketing_opt_in": true,
        "phone_number": "example",
        "postal_code": "example",
        "signed_waiver": true,
        "state_province": "example"
      },
      "id": "example",
      "relationships": {},
      "type": "users"
    }
  }
}

Get a customer membership

Get one membership a customer holds: its status, renewal and next charge.

Inputs

Membership IDmembership_idnumberRequired
The customer membership, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "cancellation_datetime": "example",
        "cancellation_reason": "example",
        "end_date": "example",
        "membership_name": "example",
        "next_charge_date": "example",
        "payment_interval": "example",
        "purchase_date": "example",
        "renewal_currency": "example",
        "renewal_rate": "example",
        "start_date": "example",
        "status": "example"
      },
      "id": "example",
      "relationships": {},
      "type": "membership_instances"
    }
  }
}

Get a reservation

Get one reservation: its status, spot and check-in time.

Inputs

Reservation IDreservation_idnumberRequired
The reservation, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "cancel_date": "example",
        "check_in_date": "example",
        "creation_date": "example",
        "guest_email": "example",
        "guest_name": "example",
        "reservation_type": "standard",
        "reserved_for_guest": true,
        "status": "pending"
      },
      "id": "example",
      "relationships": {},
      "type": "reservations"
    }
  }
}

Get an order

Get one order with its totals, taxes and discounts.

Inputs

Order IDorder_idnumberRequired
The order, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "currency": "example",
        "date_placed": "example",
        "is_refundable": true,
        "number": "example",
        "status": "example",
        "subtotal": "example",
        "total": "example",
        "total_discount": "example",
        "total_tax": "example"
      },
      "id": "example",
      "relationships": {},
      "type": "orders"
    }
  }
}

List class types

List the kinds of class the studio runs, such as a 45-minute ride.

Inputs

Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "description": "example",
          "duration": 1,
          "enabled": true,
          "is_live_stream": true,
          "name": "example"
        },
        "id": "example",
        "relationships": {},
        "type": "class_session_types"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List classes

List scheduled classes, by date, location, class type or instructor.

Inputs

Frommin_datedate
Only classes on or after this day.
Tomax_datedate
Only classes on or before this day.
Locationlocationtext
Only classes at this location.
Class typeclass_session_typetext
Only classes of this type.
Instructor IDinstructortext
Only classes taught by this instructor, by employee ID.
Canceledis_cancelledtrue/false
On for canceled classes only, off to leave them out.
Updated aftermin_updated_datetimedate and time
Only records changed at or after this time.
Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "available_spots": 1,
          "cancellation_datetime": "example",
          "capacity": 1,
          "checked_in_user_count": 1,
          "class_type_display": "example",
          "classroom_display": "example",
          "end_datetime": "example",
          "instructor_names": [
            "example"
          ],
          "is_free_class": true,
          "location_display": "example",
          "public": true,
          "public_note": "example",
          "standard_reservation_user_count": 1,
          "start_date": "example",
          "start_datetime": "example",
          "start_time": "example",
          "waitlist_reservation_user_count": 1
        },
        "id": "example",
        "relationships": {},
        "type": "class_sessions"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List customer memberships

List the memberships customers hold, by customer or status.

Inputs

Customer IDusernumber
Only this customer's memberships, by customer ID.At least 1.
Statusstatustext
Only memberships in this status.One of: active, cancelled, converted, ding_failure (Ding failure), done, frozen, payment_failure (Payment failure), pending_bank_authorization (Pending bank authorization), pending_customer_activation (Pending customer activation), pending_start_date (Pending start date), terminated.
Updated aftermin_updated_datetimedate and time
Only records changed at or after this time.
Updated beforemax_updated_datetimedate and time
Only records changed at or before this time.
Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "cancellation_datetime": "example",
          "cancellation_reason": "example",
          "end_date": "example",
          "membership_name": "example",
          "next_charge_date": "example",
          "payment_interval": "example",
          "purchase_date": "example",
          "renewal_currency": "example",
          "renewal_rate": "example",
          "start_date": "example",
          "status": "example"
        },
        "id": "example",
        "relationships": {},
        "type": "membership_instances"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List customer notes

List the staff notes kept on customers.

Inputs

Customer IDusernumber
Only notes on this customer, by customer ID.At least 1.
Pinnedis_pinnedtrue/false
On for pinned notes only.
Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "is_pinned": true,
          "note_datetime": "example",
          "text": "example",
          "user": 1
        },
        "id": "example",
        "relationships": {},
        "type": "user_notes"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List customers

Find customers by name, email or phone, or list those changed in a time range.

Inputs

Searchquerytext
Search customers by name, email or ID.
Emailemailtext
Only the customer with this exact email.
Phone numberphone_numbertext
Only customers with this phone number.
Home locationhome_locationnumber
Only customers whose home studio is this location.At least 1.
Staff onlyis_employeetrue/false
On for staff only, off for customers only.
Updated aftermin_updated_datetimedate and time
Only records changed at or after this time.
Updated beforemax_updated_datetimedate and time
Only records changed at or before this time.
Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "address_line1": "example",
          "address_line2": "example",
          "archived_at": "example",
          "birth_date": "example",
          "city": "example",
          "completed_class_count": 1,
          "country": "example",
          "date_joined": "example",
          "email": "example",
          "first_class_taken_date": "example",
          "first_name": "example",
          "full_name": "example",
          "gender": "example",
          "last_class_taken_date": "example",
          "last_name": "example",
          "marketing_opt_in": true,
          "phone_number": "example",
          "postal_code": "example",
          "signed_waiver": true,
          "state_province": "example"
        },
        "id": "example",
        "relationships": {},
        "type": "users"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List employees

List the studio's staff accounts.

Inputs

Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "can_chat": true,
          "is_active": true,
          "payroll_id": "example"
        },
        "id": "example",
        "relationships": {},
        "type": "employees"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List locations

List the studio's locations.

Inputs

Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "address_line1": "example",
          "city": "example",
          "currency_code": "example",
          "email_address": "example",
          "listed": true,
          "name": "example",
          "phone_number": "example",
          "postal_code": "example",
          "state_province": "example",
          "timezone": "example"
        },
        "id": "example",
        "relationships": {},
        "type": "locations"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List orders

List purchases made in the studio's shop and at the front desk.

Inputs

Customer IDusernumber
Only this customer's orders, by customer ID.At least 1.
Locationlocationtext
Only orders at this location.
Order numbernumbertext
Only the order with this number.
Updated aftermin_updated_datetimedate and time
Only records changed at or after this time.
Updated beforemax_updated_datetimedate and time
Only records changed at or before this time.
Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "currency": "example",
          "date_placed": "example",
          "is_refundable": true,
          "number": "example",
          "status": "example",
          "subtotal": "example",
          "total": "example",
          "total_discount": "example",
          "total_tax": "example"
        },
        "id": "example",
        "relationships": {},
        "type": "orders"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List regions

List the regions the studio's locations are grouped into.

Inputs

Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "listed": true,
          "name": "example"
        },
        "id": "example",
        "relationships": {},
        "type": "regions"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

List reservations

List class reservations, for a customer, a class or a status.

Inputs

Customer IDusernumber
Only this customer's reservations, by customer ID.At least 1.
Class IDclass_sessionnumber
Only reservations in this class, by class ID.At least 1.
Statusstatustext
Only reservations in this status.One of: pending, check in, standard cancel, penalty cancel, graced cancel, penalty no show, no fee no show, graced no show, removed, class cancelled, penalty removed.
Reservation typereservation_typetext
Only booked, waitlisted or standby reservations.One of: standard, waitlist, standby.
Classes fromclass_session_min_datedate
Only reservations for classes on or after this day.
Classes toclass_session_max_datedate
Only reservations for classes on or before this day.
Updated aftermin_updated_datetimedate and time
Only records changed at or after this time.
Pagepagenumber
Which page to read, from 1.At least 1.
Page sizepage_sizenumber
How many records to return on a page, up to 100.From 1 to 100.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": [
      {
        "attributes": {
          "cancel_date": "example",
          "check_in_date": "example",
          "creation_date": "example",
          "guest_email": "example",
          "guest_name": "example",
          "reservation_type": "standard",
          "reserved_for_guest": true,
          "status": "pending"
        },
        "id": "example",
        "relationships": {},
        "type": "reservations"
      }
    ],
    "meta": {
      "pagination": {
        "count": 1,
        "page": 1,
        "pages": 1,
        "per_page": 1
      }
    }
  }
}

Mark a reservation as a no-show

Record that the customer didn't come to their class.

Inputs

Reservation IDreservation_idnumberRequired
The reservation, by ID.At least 1.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "cancel_date": "example",
        "check_in_date": "example",
        "creation_date": "example",
        "guest_email": "example",
        "guest_name": "example",
        "reservation_type": "standard",
        "reserved_for_guest": true,
        "status": "pending"
      },
      "id": "example",
      "relationships": {},
      "type": "reservations"
    }
  }
}

Update a customer

Change a customer's details. Only the fields filled in change.

Inputs

Customer IDcustomer_idnumberRequired
The customer, by ID.At least 1.
Emailemailtext
New email address.
First namefirst_nametext
New first name.
Last namelast_nametext
New last name.
Phone numberphone_numbertext
Phone number.
Date of birthbirth_datedate
Date of birth.
Gendergendertext
Gender, as Mariana Tek records it.One of: female, male, transgender_female (Transgender female), transgender_male (Transgender male), genderqueer, agender, non_binary (Non binary), other, prefer_not_to_say (Prefer not to say).
Address line 1address_line1text
First line of the address.
Address line 2address_line2text
Second line of the address.
Citycitytext
Town or city.
State or provincestate_provincetext
State or province.
Postal codepostal_codetext
Postal or ZIP code.
Countrycountrytext
Country.
Emergency contact nameemergency_contact_nametext
Who to contact in an emergency.
Emergency contact phoneemergency_contact_phonetext
The emergency contact's phone number.
Marketing opt-inmarketing_opt_intrue/false
On if the customer agreed to marketing email.
Home locationhome_locationtext
The customer's home studio.

Outputs

dataobject
The response from Mariana Tek.
Example output
{
  "data": {
    "data": {
      "attributes": {
        "address_line1": "example",
        "address_line2": "example",
        "archived_at": "example",
        "birth_date": "example",
        "city": "example",
        "completed_class_count": 1,
        "country": "example",
        "date_joined": "example",
        "email": "example",
        "first_class_taken_date": "example",
        "first_name": "example",
        "full_name": "example",
        "gender": "example",
        "last_class_taken_date": "example",
        "last_name": "example",
        "marketing_opt_in": true,
        "phone_number": "example",
        "postal_code": "example",
        "signed_waiver": true,
        "state_province": "example"
      },
      "id": "example",
      "relationships": {},
      "type": "users"
    }
  }
}

On this page