Разработчикам · REST API v1
Выпускайте карты из своего кода
Создавайте, пополняйте, замораживайте и закрывайте виртуальные Visa и Mastercard по HTTPS. Запросы в JSON, аутентификация секретным ключом, списание с того же баланса USDT, который вы пополняете криптой.
Введение
API делает то же, что панель, но с вашего сервера. Каждая выпущенная карта и каждое пополнение оплачиваются с баланса аккаунта, который вы пополняете криптодепозитами и который всегда хранится в USDT.
Суммы в долларах с двумя знаками. Время в ISO 8601 UTC. Списки постранично через page и per_page.
Аутентификация
Send your secret key as a Bearer token in the Authorization header of every request. Keys start with sk_live_ and are generated in your dashboard under API access.
Authorization: Bearer sk_live_your_api_key Content-Type: application/json X-Idempotency-Key: 7c1e2f0a-retry-safe
A new key answers 403 until the account is ready. Confirm your email, make a first deposit, then ask support to enable API access for the account.
Ошибки
Лимиты запросов
Limits are counted per API key. Over a limit you get a 429— wait and retry with exponential backoff.
Карты
Each card has its own balance, limits and lifecycle, so one campaign, client or subscription never touches another.
/cardsIssue a new virtual cardФаза 2/cardsList cardsФаза 2/cards/{card_id}Retrieve a cardФаза 2/cards/{card_id}/detailsReveal number, expiry and CVVФаза 2/cards/{card_id}/freezeFreeze a cardФаза 2/cards/{card_id}/unfreezeUnfreeze a cardФаза 2/cards/{card_id}Close a cardФаза 2Пополнение
/cards/{card_id}/fundLoad a card from your balanceФаза 2/cards/{card_id}/withdrawUnload a card back to your balanceФаза 2Транзакции
/transactionsList card transactionsФаза 2Кошелёк
Первый вызов
curl https://cardglee.com/api/v1/wallet/balance \ -H "Authorization: Bearer sk_live_..."
{
"balance": 1312.50,
"currency": "USDT",
"pending_deposits": 500.00,
"cards_active": 0,
"cards_total_balance": 0.00
}/wallet/balanceRead your USDT balance/wallet/deposit-addressGet a deposit addressBIN
/binsList available BINsВебхуки
Webhooks are signed with HMAC-SHA256. Verify the signature header against the raw request body before trusting an event. Card events are part of the Phase 2 release.
/webhooksRegister a webhook endpointФаза 2