Getting Started
This guide walks a brand-new tenant admin through everything needed to go live on Ledgerline — from inviting the Discord bot to placing your first test order.
Prerequisites
- A Discord account with Manage Server permission on your guild.
- Credentials for the Ledgerline Admin Panel (your operator will have seeded your tenant and sent you the URL).
- The Ledgerline bot must already be invited to your server (see Step 1).
Step 1 — Invite the Ledgerline Bot to Your Discord Server
Open the OAuth2 invite URL below in your browser. Replace <CLIENT_ID> with the application ID your operator provides.
https://discord.com/oauth2/authorize?client_id=<CLIENT_ID>&scope=bot+applications.commands&permissions=277025770560
Permission breakdown — Ledgerline requires:
| Permission | Why |
|---|---|
| Send Messages | Post order confirmations and catalog updates in channels. |
| Send Messages in Threads | Respond inside threads when orders are discussed. |
| Embed Links | Render product catalog and order embeds. |
| Attach Files | Attach shipping labels (future feature). |
| Read Message History | Edit catalog pinned messages. |
| Manage Messages | Pin/unpin catalog messages. |
| Use Slash Commands | Register and respond to /order, /catalog, /add-item, etc. |
| Mention Everyone | Optional — only needed if lowStockAnnounceEveryone is enabled. |
Click Authorize and choose your server. The bot will appear in your member list once the invite completes.
Step 2 — Configure the Bot Interactions Endpoint (Discord Developer Portal)
If your operator set up the Discord application and bot, this may already be done. Verify or complete it:
- Go to https://discord.com/developers/applications and open your application.
- Click General Information in the left sidebar.
- Under Interactions Endpoint URL, enter:
https://ledgerline-api.onrender.com/api/discord/interactions
- Click Save Changes. Discord will ping the endpoint to verify it responds — the bot must be deployed for this to succeed.
Step 3 — Log In to the Admin Panel
- Navigate to
https://ledgerline-api.onrender.com/admin. - Click Login with Discord (or enter local credentials if your operator enabled local auth).
- Authorize the Discord OAuth prompt.
- You are now in the Admin Panel. The first login for your tenant automatically grants you TenantAdmin role.
Tip: See Authentication & Login for troubleshooting login issues.
Step 4 — Complete Your Bot Config
Open Bot Config in the Admin Panel sidebar. This is the central config for your Discord bot behavior.
Required fields to set before going live
| Field | What to set |
|---|---|
catalogChannelId | The Discord channel ID where the bot posts and updates your live product catalog. |
announcementChannelId | Channel where low-stock alerts and order announcements are posted. |
adminChannelId | Private admin channel where order notifications are sent. |
adminRoleIds | Discord role IDs whose members can use admin-only commands (/add-item, /restock, /payment-confirm, etc.). |
paymentInstructionsByMethod | Replace the placeholder text with your real Venmo handle and CashApp tag. |
Quantity visibility default
defaultQtyVisibility controls whether customers see exact stock counts:
public— customers see exact numbers (e.g. "12 in stock").private— customers see "In stock" / "Out of stock" only.
Shipping types
Three shipping types are seeded by default (USPS Priority, FedEx Ground, Local Pickup). You can add, edit, or remove types in the Admin Panel under Bot Config → Shipping Types. Each type needs a code (stable slug), label (shown to customers), costCents, and estimatedDays.
Step 5 — Add Your First Product
You can add products via Discord or the Admin Panel.
Via Discord (quick)
In any channel your bot can read, run:
/add-item
A modal opens. Fill in the product name, SKU, price, and description. After submitting, you receive a deep-link to the Admin Panel to upload an image and publish the product.
Via Admin Panel
- Go to Products in the sidebar.
- Click Add new.
- Fill in
name,sku,priceCents(in cents — e.g.2500= $25.00),description, and optionally a product image URL. - Set
isActiveandisPublishedto true to make it visible to customers. - Click Save.
Draft products — products created via
/add-itemstart withisPublished=false. They are invisible in/catalogand/stockuntil you publish them.
See Product Management for full product docs.
Step 6 — Set Inventory
After creating a product you need to add stock before customers can order it.
In the Admin Panel:
- Go to Inventory.
- Find your product and click to open its inventory record.
- Set the Quantity Available.
- Click Save.
Alternatively, use the Discord command:
/restock product:<name> quantity:<n>
See Inventory Management for full inventory docs.
Step 7 — Test the Customer Order Flow
- In your Discord server, run:
/order
- Follow the interactive prompts: pick a product, enter a quantity, choose a shipping method, and select a payment method.
- Review and confirm the order summary.
- Complete payment to your Venmo/CashApp handle, then submit using the I've Paid button.
The bot posts an order confirmation and notifies the admin channel.
Admin payment confirmation
- In the admin channel, find the order notification embed.
- Click Confirm Payment (or run
/payment-confirm orderId:<id>). - Enter the customer reference note (the Venmo/CashApp note you saw).
- The order status advances to Confirmed and the customer is notified.
See Order Management and Payment Approval for full docs.
Next Steps
| Task | Where |
|---|---|
| Set admin roles for your team | Bot Config → adminRoleIds |
| Customize low-stock threshold | Bot Config → lowInventoryThreshold |
| Configure shipping carriers | Bot Config → Shipping Types |
| View and manage open orders | Admin Panel → Orders |
| Set up discount codes | Admin Panel → Discounts |
| Explore inventory transaction log | Admin Panel → Inventory |