Skip to main content
PUT
Update invoice (set transaction_hash)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-key
string | null

Path Parameters

invoice_id
string<uuid>
required

Body

application/json

Request to update an invoice.

Mark an invoice paid with or without a transaction:

  • status: paid alone marks it paid offline (no linked transaction).
  • onchainTransactionId optionally attaches a custom transaction reference (any unique string — an on-chain id, a bank wire ref, etc.).
  • paidAt optionally backdates the payment; defaults to now.
status
enum<string>
required

Invoice status.

Available options:
draft,
sent,
paid,
cancelled,
client_paid,
client_declined
onchainTransactionId
string | null
paidAt
string<date-time> | null

Response

Successful Response

Invoice response.

Carries no download link: the PDF is rendered on request at GET /public/invoices/{id}/pdf. Add ?details=<index into paymentMethods> for the copy naming that payment method; without it the copy carries no payment details.

id
string<uuid>
required
amount
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
currency
enum<string>
required

Supported invoice/contract currencies. G10 majors + AED/HKD, plus popular crypto tokens.

Available options:
USD,
EUR,
GBP,
JPY,
CHF,
CAD,
AUD,
NZD,
SEK,
NOK,
AED,
HKD,
BRL,
MXN,
USDC,
USDT,
DAI,
SOL,
BTC,
ETH,
NEAR,
BNB,
XRP,
ADA,
DOGE,
TRX,
GRAM,
AVAX,
MATIC,
DOT,
LTC,
LINK,
ARB,
OP,
SUI
status
enum<string>
required

Invoice status.

Available options:
draft,
sent,
paid,
cancelled,
client_paid,
client_declined
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
onchainTransactionId
string | null
transaction
InvoiceTransactionInfo · object | null

Minimal transaction info embedded in invoice response.

discount
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
comment
string | null
emailMessage
string | null
invoiceNumber
string | null
periodNumber
integer | null
issuedDate
string<date> | null
dueDate
string<date> | null
items
Items · object[]
paymentMethods
(IBANAccountDetails · object | USExternalAccountDetails · object | SwiftAccountDetails · object | PixAccountDetails · object | LocalRailAccountDetails · object | ProviderUsdAccountDetails · object | ContactWalletResponse · object | EmailAccountInput · object)[]

IBAN (SEPA) external account.

client
InvoiceParticipant · object | null

Minimal participant info for invoice response.

contractor
InvoiceParticipant · object | null

Minimal participant info for invoice response.

contract
InvoiceContractInfo · object | null

Minimal contract info embedded in invoice response.

documents
InvoiceDocumentInfo · object[]
paidAt
string<date-time> | null