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

# API Reference

> Referensi interaktif untuk Public API v1 — schema, auth, dan Try it.

Public API untuk membuat dan membaca order toko. Tersedia di paket **Growth** dan **Scale**. Kelola API key di [Dashboard → Developer API](https://kawan.digital/dashboard/settings/developers).

Endpoint playground ada di sidebar **API reference** (di-generate dari OpenAPI).

## Base URL

```bash theme={null}
https://api.kawan.digital/v1
```

Auth: `Authorization: Bearer {API_KEY}`

## Endpoint

<Columns cols={2}>
  <Card title="GET /products" icon="package" href="/api-reference/list-products">
    List produk dan bundle yang published.
  </Card>

  <Card title="GET /payment-methods" icon="credit-card" href="/api-reference/list-payment-methods">
    Metode bayar untuk `POST /orders`.
  </Card>

  <Card title="GET /orders" icon="list" href="/api-reference/list-orders">
    Daftar order toko.
  </Card>

  <Card title="POST /orders" icon="plus" href="/api-reference/create-order">
    Buat checkout order.
  </Card>

  <Card title="GET /orders/{order_id}" icon="search" href="/api-reference/get-order">
    Detail satu order + payment session.
  </Card>
</Columns>

## Tutorial

* Alur API key → buat order: [Integrasi API](/integrasi)
* Event, HMAC, retry: [Webhooks](/webhooks)
