redguava / cliniko-api

The API for Cliniko
74 stars 39 forks source link

Question on this field "receives_confirmation_emails" #265

Closed fcbaconguis closed 5 years ago

fcbaconguis commented 5 years ago

I have been scanning the api of where this field patient[receives_confirmation_emails] is saved, can you provide the correct name on the api? Thank you.

hagen commented 5 years ago

Hi there! This prop isn't exposed on /patients. The reminder_type prop is however, which can be set to one of four options: null, SMS, Email, SMS & Email. I'll follow up with the team to see if there's a reason we're not sending/accepting this property.

Cheers!

On Fri, 14 Jun 2019 at 17:55, Fritz Baconguis notifications@github.com wrote:

I have been scanning the api of where this field patient[receives_confirmation_emails] is saved, can you provide the correct name on the api? Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/redguava/cliniko-api/issues/265?email_source=notifications&email_token=ABHMHYCOIEG4KNBF5SYGQD3P2NFI5A5CNFSM4HYFNL4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZPWV5Q, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHMHYEBFSHQWZSY644CSMTP2NFI5ANCNFSM4HYFNL4A .

fcbaconguis commented 5 years ago

Hi hagen,

For clarification.

Automated reminder type -> reminder_type field Agrees to receive your promotional SMS marketing -> accepted_sms_marketing field Receive booking confirmation emails -> this third field is my question, what field is this saved?

Thanks!

Fritz

hagen commented 5 years ago

We don't currently expose that property on the patients endpoint. Discussing internally whether we can add it (should be okay!) What specifically do you need it for @fcbaconguis ?

fcbaconguis commented 5 years ago

hi @hagen, I am tasked to manage the patient details, one of them is to reset the communication preferences into "None" or null or untick that setting.

hagen commented 5 years ago

Are you attempting to trigger a reset of comms preferences from another application? And how often would this need to be done? Or is this a bulk type operation?

fcbaconguis commented 5 years ago

Yes, by using the api

this will be triggered once for now and depends if tasked again to do it again in the next few months

Yes this is a bulk type operation.

hagen commented 5 years ago

I think we're good to add receives_confirmation_emails to /patients. Stay tuned.

hagen commented 5 years ago

@fcbaconguis this prop is now in /patients - enjoy!