Skip to main content
POST
/
payments
/
x
/
pay
Pay to X user
curl --request POST \
  --url https://api.example.com/payments/x/pay \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 1,
  "receiver": "snackmoneyapp"
}
'
{
  "code": 200,
  "msg": "<string>",
  "data": {
    "txn_id": 1762890982975,
    "amount": 0.01,
    "receipt": "https://snack.money/twitter/0xmesuthere?txn=1762890982975"
  }
}

Body

application/json
amount
number
required
Required range: 0.01 <= x <= 10
Example:

1

receiver
string
required
Minimum string length: 1
Example:

"snackmoney"

currency
enum<string>
default:USDC
Available options:
USDC
Example:

"USDC"

description
string | null
Example:

"Description about the payment"

transaction_hash
string | null
Example:

"Transaction Hash"

meta
object

Response

Success

code
enum<number>
required
Available options:
200
msg
string
required
data
object
required