The endpoints equate calls
Your API offers equate two endpoints. Both return a JSON array of bookings (a wrapper such as{"bookings": [...]} is fine: you point equate at the array when you
set the connection up), and you map their fields to equate’s in the
booking-data wizard. They’re the same two endpoints as Part 1
of the developer guide we share with your team at onboarding.
1. Find bookings by reference (required)
When an invoice arrives, equate substitutes its reference into your lookup path and calls it:- Filter on the reference only, and return every booking that has it, as an array even when there is one: a reference is not always unique. equate reads up to 100.
- Nothing found: reply
200with[], or404. Any other error status counts as a failed lookup, not “no booking”. - Ignore case, and if you can, spaces, hyphens and slashes, so
EX-44821,ex44821andEX 44821find the same booking. - Your own booking ID too: if the endpoint also finds a booking by your own booking ID, your team can type either into Search booking data on an invoice. There’s no need for a separate booking ID endpoint.
2. Find bookings by amount and dates (optional, more accurate matching)
This endpoint is optional, but it makes matching more accurate. When an invoice’s reference is missing, or the supplier used one that isn’t yours, equate asks your search path for bookings around the invoice’s total and travel dates, then checks each one against the invoice. Without it, those invoices can only wait for a person. Your team uses it too, to search by amount from an invoice.
Return up to 25 bookings, newest first, in the same shape as endpoint 1. Ignore any
parameter you can’t filter on: the total range alone works. The more of them you
filter on, the closer the results, and the more often the right booking is found.
Without a search path the connection matches on reference only.
Configuration
Designing a good lookup endpoint
- Fast and cacheable: equate calls endpoint 1 once per match attempt, and endpoint 2 only when the reference finds nothing. A P99 under a second keeps the queue moving.
- Return misses as misses — a
404(or an empty record set) is treated as “no booking”, which routes the invoice to Need Review as No match rather than failing the job. - Leave unknown values empty —
nullor a missing field, never a placeholder likeN/AorTBC. See empty and unknown values. - Include supplier and total when you can — they upgrade a bare reference hit into a confident, auto-completable match. See how matching works.
- Scope the credential — a token that can only read bookings is all equate needs.
Security
Rotating: for a static credential, issue the new one, enter it on the connector and
save. For OAuth, create a new client secret, enter it and save; equate drops the cached
token. See connector security.
Next: connect it as booking data
Add the connector under Booking Data, map the response, and run the live test.