Hello,
I'm working with cio api and I'm facing some problems when trying to schedule messages:
this is what I'm doing to schedule an email, but it never schedules, it sends it right away, what should I do?
const current = new Date();
const dat = new Date(currente.getTime() + 30 * 60000);
const dateToSendEmail = Math.round(dat.getTime() / 1000);
await this.sendEmailToCIO(dateToSendEmail);
Request:
{
transactional_message_id: 4,
to: { id: 52820, name: 'fagmer ricardo', email: 'ricardo@gmail.com' } ],
type: 'abandoned-purchase',
send_at: 1675015142,
payload: {
customer: { fullName: 'fagmer ricardo' }
}
}