What you’ll need
Creating the connector
1
Endpoint URL
The https URL equate should POST to. It must be publicly reachable; private
and link-local addresses are refused, and redirects are not followed.
2
Signing secret
Press Generate and copy the value into your system, or paste one you minted.
Stored encrypted, never shown again, rotatable at any time with an overlap window.
3
Authentication (Additional security)
Open Additional security to say how your endpoint checks it’s us (see
Authentication). Leave it on None if the signature alone is
enough for you.
4
Test connection
Sends a test POST through exactly the path deliveries take: the same
authentication (including the OAuth token exchange) and the same signatures. The
body is
{"test": true, "source": "equate", "at": "<ISO time>"} and the request
carries X-Equate-Test: true, so you can recognise and discard it.5
Attach it to a pipeline
Add a Webhook action in the pipeline builder, pick this connector, choose
which outcomes trigger it (auto-matched, needs review, failed or flagged), and
shape the payload.
Authentication
Two independent layers protect a delivery. Authentication is how your endpoint recognises the caller: a credential you issue us, sent on every request. Signing is how it verifies the message: an HMAC over the body with a shared secret. Use both; the signature is sent whichever authentication you choose.Setting up Cognito for equate
Setting up Cognito for equate
- In your user pool, add a resource server (for example identifier
equate) with a custom scope such asinvoices/write. - Create an app client for equate with a client secret, the client credentials flow enabled, and that scope allowed.
- On the connector, choose OAuth 2.0 client credentials and enter the token endpoint
(
https://<your-domain>.auth.<region>.amazoncognito.com/oauth2/token), the client id, the client secret and the scope (equate/invoices/write). - Protect your endpoint with a Cognito authorizer (API Gateway) or validate the JWT yourself. Test connection performs the token exchange and the POST, so a green test means the whole chain works.
The delivery
Each delivery is a JSON POST. Thedata object always carries jobId and
reference; everything else is opt-in per pipeline action, so the payload can be as
small as you like:
-
datais shaped in the pipeline action: toggle the match result, the per-field match breakdown, the invoice fields (extractedData) and the matched booking’s fields (bookingData,nullwhen no booking was found) on or off, pick exactly which invoice and booking fields to include, and add fixed key/values of your own (a flag such as"source": "equate"or a system identifier, the same on every delivery from that pipeline). A pipeline per document family (flights, hotels) with its own fixed values is the usual way to tell them apart. -
matchResultalways has the same six fields when the action includes it:The booking’s other fields go inbookingData, when the action includes them. -
artifactsare document links, present only when the action asks for documents. Webhooks carry links, never file bytes. Each one has: -
The body can instead be XML, CSV or TXT (
payloadFormaton the action); then the data is serialised directly with a matchingContent-Type, with no envelope.
Headers
Both signature headers are present whenever the connector has a signing secret.
Verifying the signature
X-Equate-Signature is t=<timestamp>,v1=<signature> where the signature is
HMAC-SHA256 (hex) with your signing secret over the string `${t}.${rawBody}`:
the timestamp, a full stop, then the raw request body exactly as received (don’t
parse and re-serialise it first). Reject anything whose timestamp is more than
5 minutes from your clock, which is what stops a captured request being replayed.
x-equate-signature). A receiver that still checks
X-Signature-256 computes sha256= + HMAC-SHA256(secret, rawBody); that header has no
timestamp, so pair it with the Idempotency-Key to refuse repeats.
Rotating the signing secret
Rotate from the connector page or Organisation → Keys & secrets. You choose, or let us generate, the new secret, and an overlap window (1 hour to 7 days, 24 hours by default):- From the moment you rotate, every request carries two
v1signatures: the new secret’s first, then the previous secret’s.X-Signature-256switches to the new secret immediately. - Deploy the new secret on your side whenever suits you inside the window. A verifier
that accepts any matching
v1(as the sample above does) passes throughout. - When the window closes, or when you press Finish rotation now, the previous secret stops signing.
Retries and failure
A non-2xx response (or a timeout) marks the delivery failed and it is retried with backoff. A429, or a 503 with Retry-After, is treated as “slow down”: the job is
held and retried after the delay rather than counted as a failure. Repeated failures
park the job as ACTION_FAILED: it keeps its match and shows in Processed with a
Delivery Failed badge. Logs → Outbound shows the request we sent, how it
authenticated, and the response we received; fix the endpoint, then re-send it from
there.
Document links
When the action includes documents (the processed invoice, a paired client copy, other files from the same email), eachartifacts[].url is a signed, expiring link served
from equate’s own domain. No storage backend URL is ever exposed. The lifetime is set per
action: 1 hour by default, anywhere from 1 minute to 7 days. An expired link returns
404.
If a download fails
Store two ids from the delivery, not the link:data.jobId and the document’s
artifacts[].id. With those you can get a fresh link at any time, without waiting for
the delivery to be sent again:
/api/v1/invoices/<jobId>/documents) to list every
document held for the invoice, each with its id and a fresh link. That list can be
longer than the delivery’s artifacts: an action sends only the documents it was set to
send, and the list has all of them.
jobIdis on every delivery, whatever fields the action sends. The documentidis on every entry inartifacts.- Call it as often as you need. Each call returns a new link and leaves earlier ones
working until they expire.
?ttl=<seconds>sets the lifetime (60 to 604800, one hour by default). - Authenticate with an API key from Organisation → Keys & secrets (see API keys). The links themselves need no key.
404means the invoice isn’t in your workspace, the document isn’t one of that invoice’s, or your retention period has removed the file. A removed file can’t be recovered, so there is nothing to retry.
artifacts[].url when the delivery arrives. On a
failure (a timeout, a 404 from the link, a 5xx), wait, ask for a fresh link by id and
try that. After a few attempts with backoff, raise it on your side with the jobId and
the document id. See the API reference for one document
and all of an invoice’s documents.
Network
Deliveries come from equate’s hosting in the EU (Dublin) over https. Outbound addresses are not fixed by default, so prefer authenticating the request (signature plus one of the authentication options) over IP allow-listing. If your security policy requires a fixed source address, ask us: deliveries to your workspace’s webhooks and APIs can be routed through a static address. See connector security for what is encrypted, what is verified and how every credential is rotated, across all connectors.Onboarding checklist
Agree these with equate and the integration is specified:- Endpoint URL (https, accepts
POST, replies2xxfast). - Authentication: none / API key header / bearer / basic / OAuth 2.0 client credentials. For OAuth: token endpoint, client id, client secret, scope.
- Signing secret: generated by equate or minted by you; where it lives on your side; who rotates it and how often (the overlap window makes this painless).
- Payload: which fields, any fixed key/values, JSON or another format.
- Documents: include them or not, and the link lifetime. Store
jobIdand each document’sidso a failed download can be retried with a fresh link. - Outcomes that trigger the hook (auto-matched, needs review, failed or flagged).
- On your side: verify
X-Equate-Signature(5-minute tolerance), dedupe onIdempotency-Key, ignoreX-Equate-Test, return429or503 + Retry-Afterwhen you need us to back off.
Next: shape what gets sent
Actions are gated by outcome and configured per pipeline.