Where to find it
In the admin, click the Settings gear in the top bar. In the Settings sidebar, under System, select Callbacks. You can also click the Developer Hub code icon in the top bar, then select Callbacks in the Developer Hub sidebar. If you don’t see Callbacks, your role doesn’t have access to Developer. An admin who manages roles can give your role View only or Full access to Developer on the role’s Permissions tab, in the Settings card. See Roles.The callbacks list
The list shows your company’s callbacks. Click Create Callback to add one.- The All, Active and Inactive tabs filter the list by status. All is selected when the screen opens.
- Sort the list by Event, Status or Created At.
- Event: the store event the callback responds to, for example
update_cart_tax. - URL: the endpoint Fluid sends the request to. The list shortens long URLs. Hover over one to see the full address.
- Timeout: you can ignore this column. Fluid sets the time limit for each event.
- Installed By
- Status: active or inactive.
- Created At: the date and time the callback was created.
The callback panel
The panel opens on the right when you click Create Callback or open a callback.- Definition: the event that triggers the callback. Select it from the Definition menu, which lists event names such as
update_cart_tax,update_cart_shippingandredirect_cart_payment. This field is required. - URL: the address of your endpoint, for example
https://shop.example.com/fluid/callbacks. It must start withhttps://. - Timeout (seconds): new callbacks start at 5. Fluid sets the time limit for each event, and this value doesn’t change it, so you can leave it as is.
- Active: turn this on to have the callback receive events. New callbacks start with Active on.
Fluid uses a tax callback (
update_cart_tax) only when your tax settings use Custom Tax Integration or Droplet, or, in Per Country mode, when a country’s Tax Mode is Custom Tax Integration or Tax Droplet. You choose this on the Taxes screen.The Taxes screen mentions callback country filters. You can’t set them on the Callbacks screen. Your developer sets them through the Fluid API.Create a callback
1
Start a new callback
On the Callbacks screen, click Create Callback. The Create Callback panel opens.
2
Choose the event
In Definition, select the event you want your endpoint to handle. If you already created a callback for this event, edit it instead.
3
Enter your endpoint
In URL, enter the address of your endpoint. It must start with
https://.4
Save
Leave Active on so the callback starts receiving events, then click Save. The new callback appears in the list.
Edit a callback
1
Open the callback
In the list, click the callback, or choose Edit from its actions menu. The Edit Callback panel opens.
2
Save your changes
Change the fields you need, for example the URL, then click Update.
Delete a callback
1
Choose Delete
In the list, choose Delete from the callback’s actions menu.
2
Confirm
In the Delete Callback? dialog, click Delete. You can’t undo this.
FAQ
What's the difference between a callback and a webhook?
What's the difference between a callback and a webhook?
A webhook tells your service that something happened, without holding up the store action. A callback calls your service during the event, and for most events Fluid waits for your response before it continues. If you only need to know that an event happened, use Webhooks instead. Developers can find the callback API alongside webhooks in Register and handle webhooks.
Why can't I save my callback?
Why can't I save my callback?
Check these things:
- The URL must start with
https://. - You can create only one callback for each event. If you already created a callback for this event, open it and change its URL instead.
- The
deliver_emailevent accepts only one active callback for your company. If another callback for it is already active, such as one a droplet installed, Fluid rejects the save while Active is on.