Three ways to catch a change on an order
1. Automatic Action in Base
Create a rule such as “if a cancellation request arrives from the marketplace, set status to Cancelled.” The action runs entirely on Base’s side, so no extra logic is required in your own system. This is the simplest approach to maintain and works well for straightforward workflows like auto-assigning statuses or triggering internal notifications.2. Polling getJournalList
getJournalList returns a list of order events from the last 3 days, including order confirmation and cancellation events.
getJournalList is disabled by default. Enable it in the Base panel under My account → API before using it.3. Webhook (“Call URL” action)
A webhook is a “Call URL” Automatic Action. When the watched event occurs, Base immediately calls your defined URL and passes the order ID along with any optional parameters you specify (for example,&cancel=1) or values pulled directly from the order, similar to variables available in email templates.
This is usually the fastest way to catch an event in real time without polling.
Most common use case: catching a cancellation
A customer requests to cancel an order on a marketplace, Base records the cancellation, and you need to find out before you ship the order unnecessarily. The recommended solution combines all three approaches:- An Automatic Action directly sets the order status to Cancelled or Rejected as soon as the cancellation request arrives.
- A webhook notifies your system immediately so you can halt fulfillment. Your handler can then call
setOrderStatusto update the order status in Base programmatically. - A
getJournalListpoll catches any events the webhook may have missed.