Send a Scheduled Review Request Early
Keep a review request campaign as a fallback, and send each order's request when your own system knows the customer is ready.
On this page
Review request campaigns send a request a set number of days after an order event, such as fulfillment or delivery. Your own system may know better when a customer is ready to review, for example once they've set up the product and used it for a couple of weeks. In that case, keep the campaign as a fallback and send each order's request early through the Private API.
It's still the campaign's request, so the email, its follow-ups, the link to review the order and the customer's unsubscribe choice all work as usual.
How it works#
- The campaign schedules a request for each order, late enough that your system will usually get there first.
- When your system decides the customer is ready, it finds that order's scheduled request and sends it now.
- Any request you don't send goes out on the campaign's schedule.
1. Set the campaign up as a fallback#
In the campaign's settings, choose:
- A trigger every order reaches. Fera only schedules a request once the order reaches the trigger event. If your orders don't always get a delivery date, trigger on fulfillment instead of delivery.
- A delay later than you'd normally ask, for example 60 days. It only matters for customers your system never sends to.
When you change a running campaign's trigger or delay, Fera moves the requests it has already scheduled to the new time. Requests that were already sent aren't affected.
2. Find the order's scheduled request#
List messages, filtered by order:
curl -G "https://api.fera.ai/v3/private/customer_messages" \
-H "SECRET-KEY: $FERA_SECRET_KEY" \
--data-urlencode "order_id=5512345678901" \
--data-urlencode "code=content_campaigns.request" \
--data-urlencode "status=scheduled_at"order_idis the order's ID on your eCommerce platform (for Shopify, the order ID, not the order number like#1001), or its Fera ID.code=content_campaigns.requestkeeps only the first request for the order, not its follow-ups.status=scheduled_atkeeps only messages that haven't been sent or cancelled.
Use the message in data whose scheduled_for is in the future. If data is empty, there's nothing to send: the request was already sent or cancelled, or the order hasn't reached the campaign's trigger yet.
3. Send it now#
Send the message now, with an optional reason:
curl -X POST "https://api.fera.ai/v3/private/customer_messages/fmes_12ab/send_now" \
-H "SECRET-KEY: $FERA_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"reason": "Customer set up the product 14 days ago"}'- The request is queued to send right away. Fera may hold a review request until the afternoon in the customer's time zone; when it does,
messagein the response says when it will go out, and the message staysscheduleduntil then. Don't callsend_nowfor it again, since that replacesoriginally_scheduled_forwith the held time. - Its follow-ups are scheduled from the new send time.
- Fera keeps the original send time as
originally_scheduled_forand yourreasonasrescheduled_reason. Reading these back later tells you which requests you sent early and why, for example to compare two timings.
send_now returns 422 if the message was already sent, was cancelled, or isn't scheduled for the future. Treat that as nothing left to do for the order.
Cancel a request instead#
If you decide not to ask at all, for example because the order was refunded, cancel the message. This also cancels its scheduled follow-ups. The optional reason is shown to your team in Fera and returned as cancel_reason.
Rate limits#
The Private API allows 60 requests a minute from each IP address, and answers 429 above that. If you process many orders at once, space the calls out, for example one a second.