---
title: "Deposit via Lightning"
method: POST
path: "/business/account/lightning/topup"
tags: ["wallets"]
---

# Deposit via Lightning

`POST /business/account/lightning/topup`

## Request

- Base URL: `https://www.sandbox.striga.com/api/v1/wallets`
- URL: `https://www.sandbox.striga.com/api/v1/wallets/business/account/lightning/topup`
- Auth: API key in header `api-key` and API key in header `Authorization`

Add funds to a Bitcoin account using the Lightning Network

## Request body

- BusinessLightningTopUpRequest
  - `businessId` string, uuid, required: Unique Id of the business who is sending this transactions
  - `accountId` string, required: The Id of the account to credit
  - `amount` string, required: Amount in satoshis
  - `memo` string: An optional memo
  - `ttl` string: LN Invoice expiry in minutes (Between 10 and 1440)
  - `provider` 'OPENNODE' | 'LIGHTSPARK': Lightning provider to use for the top-up
  - `proposedRate` string: An optional proposed BTC/EUR rate to honor for the standing order that pays out this top-up. Validated against the current market rate.
  - `fillOrKillAtProposedRate` boolean: When true, the standing order payout is only executed if the proposedRate can be honored, otherwise it is killed.
  - `counterpartyId` string, uuid: Declared travel-rule counterparty for this Lightning deposit. Required when travel rule is enabled for the application.

## Response `200`

success

- BusinessLightningTopUpResponse
  - `id` string, required
  - `description` string, required
  - `amount` string, required
  - `invoice` string, required
  - `expiry` integer, required

## Other responses

- `400`: Bad Request. The request was unacceptable, often due to missing a required parameter.
- `401`: Invalid authentication header
- `403`: Forbidden
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/striga/apis/business-wallets-transactions.md) - [All operations](https://skmtc.dev/striga/apis/business-wallets-transactions/llms.txt) - [OpenAPI document](https://skmtc.dev/striga/apis/business-wallets-transactions/revisions/ea0f4d67546d?raw)
