{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Выпуск карты","description":"Крипто-платежи для бизнеса. Принимайте USDT, платите через СБП QR. AML-проверки включены.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"выпуск-карты","__idx":0},"children":["Выпуск карты"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"endpoint","__idx":1},"children":["Endpoint"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST /cards/request\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Заголовок ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Idempotency-Key"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["обязателен"]}," — при одинаковом ключе"," ","повторный вызов вернёт результат первого запроса и не потратит сток."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"пример-запроса","__idx":2},"children":["Пример запроса"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST 'https://b2b.lumowallet.io/cards/request' \\\n  -H 'X-API-Key: YOUR_API_KEY' \\\n  -H 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"варианты-ответа","__idx":3},"children":["Варианты ответа"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"карта-выдана-сразу","__idx":4},"children":["Карта выдана сразу"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": \"assigned\",\n  \"card\": {\n    \"id\": \"8c7f1823-0d43-4618-86ee-fa0c77643cb2\",\n    \"status\": \"assigned\",\n    \"maskedPan\": \"4466 ** ** 1234\",\n    \"expiry\": \"03/29\",\n    \"assignedAt\": \"2026-04-23T12:00:00Z\",\n    \"createdAt\": \"2026-04-23T12:00:00Z\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"карта-поставлена-в-очередь","__idx":5},"children":["Карта поставлена в очередь"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": \"pending\",\n  \"request\": {\n    \"id\": \"2077f4ef-a03d-4001-82e3-1965e44036e8\",\n    \"status\": \"pending\",\n    \"cardId\": null,\n    \"createdAt\": \"2026-04-23T12:00:00Z\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Когда карта выпустится, вы получите webhook ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["card.assigned"]}," и поле"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cardId"]}," заполнится. Также можно опрашивать"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /cards/requests/{requestId}"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"резервирование-средств","__idx":6},"children":["Резервирование средств"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["На момент ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /cards/request"]},":"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Проверяется, что ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["availableBalance >= openingFee + minInitialDeposit"]},","," ","иначе — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400 INSUFFICIENT_FUNDS"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Сумма ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["openingFee + minInitialDeposit"]}," переводится в ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["frozenBalance"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["При выдаче (статус ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assigned"]},"): ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["openingFee"]}," списывается с ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["balance"]},","," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["minInitialDeposit"]}," возвращается в доступный баланс."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["При ошибке моста: вся сумма размораживается."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ошибки","__idx":7},"children":["Ошибки"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"HTTP"},"children":["HTTP"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Код"},"children":["Код"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Значение"},"children":["Значение"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["400"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INSUFFICIENT_FUNDS"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Не хватает ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["availableBalance"]}," на резерв"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CARDS_NOT_ENABLED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["У компании не подключена программа карт"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["422"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BRIDGE_UNAVAILABLE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Временная ошибка эквайера, попробуйте позже"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ограничение","__idx":8},"children":["Ограничение"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Одна заявка за раз для заданного ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Idempotency-Key"]},". Чтобы выпустить 10"," ","карт — сделайте 10 вызовов с разными ключами."]}]},"headings":[{"value":"Выпуск карты","id":"выпуск-карты","depth":1},{"value":"Endpoint","id":"endpoint","depth":2},{"value":"Пример запроса","id":"пример-запроса","depth":2},{"value":"Варианты ответа","id":"варианты-ответа","depth":2},{"value":"Карта выдана сразу","id":"карта-выдана-сразу","depth":3},{"value":"Карта поставлена в очередь","id":"карта-поставлена-в-очередь","depth":3},{"value":"Резервирование средств","id":"резервирование-средств","depth":2},{"value":"Ошибки","id":"ошибки","depth":2},{"value":"Ограничение","id":"ограничение","depth":2}],"frontmatter":{"seo":{"title":"Выпуск карты"}},"lastModified":"2026-04-23T20:52:51.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/cards/request-card","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}