Skip to main content

Merchant Settings API

The Merchant Settings API allows you to manage your own account configuration. All endpoints require authentication with your merchant API key.

Endpoints​

MethodEndpointDescription
GET/api/merchant/meGet account info and onboarding status
GET/api/merchant/l402-statusCheck L402 license status
PUT/api/merchant/strike-keyUpdate Strike API key (Strike merchants)
PUT/api/merchant/opennode-keyUpdate OpenNode API key (OpenNode merchants)
PUT/api/merchant/nwc-connectionSave a Nostr Wallet Connect connection string (your own wallet)
PUT/api/merchant/payment-providerSet the active payment provider (strike, opennode or nwc)
PUT/api/merchant/webhook-urlUpdate webhook URL and secret
POST/api/merchant/webhook-secret/rotateGenerate a new webhook signing secret (returned once)
GET/api/merchant/subscriptionGet subscription details
GET/api/merchant/subscription/renewQuote a Lightning (L402) renewal: price, period, eligibility
POST/api/merchant/subscription/renewRenew Agentic Commerce in sats with an L402 payment
POST/api/merchant/validate-strikeValidate Strike API key
POST/api/merchant/validate-opennodeValidate OpenNode API key
GET/api/merchant/api-key-infoGet metadata about your merchant API key
POST/api/merchant/regenerate-keyRotate your merchant API key
GET/api/merchant/quickstartGet interactive onboarding guide
Strike API Key Configuration

Strike is the recommended default payment provider and is self-serve — configure it yourself with PUT /api/merchant/strike-key, then confirm it works with POST /api/merchant/validate-strike. No support ticket needed.

Get Account Info​

Get your merchant account information and onboarding status.

GET /api/merchant/me

Response​

{
"merchantId": 123,
"name": "My Company",
"email": "api@mycompany.com",
"planTier": "individual",
"subscriptionStatus": "active",
"isActive": true,
"createdAt": "2024-01-15T10:30:00Z",
"features": {
"refundsEnabled": false,
"multiCurrencyEnabled": true,
"analyticsEnabled": true,
"prioritySupport": true,
"customBrandingEnabled": false,
"maxWebhookEndpoints": 5,
"l402Enabled": true
},
"onboarding": {
"hasOpenNodeKey": false,
"hasStrikeKey": true,
"hasNwcConnection": false,
"hasWebhookUrl": true,
"hasWebhookSecret": true,
"hasActiveProxy": true,
"proxyCount": 2,
"isFullyConfigured": true
}
}

features reflects your plan, except refundsEnabled and l402Enabled, which are per-account flags. onboarding.isFullyConfigured is true when the account has a usable credential for its payment provider, the same check every invoice and challenge goes through.

Example​

curl https://api.lightningenable.com/api/merchant/me \
-H "X-API-Key: YOUR_API_KEY"

Check L402 License Status​

Check if your account has L402 features enabled — useful for dashboards and integrations that want to show a merchant's L402 capability.

GET /api/merchant/l402-status

Response (L402 Enabled)​

{
"l402Enabled": true,
"planTier": "l402",
"subscriptionStatus": "active",
"isActive": true
}

Response (L402 Not Enabled)​

{
"l402Enabled": false,
"planTier": "individual",
"subscriptionStatus": "active",
"isActive": true
}

l402Enabled is a per-account flag, not a plan lookup. All three tiers include L402, so false on an active account means the flag was never applied (most often on an account created under a retired tier id). Contact support to have it applied; buying the plan again won't set it. It also reads false whenever isActive is false.

Response Fields​

FieldTypeDescription
l402EnabledbooleanWhether L402 features are available
planTierstringCurrent plan tier (see mapping table below)
subscriptionStatusstringSubscription status, for example active, trialing, past_due, canceled; unknown when none is recorded
isActivebooleanWhether the merchant account is active

Plan Tier Name Mapping​

The planTier field uses internal code names. There are three, cheapest first:

Internal planTier ValueUser-Facing Product NamePrice
freeFree Producer Sandbox$0
individualAgentic Commerce$49/mo
l402Agentic Commerce — BusinessContact us

Plan Tiers and L402 Support​

PlanInternal ValuePriceL402 EnabledTrial Eligible
Free Producer Sandboxfree$0✅ Yes — capped at 3 endpoints, 200 challenges/mo, 1,000 sats per challenge❌ No — Free is the floor, not a trial
Agentic Commerceindividual$49/mo✅ Yes✅ Yes
Agentic Commerce — Businessl402Contact us✅ YesArranged directly on contact, not via self-serve checkout
planTier is normalized — changed September 2026

planTier is the resolved tier, not the raw stored column. GET /api/merchant/me, GET /api/merchant/l402-status, and GET /api/merchant/subscription all return one of the three values above.

If your account was created before September 2026 under a tier id that has since been retired — standard, kenticocommerce, standalone, standaloneapi, or pilot — the field reports the live tier that id maps to, not the id you may have stored: the retired paid ids report as individual, and pilot reports as free. Update any client that string-matches on a retired id, and treat an unrecognized value as Free.

Example​

curl https://api.lightningenable.com/api/merchant/l402-status \
-H "X-API-Key: YOUR_API_KEY"
MCP Integration

The MCP server's paying tools need only a wallet and never call this endpoint. Set LIGHTNING_ENABLE_API_KEY to your merchant API key to unlock its producer and agent-service publishing tools.

Update Strike API Key​

Configure your Strike API key yourself — Strike is the recommended default and fully self-serve. Saving the key also defaults your account to the Strike provider on first save (it never overwrites an explicit prior provider choice).

PUT /api/merchant/strike-key

Request Body​

FieldTypeRequiredDescription
strikeApiKeystringYesYour Strike API key (needs partner.receive-request.create and related scopes)

Request​

{
"strikeApiKey": "your-strike-api-key"
}

Response​

{
"success": true,
"message": "Strike API key updated successfully. Webhook will re-register on the next L402 challenge."
}

Example​

curl -X PUT https://api.lightningenable.com/api/merchant/strike-key \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"strikeApiKey": "your-strike-api-key"
}'

After saving, confirm the key works with POST /api/merchant/validate-strike.

Save a Nostr Wallet Connect Connection​

Settle payments into your own Lightning wallet instead of a provider account. Copy a Nostr Wallet Connect connection string from your wallet app and save it here. Lightning Enable checks the string's format before storing it, and never returns it on any endpoint. If you haven't chosen a provider yet, this also sets your provider to nwc. See NWC setup.

PUT /api/merchant/nwc-connection
{
"nwcConnectionString": "nostr+walletconnect://<wallet-pubkey>?relay=wss://<relay>&secret=<secret>"
}

A malformed string gets 400 with an error naming the bad part. On success:

{
"success": true,
"message": "Nostr Wallet Connect connection saved. ...",
"nwcConnectionString": "<set>"
}

The NWC lane receives Lightning payments only: no refunds, on-chain addresses, or fiat currencies. To check it works, mint a challenge with POST /api/l402/challenges; there is no separate validate endpoint.

Set Payment Provider​

Choose which credential your invoices are created with. Values are lowercase: strike, opennode, or nwc; anything else is 400.

PUT /api/merchant/payment-provider
{ "provider": "strike" }
{ "success": true, "message": "Payment provider updated to strike." }

Without an explicit choice, an account holding exactly one credential uses that one; otherwise the platform default (Strike) applies.

Update OpenNode API Key​

Configure your OpenNode API key. This endpoint applies to merchants using OpenNode as their payment provider. Strike merchants should use PUT /api/merchant/strike-key instead (self-serve — no support ticket required).

PUT /api/merchant/opennode-key

Request Body​

FieldTypeRequiredDescription
openNodeApiKeystringYesYour OpenNode API key
Get Your OpenNode API Key

https://app.opennode.com → Settings → API Keys. Use a production key; the hosted platform doesn't accept OpenNode dev keys.

Request​

{
"openNodeApiKey": "your-opennode-api-key"
}

Response​

{
"success": true,
"message": "OpenNode API key updated successfully. You can now create L402 proxies."
}

Example​

curl -X PUT https://api.lightningenable.com/api/merchant/opennode-key \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"openNodeApiKey": "your-opennode-api-key"
}'

Update Webhook URL​

Configure where Lightning Enable should send webhook notifications for payment events.

PUT /api/merchant/webhook-url

Request Body​

FieldTypeRequiredDescription
webhookUrlstringNoAbsolute URL to receive webhook notifications. Send an empty value to stop deliveries
webhookSecretstringNoSecret for the HMAC signature. Omit it to keep the current secret

Request​

{
"webhookUrl": "https://mycompany.com/webhooks/lightning",
"webhookSecret": "my-webhook-signing-secret"
}

Response​

{
"success": true,
"message": "Webhook settings updated successfully."
}

Example​

curl -X PUT https://api.lightningenable.com/api/merchant/webhook-url \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhookUrl": "https://mycompany.com/webhooks/lightning",
"webhookSecret": "my-webhook-signing-secret"
}'

Rotate Webhook Secret​

Generate a new secret for the HMAC signature (X-LightningEnable-Signature) on webhook deliveries. The merchant API returns the secret only in this response, the same way POST /api/merchant/regenerate-key returns a new API key once. To get a value again, rotate again.

POST /api/merchant/webhook-secret/rotate

No request body. Rate limit: the per-merchant merchant-key policy (see Rate Limiting).

Response​

{
"webhookSecret": "<new-webhook-secret-shown-once>",
"message": "Webhook secret rotated. Store it now: it is not readable again through the merchant API; rotate to get a new one. Every delivery from now on, including retries of earlier events, is signed with this secret."
}

The secret is 32 random bytes, base64-encoded (44 characters), the same format signup generates. GET /api/merchant/me reports only whether a secret is on file (onboarding.hasWebhookSecret).

Your account already has a secret from signup, but the merchant API doesn't return it. Call this endpoint once to get a value you can verify deliveries with.

The old secret stops working immediately. Deliveries are signed with the secret on file when they are sent, so retries of events queued before the rotation are also signed with the new secret. Update your receiver right away.

Each call replaces the secret. If two rotate calls overlap, the response of the last successful call holds the live secret. Rotate once and store the response before you send another call.

Example​

curl -X POST https://api.lightningenable.com/api/merchant/webhook-secret/rotate \
-H "X-API-Key: le_merchant_abc123"

Get Subscription Details​

Get your current subscription plan and limits, how the plan is paid, the date it's paid through, whether you can renew with sats over L402, and your recent L402 renewal receipts.

GET /api/merchant/subscription

Response​

This example shows an account renewed with sats over L402. Sats amounts are shown as placeholders; a real response carries integers, and the live price is the priceSats that the renewal quote returns.

{
"planTier": "individual",
"planName": "Agentic Commerce",
"status": "active",
"stripeCustomerId": null,
"limits": {
"maxMerchants": 1,
"maxEnvironments": 2,
"maxWebhookEndpoints": 5
},
"paymentMethod": "l402",
"currentPeriodEnd": "2026-11-10T14:03:22Z",
"renewal": {
"eligible": true,
"reason": null,
"priceSats": <from the quote>,
"periodDays": 30,
"endpoint": "/api/merchant/subscription/renew"
},
"payments": [
{
"paymentHash": "9f2c4e7a1b3d5f60718293a4b5c6d7e8f9012a3b4c5d6e7f8091a2b3c4d5e6f7a",
"amountSats": <sats paid>,
"periodStart": "2026-10-11T14:03:22Z",
"periodEnd": "2026-11-10T14:03:22Z",
"createdAt": "2026-10-11T14:03:22Z",
"channel": "mcp-dotnet"
}
]
}
  • paymentMethod is bitcoin for an account paid through the legacy Bitcoin checkout, l402 for an account paid in sats, and null otherwise. Card accounts report null (some older rows may carry stripe), and so do Free Producer Sandbox and Fast Lane trial accounts.
  • renewal.reason is null when renewal.eligible is true. Otherwise it names why a sats renewal isn't offered — for example, StripeSubscriptionActive for an account billed by card.
  • payments lists up to the 12 most recent L402 renewal receipts, newest first. It's empty for an account billed by card.
  • payments[].channel classifies the User-Agent header of the request that redeemed the payment, by prefix (case-insensitive): mcp-dotnet (starts with LightningEnable-MCP/), mcp-python (starts with LightningEnable-MCP-Python/), l402-client (starts with l402-requests, L402Requests, or l402-ts), unknown (no User-Agent header, and receipts recorded before this field existed), or other (any other User-Agent). A client lands in a named channel only once it sends that header; the Lightning Enable MCP server sends it from version 2.1.0. The raw header isn't returned.

Subscription Status Values​

StatusDescription
activeSubscription is active and paid
trialingIn the 30-day trial (card checkout or L402 Fast Lane). Full Agentic Commerce access
past_duePayment failed, grace period
canceledSubscription was canceled

Example​

curl https://api.lightningenable.com/api/merchant/subscription \
-H "X-API-Key: YOUR_API_KEY"

Renew with Lightning (L402)​

Pay for Agentic Commerce in sats instead of by card. One payment adds one period (periodDays) at the sats price in priceSats. Read both from the quote, GET /api/merchant/subscription/renew, rather than from this page: the sats price is configuration and can change; a challenge you already hold is honored at the price it was issued at unless the price has gone up, in which case mint a fresh one.

GET quotes the renewal with no side effects. POST without an Authorization header returns an L402 challenge; POST with Authorization: L402 <macaroon>:<preimage> credits the period. For a walkthrough with the MCP tool and the l402-requests client, see Renew in sats.

GET /api/merchant/subscription/renew
POST /api/merchant/subscription/renew

Headers​

HeaderRequiredDescription
X-API-KeyYes, on every callYour merchant API key. The renewal is for the account this key belongs to.
AuthorizationPOST completion onlyL402 <macaroon>:<preimage>. Omit it to get a challenge.

Neither method takes a request body. The endpoint is exempt from subscription enforcement, so a lapsed account can reach it.

Rate limits, per API key: GET shares your per-merchant budget. POST without Authorization (a new challenge) is limited to 5 a minute, because each one opens a new invoice. POST with Authorization (redeeming a token) has a separate allowance of 60 a minute, so requesting challenges never blocks a token you've paid. Over either limit, the endpoint answers 429.

Who can renew​

A Free Producer Sandbox account, a Fast Lane trial account, a sats-paid account (running or lapsed), an account whose card subscription is canceled (Stripe status canceled or incomplete_expired), and an account paid through the legacy Bitcoin checkout while its Bitcoin period is still running can renew. When that Bitcoin period lapses, the legacy job deactivates the account, so its API key gets 401 here; email support@lightningenable.com to restore it. An account with a card subscription that isn't canceled (any other status, including trialing, past_due, unpaid, incomplete, paused, or no recorded status), an Agentic Commerce — Business account, and an operator-disabled account can't. A card subscription that isn't canceled can still charge the card, so a sats renewal alongside it would bill you twice.

Fields​

FieldTypeMeaning
priceSatsintegerSats for one period at the time of the call
periodDaysintegerDays one payment adds
paymentHashstringHex payment hash of the challenge; also the receipt ID
expiresAtstring (ISO 8601)When the invoice expires
currentPeriodEndstring or nullOn GET, the 402, and a 409: the account's effective paid-through date, the later of the card/sats period end and a legacy Bitcoin expiry; can be in the past (for example, a lapsed Fast Lane trial). On 200, the paid-through date this payment produced
periodEndIfPaidstring (ISO 8601)The paid-through date this payment produces
eligiblebooleanOn GET only. When false, reason says why
reasonstring or nullOn GET only: StripeSubscriptionActive, BusinessPlanContactSupport, PrepaidCapReached, ManuallyDisabled, or Disabled; null when eligible
paymentMethodstring or nullOn GET only: bitcoin (legacy Bitcoin checkout), l402 (sats), or null (card accounts, plus Free and trial accounts; some older card rows carry stripe)
endpointstringOn GET only: the renew endpoint path
paidSatsintegerOn 200: the sats credited
alreadyCreditedbooleanOn 200: true when this token was credited before
payments[]arrayOn GET /api/merchant/subscription: the last 12 receipts, each with paymentHash, amountSats, periodStart, periodEnd, createdAt, and channel

Each payment adds periodDays to the later of the call time, currentPeriodEnd, and a legacy bitcoinSubscriptionExpiresAt. An account already paid more than 365 days ahead can't get a new challenge until it's within that window. The cap applies when you request a challenge, not when you redeem one: a token you've already paid is credited even if the account has since moved past 365 days.

A renewal token stays redeemable for 7 days after its challenge is issued, so a token you paid survives a temporary refusal (a 409 or 503) while you fix its cause.

GET: quote​

Returns 200 for every authenticated account, eligible or not. It creates no invoice. Sats amounts in these examples are shown as placeholders such as <from the quote>. In a real response they're integers, and the live renewal price is whatever GET /api/merchant/subscription/renew returns in priceSats.

{
"eligible": true,
"reason": null,
"priceSats": <from the quote>,
"periodDays": 30,
"paymentMethod": "l402",
"currentPeriodEnd": "2026-11-10T14:03:22Z",
"periodEndIfPaid": "2026-12-10T14:03:22Z",
"endpoint": "/api/merchant/subscription/renew"
}

For an account created through the producer claim endpoint, the quote also carries a breakdown block with the per-proxy calculation. See Renewal quote.

An account with an active card subscription gets:

{
"eligible": false,
"reason": "StripeSubscriptionActive",
"priceSats": <from the quote>,
"periodDays": 30,
"paymentMethod": null,
"currentPeriodEnd": "2026-11-02T09:15:00Z",
"periodEndIfPaid": "2026-12-02T09:15:00Z",
"endpoint": "/api/merchant/subscription/renew"
}
curl https://api.lightningenable.com/api/merchant/subscription/renew \
-H "X-API-Key: YOUR_API_KEY"

POST: get a challenge​

Send no Authorization header. Eligibility is checked first, so an ineligible account gets its refusal before any invoice exists. Every call mints a fresh challenge with a new invoice; a second call after a credited renewal buys a second period.

402 Payment Required

WWW-Authenticate: L402 macaroon="AgEB…", invoice="lnbc…"
{
"invoice": "lnbc…",
"macaroon": "AgEB…",
"paymentHash": "9f2c4e7a1b3d5f60718293a4b5c6d7e8f9012a3b4c5d6e7f8091a2b3c4d5e6f7a",
"expiresAt": "2026-10-11T15:03:22Z",
"priceSats": <from the quote>,
"periodDays": 30,
"currentPeriodEnd": null,
"periodEndIfPaid": "2026-11-10T14:03:22Z",
"instructions": "Pay the Lightning invoice, then retry this request with Authorization: L402 <macaroon>:<preimage>."
}
curl -i -X POST https://api.lightningenable.com/api/merchant/subscription/renew \
-H "X-API-Key: YOUR_API_KEY"

POST: complete the renewal​

Pay the invoice, then repeat the POST with the macaroon and the preimage.

curl -X POST https://api.lightningenable.com/api/merchant/subscription/renew \
-H "X-API-Key: YOUR_API_KEY" \
-H "Authorization: L402 <macaroon>:<preimage>"

200 OK

{
"success": true,
"alreadyCredited": false,
"planTier": "individual",
"currentPeriodEnd": "2026-11-10T14:03:22Z",
"paidSats": <priceSats you paid>,
"paymentHash": "9f2c4e7a1b3d5f60718293a4b5c6d7e8f9012a3b4c5d6e7f8091a2b3c4d5e6f7a"
}

The account is on individual with paymentMethod: "l402", subscriptionStatus: "active", and currentPeriodEnd set to the paid-through date. The response never contains the macaroon or the preimage.

Replays. An L402 token stays valid until it expires (7 days after its challenge was issued), so you can send it again. Each payment hash is credited exactly once. A replay answers 200 with alreadyCredited: true and that payment's own period end in currentPeriodEnd, which is earlier than the account's paid-through date if a later payment has extended it:

{
"success": true,
"alreadyCredited": true,
"planTier": "individual",
"currentPeriodEnd": "2026-11-10T14:03:22Z",
"paidSats": <priceSats you paid>,
"paymentHash": "9f2c4e7a1b3d5f60718293a4b5c6d7e8f9012a3b4c5d6e7f8091a2b3c4d5e6f7a"
}

Eligibility is checked before the replay, so a replay can get a 409 (for example stripe_subscription_active) if the account became ineligible after the payment was credited. That refusal never credits or charges anything.

Price changes. A token is honored at the price it was minted at, as long as that price is at or above the configured price, so a price decrease never strands a token. After a price increase, a token minted at the old price gets 401 invalid_l402_token, including on replay. Mint a fresh challenge. An account created through the producer claim endpoint is the exception: its token is honored at the price it was minted at.

The token is bound to the account that minted it. Another account's API key can't redeem it.

Error responses​

StatuserrorWhenWhat to do
400invalid_authorizationAuthorization isn't L402 <macaroon>:<preimage>Fix the header, or omit it to get a challenge
401invalid_l402_tokenThe token is invalid, expired, minted for another account, below the configured price, or doesn't match a renewal challengePOST without Authorization for a fresh challenge
401API key required / Invalid API keyThe X-API-Key header is missing or wrongSend a valid merchant API key
403account_disabledAn operator disabled the accountContact support
409stripe_subscription_activeThe account has a card subscription that isn't canceled (Stripe status other than canceled or incomplete_expired)Cancel it in the billing portal first
409business_plan_contact_supportThe account is on Agentic Commerce — BusinessContact support
409prepaid_cap_reachedYou requested a challenge while the account is paid more than 365 days ahead (never returned when redeeming a paid token)Wait until the paid-through date is within 365 days
429—More than 5 challenge requests (or 60 redeem requests) a minute from this API keyWait for the window to reset
503renewal_contendedThe account was being updated by another requestRetry the same request with the same Authorization header after Retry-After; it's credited at most once
503upstream_unavailableThe payment provider didn't answer; nothing was invoicedRetry shortly (honor Retry-After when present)
503challenge_persist_failedThe challenge couldn't be recorded; no invoice was issuedRetry in a moment
503l402_subscription_unavailableLightning renewals are switched off on this deploymentPay by card, or retry later
503l402_subscription_misconfiguredLightning renewals aren't set up on this deploymentRetry later, or contact support

Full bodies for each are in the error reference.

Validate OpenNode API Key​

Test your OpenNode API key to verify it's configured correctly.

POST /api/merchant/validate-opennode

Response (Valid Key)​

{
"isValid": true,
"message": "OpenNode API key is valid and working."
}

Response (Invalid Key)​

{
"isValid": false,
"message": "OpenNode API key validation failed: 401"
}

Response (No Key Configured)​

{
"isValid": false,
"message": "No OpenNode API key configured. Use PUT /api/merchant/opennode-key to add one."
}

Example​

curl -X POST https://api.lightningenable.com/api/merchant/validate-opennode \
-H "X-API-Key: YOUR_API_KEY"

Validate Strike API Key​

Test your Strike API key to verify it's configured correctly.

POST /api/merchant/validate-strike

Returns { "isValid": true|false, "message": "..." }. Lightning Enable checks that the key can both read and create Strike receive requests; when it can't, message names the missing permission.

Response (No Key Configured)​

{
"isValid": false,
"message": "No Strike API key configured. Use PUT /api/merchant/strike-key to add one."
}

Example​

curl -X POST https://api.lightningenable.com/api/merchant/validate-strike \
-H "X-API-Key: YOUR_API_KEY"

Get Quickstart Guide​

Get a checklist of the setup steps, with what's done. The steps adapt to your payment provider.

GET /api/merchant/quickstart

Response​

{
"merchantId": 123,
"merchantName": "My Company",
"completedSteps": 3,
"totalSteps": 6,
"requiredStepsCompleted": 3,
"requiredStepsTotal": 3,
"isReadyForProduction": true,
"steps": [
{
"stepNumber": 1,
"title": "Configure Strike API Key",
"description": "Add your Strike API key so Lightning Enable can create invoices on your behalf.",
"endpoint": "PUT /api/merchant/strike-key",
"exampleRequest": "{ \"strikeApiKey\": \"your-strike-api-key\" }",
"isCompleted": true,
"isRequired": true
},
{
"stepNumber": 2,
"title": "Validate Strike Key",
"description": "Verify your Strike API key is working correctly.",
"endpoint": "POST /api/merchant/validate-strike",
"exampleRequest": null,
"isCompleted": true,
"isRequired": true
},
{
"stepNumber": 3,
"title": "Mint your first challenge (or create a proxy)",
"description": "Two ways to satisfy this step: create an L402 proxy configuration pointing to your API, or mint your first challenge directly with POST /api/l402/challenges ...",
"endpoint": "POST /api/proxy",
"isCompleted": true,
"isRequired": true
}
]
}

Steps 4 to 6 (endpoint pricing, testing, documentation) are optional. isReadyForProduction is true once every required step is done. endpoint is always one METHOD /path; before you've chosen a provider, an alternativeEndpoints array lists the other providers' routes.

Example​

curl https://api.lightningenable.com/api/merchant/quickstart \
-H "X-API-Key: YOUR_API_KEY"

API Key Info and Rotation​

GET /api/merchant/api-key-info returns { maskedApiKey, createdAt, lastRegeneratedAt }. The key itself is masked to its first 8 and last 4 characters.

POST /api/merchant/regenerate-key returns { newApiKey, regeneratedAt, message }. The old key stops working at once. It's limited to 20 calls a minute.

Error Responses​

StatuserrorWhen
400Strike API key is required / OpenNode API key is requiredEmpty key on PUT /strike-key or PUT /opennode-key
400Invalid webhook URL formatwebhookUrl isn't an absolute URL
400Provider must be 'strike', 'opennode' or 'nwc'Unknown value on PUT /payment-provider
401API key required / Invalid API keyMissing or wrong X-API-Key
404Merchant not foundThe account behind the key no longer exists

Next Steps​