This feature is available by application only. It is not enabled by default —
contact the team to request it for your program.
The callback URL and the timeout are configured by Orenda.
Two events
Enabling
CARD_AUTHORIZATION_REQUESTED automatically enables both — you will always
be consulted on incremental authorisations for transactions you already approved.
Both events share the same transaction.transaction_link_id, so you can match an
incremental request back to the original authorisation.
Example payload
Fields worth reading twice
Transaction types
type_code is the network’s own two-digit code and type is its label. The set
is closed: every value you can receive is in this table.
Key behaviour on type_code, not on type. The label is stable and is safe
to display, but the code is what we match on ourselves and what the network
guarantees.
A code outside this table is still delivered:
type falls back to
Transaction type <code> and entry_channel is omitted. That means the network
has published something new, so treat it as a purchase you do not recognise
rather than as an error.
“Moves money” is the network’s own classification, for context — it is not a
field on the payload. The authoritative signal for direction is the sign of
amount: negative is money leaving the cardholder, positive is money returning.Optional fields are omitted when unknown — they will not appear in the payload at all,
rather than being sent as
null. Do not assume every field is always present.Refunds
Refunds arrive through the same events — there is no separate refund event. You can tell them apart by theamount: negative for a purchase (money leaving the
cardholder), positive for a refund (money coming back).
A refund is never declined because we could not reach you. If your endpoint
times out, errors or answers unusably on a refund, we approve it. Declining one
would protect nothing: a refund places no hold and the money moves at
settlement, which never consults your answer — it would only refuse the
cardholder their own money at the terminal, over a fault on our side of the
call.An explicit
{"decision": "decline"} on a refund is still honoured — you
answered, and that is the control you asked for.This covers the codes that can only ever credit, which is every credit code
in the table above except one. 40 (Cardholder Account Transfer) is published
“Credit and Debit”: the network can settle it in either direction, so it may
arrive with a positive amount and still take money. A 40 we could not ask
you about is therefore treated like any other unanswered transaction, not as a
guaranteed credit. Do not infer from a positive amount alone that a no-answer
will approve — check type_code.Expected response
Respond with any2xx status and a JSON object containing a decision field. Partial approvals are not supported: approve the full amount or decline.
Approve:
reason selects what the cardholder sees
Send reason as one of the values below. It is not a note for our
support team — it selects the response code the card network returns, which is what
the terminal prints and what the cardholder is told. A decline for an expired card and a
decline on your own risk rule should not read the same at the till.
Matching ignores case and surrounding whitespace. Nothing else is guessed at: we will not
read
card-expired or Insufficient Balance as anything but unrecognised.
Your decline is always honoured. An unrecognised or missing
reason never turns a
decline into an approval and never causes an error — only the code we return changes.
Anything outside the list, and an absent reason, is read as unknown and returns 119.That is exactly what every decline returned before this list existed, so a receiver written
against the earlier free-text contract keeps working unchanged. It just gives the cardholder
the least useful message we have, on every decline. Send a real reason.system_error is for when you could not decide — your rules engine was down, a
dependency timed out. Do not use it to describe the cardholder’s situation.
We also keep the raw string you sent, for support and investigation: trimmed and
truncated at 200 characters. That text is never relayed to the network and never shown
to the cardholder — only the code it selects is.
Verifying the signature
Test vector
Check your implementation against this known input:The same signing secret is used for decision requests and webhooks. In rare cases a
decision request can arrive without a signature. Rejecting it with a non-
2xx counts as no
answer — decide deliberately which you want.How to identify an authorisation request
If
Orenda-Event-Id is present, this is an authorisation request — answer it with a
decision. Notification webhooks never carry it.
If Orenda-Signature-Timestamp is also present, verify using <timestamp>.<body> as the
signing base — not the body alone.
If neither header is present, this is a notification webhook and you verify using the body
only (see notification webhook signature verification).
Redeliveries
If the card network does not receive a response in time, it retries the authorisation and we forward it to your endpoint again. You may receive the same authorisation multiple times. Return the same decision each time: if a repeat is declined after the original was approved, the original hold stays until the network confirms the outcome. Always deduplicate onevent_id, which stays the same across retries.
Orenda-Delivery-Id changes with each attempt and should not be used for deduplication.
Other requirements
- HTTPS on a public hostname. Plain HTTP, IP addresses and internal hostnames are rejected before the call is made.
- Redirects are not followed. A
3xxis no answer, and is declined — publish the final URL. - Keep the response small. A response over 64 KiB is no answer — we stop reading and
decline. Answering
{"decision":"approve"}followed by 65 KiB of rule context declines the card. - Be quick. You have 2 seconds, covering DNS, TLS, your processing and the response body. Aim for a p99 under 500 ms — the card network is waiting, and a slow answer risks the network deciding without you.