Payment Reference
A payment_reference is optional text you send with a transfer so the recipient can tell what the payment is for, such as an invoice number. Stables passes it to the payout rail with the bank payout and returns it on the transfer.
Send it when you create the transfer:
{
"quote_id": "550e8400-e29b-41d4-a716-446655440000",
"customer_id": "550e8400-e29b-41d4-a716-446655440001",
"payment_reference": "INV-2026-0042",
"destination": {
"type": "bank",
"account_holder_name": "Nikos Papadopoulos",
"iban": "GR1601101250000000012300695",
"bank_name": "National Bank of Greece",
"bank_country": "GR",
"currency": "EUR",
"swift_code": "ETHNGRAA"
}
}The transfer returns the reference exactly as you sent it, on the create response and whenever you fetch or list the transfer. A transfer created without one has no payment_reference field.
payment_reference is not the same as source_deposit_instructions.reference. The deposit reference is issued by Stables and tells your customer what to quote when funding a transfer by bank. The payment reference is yours, and travels with the payout to the recipient.
Format
Every payment reference must meet these rules, whatever the payout:
| Rule | Detail |
|---|---|
| Length | 1 to 35 characters. Spaces at the start and end are removed first. |
| Characters | Letters A to Z and a to z, digits, spaces, and / - ? : ( ) . , ' + |
| Reserved | Must not start with rv2: or rv2-. |
Other characters, including #, _, & and accented letters, are refused, because payout rails do not carry them reliably.
Limits for the quoted payout
Some payouts carry less than 35 characters, or letters and digits only. The limit depends on the payout route the quote selected, so read it from the quote before you create the transfer.
When the quoted payout carries less than the format above allows, the quote includes payment_reference_requirements:
...
"payment_reference_requirements": {
"max_length": 18,
"characters": "text"
}
...| Field | Meaning |
|---|---|
max_length | The longest payment reference this payout carries. |
characters | text: the characters listed under Format. alphanumeric: letters and digits only, with no spaces or punctuation. |
When the quote has no payment_reference_requirements, the payout carries any reference that meets the format.
For example, some USD payouts currently carry 10 letters and digits. These limits can change as payout routes change, so rely on the quote and not on a fixed table.
Stables never shortens a payment reference. A reference the quoted payout cannot carry whole is refused when you create the transfer, so the recipient always receives what you sent.
Errors
A payment reference that breaks the format is refused with 400 Bad Request before the transfer is created.
A reference that meets the format but not the quoted payout's limits is refused with 400 Bad Request and the code TRANSFER_PAYMENT_REFERENCE_INVALID:
{
"statusCode": 400,
"error": "Bad Request",
"message": "payment_reference must be at most 18 characters for this payout",
"code": "TRANSFER_PAYMENT_REFERENCE_INVALID",
"fields": [
{
"field": "payment_reference",
"message": "payment_reference must be at most 18 characters for this payout"
}
]
}No transfer is created in either case. Correct the reference and send the request again with the same quote.
What the recipient sees
Stables sends the reference to the payout rail with the payment. Whether it appears on the recipient's statement, and how, depends on the rail and on the receiving bank: some banks show it in full, some show part of it, and some do not show it.
Do not put anything in a payment reference that the recipient should not read.
Good to know
- The reference belongs to one transfer. It is not saved on the beneficiary, so send it on each transfer that should carry one.
- A payment reference has no effect on a transfer that pays out to a crypto wallet. It is still stored and returned on the transfer.
- In the dashboard, enter it in the Payment reference field when you add the destination. The field shows the limit for the payout you were quoted.