younifyd
Menu

Record Purchases

Log many completed orders at once, each exactly once — for loading order history and for order webhooks

Use it in a workflow

  1. Add a step and choose the Recommendations connector.
  2. Pick the Record Purchases action (under database).
  3. Fill in the fields below, then reference the result from later steps as {{recordPurchases.response.data}}.

Fields

ordersstringrequired

A JSON array of orders, each {orderId, items: [{itemKey, quantity, price}], customerId, currency, timestamp}. timestamp is when the order was placed. At most 500 orders.

Examples

Two orders

Past orders, dated

json
{
  "orders": "[{\"orderId\":\"1001\",\"timestamp\":\"2026-09-14T10:30:00Z\",\"items\":[{\"itemKey\":\"SNOWBOARD-POWDER\",\"quantity\":1},{\"itemKey\":\"BINDING-STRAP\",\"quantity\":1}]},{\"orderId\":\"1002\",\"timestamp\":\"2026-09-15T08:00:00Z\",\"items\":[{\"itemKey\":\"BINDING-STRAP\",\"quantity\":2}]}]"
}

Need more? See the Recommendations guide for connection setup and behaviour shared by every action.