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

# Payments and checkout

> Understand the payment amount, states, and return links.

## Amounts

Creation accepts `currency: USDC` and a positive integer `amount` in base units. One USDC equals `1000000` units; 12.50 USDC is `12500000`. The maximum is `9000000000000000`. Avoid floating-point arithmetic when converting prices.

An active Arc USDC settlement wallet is required. goChameleon selects the receiving wallet for the organization; the request cannot override the receiving address.

Creation uses `currency`; the retrieval response uses `asset`. Both identify USDC. Retrieval also includes `credited_amount`, transaction details, and timestamps.

## States

| Status | Meaning | Merchant action |
| - | - | - |
| `pending` | Waiting for a transaction | Show checkout and wait |
| `submitted` | Transaction seen; verification pending | Wait for confirmation |
| `confirmed` | Verified credit covers the expected payment | Fulfill once |
| `underpaid` | Credited less than requested | Review the shortfall |
| `failed` | Transaction failed verification or settlement | Review before offering another attempt |
| `expired` | Checkout window closed without a transaction | Create a new attempt with a new key |

Use the returned `expires_at`; the default payment window is 20 minutes and can vary by deployment. An idempotent retry does not renew an expired payment.

## Order data and return links

`reference` is your optional order reference, up to 64 characters; it is not a uniqueness constraint. `metadata` is an optional JSON object, limited to 16 KiB. These fields are private to merchant-facing responses and events, and are omitted from the public buyer response.

`success_url` adds a Continue to merchant link after confirmation. `cancel_url` adds a Return to merchant link. Use HTTPS URLs without embedded credentials. Clicking Return to merchant does not cancel or refund the payment.

Never fulfill based on a browser redirect alone. Verify the payment on your server and make order fulfillment idempotent.

## Dashboard labels

| API status | Dashboard label |
| - | - |
| `pending` | Awaiting payment |
| `submitted` | Confirming |
| `confirmed` | Completed |
| `underpaid` | Underpaid |
| `failed` | Failed |
| `expired` | Expired |

Pending requests are not received revenue. Use `credited_amount` for the actual partial credit on underpaid payments.

## List and reconcile payments

Use **List payments** in the API reference to explore your organization's payments. For example, after setting the environment variables in the quickstart:

```bash theme={null}
curl --fail-with-body "$GOCHAMELEON_API_URL/api/v1/payments/manage/intents/?status=confirmed&limit=20&offset=0" \
  -H "Authorization: Bearer $GOCHAMELEON_SECRET_KEY"
```

The response contains `count`, `next`, `previous`, and `results`. The default page size is 20 and the maximum is 100. You can filter by status, reference, chain, asset, source type, source ID, and creation date bounds (`since` and `until`, using ISO 8601 timestamps).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.