Skip to main content
Stableyard has one anchor object, the account, and everything else attaches to it. Each concept page covers one resource: what it is, its states, the calls that create and read it, and its errors.

Objects

Everything attaches to an account. IDs are prefixed, stable and opaque.

Mistakes that cause most integration bugs

  • Treating a webhook as current state. An event says something changed. Read the resource for what is true now.
  • Treating provider success as collection. Money is credited only when the expected receipt is independently verified.
  • Creating a payment to get an address. Use a deposit address for repeated top-ups and a receive payment for one order.
  • Reading status alone. operationalState says whether a payment needs a retry or a person. See Status codes.
  • Showing recorded activity as a balance. Transactions and balances are reporting views, not spendable funds.

Accounts

The object every flow starts with.

Lifecycle and status codes

Payment, deposit and refund states, and which are terminal.