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

# Accept your first payment

> Create an invoice and complete a test payment.

## Prerequisites

* Settlement wallet configured
* Store-scoped API key with `invoices:create` scope

## Steps

1. Create an invoice:

```bash theme={null}
curl -X POST https://api.meum.io/v1/invoices \
  -H "Authorization: Bearer sk_live_EXAMPLE_DO_NOT_USE" \
  -H "Content-Type: application/json" \
  -d '{
    "external_order_id": "demo_order_001",
    "amount": "10.00",
    "currency": "USD",
    "return_url": "https://example.com/thank-you"
  }'
```

2. Open the `checkout_url` from the response (e.g. `https://pay.meum.io/{invoiceId}`)
3. Select a payment token and enter a refund address
4. Complete the on-chain payment (or use dev simulation if available in your environment)
5. Poll status or wait for webhook:

```bash theme={null}
curl https://api.meum.io/v1/invoices/{invoiceId}/status \
  -H "Authorization: Bearer sk_live_EXAMPLE_DO_NOT_USE"
```

## Expected result

Invoice status transitions to `paid`. Webhook `invoice.paid` is delivered if configured.

## Related pages

* [POST /v1/invoices](/api-reference/overview)
* [Webhooks overview](/webhooks/overview)
* [Test the integration](/getting-started/test-integration)
