# API reference

> Every endpoint you can call with an API key, with its parameters and responses.

The Camel Payment API is organized around resources. It accepts JSON bodies, returns JSON, and uses standard HTTP methods and status codes. Every endpoint is under `https://api.camelpayment.com/v1` and needs an [API key](https://camelpayment.com/docs/authentication.md).

Connections, API keys, and webhook endpoints are managed from the dashboard and aren't part of the API.

## Payments

- [POST Create a payment `/v1/payments`](https://camelpayment.com/docs/api-reference/create-payment.md)
- [GET Retrieve a payment `/v1/payments/{payment_id}`](https://camelpayment.com/docs/api-reference/get-payment.md)
- [GET List payments `/v1/payments`](https://camelpayment.com/docs/api-reference/list-payments.md)

## Refunds

- [POST Create a refund `/v1/payments/{payment_id}/refunds`](https://camelpayment.com/docs/api-reference/create-refund.md)
- [GET List refunds `/v1/payments/{payment_id}/refunds`](https://camelpayment.com/docs/api-reference/list-refunds.md)

## Checkouts

- [POST Create a checkout `/v1/checkouts`](https://camelpayment.com/docs/api-reference/create-checkout.md)
- [GET Retrieve a checkout `/v1/checkouts/{checkout_id}`](https://camelpayment.com/docs/api-reference/get-checkout.md)
- [GET List checkouts `/v1/checkouts`](https://camelpayment.com/docs/api-reference/list-checkouts.md)
- [POST Capture a checkout `/v1/checkouts/{checkout_id}/capture`](https://camelpayment.com/docs/api-reference/capture-checkout.md)

## Currency conversion

- [GET List exchange rates `/v1/fx/rates`](https://camelpayment.com/docs/api-reference/list-exchange-rates.md)
- [POST Create a quote `/v1/fx/quotes`](https://camelpayment.com/docs/api-reference/create-quote.md)
- [GET Retrieve a quote `/v1/fx/quotes/{quote_id}`](https://camelpayment.com/docs/api-reference/get-quote.md)
