cieTrade Webhooks
cieTrade Webhooks
Setup and integration guide cieTrade.net December 2026
Overview
A webhook lets cieTrade notify your own system the moment something happens, instead of your system
having to ask. When a worksheet is saved in cieTrade, we send the full worksheet — header, details,
expenses and packing list — to a web address (endpoint) that you choose, as a JSON POST request.
Setting it up
1. In cieTrade, go to Settings → Integrations and open the Webhooks tab.
2. Enter your Endpoint URL. It must be a public address that starts with https://.
3. Tick Send worksheet webhooks and click Save. A Signing Secret is generated for you.
4. Click Send Test. A test event is sent to your endpoint and the result appears next to the button.
5. Check Recent Deliveries at the bottom of the tab to see each request, its HTTP status and how long it took.
The Settings permission is required to open this page.Send Test works even when the checkbox is
unticked, so you can verify your endpoint before turning webhooks on.
When a webhook is sent
An event named worksheet.saved is sent every time a user saves a worksheet from a worksheet entry
screen, whatever its status: brokerage (trade) worksheets, inventory sales, inventory receiving, receiving
slips, grading and container entry. Both new worksheets and edits are sent; the is_new field tells you
which.
The request

Example payload
The example is shortened; each section carries more fields than shown. Values above are illustrative.
What each section contains

- Empty values are sent as null. A section with no rows is an empty list [ ] .
- timestamp is UTC. Dates inside worksheet have no time zone and are as entered in cieTrade.
- Amounts without the hc_ prefix are in the transaction currency; hc_ amounts are in your home
- currency.
- New fields may be added over time, so your code should ignore fields it does not recognize.
Verifying the signature
Every request is signed so you can confirm it came from cieTrade and was not altered. The signature is the
HMAC-SHA256 of the raw request body, using your Signing Secret as the key, written as lowercase hex
and prefixed with sha256= . Compute the same value on your side and compare it with the X-cieTradeSignature header.
Use the body exactly as received, before any JSON parsing. Keep the secret private. If it is ever exposed,
click Regenerate on the Webhooks tab and update your endpoint with the new value — the old one stops
working immediately.
What your endpoint should do
- Reply with any 2xx status within 10 seconds. Anything else, or no reply, is recorded as a failed delivery.
- Reply first and do slow work afterwards, so you stay inside the time limit.
- Redirects are not followed — give the final address of your endpoint.
- Failed deliveries are not retried. They are listed in Recent Deliveries with the error.
- A worksheet can be saved many times, so expect several events for the same worksheet_no . Each one
- carries the complete, current worksheet; treat the latest as the truth. Use event_id to spot duplicates.
- A webhook problem never blocks or slows a user saving a worksheet in cieTrade.
Test event
Send Test sends a small event named webhook.test with the same headers and signature, and no
worksheet data. Use it to confirm your endpoint is reachable and your signature check works.
Troubleshooting

Questions? Contact cieTrade Support.