Skip to main content
POST
Create a Blockchain Payment Beta

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string
required

Idempotency key A unique key for this request, up to 255 characters. Retrying with the same key and body returns the original response instead of performing the operation again.

Required string length: 1 - 255
Example:

"3f1c9a52-7d4e-4b8a-9c21-6e0f5d2a8b14"

Body

application/json

Creates a payment to a fiat or cross-border creditor.

The blockchain creditor rails (solana, base, ethereum, arbitrum, optimism, arc) are advertised in the payment_rail enum but rejected at creation; only fiat and cross-border creditor rails are currently accepted.

The debtor's available balance is checked at creation: insufficient funds are normally rejected synchronously with HTTP 400 and no payment is created. When the balance service is temporarily unavailable the check is deferred to asynchronous processing, so a successful create response is not an absolute guarantee of settlement.

debtor
object
required

The source of funds for the transfer.

creditor
ACH · object
required

Fields shared by every rail-specific counterparty: the party outside Lead on a payment rail. It is an outgoing payment's creditor, and the debtor of a returned payout. Integrations reference BlockchainPaymentCreditorBeta or BlockchainPaymentIncomingDebtorBeta, which select the variant from payment_rail.

amounts
object
required

The transfer amounts and currency codes.

payment_purpose
object
required

The purpose of the transfer.

creditor_agent
object

Details of the receiving financial institution. Required when creditor.payment_rail is not a blockchain network (solana, base, ethereum, arbitrum, optimism, arc). When creditor.payment_rail is swift, address is also required.

reference
string

An optional reference message for the transfer, passed on to the recipient on rails that carry a reference.

Formatting requirements depend on creditor.payment_rail. The reference is stored and delivered exactly as submitted — it is never shortened, stripped, or otherwise altered. A reference that does not meet its rail's requirements is rejected when the payment is created, with HTTP 422 and an invalid_parameters entry for reference.

Additional rules:

  • wire and swift references are formatted into at most 4 lines of 35 characters. Words are kept whole and wrapped at spaces; include your own line breaks (\n) to control the layout. A single word longer than 35 characters, or text that cannot fit within 4 lines, is rejected.
  • bre_b, co_bank_transfer, ethereum, base, solana, arbitrum, optimism, and arc do not carry a reference; supplying one is rejected.
  • Omitting the field, or sending an empty string, is allowed on every rail and results in no reference being sent.
Example:

"INV2024001"

Response

Successful response

A blockchain payment, shaped by direction. On an outgoing payment the debtor is your Lead account and the creditor is who is being paid. On an incoming payment that is reversed: the debtor is where the funds came from and the creditor is your Lead account.

direction
enum<string>
required

Which way the funds move relative to your account. outgoing is a payout or on-ramp. incoming is a deposit, or a return sending a payout's funds back.

Available options:
outgoing
Example:

"outgoing"

debtor
object
required

The source of funds for the transfer.

creditor
ACH · object
required

Fields shared by every rail-specific counterparty: the party outside Lead on a payment rail. It is an outgoing payment's creditor, and the debtor of a returned payout. Integrations reference BlockchainPaymentCreditorBeta or BlockchainPaymentIncomingDebtorBeta, which select the variant from payment_rail.

id
string

The ID of the Blockchain Payment object.

Pattern: ^blockchain_payment_[0-9A-Za-z]{27}$
Example:

"blockchain_payment_0ujtsYcgvSTl8PAuAdqWYSMnLOv"

amounts
object

The transfer amounts, currency codes, and settlement details.

payment_purpose
object

The purpose of the transfer. On a return, the returned payment's purpose. Absent on deposits.

reference
string

The reference message for the transfer. See reference on the create request for the per-rail formatting rules.

Example:

"INV2024001"

status
enum<string>

The current status of the blockchain payment.

Available options:
created,
under_review,
submitted,
posted,
rejected,
canceled
Example:

"created"

rejection
object

Why the payment was rejected. Present only when status is rejected. See BlockchainPaymentRejectionReasonBeta for which reasons are terminal and which are retryable.

cancelation_reason
string

Reason the transfer was canceled. Present only if status is canceled.

Example:

"Requested by customer"

return
object

Details of the return on this payment. Present only when the payment was returned after being sent.

Other blockchain payments linked to this one. On a payment that was returned, this holds the IDs of the return payments sending the funds back. On a return payment, it holds the ID of the original payment being returned. Absent when the payment has no related payments.

tracking
object

The network or chain reference for the payment. Absent until it is posted on a bank rail, or submitted on a chain.

created_at
string<date-time>

ISO 8601 format timestamp representing when the blockchain payment was created.

Example:

"2024-06-27T11:22:33Z"

updated_at
string<date-time>

ISO 8601 format timestamp representing when the blockchain payment was last updated.

Example:

"2024-06-27T11:22:33Z"

creditor_agent
object

Details of the receiving financial institution. Required when creditor.payment_rail is not a blockchain network (solana, base, ethereum, arbitrum, optimism, arc). When creditor.payment_rail is swift, address is also required.