Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET Crypto API Suite · Cash out to a bank

A payment reference

GET/v1/payment_references/{id}

Key scope: read · Platform accounts · Success: 200

Reads one payment reference: its state, the payment that settled it and how it was matched. Reading an open reference past its expiresAt moves it to expired.

Path parameters

id stringrequired
The reference's id, pref_ and 32 hex characters. Any other id answers 404 payment_reference_unknown.

Notes

  • Needs a key with the read scope.
  • Payment references are for platform accounts, for reads as well as writes: a business (merchant) account's key gets 403 payment_references_platform_only.
  • Before the payment arrives the reference reads state: "open", and next tells you what to ask the payer to send.
  • rule says how it was settled: exact (the payable amount arrived), cents (the order amount without its tag arrived, so the state is underpaid or overpaid, with shortBy or overBy), or manual (matched by hand).
  • senderState is the settling payment's Travel Rule state; here the reference's payer was sent as the sender. In the sandbox it reads simulated.
  • Reading an open reference past its expiresAt moves it to expired and writes event payment_reference.expired.
  • The example was made with a sandbox key: a sandbox payment of exactly the payable amount, from a wallet SET had not seen, settled it.
  • 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 payment_references_platform_only
  • 404 payment_reference_unknown

All codes: Errors.