Skip to main content
POST
Cancel 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

A unique key for this request, up to 255 characters. Retrying with the same key and request returns the original response instead of performing the operation again. See Idempotency. 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"

Path Parameters

blockchain_payment_id
string
required

The ID of the blockchain payment object to be canceled.

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

Response

The canceled Blockchain Payment object.

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.