Skip to main content
POST
/
api
/
v1
/
checkouts
/
{id}
/
attempts
/
onchain
Create a new onchain checkout attempt
curl --request POST \
  --url https://api.zenobank.io/api/v1/checkouts/{id}/attempts/onchain \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokenId": "USDC_ETHEREUM_MAINNET",
  "checkoutId": "ckl1234567890"
}
'
{
  "tokenId": "USDC",
  "tokenPayAmount": "100",
  "networkId": "ETHEREUM_MAINNET",
  "depositWallet": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "address": "0xc429e068b65b3462f0e422b3ea388a7a37b23bff",
    "network": "ETHEREUM_MAINNET",
    "label": "Main Wallet"
  }
}

Path Parameters

id
string
required

Body

application/json
tokenId
string
required

Token ID to use for this attempt

Maximum string length: 256
Example:

"USDC_ETHEREUM_MAINNET"

checkoutId
string
required

Checkout ID to use for this attempt

Maximum string length: 256
Example:

"ckl1234567890"

Response

201 - application/json
tokenId
string
required

Token ID for the payment attempt

Example:

"USDC"

tokenPayAmount
string
required

Token pay amount for the payment attempt

Example:

"100"

networkId
string
required

Network ID for the payment attempt

Example:

"ETHEREUM_MAINNET"

depositWallet
object
required