Create a crypto payment
Price an amount in ETB or USD and get the deposit address and exact coin amount the customer must send. Status updates arrive as crypto_payment.* webhook events.
apiKeyHeaderx-api-key<token>API key for authentication. Generate from the dashboard or via POST /v1/api-keys.
x-api-key*stringAPI key for authentication
1 <= length- body
amount*|Price in the smallest unit of currency (e.g. cents in ETB or USD)
1 <= valuecurrency*string"ETB""USD"pay_with*stringThe coin and network the customer pays with: usdc_bsc, usdt_bsc, usdt_ton, usdc_base, usdt_tron, usdt_solana, usdc_solana, usdt_polygon, usdt_ethereum, usdc_ethereum
customer*stringThe customer's id
description?stringAn arbitrary string attached to the object (max 500 characters)
length <= 500metadata?Key-value pairs for storing arbitrary custom metadata
Response for status 201
application/json- response
id*stringobject*stringstatus*stringwaiting, confirming, finished, failed, expired or refunded
failure_reason*string|nullamount*numberIn the smallest unit of currency (e.g. cents in ETB or USD)
currency*stringThree-letter ISO currency code: ETB or USD
pay_with*stringpay_amount*stringExactly what the customer must send, as a decimal string
pay_address*stringpay_memo*|Memo or tag the customer must include, for coins that need one
amount_received*string|nullfee*|Access's fee, in the coin
customer*stringdescription*string|nullmetadata*unknownexpires_at*string|nullpaid_at*string|nullcreated_at*string|nullupdated_at*string|nullcurl -X POST 'https://api.tryaccess.xyz/api/v1/crypto_payments/' \ -H 'x-api-key: string' \ -H 'Content-Type: application/json' \ -d '{ "amount": 250000, "currency": "ETB", "pay_with": "usdt_tron", "customer": "cus_01J9Z8K2P3Q4R5S6T7U8V9W0X1"}'{ "id": "cp_01JB2X7Q9R8S6T5U4V3W2X1Y0Z", "object": "crypto_payment", "status": "waiting", "failure_reason": "underpaid", "amount": 250000, "currency": "ETB", "pay_with": "usdt_tron", "pay_amount": "13.162245", "pay_address": "string", "pay_memo": "string", "amount_received": "string", "fee": "string", "customer": "string", "description": "string", "metadata": null, "expires_at": "string", "paid_at": "string", "created_at": "string", "updated_at": "string"}How is this guide?