> ## Documentation Index
> Fetch the complete documentation index at: https://docs.retempo.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Retempo: Programmable USDC Settlement for APIs and Agents

> Retempo documentation hub. Create services, set up recurring USDC billing plans, manage subscriptions, and settle payments onchain on Arc.

Retempo is a programmable recurring settlement layer that lets API providers, SaaS developers, and AI agent builders collect USDC payments, manage subscriptions, and record verifiable proof of payment onchain on Arc. Whether you're monetizing an API, running a SaaS subscription, or wiring agent-to-service payments, Retempo handles the billing orchestration so you can focus on your product.

<CardGroup cols={2}>
  <Card title="Introduction" icon="rocket" href="/introduction">
    Learn what Retempo is, who it's for, and how the hybrid offchain–onchain model works.
  </Card>

  <Card title="Quickstart" icon="bolt" href="/quickstart">
    Create your first service, add a payment plan, and confirm a settlement in five steps.
  </Card>

  <Card title="Services Guide" icon="server" href="/guides/services">
    Manage the services you sell — configure status, link payment plans, and onboard subscribers.
  </Card>

  <Card title="API Reference" icon="code" href="/api/overview">
    Explore every endpoint: services, plans, checkout sessions, invoices, and settlements.
  </Card>
</CardGroup>

## How it works

Every payment in Retempo flows through a predictable five-stage pipeline. You define what you're selling and how to price it, Retempo handles checkout and invoicing, and Arc records the final settlement proof onchain.

<Steps>
  <Step title="Service">
    Create a service that represents what you're selling — an API, a SaaS tool, or an AI agent capability.
  </Step>

  <Step title="Payment Plan">
    Attach a payment plan to the service that defines the price, billing interval (monthly, weekly, daily, or one-time), and currency (USDC).
  </Step>

  <Step title="Checkout Session">
    Generate a checkout session link to onboard a subscriber. When the subscriber completes checkout, a subscription is created automatically.
  </Step>

  <Step title="Invoice">
    Retempo issues an invoice for each billing cycle. Invoices move from `DRAFT` → `OPEN` → `PAID` as payment is processed.
  </Step>

  <Step title="Settlement">
    A settlement is submitted to Arc (Chain ID 5042002), where the transaction is recorded onchain. Once the Arc transaction is confirmed, the linked invoice is marked `PAID`.
  </Step>
</Steps>

<Note>
  All amounts in Retempo are denominated in USDC. Every settlement proof is recorded onchain on Arc (Chain ID 5042002), giving you a verifiable, tamper-proof record of every payment.
</Note>
