TeleWellness Portal
  • Introduction
  • HELPFUL RESOURCES
    • Getting Started
    • FAQ
      • Appointments
      • Meal Plan
  • User Management
    • Roles and Permissions
    • Manage Coaches
      • Coach tab
        • Register a new coach
          • Assign Members
        • Edit an existing coach
      • Calendar tab
        • Appointment Types
        • Appointment Alerts
      • Note Templates tab
    • Manage Members
      • Create a new member
      • Edit member's information
      • Filter members
  • Using the TeleWellness Portal
    • Login and logout to the Portal
    • Navigating the TeleWellness Portal
      • Home
      • Dashboard
      • Admin Dashboard
      • Coach Dashboard
        • Progress Tab
          • Filtering the information
          • Checking the user’s streak progress
          • Checking the user's activities progress
          • Showing the food log history
          • Checking the user's recap questions
          • Checking the user's weight log history
          • Showing user’s program journey
          • Checking user’s water intake history
        • Meal Plan tab
        • Notes tab
        • Appointments tab
        • Lab Tests tab
        • Wellness Plans tab
      • Messages
      • Meal Plans
        • Manage Meal Plans
          • From Scratch
          • Smart Meal Plan
      • Scheduling
      • Wellness Plan
        • Manage Protocols
        • Manage Wellness Plan Templates
    • Note Templates
  • API Reference
    • Generate Authorization Token
    • Appointments
      • Appointment Types
      • Add Appointment Credits
    • Coaches
      • Coach List
      • Update a Coach
      • Create a Coach
      • Invite Coach
    • Members
      • Member List
      • Members List
      • Program List
      • Update member's program
      • Assign Coach to Member
    • Lab Test Reports
      • Lab Test Report List
      • Create a Lab Test Report
      • Update Lab Test Report
      • Delete a Lab Test Report
    • Wellness Plans
      • Create a Supplement Plan for Member
      • Update Member Supplement
      • List Member Supplement Plans
      • Delete Member Supplement Plan
Powered by GitBook
On this page
  • Required Arguments
  • Available Arguments
  • Available Fields
  • Appointment Credit
  • Example
  1. API Reference
  2. Appointments

Add Appointment Credits

PreviousAppointment TypesNextCoaches

Last updated 3 years ago

Use the addAppointmentCredits mutation to add appointment to a specific member to be added to an appointment.

Remember to add credits per appointment type.

Required Arguments

Argument Name

Type

Description

appointmentType

ID

member

ID

Available Arguments

Argument Name

Type

Description

increase

Int

Increase the number of credits.

decrease

Int

Decrease the number of credits.

value

Int

Add an exact number of credits.

Available Fields

The following fields will be displayed in the response:

Field Name

Type

Description

success

string

True if the user has program has been updated successfully. Otherwise, False

message

string

Description of the result

credits

Object that returns the information of a credit.

Appointment Credit

Field Name
Type
Description

Field Name

Type

Description

ID

ID

Credit unique ID

appointmentType

Appointment type information

value

Int

Credit current value

Example

mutation {
  addAppointmentCredits(
    member: "TWVtYmVyOjVlZDk5MjMyLWNhMTMtNGE2NS05MmIyLWZjMDk4ZjgyOWUwNA=="
    appointmentType: "QXBwb2ludG1lbnRUeXBlOjU="
    increase: 3
    decrease: 0
  ) {
    success
    message
    credits {
      id
      appointmentType {
        id
        title
      }
      value
    }
  }
}
{
  "data": {
    "addAppointmentCredits": {
      "success": true,
      "message": "Appointment Credits were updated",
      "credits": {
        "id": "QXBwb2ludG1lbnRDcmVkaXQ6Nw==",
        "appointmentType": {
          "id": "QXBwb2ludG1lbnRUeXBlOjU=",
          "title": "Onboarding call "
        },
        "value": 3
      }
    }
  }
}

Within the TeleWellness Portal, edit the information of the corresponding member, check that the credits information has been updated:

Unique appointment type ID. Execute the query to get the ID

Unique memeber ID. Execute the query to get the ID.

credits
members
AppointmentType
AppointmentCredit
appointmentTypes