Add Appointment Credits

Use the addAppointmentCredits mutation to add appointment credits 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
    }
  }
}

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

Last updated