# Adding a product Source: https://docs.blink.store/add-products Add your products and start selling ## Product types The info tab is where you add basic product into

**One-time** One-time products are purchased once with a single payment. Ideal for digital products, services, templates, ebooks, courses, software licenses, and other items that don’t require recurring billing. **Subscription** Subscriptions charge customers automatically on a recurring schedule such as weekly, monthly, or yearly. Ideal for memberships, communities, SaaS products, newsletters, retainers, and ongoing services. **Bundles** Bundles allow you to group multiple existing products together and sell them as a single package, often at a discounted rate. Ideal for creating ultimate toolkits, premium collections, and promotional packages to incentivize customers and increase your average order value. *** ## Info The info tab is where you add basic product into Simply add your product desired name Checkout URL is how your product look like in the browser bar for example: [*https://yourstore.blink.store/bungee-framer-template*](https://yourstore.blink.store/bungee-framer-template) URLs must not contain any spaces and should be all in small letters. When creating your product, it's automatically assigned a URL similar to your product name, feel free to change that to a custom one. Blink comes with a powerful, flexible rich text editor that gives you full control over how your content looks and feels. You can easily add headings, paragraphs, links, and lists, and style everything to match your voice and brand. Whether you’re keeping it clean and minimal or going more detailed and structured, you can format your description exactly the way you want—no limitations, no fuss. **Free:**
Offer your product free to all customers.

**Paid:**
Set a price to your product according to your store's currency.

**Pay what you want:**
Pay What You Want (PWYW) pricing is a strategy where sellers allow buyers to determine the price for a product or service, often with an optional minimum, including zero.
You can set a currency per product, which overrides the store’s default currency if it differs.

**Supported currencies:** * USD (US Dollar) * EUR (EURO) * GBP (British Pound) * CAD (Canadian Dollar) * AUD (Australian Dollar) * JPY (Japanese Yen) * CHF (Swiss Franc) * SEK (Swedish Krona) * INR (Indian Rupee) * BRL (Brazilian Real)Tax
*** ## Images You can upload up to 10 images for each product, giving you plenty of room to show it off from every angle. For best results, we recommend using images that are at least 1600 × 1200px so everything looks sharp and clear. Supported formats: JPEG, PNG, and WebP *** ## Deliverables Deliverables are what your customer receives after placing an order.
For maximum flexibility, you can attach any of the following deliverables to fully automate your fulfillment: [Learn more about deliverable types](/deliverables) *** ## Settings Variable products allow customers to choose options like size or color on one page, with unique prices, SKUs, and stock levels for each combination. Recover lost sales automatically with a 3-step abandoned checkout flow. When a customer drops off, we send a series of high-converting emails to bring them back complete with built-in incentives. The second and third emails include a discount to nudge them over the line. Order bumps are a simple way to increase your checkout value. They appear right before the Pay button and let customers quickly add extras to their order with a single click. They’re perfect for offering complementary add-ons like extended support, setup services, or premium extras. Choose how you want your product to be discovered. You can make it visible on your storefront for anyone to browse, or keep it private and share it only via direct link. For subscription products, you can enable the **"Revoke access on subscription end"** setting. When enabled, Blink automatically locks access to digital downloads, API keys, Entitlements (Feature Flags), Discord roles, and GitHub repositories when the subscription expires, cancels, or fails to renew. Blink only allows adding digital products you own, adding a product that infringes copyrights may result in immediate termination of your account. # Manage Source: https://docs.blink.store/affiliate-manage The **Affiliates** section allows you to review applications, approve affiliates, monitor performance, and manage your program. ## **Affiliate Statuses** ### **Pending** Applicants awaiting review. These affiliates have submitted an application but cannot promote your products until approved. ### **Approved** Active affiliates who can generate referrals and earn commissions. ### **Banned** Affiliates removed from your program. Banned affiliates can no longer earn commissions or generate new referrals. ## **Affiliate Overview** The affiliate list provides a high-level view of each affiliate’s performance. ### **Clicks** The number of visitors who clicked the affiliate’s referral links. ### **Earnings** The total commissions generated by the affiliate. ### **Referrals** The number of successful referred purchases. ### **Status** The affiliate’s current approval status. ## **Viewing Affiliate Details** Click any affiliate to access detailed performance information. ### **Performance Metrics** #### **Clicks** Total tracked visits generated by the affiliate. #### **Referrals** Total successful purchases attributed to the affiliate. #### **Unpaid Earnings** Approved commissions that have not yet been paid out. #### **Total Earnings** Lifetime commissions earned by the affiliate. ## **Referral Activity** The Recent Referrals section displays every successful referral generated by the affiliate. For each referral you can view: * Date * Product purchased * Commission earned * Payout status ## **Affiliate Information** The Information tab contains the affiliate’s application details and profile information submitted during signup. This information helps you evaluate affiliates and maintain quality partnerships. ## **Managing Affiliate Status** You can update an affiliate’s status at any time. ### **Approve** Allows the affiliate to actively promote your products and earn commissions. ### **Move to Pending** Temporarily pauses approval while you review the account. ### **Ban** Removes the affiliate from your program and prevents future commission generation. # Payouts Source: https://docs.blink.store/affiliate-payouts Blink automatically manages affiliate payouts using Stripe Connect. Commissions are tracked, approved, and prepared for payout without requiring manual calculations. ## **How Payouts Work** 1. An affiliate refers a customer. 2. The customer completes a purchase. 3. The commission is recorded. 4. The commission enters an escrow period. 5. Once eligible, funds are released automatically through Stripe Connect. ## **Escrow Period** Affiliate commissions are held for **30 days** before becoming eligible for payout. This helps protect against: * Refunds * Chargebacks * Fraudulent purchases * Payment disputes ## **Automatic Distribution** Once a commission passes the escrow period and meets the minimum payout threshold: * Blink automatically prepares the payout. * Stripe Connect handles the fund transfer. * No manual payout requests are required. ## **Tracking Payouts** The Payouts page displays commissions that are ready or scheduled for payment. You can use this page to monitor the payout pipeline and verify upcoming affiliate earnings. ## **Important Notes** * Affiliates must have a connected Blink account to receive payouts. * Only approved commissions become eligible for payout. * Refunds and disputes may affect commission eligibility. * Commissions are paid only after the escrow period has completed. * Payout processing is handled automatically through Stripe Connect. # Setup Source: https://docs.blink.store/affiliate-setup The Affiliate Program allows creators, customers, and marketers to promote your products in exchange for a commission on successful referrals. Once enabled, affiliates can apply to join your program, receive unique tracking links, and earn commissions when their referrals generate sales. ## **Enabling Your Affiliate Program** Navigate to **Affiliate Program → Settings** and enable the program. When enabled: * Your public affiliate signup page becomes available. * Applicants can submit requests to join your program. * Approved affiliates receive access to referral links and performance tracking. *** ## Default affiliate program The Default Affiliate Program serves as your baseline offer for anyone joining through your public affiliate page. For custom deal structures, you can build Private Affiliate Programs with tailored terms and commission rules, accessible exclusively via direct link. ## **Affiliate Signup Page** Every store receives a unique affiliate application page. Use the **Invite Link** to: * Recruit affiliates directly. * Share your program on social media. * Add the link to your website or creator resources. * Invite existing customers to become affiliates. ## **Commission Structure** Choose how affiliates are rewarded for successful referrals. ### **Percentage Commission** Affiliates earn a percentage of each qualifying sale. **Example** Product sells for \$100 * Affiliate earns \$20 (20%) * Store owner receives \$80 ### **Fixed Amount Commission** Affiliates earn a fixed amount per sale regardless of product price. **Example** Product sells for \$100 * Affiliate earns \$10 * Store owner receives \$90 ## **Minimum Payout** Set the minimum earnings balance required before an affiliate becomes eligible for payout. **Example** Minimum payout: \$50 An affiliate must accumulate at least \$50 in approved commissions before funds can be released. ## **Cookie Duration** Cookie duration determines how long Blink tracks a visitor after they click an affiliate link. **Example** Cookie duration: 30 days If a visitor clicks an affiliate link and purchases within 30 days, the affiliate receives credit for the sale. ## **Automatic Approval** Enable **Automatically approve new affiliates** if you want applicants to join instantly without manual review. When disabled: * Applications are placed into a pending state. * You review and approve affiliates manually. ## **Application Questions** Customize the application process by asking potential affiliates questions before approval. Common examples include: * How will you promote our products? * Tell us about your audience. * Share your website or social profiles. * How did you hear about us? Use these responses to identify high-quality affiliates and prevent abuse. # Analytics Source: https://docs.blink.store/analytics Blink Analytics helps you understand where your traffic comes from, how visitors behave, and what drives sales. Track your store’s performance in real time with insights across traffic, marketing campaigns, products, checkouts, and conversions. ## **Overview Metrics** At the top of the Analytics dashboard, you’ll find your key performance indicators: * **Total Visitors** — The number of unique visitors to your storefront. * **Page Views** — The total number of pages viewed across your store. * **Avg Time on Site** — The average time visitors spend browsing your store. * **Bounce Rate** — The percentage of visitors who leave without interacting further. * **Checkouts Initiated** — The number of checkout sessions started. * **Checkout Conversion** — The percentage of visitors who completed a purchase. ## **Traffic Over Time** The traffic chart visualizes visitor activity over your selected date range, helping you identify trends, spikes, and the impact of campaigns or product launches. Use the date picker to analyze performance across different periods. ## **Marketing Campaigns** Track the performance of your marketing campaigns using UTM parameters. Filter by: * **All UTMs** * **Campaign** * **Source** * **Medium** * **Term** * **Content** For each campaign, Blink reports: * Number of visits * Generated revenue * Conversion rate This allows you to understand which channels and campaigns drive the highest return. ## **Referrers** See exactly where your visitors are coming from. Common sources include: * Direct traffic * Search engines * Social platforms * Marketplaces * External websites * Custom referral links For each referrer, Blink tracks: * Visits * Revenue generated * Conversion rate ## **Countries** Understand your audience’s geographic distribution. Country analytics help you: * Identify your strongest markets * Discover emerging audiences * Optimize geo-pricing strategies * Localize your marketing efforts Each country includes visitor count, revenue, and conversion performance. ## **Devices** Analyze how visitors access your store across different device types, including: * Desktop * Mobile * Laptop * Tablet Device analytics can help optimize your store experience and improve conversion rates. ## **Checkouts** Track which checkout experiences perform best. Blink currently tracks performance across: * **Storefront Checkout** * **Overlay Checkout** * **Light Mode Checkout** Compare checkout starts, revenue, and conversion rates to identify the most effective purchasing experience. ## **Product Performance** Measure how each product performs individually. For every product, Blink tracks: * Page views * Unique visitors * Sales volume * Conversion rate * Net revenue Use these insights to identify your best-performing products, optimize pricing, and focus your marketing efforts where they matter most. ## **Privacy First** Analytics are aggregated asynchronously and powered by privacy-friendly tracking. Data can be slightly delayed. # Create affiliate link Source: https://docs.blink.store/api-reference/affiliates/create-affiliate-link post /affiliates/members/{membership_id}/links # Generate custom affiliate link Source: https://docs.blink.store/api-reference/affiliates/generate-custom-affiliate-link post /affiliates/links Generates a custom tracking link for an affiliate membership using a specific code. **Usage:** Allows affiliates to create personalized links that can track their referral traffic and conversions. # Generate Single Sign-On (SSO) URL Source: https://docs.blink.store/api-reference/affiliates/generate-single-sign-on-sso-url post /v1/affiliates/sso Generates a magic link URL to seamlessly log an affiliate into their dashboard. # Get affiliate conversions Source: https://docs.blink.store/api-reference/affiliates/get-affiliate-conversions get /affiliates/{id}/conversions Retrieves a list of orders that are attributed to a specific affiliate based on their membership ID. Provides detailed order information, including the status, amount, and commission. **Usage:** Allows affiliates to track their performance and commissions by viewing the orders they have influenced. # Get affiliate finances Source: https://docs.blink.store/api-reference/affiliates/get-affiliate-finances get /affiliates/members/{membership_id}/finances # Get Affiliate Links Source: https://docs.blink.store/api-reference/affiliates/get-affiliate-links get /v1/affiliates/{id}/links Fetch tracking links for a specific affiliate membership. # Get affiliate metrics Source: https://docs.blink.store/api-reference/affiliates/get-affiliate-metrics get /affiliates/members/{membership_id}/metrics # Get Affiliate Program Settings Source: https://docs.blink.store/api-reference/affiliates/get-affiliate-program-settings get /v1/affiliate-program Fetch the active affiliate program configuration for the store. # Initialize Payout Setup Source: https://docs.blink.store/api-reference/affiliates/initialize-payout-setup post /v1/affiliates/{id}/payout-setup Generates a secure Stripe Connect onboarding link for the affiliate. Handles the creation of the underlying Stripe Express account if it doesn't exist. # Invite an affiliate Source: https://docs.blink.store/api-reference/affiliates/invite-an-affiliate post /affiliates/invite Programmatically sends an email invitation to a potential affiliate. The email contains a link for joining the affiliate program. **Usage:** Useful for programatically adding affiliates to expand marketing reach. # List affiliate links Source: https://docs.blink.store/api-reference/affiliates/list-affiliate-links get /affiliates/members/{membership_id}/links # List affiliate members Source: https://docs.blink.store/api-reference/affiliates/list-affiliate-members get /affiliates/members # List affiliate orders Source: https://docs.blink.store/api-reference/affiliates/list-affiliate-orders get /affiliates/members/{membership_id}/orders # List affiliate programs Source: https://docs.blink.store/api-reference/affiliates/list-affiliate-programs get /affiliates/programs # List affiliates Source: https://docs.blink.store/api-reference/affiliates/list-affiliates get /affiliates Retrieves a list of affiliates for a store, with optional filtering by status and pagination support. **Usage:** Analyze and manage affiliates for promotional strategies. # Register a new affiliate Source: https://docs.blink.store/api-reference/affiliates/register-a-new-affiliate post /v1/affiliates/register Headless registration for custom storefronts. Provisions a user identity, creates an affiliate profile, and enrolls them into the store's default affiliate program. # Retrieve affiliate details Source: https://docs.blink.store/api-reference/affiliates/retrieve-affiliate-details get /affiliates/{id} Retrieves details of a specific affiliate membership using its ID. It includes affiliate profile information and conversion statistics. **Usage:** Use this to get detailed insights into an individual affiliate's performance, including total revenue and pending commissions. # Retrieve Payout Balances Source: https://docs.blink.store/api-reference/affiliates/retrieve-payout-balances get /v1/affiliates/{id}/payouts Securely fetches the affiliate's live Available and Pending balances directly from Stripe, along with their recent payout transfers and their Stripe account setup status. # Update affiliate details Source: https://docs.blink.store/api-reference/affiliates/update-affiliate-details patch /affiliates/{id} Updates the details of a specific affiliate membership using its ID. You can change the status of the affiliation. **Usage:** Utilize this endpoint to modify affiliate statuses like changing them to 'approved', 'banned', etc. # Update affiliate membership status Source: https://docs.blink.store/api-reference/affiliates/update-affiliate-membership-status post /affiliates Approves, rejects, or bans an affiliate's application based on the action specified. **Usage:** Control the participation of affiliates based on their performance or issues. # AI Integration Source: https://docs.blink.store/api-reference/ai-integration How to instantly build Blink integrations using AI agents like Cursor, Windsurf, or Claude. Blink provides native, first-class support for AI coding agents. Instead of manually reading through our API reference to write fetch requests or define schemas, you can point your AI directly to our **Master Agent File**. ## The Master Agent File (`llms-full.txt`) Our documentation automatically generates an AI-optimized file at `https://docs.blink.store/llms-full.txt`. This single file contains: 1. **Blink Architectural Golden Rules:** Strict instructions on when to use Embedded checkouts, how to handle deliverables securely, and webhook best practices. 2. **Complete OpenAPI Schemas:** Every endpoint, payload, and response format in our API. Because modern AI models (like Claude 3.5 Sonnet and GPT-4o) have massive context windows, they can instantly read this entire file and write flawless integration code on the first try. ## How to use it in Cursor or Windsurf If you are building your integration inside an AI IDE like Cursor or Windsurf, simply `@`-mention the URL in your chat prompt. **Example Prompt:** > `@https://docs.blink.store/llms-full.txt` I am building a Next.js application. Please write a server action that creates a Blink checkout session for my product `prod_123`, and then write the client-side code to trigger the embedded overlay checkout when the user clicks "Buy Now". ## How to use it in ChatGPT or Claude web If you are using ChatGPT or Claude on the web, you can either: 1. Paste the `https://docs.blink.store/llms-full.txt` URL directly into your prompt. 2. Download the `.txt` file and attach it to your "Claude Project" or "Custom GPT" as persistent knowledge. # Delete a tag Source: https://docs.blink.store/api-reference/audience/delete-a-tag delete /audience/tags # List all broadcasts Source: https://docs.blink.store/api-reference/audience/list-all-broadcasts get /audience/broadcasts # List all tags Source: https://docs.blink.store/api-reference/audience/list-all-tags get /audience/tags # Create a new bump Source: https://docs.blink.store/api-reference/bumps/create-a-new-bump post /bumps Creates a new promotional bump for the store. Includes details like title, description, and price. **Usage:** Use this endpoint to create new upsells and promotional offers to increase average order value. # Delete Bump Source: https://docs.blink.store/api-reference/bumps/delete-bump delete /bumps/{id} # List store bumps Source: https://docs.blink.store/api-reference/bumps/list-store-bumps get /bumps Retrieves a list of promotional bumps available in the store. A bump is a special offer or upsell related to a product. The response includes details like the title, description, price, and deliverables. **Usage:** Utilize this endpoint to analyze or display product upsells and promotions for increasing average order value. # Retrieve a specific bump Source: https://docs.blink.store/api-reference/bumps/retrieve-a-specific-bump get /bumps/{id} # Update Bump Source: https://docs.blink.store/api-reference/bumps/update-bump patch /bumps/{id} # Create a New Bundle Source: https://docs.blink.store/api-reference/bundles/create-a-new-bundle POST https://api.blink.store/v1/products Create a new bundle containing existing products. ### Body Parameters The name of the bundle. The total price of the bundle in cents (e.g., `4900` for \$49.00). The pricing model. Usually `standard` for bundles. Must be set to `true` to flag this product as a bundle. An array of objects representing the products included in this bundle. The ID of the existing product to include. An optional custom description for this item within the bundle. ### Response The newly created bundle object. The unique identifier for the newly created bundle. The name of the bundle. Will be `true`. ```bash cURL theme={null} curl --request POST \ --url 'https://api.blink.store/v1/products' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --header 'x-store-id: YOUR_STORE_ID' \ --data '{ "name": "Ultimate Toolkit", "price": 4900, "pricing_model": "standard", "is_bundle": true, "bundle_items": [ { "product_id": "prod_123" }, { "product_id": "prod_456" } ] }' ``` # List All Bundles Source: https://docs.blink.store/api-reference/bundles/list-all-bundles GET https://api.blink.store/v1/products Retrieve a list of all your bundles by passing `is_bundle=true`. ### Query Parameters Must be set to `true` to filter the products list and only return bundles. Filter by bundle status. E.g., `active`, `archived`, `draft`. Limit the number of results returned. Page number for pagination. ### Response An array of bundle objects. The unique identifier for the bundle. The name of the bundle. The total price of the bundle in cents. Always `true` for bundles. An array of products included in the bundle. ```bash cURL theme={null} curl --request GET \ --url 'https://api.blink.store/v1/products?is_bundle=true' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'x-store-id: YOUR_STORE_ID' ``` # Delete a cart recovery campaign Source: https://docs.blink.store/api-reference/cart-recovery/delete-a-cart-recovery-campaign delete /cart-recovery/{id} # Get recovery link Source: https://docs.blink.store/api-reference/cart-recovery/get-recovery-link get /cart-recovery/{id}/link # List all abandoned carts Source: https://docs.blink.store/api-reference/cart-recovery/list-all-abandoned-carts get /cart-recovery Lists all abandoned carts for a store with optional filtering by cart status or product ID. Supports pagination. **Usage:** Retrieve a list of all forgotten carts for a store. This can help in analyzing trends and planning follow-up strategies. # Manually trigger recovery email Source: https://docs.blink.store/api-reference/cart-recovery/manually-trigger-recovery-email post /cart-recovery/{id}/recover This endpoint allows you to manually trigger a recovery email for an abandoned cart specified by its ID. It checks the cart's status, and if it hasn't been recovered, it will regenerate the recovery URL using the Blink checkout session and dispatch a recovery email to the customer. It increments the recovery email sent counter regardless of email success. **Usage:** Useful when you want to manually re-initiate the recovery process for a specific cart. # Retrieve abandoned cart details Source: https://docs.blink.store/api-reference/cart-recovery/retrieve-abandoned-cart-details get /cart-recovery/{id} Retrieves details of a specific abandoned cart using its ID. The response includes information about the cart, such as customer email, status, and product details. **Usage:** Use this endpoint to view details of a forgotten cart, aiding in customer follow-up or analytics. # Trigger a recovery email Source: https://docs.blink.store/api-reference/cart-recovery/trigger-a-recovery-email post /cart-recovery/trigger Manually sends a recovery email for a specified abandoned cart. This endpoint can be used to re-initiate customer communication for carts awaiting recovery. **Usage:** Directly reach out to customers who have left items in their carts, potentially increasing order completion rates. # Create a new checkout session Source: https://docs.blink.store/api-reference/checkouts/create-a-new-checkout-session post /checkouts Initializes a new Blink checkout session for a product and returns the session URL. Can be customized with discounts, affiliate codes, and display preferences. **Usage:** This endpoint is crucial for starting a payment flow and redirecting customers to a payment page. # Create Checkout Link Source: https://docs.blink.store/api-reference/checkouts/create-checkout-link post /checkout-links Creates a permanent checkout link. **Usage:** Automatically generating short-links for influencer marketing campaigns. # Delete Checkout Link Source: https://docs.blink.store/api-reference/checkouts/delete-checkout-link delete /checkout-links/{id} # List Checkout Links Source: https://docs.blink.store/api-reference/checkouts/list-checkout-links get /checkout-links Lists reusable checkout links. # List checkout sessions Source: https://docs.blink.store/api-reference/checkouts/list-checkout-sessions get /checkouts Retrieves a list of checkout sessions for a store with optional filtering by status. Supports pagination. **Usage:** Analyze all checkout sessions to monitor activities and trends in your store. # Retrieve Checkout Link Source: https://docs.blink.store/api-reference/checkouts/retrieve-checkout-link get /checkout-links/{id} # Retrieve checkout session details Source: https://docs.blink.store/api-reference/checkouts/retrieve-checkout-session-details get /checkouts/{id} Fetches the status and details of a specific Blink checkout session using its ID. The session details include URL, status, payment status, customer email, etc. **Usage:** Use this endpoint to review the status of a checkout session and get necessary details for follow-up actions. # Update Checkout Link Source: https://docs.blink.store/api-reference/checkouts/update-checkout-link patch /checkout-links/{id} # Create Blink Billing Portal Session Source: https://docs.blink.store/api-reference/customer-portal/create-blink-billing-portal-session post /portal/sessions Creates a Stripe billing portal session. Note: This endpoint does not take a request body because the customer ID is derived from the required Customer Bearer token (JWT). # List Customer Orders Source: https://docs.blink.store/api-reference/customer-portal/list-customer-orders get /portal/orders Fetches orders securely for a specific customer authenticated via portal magic link. **Usage:** Headless apps building completely custom 'My Account' or 'Order History' pages for their buyers. # List Customer Subscriptions Source: https://docs.blink.store/api-reference/customer-portal/list-customer-subscriptions get /portal/subscriptions Fetches active and inactive subscriptions securely for an authenticated customer. # List deliverables (Customer Portal) Source: https://docs.blink.store/api-reference/customer-portal/list-deliverables-customer-portal get /portal/orders/{id}/deliverables Retrieves the complete fulfillment payload for an order, authenticated via the Customer Portal JWT. This allows buyers to securely access their downloads, license keys, and Discord roles directly from the frontend without routing through your custom backend. **Usage:** You are rendering a 'My Purchases' page in React and want to fetch the buyer's files directly from the browser using their session token. # Create a customer Source: https://docs.blink.store/api-reference/customers/create-a-customer post /customers Manually creates a new customer record in the store, useful for customer onboarding and creating customer profiles manually. # Create a customer portal session Source: https://docs.blink.store/api-reference/customers/create-a-customer-portal-session post /customers/{id}/portal-session Generates a 15-minute magic link that logs the customer into their order portal. Use this endpoint to provide customers with quick access to view and manage their orders. # List customer entitlements Source: https://docs.blink.store/api-reference/customers/list-customer-entitlements get /customers/{id}/entitlements Retrieve the active entitlements (feature flags) granted to a customer based on their active orders and subscriptions. # List customer orders Source: https://docs.blink.store/api-reference/customers/list-customer-orders get /customers/{id}/orders Retrieves a list of orders made by a specific customer. Includes information such as order status, amount, and product details. **Usage:** Use this endpoint to manage customer relationships and analyze buying patterns. # List customer subscriptions Source: https://docs.blink.store/api-reference/customers/list-customer-subscriptions get /customers/{id}/subscriptions Retrieves all active subscriptions for a given customer. Useful for determining current and past engagements with customers. # List customers Source: https://docs.blink.store/api-reference/customers/list-customers get /customers Fetches a list of customers for a store with optional filters by email and status. Supports pagination to handle large data sets effectively. # Retrieve customer details Source: https://docs.blink.store/api-reference/customers/retrieve-customer-details get /customers/{id} Fetches full details of a specific customer, including name, email, status, total orders, and lifetime revenue. # Retrieve customer meter balances Source: https://docs.blink.store/api-reference/customers/retrieve-customer-meter-balances get /customers/{id}/meter-balance Provides the balance of credits for each meter associated with a customer. Meters track specific activities or resources, and this endpoint shows how much credit remains. **Usage:** Useful for analyzing customer usage and planning billing adjustments, if applicable. # Update customer details Source: https://docs.blink.store/api-reference/customers/update-customer-details patch /customers/{id} Updates a customer's details such as name, email, or status. Use this endpoint to modify customer records in the database. # Delete deliverable Source: https://docs.blink.store/api-reference/deliverables/delete-deliverable delete /deliverables/{id} Deletes a file by its ID after ensuring ownership via `x-store-id`. This action is irreversible and should be used with caution. It checks if the file exists and belongs to the correct store before deletion. # Generate download URL Source: https://docs.blink.store/api-reference/deliverables/generate-download-url get /deliverables/{id}/download Generates a time-limited pre-signed URL for downloading a specific file. # Get deliverable Source: https://docs.blink.store/api-reference/deliverables/get-deliverable get /deliverables/{id} Fetch detailed information about a file by its ID. This endpoint requires the `x-store-id` in the headers to verify ownership. Successfully retrieves information such as file title, description, URL, and creation date. Useful for accessing and managing deliverables associated with specific products or variants. # List deliverables Source: https://docs.blink.store/api-reference/deliverables/list-deliverables get /deliverables Retrieve a list of files (deliverables) associated with a store, filtered optionally by product or variant ID. The endpoint supports pagination and requires a valid `x-store-id` in the headers for authentication. # Upload a deliverable Source: https://docs.blink.store/api-reference/deliverables/upload-a-deliverable post /deliverables # Create a new discount Source: https://docs.blink.store/api-reference/discounts/create-a-new-discount post /discounts Creates a new discount for the store. Ensures unique discount code within the store. # Delete a discount Source: https://docs.blink.store/api-reference/discounts/delete-a-discount delete /discounts/{id} Deletes a discount from the database. This is irreversible and should be used when the discount is no longer needed. # List discounts Source: https://docs.blink.store/api-reference/discounts/list-discounts get /discounts Retrieves a list of discounts for a store with optional filtering by status. Supports pagination. # Retrieve discount details Source: https://docs.blink.store/api-reference/discounts/retrieve-discount-details get /discounts/{id} Fetches details of a specific discount by its ID including code, type, and associated products. # Update discount details Source: https://docs.blink.store/api-reference/discounts/update-discount-details patch /discounts/{id} Updates information for a specific discount, such as code, amount, or expiration date. Use to edit existing discount offers. # List Blink disputes Source: https://docs.blink.store/api-reference/disputes/list-blink-disputes get /disputes Fetches a list of disputes associated with the store's connected Blink account. Supports limiting results. # Embedded Checkout Source: https://docs.blink.store/api-reference/embedded-checkout Integrate Blink's embedded overlay checkout programmatically in your application. To use the embedded checkout on your custom website or web app, you need to include our embed script and use the provided JavaScript API. This allows you to keep users in context and reduce friction. ## **1. Add the Embed Script** Include the following script tag anywhere in your HTML (preferably right before the closing body tag): ```html theme={null} ``` **Modern Frameworks (React, Next.js, etc.)** If you are using a modern SPA framework like Next.js, do not use a raw HTML `