Transactions
Every movement on your accounts, how they add up to the balance, and the event they emit.
A transaction is one movement of money on one of your team's accounts. It has one currency: the account it belongs to. List transactions with GET /transactions and read one with GET /transactions/{id}. Both need the transactions:read scope.
Transaction IDs have the form transaction_<uuid>_in or transaction_<uuid>_out. The suffix identifies the side of the movement.
Types
| Type | Meaning |
|---|---|
deposit | A bank transfer into the account. |
payout | A payout the team sent. |
payment | A payout the team received on the account. A payout paid to a bank account or PayPal is not an account movement and is not listed. |
fee | A Talentir fee, charged with the payout in payoutIds or as a monthly plan fee. |
transfer | An on-chain transfer that no payout or deposit explains. |
Statuses
| Status | Meaning |
|---|---|
pending | The on-chain transfer is not indexed yet. A deposit is pending from the bank arrival until Talentir has sent the stablecoin; a payout from the request until the money leaves the account. |
completed | The on-chain transfer is indexed and the balance has moved. completedAt is when it was mined. A payout on a bank or PayPal rail is completed when the money leaves the account, before the bank confirms delivery; payout.completed reports the delivery. |
failed | The money will never move: a cancelled payout, or a rejected or refunded deposit. |
type and status are open enums: treat a value you do not know as a fallback case.
Balance
amount is unsigned. direction gives the sign: in adds amount to the account, out takes it away. The sum of all completed transactions of a currency, signed by direction, equals balance.total of that account in GET /team/accounts. pending and failed transactions do not count.
A transfer between two of your team's wallets has an outgoing transaction and an incoming transaction. Both have the same txHash, but distinct IDs. Their amounts cancel out, so the transfer does not change the account balance. Each side sends its own transaction.created event.
Payouts
payoutIds lists the payouts of your team that a transaction settles or charges for.
- A
payouttransaction lists the payouts it settles. One transfer can settle several payouts, so the list can have more than one entry. - A
feetransaction lists the payouts it was charged for. A monthly plan fee has an empty list. deposit,payment, andtransfertransactions have an empty list.
To find every transaction of one payout, filter GET /transactions by payoutId.
counterpartyId is the counterparty those payouts go to. It is null when the transaction is not tied to a payout, and when one transfer paid payouts to several counterparties.
txHash is the hash of the on-chain transaction. It is null while the money has not moved on-chain.
Deposits
A deposit carries where the money came from. account is the sender's bank account in the same shape as a counterparty's payment method, plus the account holder as the bank reported it. The variant is the one a counterparty with that account would be saved in:
| Sender | account.type |
|---|---|
| A US ACH deposit | us_ach with the sender bank's routingNumber; US banks do not report the account number |
| A US domestic wire | us_fedwire with the sender bank's routingNumber |
| An international wire into the US account | swift with accountNumber, bic, and bankCountry |
| A UK account paying GBP, reported as a GB IBAN | gb_fps with sortCode and accountNumber |
| An IBAN paying EUR, also from a UK account | sepa |
| An IBAN paying CHF | ch_sic |
| An IBAN paying another currency, for example a GBP sender with a non-UK IBAN | swift_iban |
| Anything else, for example a hand-recorded deposit | swift with bankCountry when known |
reference is the payment reference on the transfer. Both fields are null on every other type.
Payment requests
paymentRequestIds lists your team's payment requests that a transaction pays.
- A
depositlists the request that Talentir matched by its reference, or that a team member linked in the dashboard. - A
paymentlists the requests that a payer paid from the balance of their Talentir team. - Every other transaction has an empty list.
One transfer can pay several requests, so the list can have more than one entry. A deposit that a team member links after it arrived gets the link then. transaction.created has already fired, so only GET /transactions/{id} shows the change.
Documents
documents lists the PDFs that account for the transaction, each with a type, the number printed on it, a download url, and the issuedAt date.
- A
payoutorpaymentcarries the recipient's invoice once it exists: aself_billing_invoicethat Talentir issued in the recipient's name, or arecipient_invoicethe recipient uploaded. - A payout that pays a payment request is documented by the request's invoice instead. The requester's
paymentand the payer'spayoutboth carry it aspayment_request_invoice, once. Talentir issues no self-billing invoice for it. - A
feecarries Talentir'sfee_invoice. - A
depositthat paid a payment request carries thepayment_request_invoiceyour team issued for it, one per request inpaymentRequestIds. Any otherdeposit, and atransfer, has no documents.
The list is empty until the document is issued, which can be after the transaction is completed. The payout endpoints return the same documents as senderInvoiceUrl and recipientInvoiceUrl.
Event
transaction.created fires once per transaction, when the on-chain transfer behind it is final. The indexer confirms a transfer a few minutes after it is mined, so the event follows the balance change, not the payout's status change. data is the transaction as GET /transactions/{id} returns it, with status completed. A pending or failed transaction sends nothing; listen to payout.failed for a failed payout.
Subscribe with transaction.* or transaction.created. The webhook needs transactions:read. See Set up webhooks.