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#

  1. The campaign schedules a request for each order, late enough that your system will usually get there first.
  2. When your system decides the customer is ready, it finds that order's scheduled request and sends it now.
  3. 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:

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:

Shell
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"

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:

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

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.

โ†‘ โ†“ to move, Enter to open, Esc to close