Quick Start

Get up and running with the Nevuto API in under 5 minutes.

Get your first Nevuto integration running in under 5 minutes.

1. Get Your API Key

Sign up at accounts.nevuto.com and navigate to Settings → API Keys. Create a new key and copy it.

2. Install the SDK

npm install @nevuto/sdk

Or with yarn:

yarn add @nevuto/sdk

3. Initialize the Client

import { Nevuto } from '@nevuto/sdk'

const client = new Nevuto({
  apiKey: 'nv_live_your_api_key'
})

4. Create Your First Store

const store = await client.stores.create({
  name: 'My Awesome Store',
  currency: 'USD',
  description: 'A store built with Nevuto API'
})

console.log(store.id) // "store_abc123"

5. Add a Product

const product = await client.products.create({
  storeId: store.id,
  name: 'Premium T-Shirt',
  price: 2999, // in cents
  currency: 'USD',
  description: 'A high-quality cotton t-shirt'
})
const checkout = await client.checkouts.create({
  storeId: store.id,
  lineItems: [
    { productId: product.id, quantity: 1 }
  ],
  successUrl: 'https://example.com/success',
  cancelUrl: 'https://example.com/cancel'
})

console.log(checkout.url) // "https://checkout.nevuto.com/cs_abc123"

What's Next?