logoAccess

Crypto Payments

Let customers pay in stablecoins and other crypto, priced in birr.

Crypto payments aren't open for public use yet. In production these endpoints answer 403 with the code crypto_not_available.

Crypto payments let your customers pay in stablecoins: USDT and USDC, on the networks listed under Coins. You set the price in birr; Access works out how much of the chosen coin the customer must send and gives you a deposit address to show them. What they pay goes to your crypto balance, which you can pay out to your own wallet.

Turn crypto on first in Settings → Payment methods → Crypto.

Coins

List coins
curl https://api.tryaccess.xyz/api/v1/crypto_payments/coins \
  -H "x-api-key: sk_live_..."
{
  "data": [
    { "id": "usdt_tron", "asset": "USDT", "network": "TRON" },
    { "id": "usdt_bsc", "asset": "USDT", "network": "BNB Smart Chain" },
    { "id": "usdc_solana", "asset": "USDC", "network": "Solana" }
  ]
}

Make sure your customer sends the coin on the network you chose: USDT on TRON and USDT on Ethereum are different.

Create a payment

Create a crypto payment
curl -X POST https://api.tryaccess.xyz/api/v1/crypto_payments \
  -H "x-api-key: sk_live_..." \
  -H "Idempotency-Key: order-1042" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 250000,
    "currency": "ETB",
    "pay_with": "usdt_tron",
    "customer": "cus_01J9Z8K2P3Q4R5S6T7U8V9W0X1",
    "description": "Order #1042",
    "metadata": { "order_id": "1042" }
  }'
FieldRequiredDescription
amountYesPrice in cents of currency (250000 is 2,500.00 ETB)
currencyNoETB (the only currency for now)
pay_withYesA coin id from Coins
customerYesThe customer's id
descriptionNoShown in your dashboard
metadataNoYour own key-value data, returned as-is
Response (201)
{
  "id": "cp_01JB2X7Q9R8S6T5U4V3W2X1Y0Z",
  "object": "crypto_payment",
  "status": "waiting",
  "failure_reason": null,
  "amount": 250000,
  "currency": "ETB",
  "pay_with": "usdt_tron",
  "pay_amount": "13.162245",
  "pay_address": "TXYZ...",
  "pay_memo": null,
  "amount_received": null,
  "fee": null,
  "customer": "cus_01J9Z8K2P3Q4R5S6T7U8V9W0X1",
  "description": "Order #1042",
  "metadata": { "order_id": "1042" },
  "expires_at": "2026-10-18T12:20:00.000Z",
  "paid_at": null,
  "created_at": "2026-10-18T12:00:00.000Z",
  "updated_at": "2026-10-18T12:00:00.000Z"
}

Show the customer pay_address, the exact pay_amount and, when it's set, pay_memo (some coins need a memo or the funds can't be matched). The price is fixed until expires_at, about 20 minutes.

Coin amounts are decimal strings, never numbers, so nothing is lost to rounding.

Statuses

StatusMeaning
waitingWaiting for the customer to send the coin
confirmingThe coin arrived and the network is confirming it
finishedPaid. The amount, less Access's fee, is in your crypto balance
failedNot paid. failure_reason is underpaid when the customer sent too little
expiredNothing arrived before expires_at
refundedThe payment was refunded

A payment within 2% of pay_amount counts as paid in full. Anything more than that short fails as underpaid; what did arrive stays in your balance so you can refund it. Overpayments count as paid and the extra stays in your balance.

Follow status with the crypto_payment.* webhook events, or fetch the payment:

curl https://api.tryaccess.xyz/api/v1/crypto_payments/cp_01JB2X7Q9R8S6T5U4V3W2X1Y0Z \
  -H "x-api-key: sk_live_..."

List payments with GET /api/v1/crypto_payments, filtered by status or customer and paged with limit and cursor.

Refund an underpaid payment

Ask the customer for their wallet address on the same network, then:

curl -X POST https://api.tryaccess.xyz/api/v1/crypto_payments/cp_01JB.../refund \
  -H "x-api-key: sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{ "address": "TCustomerWallet...", "memo": null }'

The refund is a crypto payout of type refund: everything the customer sent goes back, less the network fee, once Access approves it. Access charges no fee on refunds.

Fees

Access takes 1% of each finished payment, in the coin paid. fee on the payment shows it.

How is this guide?