Skip to main content
POST
/
settle
Flow402 Settle
curl --request POST \
  --url https://api.flow402.net/settle \
  --header 'Content-Type: application/json' \
  --data '{
  "nonce": "uniq-generated-string-from-flow402",
  "txHash": [
    "0x...merchantTx"
  ],
  "feeTxHash": [
    "0x...feeTx"
  ],
  "intentId": "pi_..."
}'
{
  "settled": true,
  "txHash": "0x...merchantTx",
  "receipt": {
    "amount": "0.50",
    "currency": "USDC",
    "facilitatorRecipient": "0x...facilitator",
    "fee": "0.005",
    "feeTxHash": "0x...feeTx",
    "intentId": "pi_...",
    "merchant": "0x...merchantAddress",
    "network": "base-sepolia"
  }
}

Body

application/json
nonce
string
required
Examples:

"uniq-generated-string-from-flow402"

txHash
string
required
Example:
["0x...merchantTx"]
intentId
string
required
Examples:

"pi_..."

feeTxHash
string | null
Example:
["0x...feeTx"]

Response

Successful Response

settled
boolean
Examples:

true

txHash
string
Examples:

"0x...merchantTx"

receipt
object
Examples:
{
"amount": "0.50",
"currency": "USDC",
"facilitatorRecipient": "0x...facilitator",
"fee": "0.005",
"feeTxHash": "0x...feeTx",
"intentId": "pi_...",
"merchant": "0x...merchantAddress",
"network": "base-sepolia"
}