SET API · Payee details and top-ups
A link for the payee to enter their own bank details
POST/v1/recipients/{recipient}/payee_details_link
A single-use link for the payee to enter their own EUR or GBP bank details, valid 14 days. Send it to the payee yourself; you never see the details.
Path parameters
recipientstringrequired- The recipient's id,
rcp_…, created withdestination.detailsFrompayee. Not one of your recipients, it answers404 recipient_unknown.
Headers
Idempotency-Keystring- Any unique string, so a retry runs once. See Idempotency.
Notes
- Payee bank details are switched on per deployment; until then
403 payee_bank_details_disabled, here and on creating such a recipient. CheckGET /v1/capabilities(features.payeeBankDetails). - Needs the
writescope. Any account type. - The recipient must have been created with
destination{ kind: bank, currency: eur or gbp, detailsFrom: payee }(409 details_not_from_payeeotherwise), be active (409 recipient_disabled), and not have its details yet (409 details_already_given). detailsFrompayeeis offered for EUR and GBP only: withusd, creating the recipient answers400 details_from_not_offered.- No body.
urlis a page on SET's own site; the token in it is the only secret, and it is shown once. expiresAtis 14 days after the call. A newer link closes the older: the older page then answers HTTP 410.- The payee's page checks the IBAN, or sort code and account number, that the account is in the recipient's country and held in the party's name, then sends it to the provider.
- You see
detailsGiventrueand the payee check on the recipient, with eventrecipient.payee_details_given, never the details. - Until the payee gives the details, payouts to the recipient answer
409 payee_details_missing. - This example is a recorded run of SET's own code (wallet release
e9b03447) with a sandbox key; ids and times are that run's.
Errors
403 payee_bank_details_disabled404 recipient_unknown409 details_not_from_payee409 recipient_disabled409 details_already_given