Skip to main content
POST

Authorizations

X-App-Id
string
header
required

App ID for authentication

X-Api-Key
string
header
required

API Key for authentication

Headers

Idempotency-Key
string

Your own unique value for this transaction, up to 255 characters. Retrying with the same key within 24 hours returns the transaction the first request recorded, rather than recording another. If the first request ended in 409 with payment_not_applied, the retry gets that 409 again.

Maximum string length: 255

Body

application/json
type
enum<string>
required
Available options:
payment,
credit_note,
debit_note
amount
integer
required

In cents.

Required range: x >= 1
currency
string
required

The currency of the amounts, which has to be each invoice's currency.

Example:

"USD"

customer_uuid
string<uuid>

For a payment, the customer who paid. Required for a payment.

payment_source
enum<string>

For a payment, how it was paid. ach_credit is a bank transfer. Required for a payment.

Available options:
ach_credit,
check,
cash,
card
invoices
object[]

For a payment, the invoices it pays and how much goes on each. Required for a payment: one without invoices is refused with invalid_invoices, and nothing is recorded.

Required array length: 1 - 50 elements
invoice_uuid
string<uuid>

For a credit or debit note, the invoice it's on. Required for a note. The note is for that invoice's customer.

memo
string

A note on the transaction. Your customer can see it.

Maximum string length: 5000
notify_customer
boolean
default:false

Email the customer that their invoice balance changed.

Response

A retry with an Idempotency-Key already used. Returns the transaction the first request recorded.

Returned by GET /transactions/:id, Record transaction, and Apply payment to invoices. Note: this returns the transaction object directly, not wrapped in a transaction key. This differs from /orders, /invoices, /customers etc, which wrap their resource. Kept this way for v1 backwards compatibility.

uuid
string<uuid>
created_at
string<date-time>
currency
enum<string>

ISO currency code. Most resources support these. Products are limited to USD, CAD, EUR, GBP, AUD.

Available options:
USD,
CAD,
GBP,
EUR,
AUD,
JPY,
INR
amount
integer

The amount, in cents. For a payment applied to invoices in another currency, this is what it paid in the invoices' currency, and received holds what arrived.

fee
integer | null

The processing fee, in cents. Null when there's none, as for a payment you recorded.

payment_source
string
memo
string | null
payout_date
string<date> | null

Null if the transaction has not been paid out yet.

net_amount
integer
self_recorded
boolean
display_type
string
txn_files
object[]
invoice
object | null

The invoice the transaction is recorded on, the first of allocations. Null if it isn't on an invoice, such as a payment that hasn't been applied.

recipient
object
received
object | null

What arrived, when a payment was applied to invoices in another currency in the Streamlined app. The transaction's amount, currency, and fee are then what it paid in the invoices' currency, and payouts use the received figures. Null for every other transaction.

Example:
conversion
object | null

The rate a payment was applied at, when it was applied to invoices in another currency. Null for every other transaction.

allocations
object[]

Where the transaction's money went, one entry per invoice, the invoice it's recorded on first. Empty while a payment is unapplied. A payment bigger than its invoice shows the whole amount on that invoice; the rest is credit there.

unapplied_amount
integer

How much of the transaction isn't on an invoice yet, in cents. The whole amount while a payment is unapplied, else 0.