Bare Bitcoin API Developers API

API for interacting with Bare Bitcoin. Most endpoints require authentication. Create API keys [here](https://barebitcoin.no/innlogget/profil/nokler). Read about API authentication [here](https://barebitcoin.no/developers/authentication).

GitHub OpenAPI

Operations 19

GET /v1/deposit-destinations/bitcoin Fetch bitcoin deposit destinations #
POST /v1/deposit-destinations/bitcoin/invoice Create a new Lightning invoice #
GET /v1/deposit-destinations/bitcoin/invoice/{id} Fetch a Lightning invoice #
GET /v1/orders Fetch open orders #
POST /v1/orders Place a new order #
DELETE /v1/orders/{orderId} Cancel an order #
GET /v1/price/nok Fetch BTCNOK #
GET /v1/tax/balance Fetch balances #
GET /v1/tax/transactions List tax transactions #
GET /v1/trades List trades #
DELETE /v1/user/applications/consent/{clientId} Revoke consent for a specific OAuth2 application #
GET /v1/user/bitcoin-accounts Fetch bitcoin accounts #
GET /v1/user/fiat-account Fetch user fiat information #
GET /v1/volume Fetch volume statistics #
GET /v1/volume/historic Fetch historic volume statistics #
GET /v1/withdrawal-exchanges/bitcoin List supported withdrawal exchanges #
GET /v1/withdrawal-requirements/bitcoin Check withdrawal requirements #
POST /v1/withdrawals/bitcoin Initiate withdrawal #
GET /v1/withdrawals/bitcoin/{withdrawalId} Fetch withdrawal #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bare-bitcoin:bare-bitcoin-api-developers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bare-bitcoin-developers-openapi.json Raw ↑
{
  "openapi": "3.0.3",
  "info": {
    "title": "Bare Bitcoin API",
    "description": "API for interacting with Bare Bitcoin. Most endpoints require authentication. Create API keys [here](https://barebitcoin.no/innlogget/profil/nokler). Read about API authentication [here](https://barebitcoin.no/developers/authentication).",
    "contact": {
      "url": "https://barebitcoin.no",
      "email": "barebitcoin@bb.no"
    },
    "version": "0.0.1"
  },
  "servers": [
    {
      "url": "https://api.bb.no",
      "description": "Prod environment"
    }
  ],
  "paths": {
    "/v1/deposit-destinations/bitcoin": {
      "get": {
        "tags": [
          "BitcoinTransferService"
        ],
        "summary": "Fetch bitcoin deposit destinations",
        "description": "Fetches bitcoin deposit destinations. These destinations are always valid,\n and can be used for receiving arbitrary amounts. Onchain addresses are refreshed\n every time a deposit is made, but all prior generated addresses are still valid.",
        "operationId": "BitcoinTransferService_DepositDestinations",
        "parameters": [
          {
            "name": "accountId",
            "in": "query",
            "description": "If empty, the default account is used.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DepositDestinationsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/deposit-destinations/bitcoin/invoice": {
      "post": {
        "tags": [
          "BitcoinTransferService"
        ],
        "summary": "Create a new Lightning invoice",
        "description": "Creates a new BOLT11 Lightning invoice. Lightning invoices are requests to receive a specific\n amount of bitcoin within a set amount of time. If you don't need a specific amount, consider\n using the destinations returned from /v1/deposit-destinations/bitcoin.",
        "operationId": "BitcoinTransferService_NewLightningInvoice",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewLightningInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewLightningInvoiceResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "api:deposits:lightning:write"
            ]
          }
        ]
      }
    },
    "/v1/deposit-destinations/bitcoin/invoice/{id}": {
      "get": {
        "tags": [
          "BitcoinTransferService"
        ],
        "summary": "Fetch a Lightning invoice",
        "description": "Fetches a Lightning invoice the user created, and whether it is paid.",
        "operationId": "BitcoinTransferService_GetLightningInvoice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Can be:\n 1. Deposit destination ID. Prefix: `ded_`.\n 2. The Lightning invoice itself.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetLightningInvoiceResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "api:deposits:lightning:read"
            ]
          }
        ]
      }
    },
    "/v1/orders": {
      "get": {
        "tags": [
          "TradingService"
        ],
        "summary": "Fetch open orders",
        "description": "Fetches all open orders for the user. Open orders are orders that are\n not yet filled, and can be cancelled.",
        "operationId": "TradingService_OpenOrders",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenOrdersResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "TradingService"
        ],
        "summary": "Place a new order",
        "description": "Places a new order. If the endpoint returns with a 200 status, the order\n is successfully placed. If you're creating a market order, a trade is\n also created, and its ID is included in the response. Requests are not\n idempotent: after a timeout, check open orders before retrying.",
        "operationId": "TradingService_NewOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NewOrderResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": [],
            "apiHmac": [],
            "apiNonce": []
          }
        ]
      }
    },
    "/v1/orders/{orderId}": {
      "delete": {
        "tags": [
          "TradingService"
        ],
        "summary": "Cancel an order",
        "description": "Cancel a pending order. If the order is already filled, an error will\n be returned. It is not possible to cancel market orders.",
        "operationId": "TradingService_CancelOrder",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {}
          }
        },
        "security": [
          {
            "apiKey": [],
            "apiHmac": [],
            "apiNonce": []
          }
        ]
      }
    },
    "/v1/price/nok": {
      "get": {
        "tags": [
          "PublicService"
        ],
        "summary": "Fetch BTCNOK",
        "description": "Fetches the current BTCNOK price at Bare Bitcoin: the mid price, bid, ask,\n and the buy and sell prices for card and bank payments.",
        "operationId": "PublicService_Price",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "description": "Amount NOK to trade for. If empty, defaults to 5000 NOK.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceResponse"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/v1/tax/balance": {
      "get": {
        "tags": [
          "TaxService"
        ],
        "summary": "Fetch balances",
        "description": "Fetches the user's current balances: the NOK balance, and the balance of\n each bitcoin account.",
        "operationId": "TaxService_GetTaxBalance",
        "parameters": [
          {
            "name": "includeDeleted",
            "in": "query",
            "description": "Include accounts that have previously been deleted. Useful for resolving\n the name of an account referenced by an older transaction.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetTaxBalanceResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "api:accounts:bitcoin:read"
            ]
          }
        ]
      }
    },
    "/v1/tax/transactions": {
      "get": {
        "tags": [
          "TaxService"
        ],
        "summary": "List tax transactions",
        "description": "Lists tax-relevant transactions done by the user within the Bare Bitcoin\n platform, oldest first: trades, bitcoin deposits and withdrawals, NOK\n deposits and withdrawals, bonuses and adjustments. Note that this does NOT\n include any of the third party transactions imported into the platform tax\n calculator. When hasMore is true, pass nextAfter and nextAfterId as after\n and afterId to fetch the next page.",
        "operationId": "TaxService_ListTaxTransactions",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "Items per page (max 200). When set to 0, all matching transactions are\n returned, except through MCP, where it defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "Transactions are listed oldest first (required to compute running_balance_btc\n correctly), so pagination walks forward in time. Only return transactions\n created after this time. Can be used standalone to filter down to a start\n date; pass next_after from the previous response (together with\n next_after_id) to fetch the next page.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "afterId",
            "in": "query",
            "description": "Pagination cursor tiebreaker: when multiple transactions share the same\n create_time, this ID breaks the tie. Pass next_after_id from the previous\n response. Requires 'after'; supplying 'after_id' alone is rejected.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before",
            "in": "query",
            "description": "Only return transactions created strictly before this time. Filter only,\n does not affect pagination direction.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTaxTransactionsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "api:tax:transactions:read"
            ]
          }
        ]
      }
    },
    "/v1/trades": {
      "get": {
        "tags": [
          "TradingService"
        ],
        "summary": "List trades",
        "description": "Lists the user's executed trades, newest first. When hasMore is true, pass\n nextBefore and nextBeforeId as before and beforeId to fetch the next page.",
        "operationId": "TradingService_ListTrades",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "Items per page (max 200). When set to 0, all matching trades are returned,\n except through MCP, where it defaults to 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "before",
            "in": "query",
            "description": "Trades are listed newest first, so pagination walks backward in time. Only\n return trades created before this time. Can be used standalone to filter\n down to an end date; pass next_before from the previous response (together\n with next_before_id) to fetch the next page.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "beforeId",
            "in": "query",
            "description": "Pagination cursor tiebreaker: when multiple trades share the same\n create_time, this ID breaks the tie. Pass next_before_id from the previous\n response. Requires 'before'; supplying 'before_id' alone is rejected.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListTradesResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "api:trades:read"
            ]
          }
        ]
      }
    },
    "/v1/user/applications/consent/{clientId}": {
      "delete": {
        "tags": [
          "UserService"
        ],
        "summary": "Revoke consent for a specific OAuth2 application",
        "description": "Revokes the access you have given the OAuth2 application with this client ID, and invalidates its tokens. An application can only revoke its own consent, using one of its access tokens. API keys cannot revoke consent.",
        "operationId": "UserService_RevokeConsent",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {}
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/v1/user/bitcoin-accounts": {
      "get": {
        "tags": [
          "UserService"
        ],
        "summary": "Fetch bitcoin accounts",
        "description": "Lists the bitcoin accounts for the user. Each bitcoin account has a\n separate balance. Every bitcoin transaction (withdrawal, deposit, trade,\n bonus payout) affects the balance of exactly one bitcoin account.",
        "operationId": "UserService_ListBitcoinAccounts",
        "parameters": [
          {
            "name": "includeDeleted",
            "in": "query",
            "description": "Include accounts that have previously been deleted.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListBitcoinAccountsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          },
          {
            "oauth2": [
              "api:accounts:bitcoin:read"
            ]
          }
        ]
      }
    },
    "/v1/user/fiat-account": {
      "get": {
        "tags": [
          "UserService"
        ],
        "summary": "Fetch user fiat information",
        "description": "Fetches the fiat account. The fiat account for a user holds their NOK\n balance. Every user has exactly one fiat account. Other sub-accounts for a user\n only pertains to bitcoin holdings.",
        "operationId": "UserService_GetFiatAccount",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetFiatAccountResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/volume": {
      "get": {
        "tags": [
          "PublicService"
        ],
        "summary": "Fetch volume statistics",
        "description": "Returns statistics about the volume of BTCNOK trades at Bare Bitcoin: the\n last 24 hours, 7, 30 and 365 days, all time, and the day, month and year\n of a date.",
        "operationId": "PublicService_Volume",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "description": "The date to fetch the volume for. If empty, defaults to today.\n Format: YYYY-MM-DD",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VolumeResponse"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/v1/volume/historic": {
      "get": {
        "tags": [
          "PublicService"
        ],
        "summary": "Fetch historic volume statistics",
        "operationId": "PublicService_VolumeHistoric",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "description": "First day of the period to fetch volume for. The period runs until today.\n If empty, defaults to one month ago. Format: YYYY-MM-DD",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VolumeHistoricResponse"
                }
              }
            }
          }
        },
        "security": [
          {}
        ]
      }
    },
    "/v1/withdrawal-exchanges/bitcoin": {
      "get": {
        "tags": [
          "BitcoinTransferService"
        ],
        "summary": "List supported withdrawal exchanges",
        "description": "Lists the exchanges accepted in SendBitcoinRequest.tfr_info.exchange.",
        "operationId": "BitcoinTransferService_ListSupportedWithdrawalExchanges",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListSupportedWithdrawalExchangesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/withdrawal-requirements/bitcoin": {
      "get": {
        "tags": [
          "BitcoinTransferService"
        ],
        "summary": "Check withdrawal requirements",
        "description": "Checks whether a withdrawal to this destination needs recipient information.\n SendBitcoin checks again when the withdrawal is submitted.",
        "operationId": "BitcoinTransferService_GetBitcoinWithdrawalRequirements",
        "parameters": [
          {
            "name": "destination",
            "in": "query",
            "description": "Required. Accepts the same formats as SendBitcoinRequest.destination.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBitcoinWithdrawalRequirementsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/withdrawals/bitcoin": {
      "post": {
        "tags": [
          "BitcoinTransferService"
        ],
        "summary": "Initiate withdrawal",
        "description": "Initiates a bitcoin withdrawal. The transaction is not completed until\n it is confirmed by the network it is sent onto. A success response from\n this endpoint means the transaction was successfully initiated, but\n does not guarantee completion. Supply an idempotency_key to prevent\n duplicate withdrawals after a timeout. Reusing a key returns HTTP 409\n (AlreadyExists), with the existing withdrawal ID in the error message.\n Requests can still fail validation before duplicate detection.\n Without a key, check your withdrawals before retrying.",
        "operationId": "BitcoinTransferService_SendBitcoin",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendBitcoinRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendBitcoinResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": [],
            "apiHmac": [],
            "apiNonce": []
          }
        ]
      }
    },
    "/v1/withdrawals/bitcoin/{withdrawalId}": {
      "get": {
        "tags": [
          "BitcoinTransferService"
        ],
        "summary": "Fetch withdrawal",
        "description": "Fetches a bitcoin withdrawal.",
        "operationId": "BitcoinTransferService_GetBitcoinWithdrawal",
        "parameters": [
          {
            "name": "withdrawalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBitcoinWithdrawalResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BitcoinAccount": {
        "type": "object",
        "properties": {
          "id": {
            "example": "acc_01HQZX3V9KJ4M2P8R6T0W5Y7BC",
            "type": "string"
          },
          "availableBtc": {
            "example": 0.0245,
            "type": "number",
            "description": "The current BTC holdings that can be used for trading or withdrawals.",
            "format": "double"
          },
          "totalBtc": {
            "example": 0.0251,
            "type": "number",
            "description": "The BTC balance of the account.",
            "format": "double"
          },
          "totalNok": {
            "example": 26304.8,
            "type": "number",
            "description": "The NOK value of the BTC of the account, at the time of the request.",
            "format": "double"
          },
          "name": {
            "example": "Hovedkonto",
            "type": "string",
            "description": "The name of the account."
          },
          "createTime": {
            "example": "2024-06-03T08:15:42.103948Z",
            "type": "string",
            "description": "When this account was created.",
            "format": "date-time"
          },
          "deleteTime": {
            "example": "2025-11-14T09:03:11.482190Z",
            "type": "string",
            "description": "When this account was deleted.\n Empty if the account is not deleted.",
            "format": "date-time"
          }
        }
      },
      "DepositDestination": {
        "type": "object",
        "properties": {
          "destination": {
            "example": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
            "type": "string"
          },
          "network": {
            "example": "NETWORK_BITCOIN",
            "enum": [
              "NETWORK_BITCOIN",
              "NETWORK_LIGHTNING"
            ],
            "type": "string",
            "format": "enum"
          }
        }
      },
      "DepositDestinationsResponse": {
        "type": "object",
        "properties": {
          "onchainAddress": {
            "example": {
              "destination": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
              "network": "NETWORK_BITCOIN"
            },
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositDestination"
              }
            ],
            "description": "Bitcoin address for on-chain deposits to the account."
          },
          "lightningAddress": {
            "example": {
              "destination": "aktiv-anker@bb.no",
              "network": "NETWORK_LIGHTNING"
            },
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositDestination"
              }
            ],
            "description": "Lightning address (name@bb.no) that accepts payments of any amount to the\n account."
          },
          "lnurlPay": {
            "example": {
              "destination": "LNURL1DP68GURN8GHJ7CTSDYHXYC3WDEHJ7MRFVA58GMNFDENJ7MRWW4EXCTTSV9UN7CTRVDHH2MN584SKXC6LXQC5S526TQE4VW2TFG6Y6VJS8PFRV4PS2U64JD6ZGVN82UM9WG7N2C33VCEKXVN995UXZDRY956XVDNZ95UK2VNR95MKGVTPXP3RXCE5V56KVGK8387",
              "network": "NETWORK_LIGHTNING"
            },
            "allOf": [
              {
                "$ref": "#/components/schemas/DepositDestination"
              }
            ],
            "description": "LNURL-pay code that accepts Lightning payments to the account."
          }
        }
      },
      "GetBitcoinWithdrawalRequirementsResponse": {
        "type": "object",
        "properties": {
          "tfrInfoRequired": {
            "type": "boolean",
            "description": "Whether SendBitcoin needs tfr_info for this destination. Requirements can\n change, so SendBitcoin validates the request again when it is submitted."
          }
        }
      },
      "GetBitcoinWithdrawalResponse": {
        "type": "object",
        "properties": {
          "withdrawalId": {
            "example": "wi_01JA2B3C4D5E6F7G8H9J0K1M2N",
            "type": "string"
          },
          "destination": {
            "example": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
            "type": "string",
            "description": "The destination of the withdrawal."
          },
          "network": {
            "example": "NETWORK_BITCOIN",
            "enum": [
              "NETWORK_BITCOIN",
              "NETWORK_LIGHTNING"
            ],
            "type": "string",
            "description": "The network this withdrawal was sent on.",
            "format": "enum"
          },
          "amountBtc": {
            "example": 0.01,
            "type": "number",
            "description": "The amount of BTC that was withdrawn.",
            "format": "double"
          },
          "amountNok": {
            "example": 10480,
            "type": "number",
            "description": "The value of the BTC that was withdrawn, in NOK equivalent\n at time of withdrawal.",
            "format": "double"
          },
          "status": {
            "example": "WITHDRAWAL_STATUS_COMPLETED",
            "enum": [
              "WITHDRAWAL_STATUS_PENDING",
              "WITHDRAWAL_STATUS_COMPLETED",
              "WITHDRAWAL_STATUS_FAILED"
            ],
            "type": "string",
            "description": "The status of the withdrawal.",
            "format": "enum"
          },
          "createdAt": {
            "example": "2026-03-14T09:26:53.589793Z",
            "type": "string",
            "description": "The time the withdrawal was initiated.",
            "format": "date-time"
          },
          "sentAt": {
            "example": "2026-03-14T09:31:07.214552Z",
            "type": "string",
            "description": "The time the withdrawal was sent from the platform.",
            "format": "date-time"
          }
        }
      },
      "GetFiatAccountResponse": {
        "type": "object",
        "properties": {
          "availableNok": {
            "example": 12500.5,
            "type": "number",
            "description": "The current NOK holdings that can be used for trading or\n withdrawals.",
            "format": "double"
          }
        }
      },
      "GetLightningInvoiceResponse": {
        "type": "object",
        "properties": {
          "depositDestinationId": {
            "example": "ded_01JA3QW7E2R9T4Y6V8P0S1D3F5",
            "type": "string"
          },
          "invoice": {
            "example": "lnbc2500u1pvjluezsp5zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygspp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdq5xysxxatsyp3k7enxv4jsxqzpu9qrsgquk0rl77nj30yxdy8j9vdx85fkpmdla2087ne0xh8nhedh8w27kyke0lp53ut353s06fv3qfegext0eh0ymjpf39tuven09sam30g4vgpfna3rh",
            "type": "string"
          },
          "status": {
            "example": "INVOICE_STATUS_PAID",
            "enum": [
              "INVOICE_STATUS_UNPAID",
              "INVOICE_STATUS_PENDING",
              "INVOICE_STATUS_PAID",
              "INVOICE_STATUS_EXPIRED",
              "INVOICE_STATUS_CANCELED"
            ],
            "type": "string",
            "format": "enum"
          },
          "expiresAt": {
            "example": "2026-07-04T10:15:00Z",
            "type": "string",
            "description": "When the invoice stops being payable. This is the expiry encoded into the\n invoice itself, so a payer's wallet enforces it too.",
            "format": "date-time"
          },
          "amountReceivedMillisatoshi": {
            "example": "250000000",
            "type": "string",
            "description": "The amount the payer sent, in millisatoshis. Set only when the invoice is\n paid. It is never less than the amount encoded in the invoice, but can be\n more: Lightning nodes accept overpayment."
          },
          "paidAt": {
            "example": "2026-07-04T10:02:31Z",
            "type": "string",
            "description": "When the invoice was paid. Set only when the invoice is paid.",
            "format": "date-time"
          },
          "preimage": {
            "example": "0001020304050607080900010203040506070809000102030405060708090102",
            "type": "string",
            "description": "The payment preimage, hex encoded. Its SHA-256 hash is the payment hash\n encoded in the invoice, so it is proof of payment. Set only when the\n invoice is paid."
          }
        }
      },
      "GetTaxBalanceResponse": {
        "type": "object",
        "properties": {
          "balanceNok": {
            "example": "12500.5",
            "type": "string",
            "description": "Stringified decimal number: the user's NOK balance."
          },
          "bitcoinAccounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaxAccountBalance"
            }
          }
        }
      },
      "Info": {
        "type": "object",
        "properties": {
          "fullName": {
            "type": "string",
            "description": "Full name of the person, or registered name of the organisation, on the\n other side of the transfer. Required for both people and organisations."
          },
          "country": {
            "type": "string",
            "description": "Country of that person or organisation, as an ISO-3166-1 alpha-2 code."
          },
          "address": {
            "type": "string",
            "description": "Postal address of that person or organisation. For a withdrawal, the\n bitcoin address or invoice goes in SendBitcoinRequest.destination instead."
          },
          "nin": {
            "type": "string",
            "description": "National identity number of the person, or 9-digit Norwegian\n organisasjonsnummer of the organisation. Supply it for self-custody\n withdrawals. It can be omitted for w

# --- truncated at 32 KB (66 KB total) ---
# Full source: https://artifacts.apis.io/bare-bitcoin/openapi/_original/bare-bitcoin-developers-openapi.json