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.
Argument Name | Type | Description |
appointmentType | ID | |
member | ID |
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. |
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. |
Field Name | Type | Description |
---|---|---|
Field Name | Type | Description |
ID | ID | Credit unique ID |
appointmentType | Appointment type information | |
value | Int | Credit current value |
Request
Response
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:

Last modified 1yr ago