Create an invoice
Create a purchase for one or more product variants.
Create a purchase for one or more product variants.
Note
If a checkout URL is already available, it appears in data.checkout.
Otherwise, create a checkout session.
A subscription plan has its own rules for carts, quantity, trial pricing, coupons, and customers who already hold the plan. See Buying a plan before you sell one.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
application/json- body
customer_email*stringemailcustomer_ip?|The IP address the customer is buying from. Send it when you sell a plan with a trial: a trial of the same product taken from this address in the last 30 days counts as the customer's. Without it, only customer_email is checked, so a customer could take another trial with a new email address.
payment_method*string"AUTHNET""BTCPAY""CASHAPP""COINBASE""PADDLE""PAYDASH""PAYPAL""PAYSTACK""SQUARE""STRIPE""VENMO""NMI""MERCADO_PAGO""MOLLIE""RAZORPAY""CUSTOM_PAYMENT_METHOD""LIFI""BTC""LTC""ETH""XMR""SOL""ADA""BNB""TRX""MATIC""ETH_USDT""ETH_USDC""ETH_UNI""ETH_SHIB""ETH_DAI""BNB_USDT""BNB_USDC""TRX_USDT""TRX_USDC""SOL_USDT""SOL_USDC"coupon?stringvat_id?stringcountry?stringaffiliate?string|nullextra?product_variants*Successful response.
application/json- response
data*curl -X POST 'https://sell.app/api/v2/invoices' \ -H 'X-STORE: launch-lab' \ -H 'Content-Type: application/json' \ -d '{ "customer_email": "maya.chen@example.com", "payment_method": "STRIPE", "product_variants": { "4321": { "quantity": 1 } }}'{ "data": { "id": 9001, "payment": { "fee": { "base": "0", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "0", "inclusive": "0" } }, "gateway": { "data": { "customer_email": "maya.chen@example.com" }, "type": "STRIPE" }, "subtotal": { "base": "1999", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "1999", "inclusive": "1999" } }, "expires_at": "2026-09-02T12:00:01.000000Z", "full_price": { "base": "1999", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "1999", "inclusive": "1999" } }, "original_amount": { "base": "1999", "currency": "USD", "units": 1, "vat": 0, "total": { "exclusive": "1999", "inclusive": "1999" } }, "refund_currency": "USD", "refunded_total_cents": 0 }, "status": { "history": [], "status": { "status": "PENDING", "setAt": "2026-08-30T12:00:01.000000Z", "updatedAt": "2026-08-30T12:00:01.000000Z" } }, "webhooks": [], "feedback": null, "created_at": "2026-08-30T12:00:01.000000Z", "updated_at": "2026-08-30T12:00:01.000000Z", "store_id": 1, "coupon_id": null, "subscription_id": null, "checkout": "https://checkout.stripe.com/c/pay/cs_example", "customer_information": { "id": 125, "email": "maya.chen@example.com", "country": "Germany", "location": "Munich", "ip": "1.3.3.7", "proxied": false, "browser_agent": "Mozilla/4.9 (Windows 98; sl-SI; rv:1.9.1.20) Gecko/20110422 Firefox/21.0", "vat": null, "discord_data": null, "billing_details": null } }}