Authorization: Bearer, like every other
customer route. The program comes from the token; a programId query parameter is ignored.
Your server’s login is refused on authorise and decline (403).
1. Get the payment
Your server knows thepaymentRequestId from its create call. When the customer opens the
approval screen, get the payment with their token:
challenge and display are present only while the payment is AWAITING_AUTHORISATION.
Every GET issues a new challenge and replaces the previous one, and a challenge is
valid for 5 minutes (300 seconds). So:
- get the payment when the customer opens the approval screen, not in advance;
- if the customer takes longer than 5 minutes, get it again before authorising;
- don’t poll this route while the approval screen is open: a background GET makes the
challenge on screen unusable (
SCA_EXPIRED).
404 INTERMEDIARY_PAYMENT_NOT_FOUND.
2. Show it
Show the recipient as the primary party, with your company beside it. Recommended:Show the quote exactly as it arrives.
receivingAmount and fxRate are strings. Don’t
add thousands separators, round, pad or format them for the locale, and don’t recompute
one from another: Orenda never does. Keep the labels neutral, “Recipient gets” and
“Exchange rate”.display: the amount, the fee, your
company’s IBAN (payeeIban), the recipient’s name, the last 4 characters of their account
and their country, and the quote. The challenge is bound to exactly these values, so the
customer approves what they saw.
3. Authorise
When the customer approves, prove it’s them with one of the methods your program allows (Orenda sets these up for your program:passkey, totp, or both), then send the
challenge and the proof:
confirmation object is the one every step-up uses: see
Step-up confirmation for getting a passkey session
and for the access token that goes with a code. On this route:
- Only your program’s methods are accepted. Any other, and a PIN always, is
422 SCA_INVALID_METHOD. - Every customer confirms, SSO sessions included. A customer signed in through single
sign-on must use a passkey; an authenticator code is refused with
SCA_INVALID_METHOD. - The proof must be this customer’s own. A passkey session or access token from another sign-in is refused.
200 with the payment’s state:
state is usually
AUTHORISED, PENDING_TM or AWAITING_CONFIRMATION, depending on how far the checks got.
Sending authorise again after it succeeded answers 200 with the current state.
When authorise is refused
A refused factor or challenge is always a422, never a 401. Don’t refresh the token
and resend the same proof: it is single-use.
Branch on
code, never on message. A 5xx says nothing about the customer’s proof: get
the payment to see where it stands, and authorise again if it is still
AWAITING_AUTHORISATION.
Over a limit
A payment over a banking limit that compliance can review answers422 LIMIT_REVIEW_AVAILABLE, with data.reviewable: true and data.breaches. Nothing is
held. If the customer wants it reviewed, send authorise again with a reason, and a fresh
proof:
note is 1 to 2000 characters. documents is optional, up to 10: upload each first with
Get somewhere to upload a document for a payment
and send its documentUrl. The payment is then held while compliance reviews it, which may
take up to a working day, and its state is LIMIT_REVIEW. If the review approves it, the
payment carries on; if not, it ends as FAILED_BEFORE_RELEASE and the money goes back. The
limits guide covers reviews in general; an
intermediary payment’s review can’t be cancelled from the limit-review routes.
Decline
If the customer doesn’t want the payment, decline it. No proof is needed, because nothing was held:200 with state: "DECLINED", and declining again answers the same. Only a
payment waiting for approval can be declined; any other is
409 INTERMEDIARY_STATE_CONFLICT. A customer who has already approved can’t take it back
from the app: ask your company’s support to cancel it.
After approval
Keep showing the payment from the same GET (it no longer carries a challenge), or from the customer’s payment requests and transactions (below).intermediary.state tells you where it is. Suggested labels:
A
COMPLETED payment with intermediary.returnedAfterCompletion was sent and then came
back from your company’s receiving account. It stays COMPLETED, is not sent again, and
Orenda handles the returned funds: show it as returned rather than sent. Treat any state you
don’t recognise as still in progress.
intermediary.history lists every change, oldest first, with actorType: CUSTOMER,
PROGRAM (your company), ORENDA or SYSTEM. Once your company confirms its payout,
intermediary.confirmation carries confirmedAt, text, payoutReference, paidOutAt
and hasDocument; once the money is sent, intermediary.release carries its endToEndId
and rail. A cancelled payment carries intermediary.cancellation with reasonCode,
reason and actorType.
In payment requests and transactions
Intermediary payments also appear in the customer’s payment requests and, once completed, in their transactions. Both carry the same extra fields, absent on every other payment:payee on the payment request, and beneficiary_details on the transaction, are your
company’s receiving account. An app that doesn’t know these fields shows your company as the
recipient, which is true but not what the customer expects: use paymentChannel to switch
to the layout above, with the recipient first.