Skip to main content

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' }
}
}

 

would you be open to sharing a more complete snippet of the code you’re using to send to the Customer.io transactional API? In particular would be interested to know how exactly you’re passing your request parameters to Customer.io and whether you using the official node library.

thanks!


Reply