Skip to main content

Create Your First Invoice

This guide walks you through creating an invoice, checking its status, and handling the complete lifecycle.

Prerequisites

  • An Invoica API key (get one here)
  • The Invoica SDK installed (npm install @invoica/sdk)

Step 1: Initialize the Client

Step 2: Create an Invoice

Invoica supports four chains. Set the chain field to route settlement detection correctly.

Response

Step 3: List Your Invoices

Step 4: Monitor Invoice Status

Invoice Status Flow

Each status transition triggers a webhook event if configured.

Error Handling

Next Steps