I am attempting to build a sales platform with sendgrid integration, currently due to cost limitations I want to limit email transactions to sendgrid's free plan of 400 emails/day.
Is there a way I can retrieve the remaining email quota programmatically in PHP?
I have seen this question (link) but I am not familiar with ruby, i believe that this is a workaround.
You would need to set up the user as a subuser of the main account, and then use the Customer Subuser API to check/limit the credits. However, the Customer Subuser API is only available to customers on SendGrid's Silver plan and higher, so if you're on the free plan, you won't be able to do this.